olegchomp / TouchDiffusion

TouchDesigner implementation for real-time Stable Diffusion interactive generation with StreamDiffusion.
164 stars 9 forks source link

ModelNotFoundError: no module named 'torch' in Touchdesigner #16

Closed sirgu closed 3 months ago

sirgu commented 3 months ago

Hi there! Installed everything without any major errors but now when getting in TD I have this error, in the attached screenshot

What should I do? TDiffusion_Error

olegchomp commented 3 months ago
  1. check your TD settings, sight packages menu should be empty.
  2. Your main Python environment might have torch installed in it
  3. Try with portable version
sirgu commented 3 months ago

Thx for the fast replay!!

  1. dont know which TD settings (Touch Designer / Touch Diffusion?) and what is a sight package?

  2. Python Torch looks not installed!

C:\Users\info>python Python 3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

        import torch
        Traceback (most recent call last):
        File "", line 1, in
        ModuleNotFoundError: No module named 'torch'
        print(torch.version
        ... import torch
        File "", line 2
        import torch
        ^^^^^^
        SyntaxError: invalid syntax
        print(torch.version)
        Traceback (most recent call last):
        File "", line 1, in
        NameError: name 'torch' is not defined
  1. I try now with portable TouchDiffusion! ;)
sirgu commented 3 months ago

ok portable works! very stable! thanks for your reply! AMAZINGly Insane!