File tree Expand file tree Collapse file tree 2 files changed +61
-1
lines changed
examples/benchmarks/stg/final Expand file tree Collapse file tree 2 files changed +61
-1
lines changed Original file line number Diff line number Diff line change 145145gsc_utils
146146examples /benchmarks /compression /mpeg_exp
147147examples /benchmarks /compression /rebuttal
148- examples /benchmarks /viewer
148+ examples /benchmarks /viewer
149+
150+ examples /readme_on_STG.md
151+ examples /benchmarks /stg /old
Original file line number Diff line number Diff line change 1+ SCENE_DIR=" data/neural_3d"
2+ SCENE_LIST=" coffee_martini cook_spinach cut_roasted_beef flame_salmon_1 flame_steak sear_steak"
3+ #
4+
5+ RESULT_DIR=" results/stg_neu3d_compression_final_lambda_0.02_1112"
6+
7+ NUM_FRAME=300
8+
9+ run_single_scene () {
10+ local GPU_ID=$1
11+ local SCENE=$2
12+
13+ echo " Running $SCENE "
14+
15+ CUDA_VISIBLE_DEVICES=$GPU_ID python simple_trainer_STG.py compression_sim \
16+ --model_path $RESULT_DIR /$SCENE / \
17+ --data_dir $SCENE_DIR /$SCENE /colmap_0 \
18+ --result_dir $RESULT_DIR /$SCENE / \
19+ --duration $NUM_FRAME \
20+ --entropy_model_opt \
21+ --rd_lambda 0.02
22+ # --profiler_enabled
23+
24+ CUDA_VISIBLE_DEVICES=$GPU_ID python simple_trainer_STG.py default \
25+ --model_path $RESULT_DIR /$SCENE / \
26+ --data_dir $SCENE_DIR /$SCENE /colmap_0 \
27+ --result_dir $RESULT_DIR /$SCENE / \
28+ --duration $NUM_FRAME \
29+ --lpips_net vgg \
30+ --compression stg \
31+ --ckpt $RESULT_DIR /$SCENE /ckpts/ckpt_best_rank0.pt
32+ }
33+
34+ GPU_LIST=(0 1 2 3 4 5)
35+ GPU_COUNT=${# GPU_LIST[@]}
36+
37+ SCENE_IDX=-1
38+
39+ for SCENE in $SCENE_LIST ;
40+ do
41+ SCENE_IDX=$(( SCENE_IDX + 1 ))
42+ {
43+ run_single_scene ${GPU_LIST[$SCENE_IDX]} $SCENE
44+ } &
45+
46+ done
47+
48+ wait
49+
50+ # Zip the compressed files and summarize the stats
51+ if command -v zip & > /dev/null
52+ then
53+ echo " Zipping results"
54+ python benchmarks/stg/summarize_stats.py --results_dir $RESULT_DIR --scenes $SCENE_LIST --num_frame $NUM_FRAME
55+ else
56+ echo " zip command not found, skipping zipping"
57+ fi
You can’t perform that action at this time.
0 commit comments