Skip to content

In invoke web UI, pressing "Use All" on a txt2img does not change web UI state to indicate change to txt2img #1102

@Perryman

Description

@Perryman

Describe your environment

  • GPU: cuda
  • VRAM: 12G
  • CPU arch: x64
  • OS: Linux
  • Python: Anaconda
  • Branch: On branch main
  • Commit: 194d4c7

Describe the bug
If you're in the invoke web UI and you're doing img2img work, then you click on an image and click "use all," the state of the pending command changes based on whether the image you picked was img2img or txt2img. The web UI does not switch back to txt2img, but the output command and output are txt2img.

To Reproduce
Steps to reproduce the behavior:

  1. Run invoke.py --web
  2. Have at least 1 txt2img generated (any parameters)
  3. Send any image to img2img
  4. Select any previously generated txt2img output using the right pane
  5. Click "Use All" on the top bar
  6. Invoke the image
  7. Observe that the output is "txt2img" and the web UI still indicates img2img mode

Expected behavior
I saw the img2img UI, so I expected to be in img2img mode.
If "Use All" is intended to use the mode, then it should change the web UI.
If "Use All" isn't intended to change the mode, then the option slicer logic might be wrong.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context

if (type === 'img2img') {
if (init_image_path) state.initialImagePath = init_image_path;
if (mask_image_path) state.maskPath = mask_image_path;
if (strength) state.img2imgStrength = strength;
if (typeof fit === 'boolean') state.shouldFitToWidthHeight = fit;
state.shouldUseInitImage = true;
} else {
state.shouldUseInitImage = false;

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions