lshqqytiger / stable-diffusion-webui-amdgpu

Stable Diffusion web UI
GNU Affero General Public License v3.0
1.86k stars 191 forks source link

[Bug]: git pull and can't start it with gpu and i delete venv and reinstall but still not work #442

Closed waldolin closed 7 months ago

waldolin commented 7 months ago

Checklist

What happened?

stable-diffusion-webui-directml is not working git pull and can't start it wit h gpu. and i delete venv and reinstall it but still not working how to solve it?

Steps to reproduce the problem

it works but sometimes not work and i have gitted pull

PS C:\Users\lin\stable-diffusion-webui-directml> git pull Already up to date.

can't start it with gpu ' `venv "C:\Users\lin\stable-diffusion-webui-directml\venv\Scripts\Python.exe" Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)] Version: v1.9.0 Commit hash: 174310096385aa33d7b174f231650a941d73f19b Installing requirements C:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\bitsandbytes\cextension.py:31: UserWarning: The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable. warn("The installed version of bitsandbytes was compiled without GPU support. " function 'cadam32bit_grad_fp32' not found C:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\pkg_resources__init__.py:123: PkgResourcesDeprecationWarning: llow is an invalid version and will not be supported in a future release warnings.warn( C:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\pkg_resources__init__.py:123: PkgResourcesDeprecationWarning: otobuf is an invalid version and will not be supported in a future release warnings.warn(

and i delete venv and reinstall but still not work..

and it show closed

and i reopen it it still not work

`The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "C:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\transformers\utils\import_utils.py", line 1086, in _get_module return importlib.import_module("." + module_name, self.name) File "C:\Users\lin\stable-diffusion-webui-directml\python\lib\importlib__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\optimum\onnxruntime\modeling_diffusion.py", line 41, in from ..exporters.onnx import main_export File "C:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\optimum\exporters__init.py", line 16, in from .tasks import TasksManager # noqa File "C:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\optimum\exporters\tasks.py", line 52, in from transformers import TFPreTrainedModel File "", line 1075, in _handle_fromlist File "C:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\transformers\utils\import_utils.py", line 1076, in getattr module = self._get_module(self._class_to_module[name]) File "C:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\transformers\utils\import_utils.py", line 1088, in _get_module raise RuntimeError( RuntimeError: Failed to import transformers.modeling_tf_utils because of the following error (look up to see its traceback): No module named 'keras.internal__'

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "C:\Users\lin\stable-diffusion-webui-directml\launch.py", line 48, in main() File "C:\Users\lin\stable-diffusion-webui-directml\launch.py", line 44, in main start() File "C:\Users\lin\stable-diffusion-webui-directml\modules\launch_utils.py", line 696, in start import webui File "C:\Users\lin\stable-diffusion-webui-directml\webui.py", line 13, in initialize.imports() File "C:\Users\lin\stable-diffusion-webui-directml\modules\initialize.py", line 36, in imports shared_init.initialize() File "C:\Users\lin\stable-diffusion-webui-directml\modules\shared_init.py", line 62, in initialize initialize_onnx() File "C:\Users\lin\stable-diffusion-webui-directml\modules\onnx_impl__init.py", line 236, in initialize from .pipelines.onnx_stable_diffusion_xl_pipeline import OnnxStableDiffusionXLPipeline File "C:\Users\lin\stable-diffusion-webui-directml\modules\onnx_impl\pipelines\onnx_stable_diffusion_xl_pipeline.py", line 8, in class OnnxStableDiffusionXLPipeline(CallablePipelineBase, optimum.onnxruntime.ORTStableDiffusionXLPipeline): File "C:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\transformers\utils\import_utils.py", line 1076, in getattr__ module = self._get_module(self._class_to_module[name]) File "C:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\transformers\utils\import_utils.py", line 1088, in _get_module raise RuntimeError( RuntimeError: Failed to import optimum.onnxruntime.modeling_diffusion because of the following error (look up to see its traceback): Failed to import transformers.modeling_tf_utils because of the following error (look up to see its traceback): No module named 'keras.internal'``

What should have happened?

run website.

What browsers do you use to access the UI ?

No response

Sysinfo

version: v1.9.0  •  python: 3.10.7  •  torch: 2.0.0+cpu  •  xformers: N/A  •  gradio: 3.41.2  •  checkpoint: a47e380db3 windows 11 23H2 22631.3296 13th Gen Intel(R) Core(TM) i5-13600K
6950XT

Console logs

`venv "C:\Users\lin\stable-diffusion-webui-directml\venv\Scripts\Python.exe"
Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep  5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)]
Version: v1.9.0
Commit hash: 174310096385aa33d7b174f231650a941d73f19b
Installing requirements
2024-04-16 12:03:57.484611: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2024-04-16 12:03:57.931072: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.
Olive: Failed to load olive-ai: Failed to import transformers.models.gpt2.modeling_tf_gpt2 because of the following error (look up to see its traceback):
No module named 'keras.__internal__'
[Auto-Photoshop-SD] Attempting auto-update...
[Auto-Photoshop-SD] switch branch to extension branch.
checkout_result: Your branch is up to date with 'origin/master'.

[Auto-Photoshop-SD] Current Branch.
branch_result: * master

[Auto-Photoshop-SD] Fetch upstream.
fetch_result:
[Auto-Photoshop-SD] Pull upstream.
pull_result: Already up to date.
current transparent-background 1.2.12
*** Error running install.py for extension C:\Users\lin\stable-diffusion-webui-directml\extensions\facechain.
*** Command: "C:\Users\lin\stable-diffusion-webui-directml\venv\Scripts\python.exe" "C:\Users\lin\stable-diffusion-webui-directml\extensions\facechain\install.py"
*** Error code: 1
*** stdout: Installing requirements for diffusers
***
*** stderr: Traceback (most recent call last):
***   File "C:\Users\lin\stable-diffusion-webui-directml\extensions\facechain\install.py", line 59, in <module>
***     launch.run_pip("install protobuf==3.20.1", "requirements for diffusers")
***   File "C:\Users\lin\stable-diffusion-webui-directml\modules\launch_utils.py", line 149, in run_pip
***     return run(
***   File "C:\Users\lin\stable-diffusion-webui-directml\modules\launch_utils.py", line 121, in run
***     raise RuntimeError("\n".join(error_bits))
*** RuntimeError: Couldn't install requirements for diffusers.
*** Command: "C:\Users\lin\stable-diffusion-webui-directml\venv\Scripts\python.exe" -m pip install protobuf==3.20.1 --prefer-binary
*** Error code: 1
*** stdout: Collecting protobuf==3.20.1
***   Using cached protobuf-3.20.1-cp310-cp310-win_amd64.whl (903 kB)
*** Installing collected packages: protobuf
***   Attempting uninstall: protobuf
***     Found existing installation: protobuf 3.20.3
***     Uninstalling protobuf-3.20.3:
***       Successfully uninstalled protobuf-3.20.3
***
*** stderr: WARNING: Ignoring invalid distribution -otobuf (c:\users\lin\stable-diffusion-webui-directml\venv\lib\site-packages)
*** WARNING: Ignoring invalid distribution -rotobuf (c:\users\lin\stable-diffusion-webui-directml\venv\lib\site-packages)
*** WARNING: Ignoring invalid distribution - (c:\users\lin\stable-diffusion-webui-directml\venv\lib\site-packages)
*** WARNING: Ignoring invalid distribution -otobuf (c:\users\lin\stable-diffusion-webui-directml\venv\lib\site-packages)
*** WARNING: Ignoring invalid distribution -rotobuf (c:\users\lin\stable-diffusion-webui-directml\venv\lib\site-packages)
*** WARNING: Ignoring invalid distribution - (c:\users\lin\stable-diffusion-webui-directml\venv\lib\site-packages)
*** WARNING: Ignoring invalid distribution -otobuf (c:\users\lin\stable-diffusion-webui-directml\venv\lib\site-packages)
*** WARNING: Ignoring invalid distribution -rotobuf (c:\users\lin\stable-diffusion-webui-directml\venv\lib\site-packages)
*** WARNING: Ignoring invalid distribution - (c:\users\lin\stable-diffusion-webui-directml\venv\lib\site-packages)
***     WARNING: Ignoring invalid distribution -otobuf (c:\users\lin\stable-diffusion-webui-directml\venv\lib\site-packages)
***     WARNING: Ignoring invalid distribution -rotobuf (c:\users\lin\stable-diffusion-webui-directml\venv\lib\site-packages)
***     WARNING: Ignoring invalid distribution - (c:\users\lin\stable-diffusion-webui-directml\venv\lib\site-packages)
*** ERROR: Could not install packages due to an OSError: [WinError 5] sQ\u06a1C: 'C:\\Users\\lin\\stable-diffusion-webui-directml\\venv\\Lib\\site-packages\\google\\~.otobuf\\internal\\_api_implementation.cp310-win_amd64.pyd'
*** Check the permissions.
***
*** WARNING: Ignoring invalid distribution -otobuf (c:\users\lin\stable-diffusion-webui-directml\venv\lib\site-packages)
*** WARNING: Ignoring invalid distribution -rotobuf (c:\users\lin\stable-diffusion-webui-directml\venv\lib\site-packages)
*** WARNING: Ignoring invalid distribution - (c:\users\lin\stable-diffusion-webui-directml\venv\lib\site-packages)
*** WARNING: Ignoring invalid distribution -otobuf (c:\users\lin\stable-diffusion-webui-directml\venv\lib\site-packages)
*** WARNING: Ignoring invalid distribution -rotobuf (c:\users\lin\stable-diffusion-webui-directml\venv\lib\site-packages)
*** WARNING: Ignoring invalid distribution - (c:\users\lin\stable-diffusion-webui-directml\venv\lib\site-packages)
*** WARNING: Ignoring invalid distribution -otobuf (c:\users\lin\stable-diffusion-webui-directml\venv\lib\site-packages)
*** WARNING: Ignoring invalid distribution -rotobuf (c:\users\lin\stable-diffusion-webui-directml\venv\lib\site-packages)
*** WARNING: Ignoring invalid distribution - (c:\users\lin\stable-diffusion-webui-directml\venv\lib\site-packages)
***
*** [notice] A new release of pip available: 22.2.2 -> 24.0
*** [notice] To update, run: C:\Users\lin\stable-diffusion-webui-directml\venv\Scripts\python.exe -m pip install --upgrade pip
***
*** Error running install.py for extension C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-face-editor.
*** Command: "C:\Users\lin\stable-diffusion-webui-directml\venv\Scripts\python.exe" "C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-face-editor\install.py"
*** Error code: 1
*** stdout: no module 'xformers'. Processing without...
*** no module 'xformers'. Processing without...
*** No module 'xformers'. Proceeding without it.
***
*** stderr: C:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\pkg_resources\__init__.py:123: PkgResourcesDeprecationWarning: otobuf is an invalid version and will not be supported in a future release
***   warnings.warn(
*** The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.
*** *** Error running preload() for C:\Users\lin\stable-diffusion-webui-directml\extensions\stable-diffusion-webui-wd14-tagger\preload.py
***     Traceback (most recent call last):
***       File "C:\Users\lin\stable-diffusion-webui-directml\modules\script_loading.py", line 35, in preload_extensions
***         module = load_module(preload_script)
***       File "C:\Users\lin\stable-diffusion-webui-directml\modules\script_loading.py", line 14, in load_module
***         module_spec.loader.exec_module(module)
***       File "<frozen importlib._bootstrap_external>", line 883, in exec_module
***       File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
***       File "C:\Users\lin\stable-diffusion-webui-directml\extensions\stable-diffusion-webui-wd14-tagger\preload.py", line 4, in <module>
***         from modules.shared import models_path
***     ImportError: cannot import name 'models_path' from partially initialized module 'modules.shared' (most likely due to a circular import) (C:\Users\lin\stable-diffusion-webui-directml\modules\shared.py)
***
*** ---
*** [2024-04-16 12:04:17,428][DEBUG][git.cmd] - Popen(['C:\\Users\\lin\\stable-diffusion-webui-directml\\git\\cmd/git.exe', 'version'], cwd=C:\Users\lin\stable-diffusion-webui-directml, universal_newlines=False, shell=None, istream=None)
*** [2024-04-16 12:04:17,448][DEBUG][git.cmd] - Popen(['C:\\Users\\lin\\stable-diffusion-webui-directml\\git\\cmd/git.exe', 'version'], cwd=C:\Users\lin\stable-diffusion-webui-directml, universal_newlines=False, shell=None, istream=None)
*** C:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\pytorch_lightning\utilities\distributed.py:258: LightningDeprecationWarning: `pytorch_lightning.utilities.distributed.rank_zero_only` has been deprecated in v1.8.1 and will be removed in v2.0.0. You can import it from `pytorch_lightning.utilities` instead.
***   rank_zero_deprecation(
*** Traceback (most recent call last):
***   File "C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-face-editor\install.py", line 17, in <module>
***     if shared.opts.data.get("face_editor_additional_components", None) is not None:
*** AttributeError: 'NoneType' object has no attribute 'data'
is_installed check for tensorflow-cpu failed as 'spec is None'
Installing requirements for easyphoto-webui
Installing requirements for tensorflow
Requirement already satisfied: insightface==0.7.3 in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from -r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (0.7.3)
Requirement already satisfied: onnx==1.14.0 in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from -r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 2)) (1.14.0)
Requirement already satisfied: onnxruntime==1.15.0 in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from -r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 3)) (1.15.0)
Requirement already satisfied: opencv-python==4.7.0.72 in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from -r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 4)) (4.7.0.72)
Requirement already satisfied: ifnude in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from -r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 5)) (0.0.3)
Requirement already satisfied: cython in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from -r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 6)) (3.0.2)
Requirement already satisfied: numpy in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (1.26.2)
Requirement already satisfied: tqdm in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (4.65.2)
Requirement already satisfied: requests in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (2.28.2)
Requirement already satisfied: matplotlib in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (3.7.2)
Requirement already satisfied: Pillow in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (10.0.0)
Requirement already satisfied: scipy in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (1.11.3)
Requirement already satisfied: scikit-learn in c:\users\lin\appdata\roaming\python\python310\site-packages (from insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (1.2.2)
Requirement already satisfied: scikit-image in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (0.22.0)
Requirement already satisfied: easydict in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (1.11)
Requirement already satisfied: albumentations in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (1.3.1)
Requirement already satisfied: prettytable in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (3.9.0)
Requirement already satisfied: protobuf>=3.20.2 in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from onnx==1.14.0->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 2)) (4.23.4)
Requirement already satisfied: typing-extensions>=3.6.2.1 in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from onnx==1.14.0->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 2)) (4.9.0)
Requirement already satisfied: coloredlogs in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from onnxruntime==1.15.0->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 3)) (15.0.1)
Requirement already satisfied: flatbuffers in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from onnxruntime==1.15.0->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 3)) (23.5.26)
Requirement already satisfied: packaging in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from onnxruntime==1.15.0->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 3)) (23.2)
Requirement already satisfied: sympy in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from onnxruntime==1.15.0->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 3)) (1.12)
Requirement already satisfied: opencv-python-headless>=4.5.1.48 in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from ifnude->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 5)) (4.8.1.78)
Requirement already satisfied: PyYAML in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from albumentations->insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (6.0.1)
Requirement already satisfied: qudida>=0.0.4 in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from albumentations->insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (0.0.4)
Requirement already satisfied: networkx>=2.8 in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from scikit-image->insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (2.8.8)
Requirement already satisfied: imageio>=2.27 in c:\users\lin\appdata\roaming\python\python310\site-packages (from scikit-image->insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (2.31.1)
Requirement already satisfied: tifffile>=2022.8.12 in c:\users\lin\appdata\roaming\python\python310\site-packages (from scikit-image->insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (2023.4.12)
Requirement already satisfied: lazy_loader>=0.3 in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from scikit-image->insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (0.3)
Requirement already satisfied: humanfriendly>=9.1 in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from coloredlogs->onnxruntime==1.15.0->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 3)) (10.0)
Requirement already satisfied: contourpy>=1.0.1 in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (1.1.0)
Requirement already satisfied: cycler>=0.10 in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (0.11.0)
Requirement already satisfied: fonttools>=4.22.0 in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (4.42.1)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (1.4.5)
Requirement already satisfied: pyparsing<3.1,>=2.3.1 in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (3.0.9)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\lin\appdata\roaming\python\python310\site-packages (from matplotlib->insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (2.8.2)
Requirement already satisfied: wcwidth in c:\users\lin\appdata\roaming\python\python310\site-packages (from prettytable->insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (0.2.6)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\lin\appdata\roaming\python\python310\site-packages (from requests->insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (3.1.0)
Requirement already satisfied: idna<4,>=2.5 in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from requests->insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (3.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from requests->insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (1.26.16)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from requests->insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (2023.7.22)
Requirement already satisfied: joblib>=1.1.1 in c:\users\lin\appdata\roaming\python\python310\site-packages (from scikit-learn->insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (1.2.0)
Requirement already satisfied: threadpoolctl>=2.0.0 in c:\users\lin\appdata\roaming\python\python310\site-packages (from scikit-learn->insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (3.1.0)
Requirement already satisfied: mpmath>=0.19 in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from sympy->onnxruntime==1.15.0->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 3)) (1.3.0)
Requirement already satisfied: colorama in c:\users\lin\appdata\roaming\python\python310\site-packages (from tqdm->insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (0.4.6)
Requirement already satisfied: pyreadline3 in c:\users\lin\appdata\local\programs\python\python310\lib\site-packages (from humanfriendly>=9.1->coloredlogs->onnxruntime==1.15.0->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 3)) (3.4.1)
Requirement already satisfied: six>=1.5 in c:\users\lin\appdata\roaming\python\python310\site-packages (from python-dateutil>=2.7->matplotlib->insightface==0.7.3->-r C:\Users\lin\stable-diffusion-webui-directml\extensions\sd-webui-roop\requirements.txt (line 1)) (1.16.0)
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
If submitting an issue on github, please provide the full startup log for debugging purposes.

Initializing Dreambooth
Dreambooth revision: 45a12fe5950bf93205b6ef2b7511eb94052a241f
Checking xformers...
Checking Dreambooth requirements...
Installed version of bitsandbytes: 0.43.1
[Dreambooth] bitsandbytes v0.43.0 is already installed.
Installed version of accelerate: 0.21.0
[Dreambooth] accelerate v0.21.0 is already installed.
Installed version of dadaptation: 3.2
[Dreambooth] dadaptation v3.2 is already installed.
Installed version of diffusers: 0.27.2
[Dreambooth] diffusers v0.25.0 is already installed.
Installed version of discord-webhook: 1.3.0
[Dreambooth] discord-webhook v1.3.0 is already installed.
Installed version of fastapi: 0.94.0
[Dreambooth] fastapi is already installed.
Installed version of gitpython: 3.1.32
[Dreambooth] gitpython v3.1.40 is not installed.
Successfully installed gitpython-3.1.43

Installed version of pytorch_optimizer: 2.12.0
[Dreambooth] pytorch_optimizer v2.12.0 is already installed.
Installed version of Pillow: 9.5.0
[Dreambooth] Pillow is already installed.
Installed version of tqdm: 4.66.2
[Dreambooth] tqdm is already installed.
Installed version of tomesd: 0.1.3
[Dreambooth] tomesd v0.1.2 is already installed.
Installed version of tensorboard: 2.16.2
[Dreambooth] tensorboard v2.13.0 is not installed.
Successfully installed tensorboard-2.13.0

[+] torch version 2.2.2+cu121 installed.
[+] torchvision version 0.17.2+cu121 installed.
[+] accelerate version 0.21.0 installed.
[+] diffusers version 0.27.2 installed.
[!] xformers NOT installed.
C:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\pkg_resources\__init__.py:123: PkgResourcesDeprecationWarning: otobuf is an invalid version and will not be supported in a future release
  warnings.warn(
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
*** Error running preload() for C:\Users\lin\stable-diffusion-webui-directml\extensions\stable-diffusion-webui-wd14-tagger\preload.py
    Traceback (most recent call last):
      File "C:\Users\lin\stable-diffusion-webui-directml\modules\script_loading.py", line 35, in preload_extensions
        module = load_module(preload_script)
      File "C:\Users\lin\stable-diffusion-webui-directml\modules\script_loading.py", line 14, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "C:\Users\lin\stable-diffusion-webui-directml\extensions\stable-diffusion-webui-wd14-tagger\preload.py", line 4, in <module>
        from modules.shared import models_path
    ImportError: cannot import name 'models_path' from partially initialized module 'modules.shared' (most likely due to a circular import) (C:\Users\lin\stable-diffusion-webui-directml\modules\shared.py)

---
No module 'xformers'. Proceeding without it.
C:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\pytorch_lightning\utilities\distributed.py:258: LightningDeprecationWarning: `pytorch_lightning.utilities.distributed.rank_zero_only` has been deprecated in v1.8.1 and will be removed in v2.0.0. You can import it from `pytorch_lightning.utilities` instead.
  rank_zero_deprecation(
Launching Web UI with arguments: --medvram --precision full --no-half --no-half-vae --opt-sub-quad-attention --enable-insecure-extension-access --deepdanbooru --disable-nan-check --skip-torch-cuda-test
Warning: caught exception 'Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx', memory monitor disabled
Traceback (most recent call last):
  File "C:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\transformers\utils\import_utils.py", line 1086, in _get_module
    return importlib.import_module("." + module_name, self.__name__)
  File "C:\Users\lin\stable-diffusion-webui-directml\python\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\transformers\modeling_tf_utils.py", line 76, in <module>
    from keras.__internal__ import KerasTensor
ModuleNotFoundError: No module named 'keras.__internal__'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\transformers\utils\import_utils.py", line 1086, in _get_module
    return importlib.import_module("." + module_name, self.__name__)
  File "C:\Users\lin\stable-diffusion-webui-directml\python\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\optimum\onnxruntime\modeling_diffusion.py", line 41, in <module>
    from ..exporters.onnx import main_export
  File "C:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\optimum\exporters\__init__.py", line 16, in <module>
    from .tasks import TasksManager  # noqa
  File "C:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\optimum\exporters\tasks.py", line 52, in <module>
    from transformers import TFPreTrainedModel
  File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
  File "C:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\transformers\utils\import_utils.py", line 1076, in __getattr__
    module = self._get_module(self._class_to_module[name])
  File "C:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\transformers\utils\import_utils.py", line 1088, in _get_module
    raise RuntimeError(
RuntimeError: Failed to import transformers.modeling_tf_utils because of the following error (look up to see its traceback):
No module named 'keras.__internal__'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\lin\stable-diffusion-webui-directml\launch.py", line 48, in <module>
    main()
  File "C:\Users\lin\stable-diffusion-webui-directml\launch.py", line 44, in main
    start()
  File "C:\Users\lin\stable-diffusion-webui-directml\modules\launch_utils.py", line 696, in start
    import webui
  File "C:\Users\lin\stable-diffusion-webui-directml\webui.py", line 13, in <module>
    initialize.imports()
  File "C:\Users\lin\stable-diffusion-webui-directml\modules\initialize.py", line 36, in imports
    shared_init.initialize()
  File "C:\Users\lin\stable-diffusion-webui-directml\modules\shared_init.py", line 62, in initialize
    initialize_onnx()
  File "C:\Users\lin\stable-diffusion-webui-directml\modules\onnx_impl\__init__.py", line 236, in initialize
    from .pipelines.onnx_stable_diffusion_xl_pipeline import OnnxStableDiffusionXLPipeline
  File "C:\Users\lin\stable-diffusion-webui-directml\modules\onnx_impl\pipelines\onnx_stable_diffusion_xl_pipeline.py", line 8, in <module>
    class OnnxStableDiffusionXLPipeline(CallablePipelineBase, optimum.onnxruntime.ORTStableDiffusionXLPipeline):
  File "C:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\transformers\utils\import_utils.py", line 1076, in __getattr__
    module = self._get_module(self._class_to_module[name])
  File "C:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\transformers\utils\import_utils.py", line 1088, in _get_module
    raise RuntimeError(
RuntimeError: Failed to import optimum.onnxruntime.modeling_diffusion because of the following error (look up to see its traceback):
Failed to import transformers.modeling_tf_utils because of the following error (look up to see its traceback):
No module named 'keras.__internal__'`

Additional information

no update my GPU driver

lshqqytiger commented 7 months ago

Some of your extensions don't seem to be compatible with webui v1.9.0. Downgrade webui or ask extension developer.

Downgrading webui: git checkout tags/v1.8.0-amd

waldolin commented 7 months ago

Some of your extensions don't seem to be compatible with webui v1.9.0. Downgrade webui or ask extension developer.

Downgrading webui: git checkout tags/v1.8.0-amd

Thank you for replying immediately. MY AMD Driver version :24.3.1 I closed all extension and git checkout tags/v1.8.0-amd and copy for testing. there is a problem about it as below:

Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)] Version: v1.8.0-amd Commit hash: 8e2f087ab7925fbbddf0cc30d68655bf070e98b2 D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\bitsandbytes\cextension.py:31: UserWarning: The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable. warn("The installed version of bitsandbytes was compiled without GPU support. " function 'cadam32bit_grad_fp32' not found D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\pkg_resources\__init__.py:123: PkgResourcesDeprecationWarning: llow is an invalid version and will not be supported in a future release warnings.warn( D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\pkg_resources\__init__.py:123: PkgResourcesDeprecationWarning: otobuf is an invalid version and will not be supported in a future release warnings.warn( D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\pkg_resources\__init__.py:123: PkgResourcesDeprecationWarning: llow is an invalid version and will not be supported in a future release warnings.warn( D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\pkg_resources\__init__.py:123: PkgResourcesDeprecationWarning: otobuf is an invalid version and will not be supported in a future release warnings.warn( no module 'xformers'. Processing without... no module 'xformers'. Processing without... No module 'xformers'. Proceeding without it. D:\Users\lin\stable-diffusion-webui-directml\venv\lib\site-packages\pytorch_lightning\utilities\distributed.py:258: LightningDeprecationWarning:pytorch_lightning.utilities.distributed.rank_zero_onlyhas been deprecated in v1.8.1 and will be removed in v2.0.0. You can import it frompytorch_lightning.utilities` instead. rank_zero_deprecation( Launching Web UI with arguments: --medvram --precision full --no-half --no-half-vae --opt-sub-quad-attention --enable-insecure-extension-access --deepdanbooru --disable-nan-check --skip-torch-cuda-test Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled ONNX: selected=CUDAExecutionProvider, available=['DmlExecutionProvider', 'CPUExecutionProvider']

You are running torch 2.0.0+cpu. The program is tested to work with torch 2.1.2. To reinstall the desired version, run with commandline flag --reinstall-torch. Beware that this will cause a lot of large files to be downloaded, as well as there are reports of issues with training tab on the latest version.

Use --skip-version-check commandline argument to disable this check.

"Disable all extensions" option was set, will not load any extensions Loading weights [a47e380db3] from D:\Users\lin\stable-diffusion-webui-directml\models\Stable-diffusion\sdxlUnstableDiffusers_nihilmania.safetensors Creating model from config: D:\Users\lin\stable-diffusion-webui-directml\repositories\generative-models\configs\inference\sd_xl_base.yaml Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch(). Startup time: 4.3s (prepare environment: 8.1s, initialize shared: 0.8s, other imports: 0.1s, load scripts: 0.8s, create ui: 0.2s, gradio launch: 0.5s). Applying attention optimization: sub-quadratic... done. No Image data blocks found. No Image data blocks found. Model loaded in 4.7s (load weights from disk: 0.1s, create model: 0.7s, apply weights to model: 1.9s, apply float(): 1.5s, calculate empty prompt: 0.3s).`

lshqqytiger commented 7 months ago

What's the problem? I can't see any fatal error.

waldolin commented 7 months ago

What's the problem? I can't see any fatal error.

it can not use GPU. It can be used before. i fix it. "--use-directml"