AttributeError: 'NoneType' object has no attribute 'keys' #11059
Unanswered
theevilreigns
asked this question in
Q&A
Replies: 1 comment
-
|
That looks like out of memory (RAM, not VRAM):
You can try to increase your swapfile. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi y'all, I'm new to all this, the following errors appear when trying to install Stable Diffusion:
Error verifying pickled file from C:\Users\kotkt/.cache\huggingface\transformers\c506559a5367a918bab46c39c79af91ab88846b49c8abd9d09e699ae067505c6.6365d436cc844f2f2b4885629b559d8ff0938ac484c01a6796538b2665de96c7:
Traceback (most recent call last):
File "C:\SD_TUTOROGRAD_v3-2\SD_TUTOROGRAD_v3-2\modules\safe.py", line 135, in load_with_extra
check_pt(filename, extra_handler)
File "C:\SD_TUTOROGRAD_v3-2\SD_TUTOROGRAD_v3-2\modules\safe.py", line 93, in check_pt
unpickler.load()
File "C:\SD_TUTOROGRAD_v3-2\SD_TUTOROGRAD_v3-2\venv\lib\site-packages\torch_utils.py", line 138, in _rebuild_tensor_v2
tensor = _rebuild_tensor(storage, storage_offset, size, stride)
File "C:\SD_TUTOROGRAD_v3-2\SD_TUTOROGRAD_v3-2\venv\lib\site-packages\torch_utils.py", line 134, in rebuild_tensor
return t.set(storage._untyped(), storage_offset, size, stride)
RuntimeError: [enforce fail at ..\c10\core\impl\alloc_cpu.cpp:81] data. DefaultCPUAllocator: not enough memory: you tried to allocate 12582912 bytes.
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.
Traceback (most recent call last):
File "C:\SD_TUTOROGRAD_v3-2\SD_TUTOROGRAD_v3-2\launch.py", line 295, in
start()
File "C:\SD_TUTOROGRAD_v3-2\SD_TUTOROGRAD_v3-2\launch.py", line 290, in start
webui.webui()
File "C:\SD_TUTOROGRAD_v3-2\SD_TUTOROGRAD_v3-2\webui.py", line 132, in webui
initialize()
File "C:\SD_TUTOROGRAD_v3-2\SD_TUTOROGRAD_v3-2\webui.py", line 62, in initialize
modules.sd_models.load_model()
File "C:\SD_TUTOROGRAD_v3-2\SD_TUTOROGRAD_v3-2\modules\sd_models.py", line 260, in load_model
sd_model = instantiate_from_config(sd_config.model)
File "C:\SD_TUTOROGRAD_v3-2\SD_TUTOROGRAD_v3-2\repositories\stable-diffusion-stability-ai\ldm\util.py", line 79, in instantiate_from_config
return get_obj_from_str(config["target"])(**config.get("params", dict()))
File "C:\SD_TUTOROGRAD_v3-2\SD_TUTOROGRAD_v3-2\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py", line 563, in init
self.instantiate_cond_stage(cond_stage_config)
File "C:\SD_TUTOROGRAD_v3-2\SD_TUTOROGRAD_v3-2\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py", line 630, in instantiate_cond_stage
model = instantiate_from_config(config)
File "C:\SD_TUTOROGRAD_v3-2\SD_TUTOROGRAD_v3-2\repositories\stable-diffusion-stability-ai\ldm\util.py", line 79, in instantiate_from_config
return get_obj_from_str(config["target"])(**config.get("params", dict()))
File "C:\SD_TUTOROGRAD_v3-2\SD_TUTOROGRAD_v3-2\repositories\stable-diffusion-stability-ai\ldm\modules\encoders\modules.py", line 100, in init
self.transformer = CLIPTextModel.from_pretrained(version)
File "C:\SD_TUTOROGRAD_v3-2\SD_TUTOROGRAD_v3-2\venv\lib\site-packages\transformers\modeling_utils.py", line 2006, in from_pretrained
loaded_state_dict_keys = [k for k in state_dict.keys()]
AttributeError: 'NoneType' object has no attribute 'keys'
How can I fix it? I tried to delete corrupted cache file but it doesn't seem to have worked
Beta Was this translation helpful? Give feedback.
All reactions