Stable diffusionが起動できない。
Stable diffusionを12/4にローカル環境で構築し、3日間ほど画像生成していました。
本日「webui-user.bat」をクリックし起動しようとしたところ、下記のエラーが生じ起動できなくなってしまいました。
解決策をご存じの方いましたら教えていただけないでしょうか。
・環境
PC:GllERIA XA7C-R47
OS:Windows11 Home 64bit
GPU:NVIDIA GeForce RTX4070 GDDR6X 12GB
・エラー内容
venv "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.10.1
Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2
Installing requirements
Installing sd-webui-train-tools requirement: C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\extensions\sd-webui-train-tools\requirements.txt
loading WD14-tagger reqs from C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\extensions\stable-diffusion-webui-wd14-tagger\requirements.txt
Checking WD14-tagger requirements.
Launching Web UI with arguments: --xformers
C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\timm\models\layers\__init__.py:48: FutureWarning: Importing from timm.models.layers is deprecated, please import via timm.layers
warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.layers", FutureWarning)
*** Error loading script: train_tools.py
Traceback (most recent call last):
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\scripts.py", line 515, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\script_loading.py", line 13, 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\emodo\Pictures\emodoran\stable-diffusion-webui\extensions\sd-webui-train-tools\scripts\train_tools.py", line 7, in <module>
from liasece_sd_webui_train_tools.ui import *
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\extensions\sd-webui-train-tools\liasece_sd_webui_train_tools\ui.py", line 16, in <module>
from liasece_sd_webui_train_tools.train_ui import *
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\extensions\sd-webui-train-tools\liasece_sd_webui_train_tools\train_ui.py", line 10, in <module>
from liasece_sd_webui_train_tools import train
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\extensions\sd-webui-train-tools\liasece_sd_webui_train_tools\train.py", line 8, in <module>
from liasece_sd_webui_train_tools.ArgsList import ArgStore
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\extensions\sd-webui-train-tools\liasece_sd_webui_train_tools\ArgsList.py", line 23, in <module>
import liasece_sd_webui_train_tools.sd_scripts.train_network as train_network
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\extensions\sd-webui-train-tools\liasece_sd_webui_train_tools\sd_scripts\train_network.py", line 21, in <module>
from diffusers import DDPMScheduler
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\diffusers\__init__.py", line 5, in <module>
from .utils import (
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\diffusers\utils\__init__.py", line 37, in <module>
from .dynamic_modules_utils import get_class_from_dynamic_module
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\diffusers\utils\dynamic_modules_utils.py", line 28, in <module>
from huggingface_hub import cached_download, hf_hub_download, model_info
ImportError: cannot import name 'cached_download' from 'huggingface_hub' (C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\__init__.py)
---
*** Error loading script: tagger.py
Traceback (most recent call last):
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\scripts.py", line 515, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\script_loading.py", line 13, 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\emodo\Pictures\emodoran\stable-diffusion-webui\extensions\stable-diffusion-webui-wd14-tagger\scripts\tagger.py", line 5, in <module>
from tagger.api import on_app_started # pylint: disable=import-error
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\extensions\stable-diffusion-webui-wd14-tagger\tagger\api.py", line 12, in <module>
from modules.api.api import decode_base64_to_image # pylint: disable=E0401
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\api\api.py", line 21, in <module>
from modules.api import models
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
).generate_model()
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
DynamicModel.__config__.allow_population_by_field_name = True
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\pydantic\_internal\_model_construction.py", line 320, in __getattr__
raise AttributeError(item)
AttributeError: __config__
---
Loading weights [17277fbe68] from C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\models\Stable-diffusion\counterfeitV30_v30.safetensors
*** Error creating UI for None:
Traceback (most recent call last):
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\scripts.py", line 640, in create_script_ui
self.create_script_ui_inner(script)
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\scripts.py", line 645, in create_script_ui_inner
import modules.api.models as api_models
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
).generate_model()
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
DynamicModel.__config__.allow_population_by_field_name = True
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\pydantic\_internal\_model_construction.py", line 320, in __getattr__
raise AttributeError(item)
AttributeError: __config__
---
*** Error creating UI for None:
Traceback (most recent call last):
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\scripts.py", line 640, in create_script_ui
self.create_script_ui_inner(script)
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\scripts.py", line 645, in create_script_ui_inner
import modules.api.models as api_models
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
).generate_model()
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
DynamicModel.__config__.allow_population_by_field_name = True
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\pydantic\_internal\_model_construction.py", line 320, in __getattr__
raise AttributeError(item)
AttributeError: __config__
---
*** Error creating UI for None:
Traceback (most recent call last):
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\scripts.py", line 640, in create_script_ui
self.create_script_ui_inner(script)
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\scripts.py", line 645, in create_script_ui_inner
import modules.api.models as api_models
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
).generate_model()
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
DynamicModel.__config__.allow_population_by_field_name = True
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\pydantic\_internal\_model_construction.py", line 320, in __getattr__
raise AttributeError(item)
AttributeError: __config__
---
*** Error creating UI for None:
Traceback (most recent call last):
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\scripts.py", line 640, in create_script_ui
self.create_script_ui_inner(script)
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\scripts.py", line 645, in create_script_ui_inner
import modules.api.models as api_models
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
).generate_model()
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
DynamicModel.__config__.allow_population_by_field_name = True
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\pydantic\_internal\_model_construction.py", line 320, in __getattr__
raise AttributeError(item)
AttributeError: __config__
---
*** Error creating UI for Hypertile:
Traceback (most recent call last):
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\scripts.py", line 640, in create_script_ui
self.create_script_ui_inner(script)
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\scripts.py", line 645, in create_script_ui_inner
import modules.api.models as api_models
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
).generate_model()
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
DynamicModel.__config__.allow_population_by_field_name = True
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\pydantic\_internal\_model_construction.py", line 320, in __getattr__
raise AttributeError(item)
AttributeError: __config__
---
*** Error creating UI for None:
Traceback (most recent call last):
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\scripts.py", line 640, in create_script_ui
self.create_script_ui_inner(script)
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\scripts.py", line 645, in create_script_ui_inner
import modules.api.models as api_models
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
).generate_model()
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
DynamicModel.__config__.allow_population_by_field_name = True
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\pydantic\_internal\_model_construction.py", line 320, in __getattr__
raise AttributeError(item)
AttributeError: __config__
---
*** Error creating UI for None:
Traceback (most recent call last):
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\scripts.py", line 640, in create_script_ui
self.create_script_ui_inner(script)
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\scripts.py", line 645, in create_script_ui_inner
import modules.api.models as api_models
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
).generate_model()
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
DynamicModel.__config__.allow_population_by_field_name = True
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\pydantic\_internal\_model_construction.py", line 320, in __getattr__
raise AttributeError(item)
AttributeError: __config__
---
*** Error creating UI for None:
Traceback (most recent call last):
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\scripts.py", line 640, in create_script_ui
self.create_script_ui_inner(script)
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\scripts.py", line 645, in create_script_ui_inner
import modules.api.models as api_models
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
).generate_model()
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
DynamicModel.__config__.allow_population_by_field_name = True
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\pydantic\_internal\_model_construction.py", line 320, in __getattr__
raise AttributeError(item)
AttributeError: __config__
---
*** Error creating UI for None:
Traceback (most recent call last):
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\scripts.py", line 640, in create_script_ui
self.create_script_ui_inner(script)
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\scripts.py", line 645, in create_script_ui_inner
import modules.api.models as api_models
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\api\models.py", line 113, in <module>
).generate_model()
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\api\models.py", line 96, in generate_model
DynamicModel.__config__.allow_population_by_field_name = True
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\pydantic\_internal\_model_construction.py", line 320, in __getattr__
raise AttributeError(item)
AttributeError: __config__
---
Traceback (most recent call last):
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\launch.py", line 48, in <module>
main()
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\launch.py", line 44, in main
start()
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\launch_utils.py", line 469, in start
webui.webui()
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\webui.py", line 64, in webui
shared.demo = ui.create_ui()
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\ui.py", line 489, in create_ui
toprow.ui_styles.dropdown.change(fn=wrap_queued_call(update_token_counter), inputs=[toprow.prompt, steps, toprow.ui_styles.dropdown], outputs=[toprow.token_counter])
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\gradio\events.py", line 140, in __call__
dep, dep_index = self.trigger.set_event_trigger(
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 286, in set_event_trigger
"inputs": [block._id for block in inputs],
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 286, in <listcomp>
"inputs": [block._id for block in inputs],
AttributeError: 'NoneType' object has no attribute '_id'
Creating model from config: C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\configs\v1-inference.yaml
C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\file_download.py:797: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
warnings.warn(
creating model quickly: OSError
Traceback (most recent call last):
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\utils\_http.py", line 406, in hf_raise_for_status
response.raise_for_status()
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\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 "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\hub.py", line 389, in cached_file
resolved_file = hf_hub_download(
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\utils\_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\file_download.py", line 862, in hf_hub_download
return _hf_hub_download_to_cache_dir(
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\file_download.py", line 969, in _hf_hub_download_to_cache_dir
_raise_on_head_call_error(head_call_error, force_download, local_files_only)
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\file_download.py", line 1484, in _raise_on_head_call_error
raise head_call_error
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\file_download.py", line 1376, in _get_metadata_or_catch_error
metadata = get_hf_file_metadata(
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\utils\_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\file_download.py", line 1296, in get_hf_file_metadata
r = _request_wrapper(
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\file_download.py", line 277, in _request_wrapper
response = _request_wrapper(
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\file_download.py", line 301, in _request_wrapper
hf_raise_for_status(response)
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\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-6755118a-5ba91e5c4242bbd952de9453;0435cd4c-7c72-46d8-ad1f-041a0c3b59b3)
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 "C:\Users\emodo\AppData\Local\Programs\Python\Python310\lib\threading.py", line 973, in _bootstrap
self._bootstrap_inner()
File "C:\Users\emodo\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "C:\Users\emodo\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\initialize.py", line 149, in load_model
shared.sd_model # noqa: B018
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\shared_items.py", line 175, in sd_model
return modules.sd_models.model_data.get_sd_model()
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\sd_models.py", line 693, in get_sd_model
load_model()
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\sd_models.py", line 820, in load_model
sd_model = instantiate_from_config(sd_config.model, state_dict)
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\modules\sd_models.py", line 775, in instantiate_from_config
return constructor(**params)
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py", line 563, in __init__
self.instantiate_cond_stage(cond_stage_config)
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py", line 630, in instantiate_cond_stage
model = instantiate_from_config(config)
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\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 "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\modules\encoders\modules.py", line 104, in __init__
self.transformer = CLIPTextModel.from_pretrained(version)
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\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 "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\transformers\modeling_utils.py", line 2789, in from_pretrained
resolved_config_file = cached_file(
File "C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\hub.py", line 410, 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.
Loading VAE weights specified in settings: C:\Users\emodo\Pictures\emodoran\stable-diffusion-webui\models\VAE\Counterfeit-V2.5.vae.pt
Applying attention optimization: xformers... done.
Model loaded in 3.2s (create model: 1.3s, apply weights to model: 1.4s, load VAE: 0.3s, calculate empty prompt: 0.1s).
続行するには何かキーを押してください . . .
回答件数:0件 2024年12月08日投稿