lllyasviel / lllyasviel/sd-forge-layerdiffuse
AttributeError: 'TimestepEmbedSequential' object has no attribute '1'
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 4.1k
- Forks
- 352
- PR merge metrics
- No merged PRs in 30d
Description
**Description**
Hey guys, I met an issue when I am trying the **"SD1.5 Generate Everything together"** function. The forge backend raised an error -
```
*** Error running process_before_every_sampling: /some_path/Workspaces/stable-diffusion-webui-forge/extensions/sd-forge-layerdiffuse/scripts/forge_layerdiffusion.py
Traceback (most recent call last):
File "/some_path/Workspaces/stable-diffusion-webui-forge/modules/scripts.py", line 835, in process_before_every_sampling
script.process_before_every_sampling(p, *script_args, **kwargs)
File "/some_path/Workspaces/stable-diffusion-webui-forge/extensions/sd-forge-layerdiffuse/scripts/forge_layerdiffusion.py", line 247, in process_before_every_sampling
patcher = AttentionSharingPatcher(unet, frames=3, use_control=False)
File "/some_path/Workspaces/stable-diffusion-webui-forge/extensions/sd-forge-layerdiffuse/lib_layerdiffusion/attention_sharing.py", line 208, in __init__
attn_module = utils.get_attr(unet.model.diffusion_model, real_key)
File "/some_path/Workspaces/stable-diffusion-webui-forge/ldm_patched/modules/utils.py", line 306, in get_attr
obj = getattr(obj, name)
File "/some_path/miniconda3/envs/sld/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1688, in __getattr__
raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'")
AttributeError: 'TimestepEmbedSequential' object has no attribute '1
```
Does anyone know how to solve this problem?
**Setup**
* NVIDIA V100 16G
* Python 3.10
* Linux x64
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 with extensions/sd-forge-layerdiffuse/scripts/forge_layerdiffusion.py at line 247 and trace into lib_layerdiffusion/attention_sharing.py at line 208. Inspect ldm_patched/modules/utils.py at line 306 and reproduce the “SD1.5 Generate Everything together” flow; done means the flow no longer raises the reported AttributeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100