StreamDiffusionWebcam: A Solution for Real-Time Diffusion Generation
Authors: Erenalp Çetintürk
This projects code was copied from this. This project added the ability to use the camera insted of the screen for diffusion.
We really thank for the projects owners to allow for me to use their code.
- Model Acceleration
- This project optimizes the model.
- Fast
- This project project run on RTX3050 and got 5 FPS.
git clone https://github.com/ErenalpCet/StreamDiffusionWebcam.gitcd StreamDiffusionWebcamconda create -n webcamdiffusion python=3.10conda activate webcamdiffusionSelect the appropriate version for your system.
CUDA 11.8
pip3 install torch==2.1.0 torchvision==0.16.0 xformers --index-url https://download.pytorch.org/whl/cu118CUDA 12.1
pip3 install torch==2.1.0 torchvision==0.16.0 xformers --index-url https://download.pytorch.org/whl/cu121CUDA 12.4
pip3 install torch==2.1.0 torchvision==0.16.0 xformers --index-url https://download.pytorch.org/whl/cu124pip install git+https://github.com/cumulo-autumn/StreamDiffusion.git@main#egg=streamdiffusion[tensorrt]python -m streamdiffusion.tools.install-tensorrtpip install -r requirements.txtIn main.py line 149 and 150 please customize the prompts to your needs.
python3 main.py