lllyasviel / lllyasviel/stable-diffusion-webui-forge

TypeError when using CFG scale 1 + ControlNet XL models.

Open
#1,772 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

I can just use a CFG scale of 1.01 and solve the issue, but I want some detailed explanation if possible.

When using CFG scale 1 (for sdxl lightning) and an XL ControlNet (cannyXL from diffusers), it gives me a
TypeError: 'NoneType' object is not iterable
error.

Anyone experiencing the same issue?
Sorry for leaving the logs and all those stuff. I can't log in to github in the server that SD is running.

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 by reproducing the reported configuration: CFG scale 1 with an SDXL Lightning model and the cannyXL ControlNet from diffusers. Capture the complete traceback and server logs, then trace the NoneType iteration to its source. Done means identifying the failing condition and documenting or fixing the behavior, with a regression check if the project has an applicable test location.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.