lllyasviel / lllyasviel/stable-diffusion-webui-forge
Title: [Bug]: Spectrum + ControlNet conflict - TypeError: unsupported operand type(s) for /: 'int' and 'NoneType' in forecaster.py
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
Body:
Describe the bug:
When both Spectrum Integrated and ControlNet Integrated are enabled, generation fails with a TypeError in forecaster.py.
Error log:
File "...webui\extensions-builtin\sd_forge_spectrum\lib_spectrum\forecaster.py", line 21, in _taus
return (t / self.t_max) * 2.0 - 1.0
TypeError: unsupported operand type(s) for /: 'int' and 'NoneType'
Steps to reproduce:
Enable Spectrum Integrated.
Enable any ControlNet unit (e.g., Canny).
Click Generate.
Environment:
Forge Neo v3.2
Python 3.10+
Windows
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-builtin/sd_forge_spectrum/lib_spectrum/forecaster.py at _taus, line 21, then reproduce with Spectrum Integrated and a ControlNet unit such as Canny enabled. Trace why t_max is None in this combination and verify that generation completes without the TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100