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

Don't add "Seed Resize: -1x-1" to API image metadata

Open missionfloyd opened this issue 2 years ago • 2 comments

Description

create_infotext() checks if seed_resize_from_h and seed_resize_from_w are 0 while they default to -1, so Seed Resize: -1x-1 gets added to the metadata of images generated with the API unless otherwise specified.

Checklist:

missionfloyd avatar Jul 01 '23 23:07 missionfloyd

I just posted in #11247 that it doesn't seem like the Seed Resize was actually causing issues, after all.

However, it's probably a good idea to just make it default to 0 instead of -1 anyway :)

altoiddealer avatar Jul 02 '23 03:07 altoiddealer

It would stop it from adding Seed Resize: -1x-1 to the metadata, but so would changing this to <= 0. https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/394ffa7b0a7fff3ec484bcd084e673a8b301ccc8/modules/processing.py#L576

missionfloyd avatar Jul 02 '23 04:07 missionfloyd