lllyasviel / stable-diffusion-webui-forge

GNU Affero General Public License v3.0
8.22k stars 805 forks source link

Ic-light #1394

Open qw381523977 opened 2 months ago

qw381523977 commented 2 months ago

when I use the space of Ic-light in forge ui,the background prompted me

Exception in thread Thread-35 (gradio_worker): Traceback (most recent call last): File "threading.py", line 1016, in _bootstrap_inner File "threading.py", line 953, in run File "E:\SD\webui_forge_cu124_torch24\webui\modules_forge\forge_space.py", line 193, in gradio_worker spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "E:\SD\webui_forge_cu124_torch24\webui\extensions-builtin\forge_space_iclight\forge_app.py", line 27, in rmbg = BriaRMBG.from_pretrained("briaai/RMBG-1.4") File "E:\SD\webui_forge_cu124_torch24\system\python\lib\site-packages\huggingface_hub\utils_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "E:\SD\webui_forge_cu124_torch24\system\python\lib\site-packages\huggingface_hub\hub_mixin.py", line 569, in from_pretrained instance = cls._from_pretrained( File "E:\SD\webui_forge_cu124_torch24\system\python\lib\site-packages\huggingface_hub\hub_mixin.py", line 807, in _from_pretrained return cls._load_as_safetensor(model, model_file, map_location, strict) File "E:\SD\webui_forge_cu124_torch24\system\python\lib\site-packages\huggingface_hub\hub_mixin.py", line 831, in _load_as_safetensor load_model_as_safetensor(model, model_file, strict=strict) # type: ignore [arg-type] File "origin_safetensors\torch.py", line 199, in torch.load_model TypeError: Argument 'state_dict' has incorrect type (expected dict, got collections.OrderedDict)

hope fix this @lllyasviel

lllyasviel commented 2 months ago

what will happen if you uninstall safetensors and reinstall it

qw381523977 commented 2 months ago

如果卸载并重新安装它会发生什么情况safetensors

The same thing will happen