For original README, please refer to README_original.md.
conda env create -f environment.yml
conda activate vc
cd streamdiffusion
python setup.py develop easy_install streamdiffusion[tensorrt]
python -m streamdiffusion.tools.install-tensorrt
python -m pip install av
git submodule init
git submodule update
cd diffusers
python -m pip install -e .
python -m pip install gradio gradio_log
python -m pip install -U vidgear[asyncio]
- profiling controlnet for image generation
for fbs in 1; do
CUDA_VISIBLE_DEVICES=1 \
python scripts/profile_controlnet.py \
--accel trt \
--num_inference_steps 4 \
--strength 1.0 \
--cfg_type none \
--size 256 --cond_size 64 \
--frame_bff_size ${fbs}
done
- video demo
CUDA_VISIBLE_DEVICES=3 \
python scripts/video_demo.py \
--video_path test.mp4 \
--prompt "dog running" \
--size 256
- online video demo
# "https://youtu.be/xuP4g7IDgDM?si=LYOt1xmuOrGvOMUB"
# "stunning sunset seen from the sea"
CUDA_VISIBLE_DEVICES=3 \
python scripts/video_stream_yt_demo.py \
--video_url "https://youtu.be/geNCpS885tg?si=B5OLbSyEzBHjShDg" \
--prompt "a man washing a car, cartoon, animation" \
--size 256