Skip to content

HunyuanVideo: A Systematic Framework For Large Video Generation Model

polish code

feifeibeare89c0d5ad177
diff --git a/README.md b/README.md
index ceb9026..48f118c 100644
--- a/README.md
+++ b/README.md
@@ -284,8 +284,10 @@ conda install pytorch==2.5.0 torchvision==0.20.0 torchaudio==2.5.0 pytorch-cuda=
python -m pip install -r requirements_xdit.txt
```
-# You can skip the above steps and pull the pre-built docker image directly
-# docker pull thufeifeibear/hunyuanvideo:latest
+You can skip the above steps and pull the pre-built docker image directly, which is built from [docker/Dockerfile_xDiT](./docker/Dockerfile_xDiT)
+
+```
+docker pull thufeifeibear/hunyuanvideo:latest
```
### Usage
diff --git a/scripts/run_sample_video.sh b/scripts/run_sample_video.sh
index f48760c..68175a9 100644
--- a/scripts/run_sample_video.sh
+++ b/scripts/run_sample_video.sh
@@ -4,5 +4,39 @@
TOKENIZERS_PARALLELISM=false torchrun --nproc_per_node=8 \
sample_video.py --video-size 1280 720 --video-length 129 \
--infer-steps 50 --prompt "A cat walks on the grass, realistic style." \
- --flow-reverse --ulysses-degree=8 --ring-degree=1 --save-path ./results
+ --flow-reverse --ulysses-degree=8 --ring-degree=1 --seed 42 --save-path ./results
+TOKENIZERS_PARALLELISM=false torchrun --nproc_per_node 4 \
+ sample_video.py --video-size 1280 720 --video-length 129 \
+ --infer-steps 50 --prompt "A cat walks on the grass, realistic style." \
+ --flow-reverse --ulysses-degree=4 --ring-degree=1 --seed 42 --save-path ./results
+
+TOKENIZERS_PARALLELISM=false torchrun --nproc_per_node=2 \
+ sample_video.py --video-size 1280 720 --video-length 129 \
+ --infer-steps 50 --prompt "A cat walks on the grass, realistic style." \
+ --flow-reverse --ulysses-degree=2 --ring-degree=1 --seed 42 --save-path ./results
+
+TOKENIZERS_PARALLELISM=false torchrun --nproc_per_node=1 \
+ sample_video.py --video-size 1280 720 --video-length 129 \
+ --infer-steps 50 --prompt "A cat walks on the grass, realistic style." \
+ --flow-reverse --ulysses-degree=1 --ring-degree=1 --seed 42 --save-path ./results
+
+TOKENIZERS_PARALLELISM=false torchrun --nproc_per_node=6 \
+ sample_video.py --video-size 960 960 --video-length 129 \
+ --infer-steps 50 --prompt "A cat walks on the grass, realistic style." \
+ --flow-reverse --ulysses-degree=6 --ring-degree=1 --seed 42 --save-path ./results
+
+TOKENIZERS_PARALLELISM=false torchrun --nproc_per_node=3 \
+ sample_video.py --video-size 960 960 --video-length 129 \
+ --infer-steps 50 --prompt "A cat walks on the grass, realistic style." \
+ --flow-reverse --ulysses-degree=3 --ring-degree=1 --seed 42 --save-path ./results
+
+TOKENIZERS_PARALLELISM=false torchrun --nproc_per_node=2 \
+ sample_video.py --video-size 960 960 --video-length 129 \
+ --infer-steps 50 --prompt "A cat walks on the grass, realistic style." \
+ --flow-reverse --ulysses-degree=2 --ring-degree=1 --seed 42 --save-path ./results
+
+TOKENIZERS_PARALLELISM=false torchrun --nproc_per_node=1 \
+ sample_video.py --video-size 1280 720 --video-length 129 \
+ --infer-steps 50 --prompt "A cat walks on the grass, realistic style." \
+ --flow-reverse --ulysses-degree=1 --ring-degree=1 --seed 42 --save-path ./results