stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: AssertionError: Can't scale by because no image is selected

Open bobpuffer1 opened this issue 1 year ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What happened?

Cannot use regular img2img upscale for 4x of 512x768 picture. If you select an image for the img2img tab and then go to the batch tab program autodetects size of image but still gives the error. Selecting Size to limits both dimensions to 2048. To do a 4x upscale of a 512x768 you would be limited to Extras batch which gives A LOT LESS control

Steps to reproduce the problem

  1. img2img
  2. batch tab
  3. input directory parameters
  4. choose Scale by and set to 4 (we want a 4x upscale of a 512x768 picture)
  5. make all the rest of your settings
  6. Generate
  7. get error "AssertionError: Can't scale by because no image is select

What should have happened?

Either Scale to should allow larger than 2048 dimensions or Scale by should honor the image in the img2img tab.

Commit where the problem happens

22ad1d3f

What Python version are you running on ?

Python 3.10.x

What platforms do you use to access the UI ?

MacOS

What device are you running WebUI on?

Other GPUs

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

No

List of extensions

adetailer deforum automatic1111-webui | multidiffusion-upscaler-for-automatic1111 openOutpaint-webUI-extension sd-dynamic-prompts sd-webui-controlnet sd-webui-infinite-image-browsing sd-webui-mov2movsd-webui-regional-prompter sd_dreambooth_extension stable-diffusion-webui-dataset-tag-editor ultimate-upscale-for-automatic1111

Console logs

Traceback (most recent call last):
  File "/Users/bobpuffer/stable-diffusion-webui/modules/call_queue.py", line 57, in f
    res = list(func(*args, **kwargs))
  File "/Users/bobpuffer/stable-diffusion-webui/modules/call_queue.py", line 37, in f
    res = func(*args, **kwargs)
  File "/Users/bobpuffer/stable-diffusion-webui/modules/img2img.py", line 118, in img2img
    assert image, "Can't scale by because no image is selected"
AssertionError: Can't scale by because no image is selected

Additional information

No response

bobpuffer1 avatar Jun 22 '23 13:06 bobpuffer1