lllyasviel / lllyasviel/stable-diffusion-webui-forge

Upscale Function Error: TypeError: 'NoneType' object is not iterable

Open
#874 3 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

The option to create a upscale in image gallery no work
Error on txt2img_upscale_function

![Captura de tela 2024-07-27 200046](https://github.com/user-attachments/assets/56d0501a-77e3-4e26-9db3-123291c56edf)

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.