lllyasviel / lllyasviel/stable-diffusion-webui-forge
[Bug]: Img2Img doesn't work
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
### Checklist
- [ ] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [X] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet
### What happened?
got the image from txt2img
launched the process and got this error:
### Steps to reproduce the problem
1. Upload an image
2. launch the generation
### What should have happened?
1. launch the generation
2. get a new image
### What browsers do you use to access the UI ?
Microsoft Edge
### Sysinfo
[sysinfo-2024-03-14-01-13.json](https://github.com/lllyasviel/stable-diffusion-webui-forge/files/14595441/sysinfo-2024-03-14-01-13.json)
### Console logs
```Shell
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: f0.0.17v1.8.0rc-latest-276-g29be1da7
Commit hash: 29be1da7cf2b5dccfc70fbdd33eb35c56a31ffb7
Launching Web UI with arguments: --always-normal-vram --api --xformers --pin-shared-memory --cuda-malloc --cuda-stream --ckpt-dir C:/Users/Charl/Desktop/python_charlie/A1111/stable-diffusion-webui/models/Stable-diffusion --hypernetwork-dir C:/Users/Charl/Desktop/python_charlie/A1111/stable-diffusion-webui/models/hypernetworks --embeddings-dir C:/Users/Charl/Desktop/python_charlie/A1111/stable-diffusion-webui/embeddings --lora-dir C:/Users/Charl/Desktop/python_charlie/A1111/stable-diffusion-webui/models/Lora
Using cudaMallocAsync backend.
Total VRAM 4096 MB, total RAM 40628 MB
WARNING:xformers:A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'
xformers version: 0.0.23.post1
Set vram state to: NORMAL_VRAM
Always pin shared GPU memory
Device: cuda:0 NVIDIA GeForce RTX 3050 Ti Laptop GPU : cudaMallocAsync
VAE dtype: torch.bfloat16
CUDA Stream Activated: True
Using xformers cross attention
ControlNet preprocessor location: C:\Users\Charl\Desktop\python_charlie\A1111\webui_forge_cu121_torch21\webui\models\ControlNetPreprocessor
Civitai Helper: Get Custom Model Folder
Tag Autocomplete: Could not locate model-keyword extension, Lora trigger word completion will be limited to those added through the extra networks menu.
Loading weights [15012c538f] from C:\Users\Charl\Desktop\python_charlie\A1111\webui_forge_cu121_torch21\webui\models\Stable-diffusion\realisticVisionV51_v51VAE.safetensors
2024-03-14 02:11:37,618 - ControlNet - INFO - ControlNet UI callback registered.
model_type EPS
UNet ADM Dimension 0
Civitai Helper: Set Proxy:
Running on local URL: http://127.0.0.1:7860
To create a public link, set `share=True` in `launch()`.
Startup time: 64.1s (prepare environment: 21.7s, import torch: 16.4s, import gradio: 2.9s, setup paths: 3.0s, initialize shared: 0.4s, other imports: 3.6s, load scripts: 10.2s, scripts list_optimizers: 0.2s, create ui: 3.0s, gradio launch: 0.8s, add APIs: 1.8s).
Using xformers attention in VAE
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
Using xformers attention in VAE
extra {'cond_stage_model.clip_l.logit_scale', 'cond_stage_model.clip_l.text_projection'}
To load target model SD1ClipModel
Begin to load 1 model
[Memory Management] Current Free GPU Memory (MB) = 3289.9630851745605
[Memory Management] Model Memory (MB) = 454.2076225280762
[Memory Management] Minimal Inference Memory (MB) = 1024.0
[Memory Management] Estimated Remaining GPU Memory (MB) = 1811.7554626464844
Moving model(s) has taken 0.11 seconds
Model loaded in 11.5s (load weights from disk: 0.9s, forge load real models: 9.6s, calculate empty prompt: 0.8s).
Traceback (most recent call last):
File "C:\Users\Charl\Desktop\python_charlie\A1111\webui_forge_cu121_torch21\system\python\lib\site-packages\gradio\routes.py", line 488, in run_predict
output = await app.get_blocks().process_api(
File "C:\Users\Charl\Desktop\python_charlie\A1111\webui_forge_cu121_torch21\system\python\lib\site-packages\gradio\blocks.py", line 1429, in process_api
inputs = self.preprocess_data(fn_index, inputs, state)
File "C:\Users\Charl\Desktop\python_charlie\A1111\webui_forge_cu121_torch21\system\python\lib\site-packages\gradio\blocks.py", line 1239, in preprocess_data
processed_input.append(block.preprocess(inputs[i]))
File "C:\Users\Charl\Desktop\python_charlie\A1111\webui_forge_cu121_torch21\system\python\lib\site-packages\gradio\components\number.py", line 178, in preprocess
elif self.minimum is not None and x < self.minimum:
TypeError: '<' not supported between instances of 'str' and 'int'
```
### Additional information
_No response_
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 by reproducing Img2Img with the uploaded image, then trace the request through the Gradio call shown in routes.py and blocks.py to the Number component in gradio/components/number.py. The issue is done when the same clean-installation workflow completes generation without the reported TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100