lllyasviel / lllyasviel/stable-diffusion-webui-forge
lauching the space function "Image Processing: Illumination, Shading, and Relighting" error
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
the interface suspended when lauching the space function "Image Processing: Illumination, Shading, and Relighting" and the console message is:
Forge Space: Moved 1557 Modules to cpu
Exception in thread Thread-37 (gradio_worker):
Traceback (most recent call last):
File "threading.py", line 1016, in _bootstrap_inner
File "threading.py", line 953, in run
File "F:\forge2\webui\modules_forge\forge_space.py", line 142, in gradio_worker
spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "F:\forge2\webui\extensions-builtin\forge_space_iclight\forge_app.py", line 27, in
rmbg = BriaRMBG.from_pretrained("briaai/RMBG-1.4")
File "F:\forge2\system\python\lib\site-packages\huggingface_hub\utils\_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "F:\forge2\system\python\lib\site-packages\huggingface_hub\hub_mixin.py", line 569, in from_pretrained
instance = cls._from_pretrained(
File "F:\forge2\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 "F:\forge2\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)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in extensions-builtin/forge_space_iclight/forge_app.py at the BriaRMBG.from_pretrained call, then inspect modules_forge/forge_space.py around gradio_worker. Reproduce the space launch and trace the OrderedDict error through huggingface_hub and origin_safetensors; done means the space launches without suspending or raising this exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- huggingface, python
- Domain
- ai, machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100