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

[Feature Request]: Live previews

Open ustas-eth opened this issue 1 year ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What would your feature do ?

It would be nice to get the live previews to work. I tried to check the script and enable them myself, but I'm afraid I have a skill issue. Not sure whether it's even possible with OpenVino.

I tried to do several tweaks and find where the previews are coming from, e.g., added several lines to the callback function in order to mimic the original one, but it doesn't seem to work:

            def callback(iter, t, latents):
                time_stamps.append(time.time()) # noqa: B023
                print(iter)
                print(t)
                shared.state.sampling_step = iter
                shared.total_tqdm.update()

The calls to /progress in the web still return nothing:

{"active":true,"queued":false,"completed":false,"progress":0.0,"eta":null,"live_preview":null,"id_live_preview":-1,"textinfo":null}

Proposed workflow

  1. Try to generate a pic
  2. See previews

Additional information

I really like to see the previews

ustas-eth avatar Aug 11 '24 19:08 ustas-eth