Open
Description
Checklist
- The issue exists after disabling all extensions
- The issue exists on a clean installation of webui
- The issue is caused by an extension, but I believe it is caused by a bug in the webui
- The issue exists in the current version of the webui
- The issue has not been reported before recently
- The issue has been reported before but has not been fixed yet
What happened?
Most people had this issue, but being ignored atm.
It slows down the startup process when starting webui, loading some models, and can't be use while offline mode.
Here are some other Examples and "Fixes".
TheLastBen/fast-stable-diffusion#2937 (comment)
AUTOMATIC1111#13245 (comment)
Steps to reproduce the problem
Run the bat files.
What should have happened?
It should be working normally.
What browsers do you use to access the UI ?
Google Chrome
Sysinfo
Console logs
Already up to date.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
venv " AMDSD_Zluda\Scripts\Python.exe"
WARNING: ZLUDA works best with SD.Next. Please consider migrating to SD.Next.
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: v1.10.1-amd-21-g3cf53018
Commit hash: 3cf530186f76d0005e4c791cca9a0d8f4aa013c4
ROCm: agents=['gfx1010:xnack-']
ROCm: version=5.7, using agent gfx1010:xnack-
ZLUDA support: experimental
Using ZLUDA in *\stable-diffusion-webui-amdgpu\.zluda
WARNING: you should not skip torch test unless you want CPU to work.
Installing requirements
Skipping onnxruntime installation.
Installing sd-webui-controlnet requirement: changing opencv-python version from 4.10.0.84 to 4.8.0
Collecting onnx==1.16.1
Using cached onnx-1.16.1-cp310-cp310-win_amd64.whl.metadata (16 kB)
Requirement already satisfied: numpy>=1.20 in *\stable-diffusion-webui-amdgpu\ amdsd_zluda\lib\site-packages (from onnx==1.16.1) (1.26.2)
Requirement already satisfied: protobuf>=3.20.2 in *\stable-diffusion-webui-amdgpu\ amdsd_zluda\lib\site-packages (from onnx==1.16.1) (3.20.2)
Using cached onnx-1.16.1-cp310-cp310-win_amd64.whl (14.4 MB)
Installing collected packages: onnx
Attempting uninstall: onnx
Found existing installation: onnx 1.16.2
Uninstalling onnx-1.16.2:
Successfully uninstalled onnx-1.16.2
Successfully installed onnx-1.16.1
CUDA 11.8
Error: (onnx 1.16.2 (*\stable-diffusion-webui-amdgpu\ amdsd_zluda\lib\site-packages), Requirement.parse('onnx==1.16.1'))
+---------------------------------+
--- PLEASE, RESTART the Server! ---
+---------------------------------+
Installed version of diffusers (0.30.2) does not satisfy the requirement (==0.31.0).
Installing diffusers==0.31.0
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
*\stable-diffusion-webui-amdgpu\ AMDSD_Zluda\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: --use-zluda --skip-ort --skip-torch-cuda-test --autolaunch --theme dark --api --no-half --disable-nan-check
Civitai Helper: Root Path is: *\stable-diffusion-webui-amdgpu
Civitai Helper: Get Custom Model Folder
Tag Autocomplete: Could not locate model-keyword extension, Lora trigger word completion will be limited to those added through the extra networks menu.
[-] ADetailer initialized. version: 24.3.4, num models: 13
Using sqlite file: *\stable-diffusion-webui-amdgpu\extensions\sd-webui-agent-scheduler\task_scheduler.sqlite3
ControlNet preprocessor location: *\stable-diffusion-webui-amdgpu\extensions\sd-webui-controlnet\annotator\downloads
2025-01-31 00:37:21,439 - ControlNet - INFO - ControlNet v1.1.442
2025-01-31 00:37:23,602 - ControlNet - INFO - ControlNet v1.1.442
00:37:25 - ReActor - STATUS - Running v0.7.1-b2 on Device: CPU
Loading weights [d84336bed4] from *\stable-diffusion-webui-amdgpu\models\Stable-diffusion\RealMess - v1.4.safetensors
Creating model from config: *\stable-diffusion-webui-amdgpu\configs\v1-inference.yaml
creating model quickly: OSError
Traceback (most recent call last):
File "*\stable-diffusion-webui-amdgpu\ AMDSD_Zluda\lib\site-packages\huggingface_hub\utils\_http.py", line 406, in hf_raise_for_status
response.raise_for_status()
File "*\stable-diffusion-webui-amdgpu\ AMDSD_Zluda\lib\site-packages\requests\models.py", line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/None/resolve/main/config.json
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "*\stable-diffusion-webui-amdgpu\ AMDSD_Zluda\lib\site-packages\transformers\utils\hub.py", line 402, in cached_file
resolved_file = hf_hub_download(
File "*\stable-diffusion-webui-amdgpu\ AMDSD_Zluda\lib\site-packages\huggingface_hub\utils\_deprecation.py", line 101, in inner_f
return f(*args, **kwargs)
File "*\stable-diffusion-webui-amdgpu\ AMDSD_Zluda\lib\site-packages\huggingface_hub\utils\_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "*\stable-diffusion-webui-amdgpu\ AMDSD_Zluda\lib\site-packages\huggingface_hub\file_download.py", line 1232, in hf_hub_download
return _hf_hub_download_to_cache_dir(
File "*\stable-diffusion-webui-amdgpu\ AMDSD_Zluda\lib\site-packages\huggingface_hub\file_download.py", line 1339, in _hf_hub_download_to_cache_dir
_raise_on_head_call_error(head_call_error, force_download, local_files_only)
File "*\stable-diffusion-webui-amdgpu\ AMDSD_Zluda\lib\site-packages\huggingface_hub\file_download.py", line 1854, in _raise_on_head_call_error
raise head_call_error
File "*\stable-diffusion-webui-amdgpu\ AMDSD_Zluda\lib\site-packages\huggingface_hub\file_download.py", line 1746, in _get_metadata_or_catch_error
metadata = get_hf_file_metadata(
File "*\stable-diffusion-webui-amdgpu\ AMDSD_Zluda\lib\site-packages\huggingface_hub\utils\_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "*\stable-diffusion-webui-amdgpu\ AMDSD_Zluda\lib\site-packages\huggingface_hub\file_download.py", line 1666, in get_hf_file_metadata
r = _request_wrapper(
File "*\stable-diffusion-webui-amdgpu\ AMDSD_Zluda\lib\site-packages\huggingface_hub\file_download.py", line 364, in _request_wrapper
response = _request_wrapper(
File "*\stable-diffusion-webui-amdgpu\ AMDSD_Zluda\lib\site-packages\huggingface_hub\file_download.py", line 388, in _request_wrapper
hf_raise_for_status(response)
File "*\stable-diffusion-webui-amdgpu\ AMDSD_Zluda\lib\site-packages\huggingface_hub\utils\_http.py", line 454, in hf_raise_for_status
raise _format(RepositoryNotFoundError, message, response) from e
huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-679bb8e0-5382afd565ac6ec2568b33c9;edb0befb-4869-4580-8f93-ce40c7f56501)
Repository Not Found for url: https://huggingface.co/None/resolve/main/config.json.
Please make sure you specified the correct `repo_id` and `repo_type`.
If you are trying to access a private or gated repo, make sure you are authenticated.
Invalid username or password.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "*\AppData\Local\Programs\Python\Python310\lib\threading.py", line 973, in _bootstrap
self._bootstrap_inner()
File "*\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "*\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "*\stable-diffusion-webui-amdgpu\modules\initialize.py", line 149, in load_model
shared.sd_model # noqa: B018
File "*\stable-diffusion-webui-amdgpu\modules\shared_items.py", line 190, in sd_model
return modules.sd_models.model_data.get_sd_model()
File "*\stable-diffusion-webui-amdgpu\modules\sd_models.py", line 693, in get_sd_model
load_model()
File "*\stable-diffusion-webui-amdgpu\modules\sd_models.py", line 831, in load_model
sd_model = instantiate_from_config(sd_config.model, state_dict)
File "*\stable-diffusion-webui-amdgpu\modules\sd_models.py", line 775, in instantiate_from_config
return constructor(**params)
File "*\stable-diffusion-webui-amdgpu\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py", line 563, in __init__
self.instantiate_cond_stage(cond_stage_config)
File "*\stable-diffusion-webui-amdgpu\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py", line 630, in instantiate_cond_stage
model = instantiate_from_config(config)
File "*\stable-diffusion-webui-amdgpu\repositories\stable-diffusion-stability-ai\ldm\util.py", line 89, in instantiate_from_config
return get_obj_from_str(config["target"])(**config.get("params", dict()))
File "*\stable-diffusion-webui-amdgpu\repositories\stable-diffusion-stability-ai\ldm\modules\encoders\modules.py", line 104, in __init__
self.transformer = CLIPTextModel.from_pretrained(version)
File "*\stable-diffusion-webui-amdgpu\modules\sd_disable_initialization.py", line 68, in CLIPTextModel_from_pretrained
res = self.CLIPTextModel_from_pretrained(None, *model_args, config=pretrained_model_name_or_path, state_dict={}, **kwargs)
File "*\stable-diffusion-webui-amdgpu\ AMDSD_Zluda\lib\site-packages\transformers\modeling_utils.py", line 3247, in from_pretrained
resolved_config_file = cached_file(
File "*\stable-diffusion-webui-amdgpu\ AMDSD_Zluda\lib\site-packages\transformers\utils\hub.py", line 425, in cached_file
raise EnvironmentError(
OSError: None is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
If this is a private repository, make sure to pass a token having permission to this repo either by logging in with `huggingface-cli login` or by passing `token=<your_token>`
Failed to create model quickly; will retry using slow method.
2025-01-31 00:37:37,337 - ControlNet - INFO - ControlNet UI callback registered.
Civitai Helper: Settings:
Civitai Helper: max_size_preview: False
Civitai Helper: skip_nsfw_preview: False
Civitai Helper: open_url_with_js: True
Civitai Helper: check_new_ver_exist_in_all_folder: True
Civitai Helper: proxy:
Civitai Helper: use civitai api key: False
Loading VAE weights specified in settings: *\stable-diffusion-webui-amdgpu\models\VAE\vae-ft-mse-840000-ema-pruned_fp16.safetensors
Running on local URL: http://127.0.0.1:7860
Additional information
Most people had this issue, but being ignored atm.
It slows down the startup process when starting webui, loading some models, and can't be use while offline mode.