lllyasviel / lllyasviel/stable-diffusion-webui-forge

[Bug]: Spectrum + ControlNet conflict - TypeError: unsupported operand type(s) for /: 'int' and 'NoneType' in forecaster.py

Open
#3,105 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
13k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with extensions-builtin/sd_forge_spectrum/lib_spectrum/forecaster.py at line 21 and reproduce the failure by enabling Spectrum Integrated and a ControlNet unit such as Canny before clicking Generate. Trace why _taus receives a None t_max in that combination. Done means generation no longer raises the reported TypeError with Spectrum and ControlNet enabled.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.