Real time Stable Diffusion in TouchDesigner

Sdílet
Vložit
  • čas přidán 29. 06. 2024
  • Video Tutorial on TouchDiffusion: Interactive Real-Time Generation using StreamDiffusion and TensorRT in TouchDesigner
    TouchDiffusion: github.com/olegchomp/TouchDif...
    If you'd like, you can treat me to a coffee: boosty.to/vjschool
    Socials:
    / olegchomp
    / oleg__chomp
    00:00 - Intro
    00:09 - TouchDiffusion features
    00:42 - Beginning of installation
    00:50 - Python install
    01:08 - Git install
    01:18 - Cuda Toolkit install
    01:38 - TouchDiffusion install
    01:55 - where python
    02:13 - webui install
    03:10 - Fix for error in pop up window
    03:27 - Model downloading & engine preparation
    04:45 - SD Turbo engine
    05:07 - TouchDiffusion settings
    05:46 - Usage example
    07:13 - Parameters explanation

Komentáře • 34

  • @burakuville
    @burakuville Před 5 dny +1

    amazing job explaining the entire process...

  • @alessandrosaracino5463
    @alessandrosaracino5463 Před 10 dny +1

    this is great! lean and clean, thank you!

  • @marlus
    @marlus Před 9 dny

    Thanks for this great solution! Amazing performance on 4070 12GB! SD Turbo and 1 sample step. I will test making other engine now. 3 sample steps were slow on 4070.

  • @Remvisuals
    @Remvisuals Před 10 dny +1

    instnaly fast and so nice to be in 512, congrats on this one, cant wait for more features!

    • @VJSCHOOL
      @VJSCHOOL  Před 9 dny +1

      Custom resolutions already available, but keep in mind, that it will affect FPS.

    • @Remvisuals
      @Remvisuals Před 9 dny

      @@VJSCHOOL I tried building a model with different res and more steps, but it wouldn't finish...
      Super impressed with the speed, it's still super jittery and "stabley", but that's just animdif in general I geuss, excited to try out control net!!

  • @cayetanojozami4067
    @cayetanojozami4067 Před 12 dny +1

    Amazing

  • @detailsstudio
    @detailsstudio Před 11 dny +1

    Thanks bro

  • @prictor
    @prictor Před dnem +1

    hi, i followed every step and there are no erros, but in touchdesigner when i hit pulse on "load engine" nothing happens, can anybody help me?

    • @VJSCHOOL
      @VJSCHOOL  Před dnem

      Create issue on GitHub or Discord and share full log.

  • @dleon9781
    @dleon9781 Před 5 dny

    hi ,i have followed your tutorial and every step went well .But in TouchDesigner,the log shows :cannot access local variable 'pipe' where it is not associated with a value.I don't know how did it happened

    • @VJSCHOOL
      @VJSCHOOL  Před dnem

      Create issue on GitHub or Discord with full log

  • @user-eo3zn9kj9h
    @user-eo3zn9kj9h Před 12 dny

    I don't understand how it's posssible to have multiple frames per second with 20 steps. Why don't we use TensorRT on normal UI's like Automatic or Comfy ? Sorry in advance for having such a vague question but i find this quite amazing haha.

    • @VJSCHOOL
      @VJSCHOOL  Před 11 dny

      Real-time can be achieved with Turbo models and Acceleration Lora, on low steps like 1-4 with TensorRT. TouchDesigner allow to copy data from and to GPU, that decrease latency.

  • @placebo_yue
    @placebo_yue Před 7 dny

    does it have to be python 311? i have 310 and i don't wanna break all my other installations to try this...

    • @VJSCHOOL
      @VJSCHOOL  Před 7 dny

      1) everything installed in venv, so it not affecting main Python env.
      2) if you want to try with Python 3.10, then provide path to it in webui & use TouchDesigner version before 2023

  • @leonidkrykhtin
    @leonidkrykhtin Před 10 dny

    How to increase CFG to 7-10 instead of 1?
    The quality of generations is very low at 1.

    • @VJSCHOOL
      @VJSCHOOL  Před 9 dny

      You should try to increase sampling steps (batch size)

  • @user-tz5ub1yq6o
    @user-tz5ub1yq6o Před 10 dny

    Very interesting, but when I clicked load engine in touchdesigner, I got an error like "cannot access local variable 'pipe' where it is not associated with a value". What is the problem?

    • @VJSCHOOL
      @VJSCHOOL  Před 9 dny

      That’s mean either model or engine can’t be found

  • @TheDciel1
    @TheDciel1 Před 7 dny

    Git is installed.
    Creating .venv directory...
    The filename, directory name, or volume label syntax is incorrect.
    Failed to create virtual environment.
    What is the problem?

    • @ogunkayikci7751
      @ogunkayikci7751 Před 5 dny

      chech where the python with "where python" command and copy paste in to webui.bat like he said

  • @developmentmotion4765

    amazing... this is realy faster,
    can we put lora and vae to the folder?
    what lora and vae for the best creation

    • @developmentmotion4765
      @developmentmotion4765 Před 4 dny

      and why icant change the seed ?

    • @VJSCHOOL
      @VJSCHOOL  Před dnem

      Tiny VAE already baked in for best performance. Loras not supported yet.

    • @VJSCHOOL
      @VJSCHOOL  Před dnem

      Seed can be changed in TouchDesigner with seed parameter

  • @alexdoho
    @alexdoho Před 11 dny

    What's the difference between this and streamdiffusion?

    • @VJSCHOOL
      @VJSCHOOL  Před 11 dny +1

      Explained in first 3 min of video
      It’s near x2 faster

  • @kafidov
    @kafidov Před 11 dny

    As I understand it, this miracle cannot be run under Mac?

  • @SwoleKitchen
    @SwoleKitchen Před dnem

    I really need a computer to do this. is there a way I could offload that GPU onto Google Collab?

    • @VJSCHOOL
      @VJSCHOOL  Před dnem

      TouchDiffusion component required TouchDesigner, so it can’t run in Google Collab. You can try with original StreamDiffusion repo.

    • @SwoleKitchen
      @SwoleKitchen Před dnem

      @@VJSCHOOL - Sigh guess i just need better hardware.

    • @SwoleKitchen
      @SwoleKitchen Před dnem

      @@VJSCHOOLsweet I’ll try that