-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
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:
- Run invoke.py --web
- Have at least 1 txt2img generated (any parameters)
- Send any image to img2img
- Select any previously generated txt2img output using the right pane
- Click "Use All" on the top bar
- Invoke the image
- 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
InvokeAI/frontend/src/features/options/optionsSlice.ts
Lines 191 to 198 in 194d4c7
| 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; |