lllyasviel / lllyasviel/ControlNet

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

Open
#616 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
34.1k
Forks
3k
PR merge metrics
No merged PRs in 30d

Description

**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)

2. 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_)

4. 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](https://github.com/lllyasviel/ControlNet/assets/92233600/520d33da-8df3-4821-a211-759741b9b54b)

![image](https://github.com/lllyasviel/ControlNet/assets/92233600/51eff889-8d55-414b-9b70-40a1aafc4f3c)

![image](https://github.com/lllyasviel/ControlNet/assets/92233600/24865c6c-c569-4f02-96a3-8481975b4685)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Img2Img batch tab and ControlNet batch-tab handling, reproducing the reported setup with input/output directories and an independent Tile control image. Trace where generated images are written, then verify that batch results use the configured output directory instead of %temp%\gradio and retain normal filenames.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.