Skip to content

Open-Sora: Democratizing Efficient Video Production for All

Python

cleanup

Shen-Chenhui2732598ce990
diff --git a/eval/human_eval/launch.sh b/eval/human_eval/launch.sh
index c980267..133eb05 100644
--- a/eval/human_eval/launch.sh
+++ b/eval/human_eval/launch.sh
@@ -13,8 +13,6 @@ if [[ $CKPT == *"ema"* ]]; then
else
CKPT_BASE=$(basename $CKPT)
fi
-# LOG_BASE=logs/samples/${MODEL_NAME}_${CKPT_BASE}
-# mkdir -p logs/samples
LOG_BASE=$(dirname $CKPT)/eval
mkdir -p ${LOG_BASE}
echo "Logging to $LOG_BASE"
diff --git a/eval/loss/launch.sh b/eval/loss/launch.sh
index 4eb5435..a80f791 100644
--- a/eval/loss/launch.sh
+++ b/eval/loss/launch.sh
@@ -15,9 +15,8 @@ if [[ $CKPT_PATH == *"ema"* ]]; then
else
CKPT_BASE=$(basename $CKPT_PATH)
fi
-# LOG_BASE=logs/loss/${MODEL_NAME}_${CKPT_BASE}
-# mkdir -p logs/loss
LOG_BASE=$(dirname $CKPT_PATH)/eval
+mkdir -p $LOG_BASE
echo "Logging to $LOG_BASE"
diff --git a/eval/vbench/vbench.sh b/eval/vbench/vbench.sh
deleted file mode 100644
index 9b66791..0000000
--- a/eval/vbench/vbench.sh
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/bash
-
-set -e
-
-# Base path for videos
-videos_path=$1
-model_path=$2
-output_path=$(dirname $model_path)/eval/vbench
-mkdir -p ${output_path}
-# videos_base=$(basename $videos_path)
-json_path=./eval/vbench/VBench_full_info.json
-# output_path=./evaluation_results/$videos_base
-
-# Define the dimension list
-dimensions=(
- # Quality Score
- "subject_consistency"
- "background_consistency"
- "motion_smoothness"
- "dynamic_degree"
- "aesthetic_quality"
- "imaging_quality"
- "temporal_flickering"
- # Semantic Score
- "object_class"
- "multiple_objects"
- "color"
- "spatial_relationship"
- "scene"
- "temporal_style"
- "overall_consistency"
- "human_action"
- "appearance_style"
-)
-
-# Loop over each dimension
-for i in "${!dimensions[@]}"; do
- # Get the dimension and corresponding folder
- dimension=${dimensions[i]}
-
- # Construct the video path
- echo "$dimension $videos_path"
-
- # Run the evaluation script
- vbench evaluate --videos_path $videos_path --dimension $dimension --full_json_dir $json_path --output_path $output_path
-done