-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consolidate simple_trainer.py and simple_trainer_mcmc.py (#325)
* Consolidate simple_trainer.py and simple_trainer_mcmc.py * ruff * black * black * reset glm * Revert docstring changes, fix docs Makefile * simple_trainer.py -> simple_trainer.py default * minor fixes * format * mcmc script --------- Co-authored-by: Ruilong Li <[email protected]>
- Loading branch information
Showing
22 changed files
with
188 additions
and
872 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
RESULT_DIR=results/benchmark_mcmc_1M | ||
CAP_MAX=1000000 | ||
|
||
# for SCENE in bicycle bonsai counter garden kitchen room stump; | ||
# do | ||
# if [ "$SCENE" = "bicycle" ] || [ "$SCENE" = "stump" ] || [ "$SCENE" = "garden" ]; then | ||
# DATA_FACTOR=4 | ||
# else | ||
# DATA_FACTOR=2 | ||
# fi | ||
|
||
# echo "Running $SCENE" | ||
|
||
# # train without eval | ||
# CUDA_VISIBLE_DEVICES=0 python simple_trainer.py mcmc --eval_steps -1 --disable_viewer --data_factor $DATA_FACTOR \ | ||
# --strategy.cap-max $CAP_MAX \ | ||
# --data_dir data/360_v2/$SCENE/ \ | ||
# --result_dir $RESULT_DIR/$SCENE/ | ||
|
||
# # run eval and render | ||
# for CKPT in $RESULT_DIR/$SCENE/ckpts/*; | ||
# do | ||
# CUDA_VISIBLE_DEVICES=0 python simple_trainer.py mcmc --disable_viewer --data_factor $DATA_FACTOR \ | ||
# --strategy.cap-max $CAP_MAX \ | ||
# --data_dir data/360_v2/$SCENE/ \ | ||
# --result_dir $RESULT_DIR/$SCENE/ \ | ||
# --ckpt $CKPT | ||
# done | ||
# done | ||
|
||
|
||
for SCENE in bicycle bonsai counter garden kitchen room stump; | ||
do | ||
echo "=== Eval Stats ===" | ||
|
||
for STATS in $RESULT_DIR/$SCENE/stats/val*.json; | ||
do | ||
echo $STATS | ||
cat $STATS; | ||
echo | ||
done | ||
|
||
echo "=== Train Stats ===" | ||
|
||
for STATS in $RESULT_DIR/$SCENE/stats/train*_rank0.json; | ||
do | ||
echo $STATS | ||
cat $STATS; | ||
echo | ||
done | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ opencv-python | |
tyro | ||
Pillow | ||
tensorboard | ||
pyyaml |
Oops, something went wrong.