Real-time diffusion in TouchDesigner - StreamdiffusionTD Setup + Install + Settings

Поділитися
Вставка
  • Опубліковано 24 чер 2024
  • Important ! Read description for Installation Tips ! This uses TouchDesigner 2023 and will not work in TouchDesigner 2022.
    Currently only working using windows + nvidia graphics card.
    StreamDiffusionTD TOX available here - / dotsimulate
    StreamDiffusion github - github.com/cumulo-autumn/Stre...
    BEFORE Installing - make sure to have:
    Python 3.10 (make sure Python is added to Path in your system's environment variables)
    CUDA 11.8 or CUDA 12.1
    NDI-SDK - ndi.video/download-ndi-sdk/
    GIT (check add to PATH when asked) - git-scm.com/download/win
    If GIT is already installed and not in PATH - www.delftstack.com/howto/git/...
    00:00 Introduction to StreamDiffusionTD
    00:48 System Requirements for StreamDiffusionTD
    01:12 Setting up operator in network
    01:37 Downloading StreamDiffusion repo
    02:10 Installing venv (first install only)
    03:04 Setting Model + parameters before Stream
    03:30 Step Schedule part 1
    03:46 Similar Image Filter
    04:00 Starting the Stream / Cmd window
    04:41 Disable / Enable to see Stream bug
    05:10 Seed
    05:47 Prompts
    06:16 Setting up Prompt Box
    07:10 Negative Prompts do NOT work
    07:22 Step Schedule part 2
    08:16 Guidance Scale / Delta
    08:47 Experiment !
    09:16 Lora loader page
    09:33 Callbacks
    10:03 Stopping the Stream
    10:09 Setting OSC Ports / Stream name
    10:18 Visible Window (ON is default)
    10:32 Say hey on discord !
    11:00 Thanks !!
  • Фільми й анімація

КОМЕНТАРІ • 207

  • @elekktronaut
    @elekktronaut 5 місяців тому +45

    absolutely mindblowing!! getting 6fps on my laptop 3070, thank you so much ❤

  • @TouchDesignerOfficial
    @TouchDesignerOfficial 5 місяців тому +60

    Amazing work and great tutorial. A small tip for your callbacks DAT, on the Common page of parameters if you switch 'Content Language' to Python then the DAT will use python syntax highlighting.

    • @FunctionStore
      @FunctionStore 5 місяців тому +8

      Dotsimulate InSession when?

    • @blankensmithing
      @blankensmithing 5 місяців тому

      Yessssss 100 %@@FunctionStore

    • @dotsimulate
      @dotsimulate  5 місяців тому +3

      ❤Thank you !! I will make sure to set that when callbacks are created.

    • @engard
      @engard 5 місяців тому

  • @ChristianBrinkmannLive
    @ChristianBrinkmannLive 5 місяців тому +2

    Yeees finally! 😍 You‘re the best for putting this out! And the tutorial is well made made too 🖤

  • @cristianpenas
    @cristianpenas 3 місяці тому

    This is super inspiring, it gives a clear visual image of the fundamentals of diffusion models

  • @blankensmithing
    @blankensmithing 5 місяців тому +5

    Yesssss Lyell! Amazing work and tutorial!! Would love to see you create more tutorials in the future!!

  • @MarkDrMindsetChavez
    @MarkDrMindsetChavez 5 місяців тому

    Whoa! Now this is what I needed!
    Thanks for the great work and generosity.

  • @datsmabowl
    @datsmabowl 4 місяці тому

    Incredible work and very accessible tools. Thanks so much!

  • @jaysonwall434
    @jaysonwall434 4 місяці тому

    Whoa! That was cool. Thanks for the breakdown. Downloading stream diffusion now. :)

  • @SilentMediaLab
    @SilentMediaLab 5 місяців тому

    nice nice! super nice! thank you for your work, it's amazing the opportunity to create and work with these tools. cheers

  • @RetropunkAI
    @RetropunkAI Місяць тому

    This is EXACTLY what I needed this weekend. Thank you so much for this.

  • @gleix_
    @gleix_ 5 місяців тому +17

    Lyell you've got a voice ready for public access. ALSO this looks amazing! For people who know TD and already have a competent workflow, but are lacking in knowledge of SD, tools like this immediately open the door and make it more accessible than it has any right to be. I think seeing SD generating images in real-time, within TD in a format I can immediately wrap my head around to a better degree, is a pull I haven't had with SD until now. Awesome work!

  • @Jonny11299
    @Jonny11299 2 місяці тому

    Guys this is frickin insane. Amazing work!

  • @xavierg_music
    @xavierg_music 5 місяців тому +1

    Thank you so much for sharing this!! ❤ My dreams just came true..

  • @LANworldArchive
    @LANworldArchive 5 місяців тому

    That's amazing gonna try if for sure!!! Thank u for sharing this 🙏🌀

  • @gregderivative2647
    @gregderivative2647 5 місяців тому +1

    fabulous tool design and great explanation in the video.

  • @antialias8588
    @antialias8588 5 місяців тому

    Amazing. Thank you for this !

  • @manu.vision
    @manu.vision 5 місяців тому +1

    Proud of you Lyell! ❤

  • @FunctionStore
    @FunctionStore 5 місяців тому +4

    he's done it! I know what I'll be doing tomorrow...

  • @kiksu1
    @kiksu1 5 місяців тому +1

    Fantastic work!

  • @brvoigt
    @brvoigt 5 місяців тому +1

    Nice use of those new sequential parameters! 🔥

    • @dotsimulate
      @dotsimulate  5 місяців тому

      Thanks ! They are quite handy. definitely a great addition for 2023.

  • @MrJgrez
    @MrJgrez Місяць тому +1

    Nice job bro. Appreciate the information.

  • @Adellovisuals
    @Adellovisuals 5 місяців тому +1

    Thanks a lot for this! Running at 8 FPS with 4070

  • @nicsnutzius6305
    @nicsnutzius6305 5 місяців тому +1

    Thanks a lot for this amazing work on StreamDiffusion! Regarding the NDI source name issue: I had similiar issues with the refresh on another project and realized that using 'Bind' instead of 'Reference' fixes the issue.

    • @dotsimulate
      @dotsimulate  4 місяці тому

      Will investigate. Thank you.

  • @iloveallvideos
    @iloveallvideos 4 місяці тому

    AMAZING!!! FROM THE CREATUVES AROUND THE WORLD, THANK YOU

  • @nothingrhymeswithferg3744
    @nothingrhymeswithferg3744 5 місяців тому +1

    this is actually just the craziest thing i've ever seen

  • @freivonstil
    @freivonstil 5 місяців тому +1

    Thank you so much for sharing! I'm a big fan even after the first minute already! Sub

  • @kinkysoybean
    @kinkysoybean 5 місяців тому

    thank you for this amazing tutorial!

  • @folders_apries
    @folders_apries 5 місяців тому

    amazing stuff!

  • @_geom
    @_geom 5 місяців тому

    Wow thanks for sharing

  • @unveil7762
    @unveil7762 5 місяців тому

    You my new best friend!!! ❤❤❤❤

  • @InOneArt
    @InOneArt Місяць тому +2

    And now. Imagine an AI chatbot, when communicating with which you are accompanied by a visual series that displays your adventures in real time. Impressive

  • @Kirmm
    @Kirmm 4 місяці тому

    Awesome stuff! That 4090 really helps.

  • @user-jp1wx6sy2w
    @user-jp1wx6sy2w 2 місяці тому

    you are best!!!! thanks!!!!

  • @lee_sung_studio
    @lee_sung_studio 5 місяців тому

    Thank you.

  • @alphapyro360
    @alphapyro360 5 місяців тому

    amazing!

  • @nyangau
    @nyangau 5 місяців тому

    awesome!!!

  • @menguzar
    @menguzar 4 місяці тому

    Great tutorial and great asset man, thanks!
    What's the OP that uyou use for the prompt list? is that a table dat or something else?

  • @rec-trick
    @rec-trick 5 місяців тому

    amazing

  • @jakoblacour
    @jakoblacour 5 місяців тому +5

    Really great! Got 1.5 fps with my GTX 1070 😅

    • @teodoricoteodorico
      @teodoricoteodorico 5 місяців тому

      same setup, confirming drop to 0.7/0.8 with live image segmentation running parallel

  • @diogomarques8
    @diogomarques8 5 місяців тому

    Amazing! I would really like a toturial (or get in touch with) about the fireball clip. Looks impressive, and i'm working on a project with similar aesthetic, but im having trouble on generating the refrence image part before the SD tox.

    • @teodoricoteodorico
      @teodoricoteodorico 5 місяців тому

      Seems from his video he is using hand tracking (possibly to move a circle and then generate from there) i'm currently experimenting with mediapipe live segmentation tool as a starting generation point

  • @mecherodriguez5114
    @mecherodriguez5114 5 місяців тому

    beautiful work, great tutorial, I'm running on average at 6 FPS . If I wanted to ask how to load new MODEL IDs?

  • @ChyaBra
    @ChyaBra Місяць тому +1

    Super excited to try this! The tutorial starts out with the Stream Diffusion operator on the screen but I'm not sure how to get that operator. Do I install the repo somewhere and point to the directory in the parameters box?

  • @osamajamil4804
    @osamajamil4804 4 місяці тому +2

    Amazing work. A quick question, can we connect this diffusion model in touch designer to depth camera, so the changes are done according to human motion?

  • @tiwonku
    @tiwonku 5 місяців тому +3

    i think im in love..

  • @amiiineh
    @amiiineh Місяць тому

    This is pretty cool!
    any advice on getting it running on a mac?

  • @moritzmaas2011
    @moritzmaas2011 3 місяці тому

    looks amazing. is there another way without an nvidia card?

  • @santiago15608
    @santiago15608 4 місяці тому

    Thanks for the video!
    Is it a must to download the Python v 3.10.9 + cuda 11.8?

  • @user-sv3rq3qp4w
    @user-sv3rq3qp4w 3 місяці тому +1

    Hey! Thank you very much! Just became a patreon. I'm really excited. Does this work with python 3.12? or only 3.10.. I struggled to find the install file for 3.10 version.. had to change it directly on the url.

    • @zpacetree
      @zpacetree 2 місяці тому

      did you ever find out if it works on 3.12?

    • @ANGELDISENY
      @ANGELDISENY Місяць тому

      @@zpacetree in case it helps you: I have tried all versions and it only worked to me with 3.10

  • @thiagojosebraganca8704
    @thiagojosebraganca8704 Місяць тому +2

    hello. I was enchanted by the possibilities of stream diffusion. I'm a complete newbie and I don't know how to do the installations prior to the tutorial. How can I access this operator? Do I need to subscribe to your Patreon to have access or would I be able to use this tutorial? tanks

  • @teodoricoteodorico
    @teodoricoteodorico 5 місяців тому

    simply wonderful, any insight on how to extract the live fps from streamdiffusion in order to set a time comp?

    • @dotsimulate
      @dotsimulate  5 місяців тому

      Ive got CHOPs exposed as out2 for both fps and framecount (frame total since stream began)

  • @leono5122
    @leono5122 3 місяці тому

    Thank you for the video! Is an image-to-image generation also possible? For example, a jpg file as input and stream diffusion creates similar looking images in real time?

  • @ithamardimarco9082
    @ithamardimarco9082 4 місяці тому

    Amazing 🔥🔥🔥 does it run offline?

  • @louisfievet9341
    @louisfievet9341 Місяць тому

    Heyyy Mate ! Great tut and infos !! Thanks for sharing ! Does this work on Mac ?

    • @dotsimulate
      @dotsimulate  Місяць тому +2

      As of a few days ago, yes ! On Apple silicon macs and definitely is slower than nvidia graphics cards though.

  • @user-sd1vh5ds6t
    @user-sd1vh5ds6t 3 місяці тому +1

    Hello, it's cool work. Does your plugin support tensorrt acceleration?

    • @dotsimulate
      @dotsimulate  3 місяці тому

      Yep! I’ve got an improved installation process with a separate step for tensorrt.

  • @KaleidoKurt
    @KaleidoKurt 2 місяці тому

    Amazing! Thank you for sharing. Would this work on a Mac? Specifically MBP M2 Max 64 GB

  • @v.rtx_void
    @v.rtx_void 5 місяців тому +1

    Awesome as usual, thank you so much for this!!
    Just 2 questions:
    Will it work with 2022 Touchdesigner Versions?
    And do you, by any chance, also have a Gumroad page for purchasing, instead of Patreon?

    • @gregderivative2647
      @gregderivative2647 5 місяців тому +1

      nom it uses Custom Sequential Parameters (see wiki, opens a lot of doors!), which is in 2023.Official only.

    • @v.rtx_void
      @v.rtx_void 5 місяців тому

      thanks, when I ayked it was not in the description yet

    • @antoniaangel6384
      @antoniaangel6384 5 місяців тому

      Hey! I tried and it seems not to work with 2022 TD.

  • @borisdesgeyl666
    @borisdesgeyl666 4 місяці тому

    Great! How do I get/create the Container nvidia_smi in TD?

  • @jennnital
    @jennnital 5 місяців тому

    Hi there! i've previously gotten streamdiffusion to work locally with conda instead of venv - whats the best way to mod this TOP? :) or should i still use the venv process?

  • @nicotritschler675
    @nicotritschler675 2 місяці тому

    Thank you so much for this! I may be lost right now but how do I write the path to a local safetensor model? I can't seam to get it working

  • @swadedenimproduction
    @swadedenimproduction 3 місяці тому +2

    Incredible! Can this run on A Mac Studio with an M2 Max/ultra?

  • @gabrielecella
    @gabrielecella 3 місяці тому

    wow

    • @gabrielecella
      @gabrielecella 3 місяці тому

      wht is for you the best way to record the stream? thx in advance

  • @eventservice8511
    @eventservice8511 4 місяці тому

    How did you make a photoshop generation in examples on github?

  • @hoole3796
    @hoole3796 3 місяці тому

    very cool video.
    I have a problem for the installation I have an error for cuda python
    How can i resolve ?

  • @rudolf_II
    @rudolf_II 4 місяці тому

    since i work on a mac pro (win 11 is installed) with a vega 56, i question is will the amd GPU gets a support for this?

  • @infernall_blessfree_waghun8377
    @infernall_blessfree_waghun8377 3 місяці тому +1

    Hey :) would it be possible to do a turial of this tipic on Mac :) kind regards

  • @yizhu1391
    @yizhu1391 4 місяці тому

    thanks for the amazing work! but I have some issues when tochdesigner try to open powershell, the powershell will crash. Anyone knows the reason or solution?

  • @Kaijufruit
    @Kaijufruit 3 місяці тому +4

    Wen Mac version? :) is there compatibility issues?

  • @jasmine8182
    @jasmine8182 2 місяці тому +2

    Is there any way to integrate your own LoRa/safetensor into this ??

  • @gnanny
    @gnanny 2 місяці тому +1

    How do you load the operator, its not showing in the tab menu. im very new to td.

  • @arthurquet2014
    @arthurquet2014 2 місяці тому

    Thanks a lot ! But Lora models don't work, how do you setup this ?

  • @santobosco5008
    @santobosco5008 5 місяців тому

    Thanks for this! I am currently unable to run it, after the Intializing NDI streaming etc, it runs into:
    D:\StreamDiffusion\StreamDiffusion\venv\lib\site-packages\diffusers\configuration_utils.py:135: FutureWarning: Accessing config attribute requires_safety_checker directly via 'StableDiffusionPipeline' object attribute is deprecated. Please access 'requires_safety_checker' over 'StableDiffusionPipeline's config object instead, e.g. 'scheduler.config.requires_safety_checker'.
    deprecate("direct config name access", "1.0.0", deprecation_message, standard_warn=False)
    Process Process-4:
    and goes on and on..what should i do? thankssss🙏🙏🙏🙏🙏🙏

  • @danielrubinstein6714
    @danielrubinstein6714 21 день тому

    Hey, there is a way to use this with inpainting to select to afect only a determined area of the image?

  • @iwwa274
    @iwwa274 16 днів тому

    i love you 200

  • @marshalldestro
    @marshalldestro 2 місяці тому

    wait, so the only way to do this is to subscribe to the patreon? i went through the trouble of installing all the stuff only to realize the TD base featured in this clip doesnt exist in TD :(

  • @georgiaharrison1572
    @georgiaharrison1572 2 місяці тому +1

    Hey when I start stream with the pulse and my cmd comes up, it get to the end of the code but doesn't get past 'preparing stream...'
    Any idea why not? I've left it for over an hour and still the same. Have a good computer and high vram nvida card. Really appreciate any help - thanks!!!

  • @dvdgoldberg
    @dvdgoldberg 4 місяці тому

    great work !! would it be possible to use IPA adapters ?

    • @dotsimulate
      @dotsimulate  4 місяці тому +1

      I absolutely want to add this.

  • @ysy69
    @ysy69 5 місяців тому

    Wow, this is amazing. Do I gain access to this Operator as your Start SD Patreon ?

    • @dotsimulate
      @dotsimulate  5 місяців тому +1

      Yes ! thank you !

    • @ysy69
      @ysy69 5 місяців тому

      @@dotsimulateI will join.

  • @johnmcglynn7174
    @johnmcglynn7174 4 місяці тому

    Would this work on a Windows VM on a mac?

  • @tianlianyang
    @tianlianyang Місяць тому

    Can you tell me how to use controlnet? Are there any tutorials? Thank you very much

  • @unijascha3005
    @unijascha3005 Місяць тому +1

    i am super unexperienced so how do I add the operator into touchdesginer network?

  • @nstDesign
    @nstDesign 3 місяці тому

    Hi! @dotsimulate, I am having issues with it, i try to install venv and all requirements and everything appears as an error
    ERROR: Exception:
    Traceback (most recent call last):
    File "C:\TestRepostreamDiffusion\StreamDiffusion\venv\Lib\site-packages\pip\_internal\cli\base_command.py", line 160, in exc_logging_wrapper
    status = run_func(*args)
    ^^^^^^^^^^^^^^^
    Not sure what to do... i don't really understand it.

  • @daddouuuu
    @daddouuuu Місяць тому

    Thisi is incredible! Why wouldn’t it work on Mac?

  • @enneagramma7304
    @enneagramma7304 5 місяців тому

    how can i chane resolution internally?

  • @excido7107
    @excido7107 4 місяці тому +1

    I know this might be a no brainer but I've tried to get a couple SDXL models working, like FenrisXL and DreamshaperXL turbo and they dont work, do I need to be using the Stabilityai huggingface models? or can I use my own comfyUI?

    • @dotsimulate
      @dotsimulate  4 місяці тому

      sd-turbo is a 2.1 based model. It is not sdxl-turbo. Models supported are 1.5 based, because of the 1.5 LCM lora and also sd-turbo. You can use local model from safetensors file if you use the full file path instead of a hugging face id.

    • @excido7107
      @excido7107 4 місяці тому

      @@dotsimulate Awesome I got 1.5 models going, starting up the stream is way faster now. I have a 4090 and can get pretty fast generations with SDXL especially utilising the turbo Loras and such, is there a way to do it with StreanDuffusion Tox or do I need to try connecting it to ComfyTD? :)

  • @Alteredfm
    @Alteredfm 2 місяці тому

    It says my python 3.1 executable not found but i added it ot my path....?

  • @liammurphy366
    @liammurphy366 5 місяців тому +2

    Does this work on mac?

  • @nathangalan7778
    @nathangalan7778 2 місяці тому

    when all the setup is great how do i import streamdiffusion in touchdesigner

  • @dalandutube
    @dalandutube 3 місяці тому

    will this work with python 3.12 or only 3.10?

  • @kinkysoybean
    @kinkysoybean 5 місяців тому

    how can i speed up the fps? :(

  • @yashasv.doodles
    @yashasv.doodles 5 місяців тому

    Truly awesome.
    Just became a patron on Patreon haha.
    I'm having a slight trouble once i start stream. After the Triton error thing , i get a message saying :
    OSError: [WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted
    Fetching 12 files: 0%| | 0/12 [00:00

    • @dotsimulate
      @dotsimulate  5 місяців тому +1

      close all other instances of the operator in TD and also close all old cmd windows. Seems like you are running into the osc server not being able to start up.

    • @yashasv.doodles
      @yashasv.doodles 5 місяців тому

      My stream keeps turning on and off ( starts and stops) and i'm getting like 0.96 fps whenever it comes on for a fraction of a second. Can you guide me as to how i can maintain my FPS and keep the stream active ? Thank you! I'm so close to this, can feeeeel it

    • @yashasv.doodles
      @yashasv.doodles 4 місяці тому

      How can i maintain a steady fps with no intermittent stops on stream?

    • @dotsimulate
      @dotsimulate  4 місяці тому

      @@yashasv.doodles might be a limitation of your graphics card. To stop the start/stop stream, there is a timer inside that loops/checks for active stream. Called osctimer. If you change the length of that timer to like a few seconds, the stream should stay on once on. You can toggle the stream active toggle if it gets stuck in the on position as well.

    • @yashasv.doodles
      @yashasv.doodles 4 місяці тому

      Okay start/stop issue is resolved. But i don't see any latent space / morphing take place on my null to the tox. Could you guide on how to connect hugging face model path/id to TD please!

  • @sbfhhhsbfhhh9986
    @sbfhhhsbfhhh9986 Місяць тому

    I encountered an issue during installation. When I click the install/download button, a window prompts me that there is no network connection, even though my network is actually work fine. What could be the reason? My version is 0.1.9.

  • @SwoleKitchen
    @SwoleKitchen 7 днів тому

    And I am exactly trying to do a firework show

  • @diegodereisfuchs
    @diegodereisfuchs 2 місяці тому

    Isthere any way of implementing it with an AMD Graphics Card?

  • @sir_bass_tian
    @sir_bass_tian Місяць тому

    hi there, im having issues. just upgraded my patreon account and downloaded the file but when i open it in TD the parameters box in the set up tab is empty. i already installed all that is needed or so i believe. can anyone please help me

  • @taniasom_
    @taniasom_ 23 дні тому

    Hi! Can you make an tutorial for Mac?

  • @dr0mp507
    @dr0mp507 4 місяці тому +1

    any chance to use control net? or masks on the inputs to control some shapes in the generation?

    • @dotsimulate
      @dotsimulate  4 місяці тому +2

      Can definitely give it a sense of the shape with input image. Not quite fast enough to run with controlnet at this point for realtime. But definitely possible non realtime with ComfyUI.

    • @dr0mp507
      @dr0mp507 4 місяці тому

      Comfy ui is in itself a whole process, I saw in their demos that they were using photoshop as an input for the generation, drawing a base shape and sent it to generation.

  • @jeonsewon.__
    @jeonsewon.__ 5 місяців тому

    Hi I want to ask you one thing about this awesome tutorial I bought your patreon and I did what you taught me but the fps came out around 0.272 and the stream kept turning off and on and off. It doesn't work properly over and over again. What's wrong with this?

    • @dotsimulate
      @dotsimulate  5 місяців тому

      The fps is likely due to computer hardware speeds
      Easy fix but for the start/stop. Send me a message on discord/Patreon and I will explain.

  • @M4Pxls
    @M4Pxls 5 місяців тому

    Looks amazing! Is it possible to make it portable with anaconda venv instead of installing directly on system?

    • @dotsimulate
      @dotsimulate  5 місяців тому +1

      It is using venv so it isn't installing to system python. A few people are using it with conda env as well, as the script can be run from cmd line. I plan to add option to support launch with conda in future.

    • @M4Pxls
      @M4Pxls 5 місяців тому

      @@dotsimulate sounds great!

  • @glev6015
    @glev6015 2 місяці тому

    How I can duble the resolution?

  • @drew9555
    @drew9555 3 місяці тому

    is anything out of pocket aside from becoming a patreon?