Skip to content

HunyuanVideo: A Systematic Framework For Large Video Generation Model

update seed logic

jacobkong73847ae42e75
diff --git a/README.md b/README.md
index 099f4b2..ef2cd5b 100644
--- a/README.md
+++ b/README.md
@@ -238,7 +238,6 @@ python3 sample_video.py \
--infer-steps 30 \
--prompt "a cat is running, realistic." \
--flow-reverse \
- --seed 0 \
--use-cpu-offload \
--save-path ./results
```
@@ -257,7 +256,7 @@ We list some more useful configurations for easy usage:
| `--flow-shift` | 9.0 | Shift factor for flow matching schedulers |
| `--flow-reverse` | False | If reverse, learning/sampling from t=1 -> t=0 |
| `--neg-prompt` | None | The negative prompt for video generation |
-| `--seed` | 0 | The random seed for generating video |
+| `--seed` | None | The random seed for generating video, if None, we init a random sedd |
| `--use-cpu-offload` | False | Use CPU offload for the model load to save more memory, necessary for high-res video generation |
| `--save-path` | ./results | Path to save the generated video |
diff --git a/hyvideo/config.py b/hyvideo/config.py
index 3f34c33..9894eba 100644
--- a/hyvideo/config.py
+++ b/hyvideo/config.py
@@ -329,7 +329,7 @@ def add_inference_args(parser: argparse.ArgumentParser):
"seed column if available, otherwise use the fixed `seed` value. `prompt` will use the "
"fixed `seed` value.",
)
- group.add_argument("--seed", type=int, default=0, help="Seed for evaluation.")
+ group.add_argument("--seed", type=int, default=None, help="Seed for evaluation.")
# Classifier-Free Guidance
group.add_argument(
diff --git a/scripts/run_sample_video.sh b/scripts/run_sample_video.sh
index 4a6856e..1d5f234 100644
--- a/scripts/run_sample_video.sh
+++ b/scripts/run_sample_video.sh
@@ -8,6 +8,5 @@ python3 sample_video.py \
--embedded-cfg-scale 6.0 \
--infer-steps 30 \
--flow-reverse \
- --seed 0 \
--use-cpu-offload \
--save-path ./results \