sd-webui-controlnet icon indicating copy to clipboard operation
sd-webui-controlnet copied to clipboard

ControlNet sample image remains in 'memory' of SD

Open MrJeJo opened this issue 2 years ago • 5 comments
trafficstars

I'm not able to reset the sample/pose image of ControlNet. When I use ControlNet to generate an image, the sample data is stored in 'memory' and I'm not able to reset it. I have to restart the webui cmd window to delete it.

Steps to reproduce:

  1. Start the WebUI
  2. Generate an image (without prompt, just default settings), it will generate a different image every time, as expected.
  3. Fill in a prompt like 'a photo of a bird'
  4. Use ControlNet to scribble a simple drawing of a bird.
  5. Generate an image, it will generate a photo of a bird with guidance from the scribble, as expected.
  6. Now reload the WebUI, all settings will be reset, as expected.
  7. Generate an image (without prompt, just default settings, ControlNet is disabled), now the scribble of the bird will be present in all images and it remains in 'memory.

I think this is a bug, or I don't understand to reset ControlNet?

Cheers,

Jeff

MrJeJo avatar Feb 18 '23 22:02 MrJeJo

I have the same happening to me

if-ai avatar Feb 19 '23 00:02 if-ai

Maybe some state management issue with gradio or webui. Currently you need to disable it before/after reload UI by ticking Enable checkbox

Mikubill avatar Feb 19 '23 04:02 Mikubill

I had this happen few days ago and it did not returned but maybe it has to be triggered somehow, i had it with txt2img when i disabled controlnet with tickbox

2blackbar avatar Feb 19 '23 17:02 2blackbar

I've had this happen when using Controlnet in the UI, but then calling img2img in the API - seems to bleed through?

chrisbward avatar Feb 20 '23 00:02 chrisbward

fixed in https://github.com/Mikubill/sd-webui-controlnet/commit/f46de9741018068cd2dc46b4a1d972283f6e3093

Mikubill avatar Feb 22 '23 14:02 Mikubill