Open zachysaur opened 6 months ago
--disable-safe-unpickle
to webui-user.bat
next to COMMANDLINE_ARGS
(I wish if someone can help me fix this).--no-half
, as this will make it slower.add --disable-safe-unpickle
in your bat file
i tried it didnt worked
i tried it didnt worked
go to this location /conda/lib/python3.10/site-packages/spiga/models/weights
be sure there are a model spiga_300wpublic.pt
also the size must be nearly 240 mb be sure are not kb size file
i got that file there still having issue
i got that file there still having issue
mmm
try to download it again maybe it damage https://drive.google.com/drive/mobile/folders/1olrkoiDNK_NUCscaG9BbO3qsussbDi7I?usp=sharing&pli=1 download spiga_300wpublic.pt and replace it
replace the line again with this and use the same file set COMMANDLINE_ARGS=--disable-safe-unpickle
*** Error loading script: template_on_tab.py
Traceback (most recent call last):
File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\scripts.py", line 508, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\script_loading.py", line 13, in load_module
module_spec.loader.exec_module(module)
File "
*** Error loading script: template_on_tab.py Traceback (most recent call last): File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\scripts.py", line 508, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\script_loading.py", line 13, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-Stable-Makeup\scripts\template_on_tab.py", line 7, in from pipeline_sd15 import StableDiffusionControlNetPipeline File "D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-Stable-Makeup\pipeline_sd15.py", line 25, in from diffusers.image_processor import PipelineImageInput, VaeImageProcessor ImportError: cannot import name 'PipelineImageInput' from 'diffusers.image_processor' (D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\diffusers\image_processor.py)
i forget some file,i add it just now you can download the diffusers and put it inside sd-webui-Stable-Makeup extension
or you can delete sd-webui-Stable-Makeup extension and install it agian
you didnt updated anything
you didnt updated anything
i add diffusers file
so now its working fine?
so now its working fine?
try it, but be sure the file is in sd-webui-Stable-Makeup extension
can you tell step by sep how to install and everything need to be done
i am a youtuber i will post its installation video then your repo will go kinda wire
can you tell step by sep how to install and everything need to be done
1-first for sure you have worked automatic1111
2-for you if you already install it before, delete it first from automatic1111 extension folder the folder name sd-webui-stable-makeup
3.like how install every automatic1111 extension go to >>> extension >>> install from URL and paste the repo link https://github.com/kigy1/sd-webui-Stable-Makeup.git (after it tell you to restart)
4.close automatic1111 and edit the webui-user.bat file you found it inside automatic1111 (open it with any notebad app to edit it) and after you find set COMMANDLINE_ARGS= type --disable-safe-unpickle to be like that COMMANDLINE_ARGS=--disable-safe-unpickle
5-run the webui-user.bat and be patient till install and download everything
6-after you run it, if it not work , stop automatic1111 and run webui-user.bat again
Error loading script: template_on_tab.py
Traceback (most recent call last):
File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\scripts.py", line 508, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\script_loading.py", line 13, in load_module
module_spec.loader.exec_module(module)
File "
Error loading script: template_on_tab.py Traceback (most recent call last): File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\scripts.py", line 508, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\script_loading.py", line 13, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-Stable-Makeup\scripts\template_on_tab.py", line 40, in snapshot_download(repo_id="kigy1/Stable-Makeup" , local_dir=base_path) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\huggingface_hub\utils_validators.py", line 118, in _inner_fn return fn(args, kwargs) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\huggingface_hub_snapshot_download.py", line 308, in snapshot_download thread_map( File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\tqdm\contrib\concurrent.py", line 69, in thread_map return _executor_map(ThreadPoolExecutor, fn, *iterables, tqdm_kwargs) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\tqdm\contrib\concurrent.py", line 51, in _executor_map return list(tqdm_class(ex.map(fn, *iterables, chunksize=chunksize), kwargs)) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\tqdm\std.py", line 1182, in iter* for obj in iterable: File "D:\Webui1111\Webui\stable-diffusion-portable-main\python\lib\concurrent\futures_base.py", line 621, in result_iterator yield _result_or_cancel(fs.pop()) File "D:\Webui1111\Webui\stable-diffusion-portable-main\python\lib\concurrent\futures_base.py", line 319, in _result_or_cancel return fut.result(timeout) File "D:\Webui1111\Webui\stable-diffusion-portable-main\python\lib\concurrent\futures_base.py", line 451, in result return self.get_result() File "D:\Webui1111\Webui\stable-diffusion-portable-main\python\lib\concurrent\futures_base.py", line 403, in get_result raise self._exception File "D:\Webui1111\Webui\stable-diffusion-portable-main\python\lib\concurrent\futures\thread.py", line 58, in run result = self.fn(self.args, self.kwargs) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\huggingface_hub_snapshot_download.py", line 283, in _inner_hf_hub_download return hf_hub_download( File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\huggingface_hub\utils_validators.py", line 118, in _inner_fn return fn(*args, **kwargs) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\huggingface_hub\file_download.py", line 1398, in hf_hub_download return _to_local_dir(blob_path, local_dir, relative_filename, use_symlinks=local_dir_use_symlinks) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\huggingface_hub\file_download.py", line 1724, in _to_local_dir _create_symlink(real_blob_path, local_dir_filepath, new_blob=False) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\huggingface_hub\file_download.py", line 916, in _create_symlink os.symlink(src_rel_or_abs, abs_dst) OSError: [WinError 1314] A required privilege is not held by the client: '......\tmp.cache\huggingface\hub\models--kigy1--Stable-Makeup\blobs\da8272fdbb74cb70714272e3b4ff381958944b4f308df16977dfe8893dfc7f64' -> 'D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-Stable-Makeup\models\pytorch_model.bin'
maybe because your automatic1111 in not in same of windows drive
anyways the problem is the model not downloaded 1-try to run webui-user.bat as Administrator and check if the model downloading
download all the three pytorch_model.bin pytorch_model1.bin pytorch_model2.bin
and put them in D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-Stable-Makeup\models\
(waiting for you)
i downloaded manually and put them in there folder still same error
[-] ADetailer initialized. version: 24.4.2, num models: 11
SPIGA model loaded!
SPIGA model loaded!
Fetching 5 files: 60%|███████████████████████████████████████▌ | 3/5 [01:29<00:59, 30.00s/it]
Error loading script: template_on_tab.py
Traceback (most recent call last):
File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\scripts.py", line 508, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\script_loading.py", line 13, in load_module
module_spec.loader.exec_module(module)
File "
ControlNet preprocessor location: D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-controlnet\annotator\downloads
[-] ADetailer initialized. version: 24.4.2, num models: 11 SPIGA model loaded! SPIGA model loaded! Fetching 5 files: 60%|███████████████████████████████████████▌ | 3/5 [01:29<00:59, 30.00s/it] Error loading script: template_on_tab.py Traceback (most recent call last): File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\scripts.py", line 508, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\script_loading.py", line 13, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-Stable-Makeup\scripts\template_on_tab.py", line 40, in snapshot_download(repo_id="kigy1/Stable-Makeup" , local_dir=base_path) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\huggingface_hub\utils_validators.py", line 118, in _inner_fn return fn(args, kwargs) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\huggingface_hub_snapshot_download.py", line 308, in snapshot_download thread_map( File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\tqdm\contrib\concurrent.py", line 69, in thread_map return _executor_map(ThreadPoolExecutor, fn, *iterables, tqdm_kwargs) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\tqdm\contrib\concurrent.py", line 51, in _executor_map return list(tqdm_class(ex.map(fn, *iterables, chunksize=chunksize), kwargs)) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\tqdm\std.py", line 1182, in iter* for obj in iterable: File "D:\Webui1111\Webui\stable-diffusion-portable-main\python\lib\concurrent\futures_base.py", line 621, in result_iterator yield _result_or_cancel(fs.pop()) File "D:\Webui1111\Webui\stable-diffusion-portable-main\python\lib\concurrent\futures_base.py", line 319, in _result_or_cancel return fut.result(timeout) File "D:\Webui1111\Webui\stable-diffusion-portable-main\python\lib\concurrent\futures_base.py", line 451, in result return self.get_result() File "D:\Webui1111\Webui\stable-diffusion-portable-main\python\lib\concurrent\futures_base.py", line 403, in get_result raise self._exception File "D:\Webui1111\Webui\stable-diffusion-portable-main\python\lib\concurrent\futures\thread.py", line 58, in run result = self.fn(self.args, self.kwargs) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\huggingface_hub_snapshot_download.py", line 283, in _inner_hf_hub_download return hf_hub_download( File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\huggingface_hub\utils_validators.py", line 118, in _inner_fn return fn(*args, **kwargs) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\huggingface_hub\file_download.py", line 1398, in hf_hub_download return _to_local_dir(blob_path, local_dir, relative_filename, use_symlinks=local_dir_use_symlinks) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\huggingface_hub\file_download.py", line 1724, in _to_local_dir _create_symlink(real_blob_path, local_dir_filepath, new_blob=False) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\huggingface_hub\file_download.py", line 916, in _create_symlink os.symlink(src_rel_or_abs, abs_dst) OSError: [WinError 1314] A required privilege is not held by the client: '......\tmp.cache\huggingface\hub\models--kigy1--Stable-Makeup\blobs\05573314b4a16e592456e4c5dc3932fe705e1e35d8609ea886cb98ac2deadf47' -> 'D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-Stable-Makeup\models\pytorch_model_1.bin'
ControlNet preprocessor location: D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-controlnet\annotator\downloads
ok lets try to remove the code that download model go to D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-Stable-Makeup\scripts\template_on_tab.py edit the file (template_on_tab.py) search for code #to download model remove this code snapshot_download(repo_id="kigy1/Stable-Makeup" , local_dir=base_path)
[-] ADetailer initialized. version: 24.4.2, num models: 11
SPIGA model loaded!
SPIGA model loaded!
*** Error loading script: template_on_tab.py
Traceback (most recent call last):
File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\scripts.py", line 508, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\script_loading.py", line 13, in load_module
module_spec.loader.exec_module(module)
File "
ControlNet preprocessor location: D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-controlnet\annotator\downloads 2024-06-08 16:12:16,958 - ControlNet - INFO - ControlNet v1.1.448 WARNING ⚠️ user config directory 'tmp\AppData\Roaming\Ultralytics' is not writeable, defaulting to '/tmp' or CWD.Alternatively you can define a YOLO_CONFIG_DIR environment variable for this path. Loading weights [e5f3cbc5f7] from D:\Webui1111\Webui\stable-diffusion-portable-main\models\Stable-diffusion\realisticVisionV60B1_v60B1VAE.safetensors Creating model from config: D:\Webui1111\Webui\stable-diffusion-portable-main\configs\v1-inference.yaml
Use --skip-version-check commandline argument to disable this check.
[-] ADetailer initialized. version: 24.4.2, num models: 11 SPIGA model loaded! SPIGA model loaded! *** Error loading script: template_on_tab.py Traceback (most recent call last): File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\scripts.py", line 508, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\script_loading.py", line 13, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-Stable-Makeup\scripts\template_on_tab.py", line 41, in Unet = OriginalUNet2DConditionModel.from_pretrained(model_id, subfolder="unet").to("cuda") NameError: name 'model_id' is not defined
ControlNet preprocessor location: D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-controlnet\annotator\downloads 2024-06-08 16:12:16,958 - ControlNet - INFO - ControlNet v1.1.448 WARNING ⚠️ user config directory 'tmp\AppData\Roaming\Ultralytics' is not writeable, defaulting to '/tmp' or CWD.Alternatively you can define a YOLO_CONFIG_DIR environment variable for this path. Loading weights [e5f3cbc5f7] from D:\Webui1111\Webui\stable-diffusion-portable-main\models\Stable-diffusion\realisticVisionV60B1_v60B1VAE.safetensors Creating model from config: D:\Webui1111\Webui\stable-diffusion-portable-main\configs\v1-inference.yaml
do you remove all #to download model
only remove this line snapshot_download(repo_id="kigy1/Stable-Makeup" , local_dir=base_path)
Use --skip-version-check commandline argument to disable this check.
[-] ADetailer initialized. version: 24.4.2, num models: 11 SPIGA model loaded! SPIGA model loaded! *** Error loading script: template_on_tab.py Traceback (most recent call last): File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\scripts.py", line 508, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\script_loading.py", line 13, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-Stable-Makeup\scripts\template_on_tab.py", line 41, in Unet = OriginalUNet2DConditionModel.from_pretrained(model_id, subfolder="unet").to("cuda") NameError: name 'model_id' is not defined ControlNet preprocessor location: D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-controlnet\annotator\downloads 2024-06-08 16:12:16,958 - ControlNet - INFO - ControlNet v1.1.448 WARNING ⚠️ user config directory 'tmp\AppData\Roaming\Ultralytics' is not writeable, defaulting to '/tmp' or CWD.Alternatively you can define a YOLO_CONFIG_DIR environment variable for this path. Loading weights [e5f3cbc5f7] from D:\Webui1111\Webui\stable-diffusion-portable-main\models\Stable-diffusion\realisticVisionV60B1_v60B1VAE.safetensors Creating model from config: D:\Webui1111\Webui\stable-diffusion-portable-main\configs\v1-inference.yaml
do you remove all #to download model
only remove this line snapshot_download(repo_id="kigy1/Stable-Makeup" , local_dir=base_path)
keep all this code
model_id = "runwayml/stable-diffusion-v1-5" base_path = os.path.join(os.path.dirname(file), "..", "models") makeup_encoder_path = os.path.join(base_path, "pytorch_model.bin") id_encoder_path = os.path.join(base_path, "pytorch_model_1.bin") pose_encoder_path = os.path.join(base_path, "pytorch_model_2.bin")
remove only this line snapshot_download(repo_id="kigy1/Stable-Makeup" , local_dir=base_path)
fatal: Exiting because of an unresolved conflict.
venv "venv\Scripts\Python.exe"
fatal: No names found, cannot describe anything.
Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec 6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)]
Version: 1.9.3
Commit hash: 1c0a0c4c26f78c32095ebc7f8af82f5c04fca8c0
Installing requirement: git+https://github.com/andresprados/SPIGA
Installing requirement: git+https://github.com/sajjjadayobi/FaceLib.git
Launching Web UI with arguments: --disable-safe-unpickle --opt-sdp-attention --autolaunch --lowvram --theme dark --skip-version-check
D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torchaudio\backend\utils.py:74: UserWarning: No audio backend is available.
warnings.warn("No audio backend is available.")
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
[-] ADetailer initialized. version: 24.4.2, num models: 11
SPIGA model loaded!
SPIGA model loaded!
Loading pipeline components...: 100%|████████████████████████████████████████████████████| 6/6 [00:03<00:00, 1.62it/s]
WARNING:pipeline_sd15:You have disabled the safety checker for <class 'pipeline_sd15.StableDiffusionControlNetPipeline'> by passing safety_checker=None
. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at https://github.com/huggingface/diffusers/pull/254 .
*** Error loading script: template_on_tab.py
Traceback (most recent call last):
File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\scripts.py", line 508, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\script_loading.py", line 13, in load_module
module_spec.loader.exec_module(module)
File "
ControlNet preprocessor location: D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-controlnet\annotator\downloads 2024-06-08 16:43:42,667 - ControlNet - INFO - ControlNet v1.1.448 WARNING ⚠️ user config directory 'tmp\AppData\Roaming\Ultralytics' is not writeable, defaulting to '/tmp' or CWD.Alternatively you can define a YOLO_CONFIG_DIR environment variable for this path. Loading weights [e5f3cbc5f7] from D:\Webui1111\Webui\stable-diffusion-portable-main\models\Stable-diffusion\realisticVisionV60B1_v60B1VAE.safetensors
fatal: Exiting because of an unresolved conflict. venv "venv\Scripts\Python.exe" fatal: No names found, cannot describe anything. Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec 6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)] Version: 1.9.3 Commit hash: 1c0a0c4c26f78c32095ebc7f8af82f5c04fca8c0 Installing requirement: git+https://github.com/andresprados/SPIGA Installing requirement: git+https://github.com/sajjjadayobi/FaceLib.git Launching Web UI with arguments: --disable-safe-unpickle --opt-sdp-attention --autolaunch --lowvram --theme dark --skip-version-check D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torchaudio\backend\utils.py:74: UserWarning: No audio backend is available. warnings.warn("No audio backend is available.") no module 'xformers'. Processing without... no module 'xformers'. Processing without... No module 'xformers'. Proceeding without it. [-] ADetailer initialized. version: 24.4.2, num models: 11 SPIGA model loaded! SPIGA model loaded! Loading pipeline components...: 100%|████████████████████████████████████████████████████| 6/6 [00:03<00:00, 1.62it/s] WARNING:pipeline_sd15:You have disabled the safety checker for <class 'pipeline_sd15.StableDiffusionControlNetPipeline'> by passing
safety_checker=None
. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at huggingface/diffusers#254 . *** Error loading script: template_on_tab.py Traceback (most recent call last): File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\scripts.py", line 508, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\script_loading.py", line 13, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-Stable-Makeup\scripts\template_on_tab.py", line 61, in torch_dtype=torch.float32).to("cuda") File "D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-Stable-Makeup\diffusers\pipelines\pipeline_utils.py", line 852, in to module.to(device, dtype) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 1145, in to return self._apply(convert) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 797, in _apply module._apply(fn) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 797, in _apply module._apply(fn) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 797, in _apply module._apply(fn) [Previous line repeated 3 more times] File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 820, in _apply param_applied = fn(param) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 1143, in convert return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking) torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 3.00 GiB total capacity; 11.81 GiB already allocated; 0 bytes free; 11.95 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONFControlNet preprocessor location: D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-controlnet\annotator\downloads 2024-06-08 16:43:42,667 - ControlNet - INFO - ControlNet v1.1.448 WARNING ⚠️ user config directory 'tmp\AppData\Roaming\Ultralytics' is not writeable, defaulting to '/tmp' or CWD.Alternatively you can define a YOLO_CONFIG_DIR environment variable for this path. Loading weights [e5f3cbc5f7] from D:\Webui1111\Webui\stable-diffusion-portable-main\models\Stable-diffusion\realisticVisionV60B1_v60B1VAE.safetensors
the gpu not enough to make it work i dont know how to fix it, but i will try to search for solution im sorry about that i will try my best
fatal: Exiting because of an unresolved conflict. venv "venv\Scripts\Python.exe" fatal: No names found, cannot describe anything. Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec 6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)] Version: 1.9.3 Commit hash: 1c0a0c4c26f78c32095ebc7f8af82f5c04fca8c0 Installing requirement: git+https://github.com/andresprados/SPIGA Installing requirement: git+https://github.com/sajjjadayobi/FaceLib.git Launching Web UI with arguments: --disable-safe-unpickle --opt-sdp-attention --autolaunch --lowvram --theme dark --skip-version-check D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torchaudio\backend\utils.py:74: UserWarning: No audio backend is available. warnings.warn("No audio backend is available.") no module 'xformers'. Processing without... no module 'xformers'. Processing without... No module 'xformers'. Proceeding without it. [-] ADetailer initialized. version: 24.4.2, num models: 11 SPIGA model loaded! SPIGA model loaded! Loading pipeline components...: 100%|████████████████████████████████████████████████████| 6/6 [00:03<00:00, 1.62it/s] WARNING:pipeline_sd15:You have disabled the safety checker for <class 'pipeline_sd15.StableDiffusionControlNetPipeline'> by passing
safety_checker=None
. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at huggingface/diffusers#254 . *** Error loading script: template_on_tab.py Traceback (most recent call last): File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\scripts.py", line 508, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\script_loading.py", line 13, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-Stable-Makeup\scripts\template_on_tab.py", line 61, in torch_dtype=torch.float32).to("cuda") File "D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-Stable-Makeup\diffusers\pipelines\pipeline_utils.py", line 852, in to module.to(device, dtype) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 1145, in to return self._apply(convert) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 797, in _apply module._apply(fn) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 797, in _apply module._apply(fn) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 797, in _apply module._apply(fn) [Previous line repeated 3 more times] File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 820, in _apply param_applied = fn(param) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 1143, in convert return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking) torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 3.00 GiB total capacity; 11.81 GiB already allocated; 0 bytes free; 11.95 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF ControlNet preprocessor location: D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-controlnet\annotator\downloads 2024-06-08 16:43:42,667 - ControlNet - INFO - ControlNet v1.1.448 WARNING ⚠️ user config directory 'tmp\AppData\Roaming\Ultralytics' is not writeable, defaulting to '/tmp' or CWD.Alternatively you can define a YOLO_CONFIG_DIR environment variable for this path. Loading weights [e5f3cbc5f7] from D:\Webui1111\Webui\stable-diffusion-portable-main\models\Stable-diffusion\realisticVisionV60B1_v60B1VAE.safetensorsthe gpu not enough to make it work i dont know how to fix it, but i will try to search for solution im sorry about that i will try my best
try to restart your pc and only open automatic1111 after that, im not sure about it but try
fatal: Exiting because of an unresolved conflict. venv "venv\Scripts\Python.exe" fatal: No names found, cannot describe anything. Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec 6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)] Version: 1.9.3 Commit hash: 1c0a0c4c26f78c32095ebc7f8af82f5c04fca8c0 Installing requirement: git+https://github.com/andresprados/SPIGA Installing requirement: git+https://github.com/sajjjadayobi/FaceLib.git Launching Web UI with arguments: --disable-safe-unpickle --opt-sdp-attention --autolaunch --lowvram --theme dark --skip-version-check D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torchaudio\backend\utils.py:74: UserWarning: No audio backend is available. warnings.warn("No audio backend is available.") no module 'xformers'. Processing without... no module 'xformers'. Processing without... No module 'xformers'. Proceeding without it. [-] ADetailer initialized. version: 24.4.2, num models: 11 SPIGA model loaded! SPIGA model loaded! Loading pipeline components...: 100%|████████████████████████████████████████████████████| 6/6 [00:03<00:00, 1.62it/s] WARNING:pipeline_sd15:You have disabled the safety checker for <class 'pipeline_sd15.StableDiffusionControlNetPipeline'> by passing
safety_checker=None
. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at huggingface/diffusers#254 . *** Error loading script: template_on_tab.py Traceback (most recent call last): File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\scripts.py", line 508, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\script_loading.py", line 13, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-Stable-Makeup\scripts\template_on_tab.py", line 61, in torch_dtype=torch.float32).to("cuda") File "D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-Stable-Makeup\diffusers\pipelines\pipeline_utils.py", line 852, in to module.to(device, dtype) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 1145, in to return self._apply(convert) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 797, in _apply module._apply(fn) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 797, in _apply module._apply(fn) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 797, in _apply module._apply(fn) [Previous line repeated 3 more times] File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 820, in _apply param_applied = fn(param) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 1143, in convert return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking) torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 3.00 GiB total capacity; 11.81 GiB already allocated; 0 bytes free; 11.95 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF ControlNet preprocessor location: D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-controlnet\annotator\downloads 2024-06-08 16:43:42,667 - ControlNet - INFO - ControlNet v1.1.448 WARNING ⚠️ user config directory 'tmp\AppData\Roaming\Ultralytics' is not writeable, defaulting to '/tmp' or CWD.Alternatively you can define a YOLO_CONFIG_DIR environment variable for this path. Loading weights [e5f3cbc5f7] from D:\Webui1111\Webui\stable-diffusion-portable-main\models\Stable-diffusion\realisticVisionV60B1_v60B1VAE.safetensorsthe gpu not enough to make it work i dont know how to fix it, but i will try to search for solution im sorry about that i will try my best
try to restart your pc and only open automatic1111 after that, im not sure about it but try
from search for solution i found this you can try it if restart not work (first restart your pc if not work try this soultion) add this line in webui-user.bat set PYTORCH_CUDA_ALLOC_CONF=max_split_size_mb:1024
like this @echo off
set PYTHON= set GIT= set VENV_DIR= set COMMANDLINE_ARGS=--disable-safe-unpickle set PYTORCH_CUDA_ALLOC_CONF=max_split_size_mb:1024
call webui.bat
only add last line don't copy all that
Loading pipeline components...: 100%|████████████████████████████████████████████████████| 6/6 [00:03<00:00, 1.55it/s]
WARNING:pipeline_sd15:You have disabled the safety checker for <class 'pipeline_sd15.StableDiffusionControlNetPipeline'> by passing safety_checker=None
. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at https://github.com/huggingface/diffusers/pull/254 .
Error loading script: template_on_tab.py
Traceback (most recent call last):
File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\scripts.py", line 508, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\script_loading.py", line 13, in load_module
module_spec.loader.exec_module(module)
File "
ControlNet preprocessor location: D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-controlnet\annotator\downloads 2024-06-08 18:04:24,795 - ControlNet - INFO - ControlNet v1.1.448 WARNING ⚠️ user config directory 'tmp\AppData\Roaming\Ultralytics' is not writeable, defaulting to '/tmp' or CWD.Alternatively you can define a YOLO_CONFIG_DIR environment variable for this path. Loading weights [e5f3cbc5f7] from D:\Webui1111\Webui\stable-diffusion-portable-main\models\Stable-diffusion\realisticVisionV60B1_v60B1VAE.safetensors
Loading pipeline components...: 100%|████████████████████████████████████████████████████| 6/6 [00:03<00:00, 1.55it/s] WARNING:pipeline_sd15:You have disabled the safety checker for <class 'pipeline_sd15.StableDiffusionControlNetPipeline'> by passing
safety_checker=None
. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at huggingface/diffusers#254 . Error loading script: template_on_tab.py Traceback (most recent call last): File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\scripts.py", line 508, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\script_loading.py", line 13, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-Stable-Makeup\scripts\template_on_tab.py", line 61, in torch_dtype=torch.float32).to("cuda") File "D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-Stable-Makeup\diffusers\pipelines\pipeline_utils.py", line 852, in to module.to(device, dtype) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\transformers\modeling_utils.py", line 1902, in to return super().to(args, kwargs) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 1145, in to return self._apply(convert) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 797, in _apply module._apply(fn) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 797, in _apply module._apply(fn) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 797, in _apply module._apply(fn) [Previous line repeated 3 more times] File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 820, in _apply param_applied = fn(param) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 1143, in convert return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking) torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 3.00 GiB total capacity; 11.83 GiB already allocated; 0 bytes free; 11.94 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONFControlNet preprocessor location: D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-controlnet\annotator\downloads 2024-06-08 18:04:24,795 - ControlNet - INFO - ControlNet v1.1.448 WARNING ⚠️ user config directory 'tmp\AppData\Roaming\Ultralytics' is not writeable, defaulting to '/tmp' or CWD.Alternatively you can define a YOLO_CONFIG_DIR environment variable for this path. Loading weights [e5f3cbc5f7] from D:\Webui1111\Webui\stable-diffusion-portable-main\models\Stable-diffusion\realisticVisionV60B1_v60B1VAE.safetensors
try to change number from 1024 to 128 to be like that set PYTORCH_CUDA_ALLOC_CONF=max_split_size_mb:128
Loading pipeline components...: 100%|████████████████████████████████████████████████████| 6/6 [00:03<00:00, 1.55it/s] WARNING:pipeline_sd15:You have disabled the safety checker for <class 'pipeline_sd15.StableDiffusionControlNetPipeline'> by passing
safety_checker=None
. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at huggingface/diffusers#254 . Error loading script: template_on_tab.py Traceback (most recent call last): File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\scripts.py", line 508, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "D:\Webui1111\Webui\stable-diffusion-portable-main\modules\script_loading.py", line 13, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-Stable-Makeup\scripts\template_on_tab.py", line 61, in torch_dtype=torch.float32).to("cuda") File "D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-Stable-Makeup\diffusers\pipelines\pipeline_utils.py", line 852, in to module.to(device, dtype) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\transformers\modeling_utils.py", line 1902, in to return super().to(args, kwargs) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 1145, in to return self._apply(convert) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 797, in _apply module._apply(fn) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 797, in _apply module._apply(fn) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 797, in _apply module._apply(fn) [Previous line repeated 3 more times] File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 820, in _apply param_applied = fn(param) File "D:\Webui1111\Webui\stable-diffusion-portable-main\venv\lib\site-packages\torch\nn\modules\module.py", line 1143, in convert return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking) torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 3.00 GiB total capacity; 11.83 GiB already allocated; 0 bytes free; 11.94 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF ControlNet preprocessor location: D:\Webui1111\Webui\stable-diffusion-portable-main\extensions\sd-webui-controlnet\annotator\downloads 2024-06-08 18:04:24,795 - ControlNet - INFO - ControlNet v1.1.448 WARNING ⚠️ user config directory 'tmp\AppData\Roaming\Ultralytics' is not writeable, defaulting to '/tmp' or CWD.Alternatively you can define a YOLO_CONFIG_DIR environment variable for this path. Loading weights [e5f3cbc5f7] from D:\Webui1111\Webui\stable-diffusion-portable-main\models\Stable-diffusion\realisticVisionV60B1_v60B1VAE.safetensorstry to change number from 1024 to 128 to be like that set PYTORCH_CUDA_ALLOC_CONF=max_split_size_mb:128
or you can try set PYTORCH_CUDA_ALLOC_CONF=backend:cudaMallocAsync
still errors
still errors
one more try if this not work PYTORCH_CUDA_ALLOC_CONF=backend:cudaMallocA
add this line instead
PYTORCH_CUDA_ALLOC_CONF=garbage_collection_threshold:0.6,max_split_size_mb:512
also you can try some of this ARGS keep your ARGS Just add what's missing set COMMANDLINE_ARGS=--precision full --no-half --lowvram --always-batch-cond-uncond --xformers
if all solutions doesn't work, unfortunately, this is the best I can do to help you. It may not be possible to run with a low VRAM I'm so sorry to say this
same error
Error verifying pickled file from /opt/conda/lib/python3.10/site-packages/spiga/models/weights/spiga_300wpublic.pt The file may be malicious, so the program is not going to read it. *** You can skip this check with --disable-safe-unpickle commandline argument.
** Error loading script: template_on_tab.py Traceback (most recent call last): File "/kaggle/working/stable-diffusion-webui/modules/scripts.py", line 508, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "/kaggle/working/stable-diffusion-webui/modules/script_loading.py", line 13, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/kaggle/working/stable-diffusion-webui/extensions/sd-webui-Stable-Makeup/scripts/template_on_tab.py", line 10, in
from spiga_draw import
File "/kaggle/working/stable-diffusion-webui/extensions/sd-webui-Stable-Makeup/spiga_draw.py", line 10, in
processor = SPIGAFramework(ModelConfig("300wpublic"))
File "/opt/conda/lib/python3.10/site-packages/spiga/inference/framework.py", line 44, in init
self.model.load_state_dict(model_state_dict)
File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2140, in load_state_dict
raise TypeError(f"Expected state_dict to be dict-like, got {type(state_dict)}.")
TypeError: Expected state_dict to be dict-like, got <class 'NoneType'>.