StreamDiffusion icon indicating copy to clipboard operation
StreamDiffusion copied to clipboard

How to launch StreamDiffusionViewer demo?

Open MNeMoNiCuZ opened this issue 1 year ago • 3 comments

As shown at the primary example video, there's an image viewer showing each image generated, how do you launch this viewer, or this mode where it just generates continuously?

https://github.com/cumulo-autumn/StreamDiffusion/blob/main/assets/demo_07.gif

I would like to try this one out.

The other demos and examples work fine for me, but I can't figure out how to launch that demo.

MNeMoNiCuZ avatar Jan 27 '24 18:01 MNeMoNiCuZ

Thanks for the vomment. The gif demo is not publicly available. You can do the same thing by adding a window program to Examples / text2img /multi.py that displays the generated image.

teftef6220 avatar Jan 28 '24 15:01 teftef6220

Got it! I have a script that displays the most recent image, so I guess that would kind of work.

It may be a good thing to share as this is how you're showing off the project :)

Can I make the multi.py save one image at a time, instead of batching it all at once?

MNeMoNiCuZ avatar Jan 28 '24 17:01 MNeMoNiCuZ

The image is saved. (lines 76~77)

If you want to generate images without batch processing and save them, it is recommended to write the Single.py process as a for loop.

teftef6220 avatar Jan 29 '24 03:01 teftef6220