Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch evaluation script doesn't work out of the box #506

Open
jerinphilip opened this issue Nov 26, 2024 · 0 comments
Open

Batch evaluation script doesn't work out of the box #506

jerinphilip opened this issue Nov 26, 2024 · 0 comments

Comments

@jerinphilip
Copy link

jerinphilip commented Nov 26, 2024

Maybe I'm missing something, but I had to do the following to get the command from README.md running:

# run batch evaluation
bash examples/benchmarks/basic.sh
diff --git a/examples/benchmarks/basic.sh b/examples/benchmarks/basic.sh
index 6b043c56..cd53d1f2 100644
--- a/examples/benchmarks/basic.sh
+++ b/examples/benchmarks/basic.sh
@@ -1,6 +1,7 @@
 SCENE_DIR="data/360_v2"
 RESULT_DIR="results/benchmark"
 SCENE_LIST="garden bicycle stump bonsai counter kitchen room" # treehill flowers
+EXAMPLES_DIR="examples"
 RENDER_TRAJ_PATH="ellipse"
 
 for SCENE in $SCENE_LIST;
@@ -14,7 +15,7 @@ do
     echo "Running $SCENE"
 
     # train without eval
-    CUDA_VISIBLE_DEVICES=0 python simple_trainer.py default --eval_steps -1 --disable_viewer --data_factor $DATA_FACTOR \
+    CUDA_VISIBLE_DEVICES=0 python ${EXAMPLES_DIR}/simple_trainer.py default --eval_steps -1 --disable_viewer --data_factor $DATA_FACTOR \
         --render_traj_path $RENDER_TRAJ_PATH \
         --data_dir data/360_v2/$SCENE/ \
         --result_dir $RESULT_DIR/$SCENE/
@@ -22,7 +23,7 @@ do
     # run eval and render
     for CKPT in $RESULT_DIR/$SCENE/ckpts/*;
     do
-        CUDA_VISIBLE_DEVICES=0 python simple_trainer.py default --disable_viewer --data_factor $DATA_FACTOR \
+        CUDA_VISIBLE_DEVICES=0 python ${EXAMPLES_DIR}/simple_trainer.py default --disable_viewer --data_factor $DATA_FACTOR \
             --render_traj_path $RENDER_TRAJ_PATH \
             --data_dir data/360_v2/$SCENE/ \
             --result_dir $RESULT_DIR/$SCENE/ \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant