Uminosachi / sd-webui-inpaint-anything

Inpaint Anything extension performs stable diffusion inpainting on a browser UI using masks from Segment Anything.
Apache License 2.0
1.11k stars 101 forks source link

Seed lock? #103

Open mykeehu opened 1 year ago

mykeehu commented 1 year ago

It would be nice if the seed of the last generated image could be locked. Currently it is not posted anywhere, so I don't know what the current seed is. Therefore it would be nice to have a seed lock option, like the one on the txt2img or img2img tab (green recycle icon + dice icon)

Uminosachi commented 1 year ago

As you may already be aware, you can change the seed value in the 'Advanced options' accordion. You should be able to reproduce the results as the seed value is included in the generated image file name.

mykeehu commented 1 year ago

I thought it would be a convenience option to capture the seed of the last generated image and further refine it with other parameters. Currently it's several steps as you wrote.

mykeehu commented 11 months ago

@Uminosachi I just generated an image with seed -1 in the Inpainting tab. I don't see the generated seed in the PNG info or anywhere else. How can I find out the seed of the currently generated image? Because I would only tweak the Sampler parameter, the other parameters would remain the same, and therefore I would fix the seed.

Uminosachi commented 11 months ago

How can I find out the seed of the currently generated image? Because I would only tweak the Sampler parameter, the other parameters would remain the same, and therefore I would fix the seed.

The seed value is included at the end of the file name for the generated image. Typically, the generated images are saved under date-specific folders in either stable-diffusion-webui/outputs/inpaint-anything or stable-diffusion-webui/outputs/img2img-images.

For instance: 20230916-140634_realisticVisionV51v51VAE-inpainting357157872.png

You can also check by dragging and dropping the file onto the PNG Info tab in the web UI.

mykeehu commented 11 months ago

Thank you very much for the path and the info, I didn't know I could find the pictures here. I had them in the temporary folder, but those pictures didn't have any information.