Open Spr-Peach opened 8 months ago
Thanks for your explaination of installation steps. I found some typing errors and let others recognize these for installation.
No module named 'triton' --> I don't know why, but it does not affect and do not concern this. I hope this to be clear.
python img2img/multi.py --input ../images/inputs --output-dir ../images/outputs
; change the path of " --output-dir " --> output
run (place source video in path" ./images/input/"): --> there is mis-typing. python vid2vid/main.py --input ..images/inputs/input.mp4 --output ../images/outputs/output.mp4 --> No works.
When work in the directory of the "example" (temporal solving) I placeed input.mp4 in the "examples" directory and modified path like this " -input ./input.mp4 ".
Thanks @Spr-Peach!
Install StreamDiffusion (latest version, recommended):
pip install git+https://github.com/cumulo-autumn/StreamDiffusion.git@main#egg=streamdiffusion[tensorrt]
Results in (as of 5/31/2024):
DEPRECATION: git+https://github.com/cumulo-autumn/StreamDiffusion.git@main#egg=streamdiffusion[tensorrt] contains an egg fragment with a non-PEP 508 name pip 25.0 will enforce this behaviour change. A possible replacement is to use the req @ url syntax, and remove the egg fragment. Discussion can be found at https://github.com/pypa/pip/issues/11617
DEPRECATION: antlr4-python3-runtime is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
DEPRECATION: fire is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
Though the last two notices can be fixed by running:
python -m pip install --upgrade pip
and rerunning the original command
Also, if people are running into issues installing 11.8 CUDA-compatible TensorRT tools at this step (or any related step):
python -m streamdiffusion.tools.install-tensorrt
They can try this install method...
After activating .venv in the StreamDiffusion directory:
cd streamdiffusion\.venv
scripts\activate.bat
Run:
python -m pip install tensorrt-cu11
Sorting out the installation steps:
precondition:
download and install node.js from https://nodejs.org/en add "%NODE_PATH%","C:\Program Files\nodejs\" & "C:\Program Files\nodejs\node_global" to system environment variable (by default)
then install pnpm:
installation:
clone to path: C:\Users\:
create python3.10 virtual environmen and activate it:
install torch for cuda 11.8:
Install StreamDiffusion (latest version, recommended):
Install TensorRT extension:
examples:
screen function: installation: navigate to examples folder and install requirements:
measure the performance of streamdiffusion
If everything goes well press Ctrl+C to exit the current running. run:
If everything goes well press Ctrl+C to exit the current running.
img2img function (place source images in path" ./images/input/", current path: C:\Users\\StreamDiffusion\examples):
Image-to-image for a single image:
If everything goes well press Ctrl+C to exit the current running. Image-to-image for multiple images:
If everything goes well press Ctrl+C to exit the current running.
txt2img (current path: C:\Users\\StreamDiffusion\examples):
text-to-image for a single image:
If everything goes well press Ctrl+C to exit the current running. text-to-image for multiple images:
If everything goes well press Ctrl+C to exit the current running.
vid2vid: install extra dependencies (current path: C:\Users\\StreamDiffusion\examples):
run (place source video in path" ./images/input/"):
If everything goes well press Ctrl+C to exit the current running.
other command line options:
demo:
realtime-img2img: every single time to execute "realtime-img2img" function you have to run every line below from "npm i"
run (need long time for launch till webpage pop up automatically at "http://0.0.0.0:7860/"; there will be various errors messages just disregard it. see issues #130 for details):
If everything goes well press Ctrl+C to exit the current running.
realtime-txt2img:
run:
If everything goes well press Ctrl+C to exit the current running.
vid2vid:
run:
If everything goes well press Ctrl+C to exit the current running.