-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Multi-GPU training based on the paper "On Scaling Up 3D Gauss…
…ian Splatting Training" (#253) * checkin the code * nicer API * mcmc script now can works with multigpu * trainer supports multi gpu * get rid of reduduant code * func doc * support packed mode * format * more exp * multi GPU viewer * optim * cleanup * cleanup * merge main * MCMC * doc * scripts * scripts and performance --------- Co-authored-by: Ruilong Li <[email protected]>
- Loading branch information
1 parent
8a0e500
commit f92fd3f
Showing
17 changed files
with
1,364 additions
and
425 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,43 @@ | ||
RESULT_DIR=results/benchmark_4gpus | ||
|
||
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 and eval at the last step | ||
CUDA_VISIBLE_DEVICES=0,1,2,3 python simple_trainer.py --eval_steps -1 --disable_viewer --data_factor $DATA_FACTOR \ | ||
# 4 GPUs is effectively 4x batch size so we scale down the steps by 4x as well. | ||
# "--packed" reduces the data transfer between GPUs, which leads to faster training. | ||
--steps_scaler 0.25 --packed \ | ||
--data_dir data/360_v2/$SCENE/ \ | ||
--result_dir $RESULT_DIR/$SCENE/ | ||
|
||
done | ||
|
||
|
||
for SCENE in bicycle bonsai counter garden kitchen room stump; | ||
do | ||
echo "=== Eval Stats ===" | ||
|
||
for STATS in $RESULT_DIR/$SCENE/stats/val_step7499.json; | ||
do | ||
echo $STATS | ||
cat $STATS; | ||
echo | ||
done | ||
|
||
echo "=== Train Stats ===" | ||
|
||
for STATS in $RESULT_DIR/$SCENE/stats/train_step7499_rank0.json; | ||
do | ||
echo $STATS | ||
cat $STATS; | ||
echo | ||
done | ||
done |
Oops, something went wrong.