Skip to content

Open-Sora: Democratizing Efficient Video Production for All

Python

fix launch error

Shen-Chenhuif0a9fc32b057
diff --git a/eval/README.md b/eval/README.md
index bf349b9..31b294a 100644
--- a/eval/README.md
+++ b/eval/README.md
@@ -10,7 +10,7 @@ bash eval/sample.sh /path/to/ckpt num_frames model_name_for_log -1
# video (2a 2b 2c ...)
bash eval/sample.sh /path/to/ckpt num_frames model_name_for_log -2a
# launch 8 jobs at once (you must read the script to understand the details)
-bash eval/human_eval/launch.sh /path/to/ckpt /path/to/ckpt num_frames model_name_for_log
+bash eval/human_eval/launch.sh /path/to/ckpt num_frames model_name_for_log
```
## Rectified Flow Loss
diff --git a/eval/sample.sh b/eval/sample.sh
index 3ae760d..5d94d23 100644
--- a/eval/sample.sh
+++ b/eval/sample.sh
@@ -7,12 +7,22 @@ CKPT=$1
NUM_FRAMES=$2
MODEL_NAME=$3
+echo "NUM_FRAMES=${NUM_FRAMES}"
+
if [ -z "${NUM_FRAMES}" ]; then
+ echo "you need to pass NUM_FRAMES"
+else
let DOUBLE_FRAMES=$2*2
let QUAD_FRAMES=$2*4
let OCT_FRAMES=$2*8
fi
+echo "DOUBLE_FRAMES=${DOUBLE_FRAMES}"
+echo "QUAD_FRAMES=${QUAD_FRAMES}"
+echo "OCT_FRAMES=${OCT_FRAMES}"
+
+
+
CMD="python scripts/inference.py configs/opensora-v1-2/inference/sample.py"
CMD_REF="python scripts/inference-long.py configs/opensora-v1-2/inference/sample.py"
if [[ $CKPT == *"ema"* ]]; then