Home Creators Posts Import Register Favorites Logout

Downloads

Content

( 0.1.4 ) Fixes config / model error which would happen when first loading 0.1.3 due to not removing items from config.Apologies if that caused any confusion, but glad it was pointed out to me so I could catch after only a few hours. Thank you to all who report bugs !!

Operator has been updated in the 0.1.3 post. 

Comments

Andrea Tamburrini

when installing venv + all req there is an issue due to nvidia-pyindex. I ll try try fresch install

영태 김

When I run it, this error appears. What is the reason? NotImplementedError: Cannot copy out of meta tensor; no data!

So You Think You’re an Artist

When I click on "Install SD" (after cloning the git repo) nothing happens. I see two windows open and close very quicky. no venv folder gets created. I tried clicking on "Download/Update SD" and update repo and I also see a window flash onscreen very briefly. the textport reported: ==================================== Installation Details: ------------------------------------ Python 3.10 executable: C:\Users\tsepe\AppData\Local\Microsoft\WindowsApps\python.exe CUDA version: cu121 Base folder for venv: C:/Users/tsepe/Documents/StreamDiffusionProject/StreamDiffusion Installing packages for: StreamDiffusionTD ==================================== Writing batch file for installation... Executing batch file: StreamDiffusion\Install_StreamDiffusion.bat StreamDiffusion installation initiated with detected Python 3.10 and CUDA version. python >>> The start and install bat files were created in the folder but it seems the Install_StreamDiffusion.bat didn't want to run from TD. So I opened a command prompt and ran it directly so I could watch the output.

So You Think You’re an Artist

another error with the tensorrt. {SOLVED] I also had this error trying to install StreamDiffusion directly using their instructions on the github repo. RuntimeError: Error running command: -m pip install --pre --extra-index-url https://pypi.nvidia.com tensorrt==9.0.1.post11.dev4 --no-cache-dir the error on line 34: StreamDiffusion\venv\lib\site-packages\streamdiffusion\toos\install-tensorrt.py and this appears to go all the way up the chain to Nvidia. if you goto the https://pypi.org/project/tensorrt/9.0.1.post11.dev4/ site you'll find this: WARNING: This project is not functional and is a placeholder from NVIDIA. To install, please execute the following: pip install --no-cache-dir --extra-index-url https://pypi.nvidia.com tensorrt replacing the erroneous line with the one from pypi installed tensorrt 9.3.0.post12.dev1

DotSimulate

I would need more of the message. Could you send via message

DotSimulate

Did it run the installation .bat when running outside TD?

So You Think You’re an Artist

I have to run the installation and start .bat manually outside of TD in order for them to work. the "stop stream" button will kill the stream and close my external window. but the "start stream" still does not work from within TD. Maybe I don't have my TD file in the right directory?

So You Think You’re an Artist

well now it is working! I think TD might be picky about paths to the folders? it has to be an absolute path not a relative path. I was also having issues with the model files, it kept trying to connect to hugging face and throwing errors about the model names beinfg wrong. and I think that may have to do with using forward slashes as opposed to back slashes in the path?

Ember Yee

Same Error, hope it can be fixed as soon as possible.

So You Think You’re an Artist

read to the bottom of my comment. you can edit a single line a resolve this. although it is arguable if tensorrt will make a huge difference in speed?

DotSimulate

Yes. You are correct on both. For the Basefolder parameter, it should be a absolute path, although I have been building in support for relative. Better to be absolute so you can use it from any project with that parameter val. And the model id is still a bit tricky. for hugging face id you do need to use forward slash currently. I need to build some better logic for checking and parsing that parameter.

DotSimulate

Tensorrt should boost by a good bit for sure. You could copy over my PR code suggestion and it should make it work when installing from TD.

영태 김

If you would like to send me a screenshot of the error message, please leave an email where I can receive it and I will send it to you.

FHZ

Awesome work man!, Like to join the discord :)

Giulio Pernice

hi awesome work i have a problem with not squared resolution can you help me?

Andrea Tamburrini

No. I try to uninstall cuda toolkit and its driver. Install cuda 11.8 and 12.1 from scratch, but nothing.

Andrea Tamburrini

