lllyasviel / ControlNet

Let us control diffusion models!
Apache License 2.0
28.97k stars 2.62k forks source link

IMG2IMG Batch + CNet Tile control image (batch) outputs img to local\temp\gradio || Automatic1111 #616

Open ryanull24 opened 6 months ago

ryanull24 commented 6 months ago

Issue:

I was trying to batch upscale a few images using MultiDiffusion + CNet Tile in Automatic1111 webui.

So my steps were this:

1. Go to Img2Img batch tab a. Set Input directory (my case F:\StabilityMatrix\Packages\stable-diffusion-webui\outputs\txt2img-images\to-up) b. Set Output directory (my case F:\StabilityMatrix\Packages\stable-diffusion-webui\outputs\txt2img-images\upped) c. Enable PNG Info > Append info to prompts (select prompt, negative prompt and seed)

  1. Enable MultiDiffusion + Tiled VAE (later on this was disabled, on or off made no difference as to where the images would be saved) a. 4x Ultrasharp > 2x upscale

3. Enable ControlNet a. Select Tile > tile_resample > control_v11f1e_sd15_tile [a371b31b] b. Pixel perfect enabled c. Upload independent control image d. Select batch tab (Input directory was left empty, assuming Input directory = blank CNet input directory = blank CNet Batch tab directory)

  1. Generate

The generated image(s) is now placed into %temp%\gradio (C:\Users\Username\AppData\Local\Temp\gradio) It also seems like the images are not saved one by one, but rather all at once, so you will not see the images in %temp%\gradio unless the process is done / interrupted. The filenames are saved with a temp filename it seems - tmpv094rr1i.png instead of the default 01234-9876543210.

In the webui Settings tab > Saving images > Saving images / grids > Always save all generated images was enabled. If disabled, I could not find any output directory, and with simple img2img, (Img 2 img / img2img tab), no output was generated (the resulting image window was empty) or I could not find it.

If I correctly understand the way this works, then each image in the folder should get uploaded as an independent control image.

What I want to happen instead is for the images to be saved in my output folder set in the Img2Img Batch tab (F:\\upped) or at least the regular outputs\img2img-images[date]**

Now, I may have messed something up somewhere? I have no idea.

image

image

image