lllyasviel / lllyasviel/stable-diffusion-webui-forge
Upscale Function Error: TypeError: 'NoneType' object is not iterable
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
The option to create a upscale in image gallery no work
Error on txt2img_upscale_function

Se image above When click on buttom Create an upscaler version......
This error show on console:
self.result = self.func(*self.args, **self.kwargs)
File "F:\WebUI-Forge\webui\modules\txt2img.py", line 62, in txt2img_upscale_function
assert 0 <= gallery_index < len(gallery), f'Bad image index: {gallery_index}'
TypeError: '<=' not supported between instances of 'int' and 'dict'
'<=' not supported between instances of 'int' and 'dict'
*** Error completing request
*** Arguments: ('task(86gafhwt368p7uq)', , [{'name':
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 modules/txt2img.py at line 62 and reproduce the error by using the image gallery's “Create an upscaler version” button. Trace why gallery_index is a dict where the assertion expects an index, and confirm the upscale action completes without the reported TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100