This is the error "" Creating Python venv at: "C:/Users/sandr/Desktop/SD TD test/StreamDiffusion\venv" Attempting to activate virtual environment... Virtual environment activated. Installing nvidia-pyindex to ensure access to NVIDIA-specific packages... Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com Collecting nvidia-pyindex Downloading nvidia-pyindex-1.0.9.tar.gz (10 kB) Preparing metadata (setup.py) ... done Using legacy 'setup.py install' for nvidia-pyindex, since package 'wheel' is not installed. Installing collected packages: nvidia-pyindex Running setup.py install for nvidia-pyindex ... error error: subprocess-exited-with-error × Running setup.py install for nvidia-pyindex did not run successfully. │ exit code: 1 ╰─> [46 lines of output] C:\Users\sandr\Desktop\SD TD test\StreamDiffusion\venv\lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer. warnings.warn( WARNING: The wheel package is not available. running install C:\Users\sandr\Desktop\SD TD test\StreamDiffusion\venv\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( Traceback (most recent call last): File "C:\Users\sandr\AppData\Local\Temp\pip-install-35y0_htu\nvidia-pyindex_354451ec4e8146d2bd10e3c2ec54ae92\nvidia_pyindex\utils.py", line 20, in get_configuration_files output = subprocess.check_output(command, stderr=subprocess.STDOUT) File "C:\Users\sandr\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 420, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "C:\Users\sandr\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 524, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['C:\\Users\\sandr\\Desktop\\SD TD test\\StreamDiffusion\\venv\\Scripts\\python.exe', 'TD', 'testStreamDiffusionvenvScriptspython.exe', '-c', 'from pip._internal.configuration import get_configuration_files; print(get_configuration_files())']' returned non-zero exit status 2. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\sandr\AppData\Local\Temp\pip-install-35y0_htu\nvidia-pyindex_354451ec4e8146d2bd10e3c2ec54ae92\setup.py", line 238, in setup( File "C:\Users\sandr\Desktop\SD TD test\StreamDiffusion\venv\lib\site-packages\setuptools\__init__.py", line 87, in setup return distutils.core.setup(**attrs) File "C:\Users\sandr\Desktop\SD TD test\StreamDiffusion\venv\lib\site-packages\setuptools\_distutils\core.py", line 177, in setup return run_commands(dist) File "C:\Users\sandr\Desktop\SD TD test\StreamDiffusion\venv\lib\site-packages\setuptools\_distutils\core.py", line 193, in run_commands dist.run_commands() File "C:\Users\sandr\Desktop\SD TD test\StreamDiffusion\venv\lib\site-packages\setuptools\_distutils\dist.py", line 968, in run_commands self.run_command(cmd) File "C:\Users\sandr\Desktop\SD TD test\StreamDiffusion\venv\lib\site-packages\setuptools\dist.py", line 1217, in run_command super().run_command(command) File "C:\Users\sandr\Desktop\SD TD test\StreamDiffusion\venv\lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command cmd_obj.run() File "C:\Users\sandr\AppData\Local\Temp\pip-install-35y0_htu\nvidia-pyindex_354451ec4e8146d2bd10e3c2ec54ae92\setup.py", line 172, in run _install_nvidia_pypi_index() File "C:\Users\sandr\AppData\Local\Temp\pip-install-35y0_htu\nvidia-pyindex_354451ec4e8146d2bd10e3c2ec54ae92\setup.py", line 71, in _install_nvidia_pypi_index config_filedict = get_configuration_files() File "C:\Users\sandr\AppData\Local\Temp\pip-install-35y0_htu\nvidia-pyindex_354451ec4e8146d2bd10e3c2ec54ae92\nvidia_pyindex\utils.py", line 24, in get_configuration_files raise RuntimeError(output) from e RuntimeError: C:\Users\sandr\AppData\Local\Programs\Python\Python310\python.exe: can't open file 'C:\\Users\\sandr\\AppData\\Local\\Temp\\pip-install-35y0_htu\\nvidia-pyindex_354451ec4e8146d2bd10e3c2ec54ae92\\TD': [Errno 2] No such file or directory %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% COMMAND: InstallCommand %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure × Encountered error while trying to install package. ╰─> nvidia-pyindex note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.""

Andrea Tamburrini

now I try to install nvidia -pyindex in the site-package with admin cmd

Santiago Torres G.

Hey DotSimulate, magnificent work doing this integration, thanks a lot man. It'd be great to have a tutorial so we can learn how to setup this new version.

Davey Donaldson

hey so I cannot get the stream to start on any of these, is there a troubleshooting info?? I have followed the youtube video but I just cannot get the stream to start, any help is always appreciated

fawce

Great stuff, works like a dream 🤘🏻

So You Think You’re an Artist

What are the requirements for the models? I was able to get Realistic_Vision_V6 to load, which is an SD1.5 model, but it doesn't want to load an SDXL1.0 model such as JuggernautXL_V8

So You Think You’re an Artist

digging around a bit, i think we want to use models that are tagged "stableDiffusionPipeline" such as runwayml/stable-diffusion-v1-5 or stablediffusionapi/juggernaut-xl-v8 the version of juggernaut I was trying to use is a RunDiffusion model

DotSimulate

yep it supports 1.5 models and sd-turbo (which is 2.1 based)

Janus

after pressing on Install TensorRT I have this error: note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for tensorrt Failed to build tensorrt ERROR: Could not build wheels for tensorrt, which is required to install pyproject.toml-based projects Error running command: -m pip install --pre --extra-index-url https://pypi.nvidia.com tensorrt==9.0.1.post11.dev4 --no-cache-dir Traceback (most recent call last): File "C:\Users\matte\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\matte\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "D:\StreamDiffusion\venv\lib\site-packages\streamdiffusion\tools\install-tensorrt.py", line 54, in fire.Fire(install) File "D:\StreamDiffusion\venv\lib\site-packages\fire\core.py", line 141, in Fire component_trace = _Fire(component, args, parsed_flag_args, context, name) File "D:\StreamDiffusion\venv\lib\site-packages\fire\core.py", line 475, in _Fire component, remaining_args = _CallAndUpdateTrace( File "D:\StreamDiffusion\venv\lib\site-packages\fire\core.py", line 691, in _CallAndUpdateTrace component = fn(*varargs, **kwargs) File "D:\StreamDiffusion\venv\lib\site-packages\streamdiffusion\tools\install-tensorrt.py", line 33, in install run_pip( File "D:\StreamDiffusion\venv\lib\site-packages\streamdiffusion\pip_utils.py", line 52, in run_pip return run_python(f"-m pip {command}", env) File "D:\StreamDiffusion\venv\lib\site-packages\streamdiffusion\pip_utils.py", line 46, in run_python raise RuntimeError(f"Error running command: {command}") RuntimeError: Error running command: -m pip install --pre --extra-index-url https://pypi.nvidia.com tensorrt==9.0.1.post11.dev4 --no-cache-dir TensorRT installation finished

dvdbrg

hi there ! is it possible to do img2img with streamdiffusion ? i was playing with the weights but it seems it sticking to the prompt.

dvdbrg

Sweet. Can you maybe send elaborate how you achieved this ? Thy in advance 🙏🏻edit* nevermind i got it to work. The steps work very different then in sd og

Julii Haid

raise HFValidationError( huggingface_hub.utils._validators.HFValidationError: Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: ''. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\Usuario\AppData\Local\Programs\Python\Python310\lib\multiprocessing\process.py", line 315, in _bootstrap self.run() File "C:\Users\Usuario\AppData\Local\Programs\Python\Python310\lib\multiprocessing\process.py", line 108, in run self._target(*self._args, **self._kwargs) File "C:\StreamDiffusion\StreamDiffusion\streamdiffusionTD\main_ndi.py", line 212, in image_generation_process stream = StreamDiffusionWrapper( File "C:\StreamDiffusion\StreamDiffusion\streamdiffusionTD\..\utils\wrapper.py", line 152, in __init__ self.stream: StreamDiffusion = self._load_model( File "C:\StreamDiffusion\StreamDiffusion\streamdiffusionTD\..\utils\wrapper.py", line 422, in _load_model pipe: StableDiffusionPipeline = StableDiffusionPipeline.from_single_file( File "C:\StreamDiffusion\StreamDiffusion\venv\lib\site-packages\diffusers\loaders\single_file.py", line 235, in from_single_file raise ValueError( ValueError: The provided path is either not a file or a valid huggingface URL was not provided. Valid URLs begin with https://huggingface.co/, huggingface.co/, hf.co/, https://hf.co/

Janus

Solved!

DotSimulate

if using tensorrt, 512x512 is the only resolution supported.

DotSimulate

ffor the Model ID / Path parameter in StreamDiffusionTD tox, make sure to use forward slash in huggingface id or the full file path to a 1.5 .safetensors model file path. In the 0.1.3 release post, I have instructions on how to load the sd-turbo model locally, but for now I would advise using the normal huggingface id or 1.5 model if it is working. Everytime the stream starts, it normally checks model info with the huggingface api, which has caused a few issue for some when starting the stream, such as the one you hit.

Lorenzo Forges

Hi there! when i start the stream i get an error saying: Traceback (most recent call last): file "C:\Streamdiffusion\streamdiffusionID\main_ndi.py", line 20, in from utils.viewer import receive_images ModuleNotFoundError: no module named 'utils'

DotSimulate

Make sure to have the Basefolder set correctly to your working install of StreamDiffusion (folder with venv inside). if venv doesn't exist, you need to hit the Install SD pulse and wait for it to download all of the required python libraries.

Lorenzo Forges

Hi, thanks for the reply. anyway I checked and I have already installed venv in the base folder.

Indra's Mirror

Edit: Solved - figured it out, I'm stll only getting around 11 FPS, is there a way to boost it? or is that kind of the standard? Hi Dot, thank you so much for your SD tox in TD, it's been amazing, I just had a question, I'm getting about 10-15 FPS with SD-Turbo and Dreamshaper 8, when I try run it with Custom LCM, it doesnt seem to work. When loading Custom LCM it only lets me select a folder, do I select my LCM lora folder and run it with the LCM lora active in Lora?

DotSimulate

For the LCM or VAE, they need to be in diffuser format and you should link the folder. The fourth pulse in the Install page will download the two locally and will should you the file structure.

Indra's Mirror

Yes awesome thank you. Is there a way to increase the FPS or is it kind of maxed out at 15 or so? Also is there going to be future support for SDXL turbo, or it'll have the wait for SD to implement it in its pipeline?

DotSimulate

Im guessing that you are on 2023 experimental release and not TD post ofifical 2023 release. Upgrading to official 2023 should fix.

Nick Candler

Hi! I have been trying to install this for hours. TouchDesigner's python interpreter is set to 3.11 in my version, but my conda env is 3.10.1 If I don't set the system path to my environment with python==3.10.1, I get no errors in the module, but I get an error on when I try to install SD saying no python 3.10.1 executable can be found. If I set my sys.path to my conda environment with python=3.10.1, the error disappears but instead I fail to import numpy. This is the error: "Please note and check the following: * The Python version is: Python3.11 from "C:\Program Files\Derivative\TouchDesigner\bin\TouchDesigner.exe" * The NumPy version is: "1.24.1" and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help. Original error was: No module named 'numpy.core._multiarray_umath'" I suspect it's an issue between TD's chosen interpreter and my environment libraries..... but I can't figure it out.

Mark

Yes I am! I'll try it! thankyou <3

各均 鄭

seems that I can't change resolution like v0.1.2~~

DotSimulate

if using tensorrt you are stuck to 512x512.

oscar dominguez

I have this problem and I don't know how to solve it: Process Process-4: Traceback (most recent call last): File "C:\test\StreamDiffusion\streamdiffusionTD\..\utils\wrapper.py", line 417, in _load_model pipe: StableDiffusionPipeline = StableDiffusionPipeline.from_pretrained( File "C:\test\StreamDiffusion\venv\lib\site-packages\diffusers\pipelines\pipeline_utils.py", line 1090, in from_pretrained cached_folder = cls.download( File "C:\test\StreamDiffusion\venv\lib\site-packages\diffusers\pipelines\pipeline_utils.py", line 1649, in download info = model_info( File "C:\test\StreamDiffusion\venv\lib\site-packages\huggingface_hub\utils\_validators.py", line 110, in _inner_fn validate_repo_id(arg_value) File "C:\test\StreamDiffusion\venv\lib\site-packages\huggingface_hub\utils\_validators.py", line 164, in validate_repo_id raise HFValidationError( huggingface_hub.utils._validators.HFValidationError: Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: 'C:\test\StreamDiffusion\sd_xl_turbo_1.0_fp16.safetensors'. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\multiprocessing\process.py", line 314, in _bootstrap self.run() File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\multiprocessing\process.py", line 108, in run self._target(*self._args, **self._kwargs) File "C:\test\StreamDiffusion\streamdiffusionTD\main_ndi.py", line 212, in image_generation_process stream = StreamDiffusionWrapper( File "C:\test\StreamDiffusion\streamdiffusionTD\..\utils\wrapper.py", line 152, in __init__ self.stream: StreamDiffusion = self._load_model( File "C:\test\StreamDiffusion\streamdiffusionTD\..\utils\wrapper.py", line 422, in _load_model pipe: StableDiffusionPipeline = StableDiffusionPipeline.from_single_file( File "C:\test\StreamDiffusion\venv\lib\site-packages\diffusers\loaders\single_file.py", line 261, in from_single_file pipe = download_from_original_stable_diffusion_ckpt( File "C:\test\StreamDiffusion\venv\lib\site-packages\diffusers\pipelines\stable_diffusion\convert_from_ckpt.py", line 1745, in download_from_original_stable_diffusion_ckpt pipe = pipeline_class( TypeError: StableDiffusionPipeline.__init__() got an unexpected keyword argument 'text_encoder_2'

Kinski Onggara

encountering this problem as well, anyone solved it?

Retryxable

How did you solve it? I have same issue

tmoney

I'm having the exact same problem with every version I try