Train the STORM model
mainTraining is performed using main_storm.py. The following example demonstrates a multi-GPU setup to reproduce the STORM-B/8 model.
Key Configuration Details:
batch_sizeis per-GPU. The global batch size is calculated asbatch_size×#GPUs×#nodes.- Checkpoints and logs are saved to
work_dirs/<project>/<exp_name>. - For a full list of arguments, refer to
main_storm.py.
# Multi-GPU training example
torchrun --nproc_per_node=8 main_storm.py \
--project 0504_storm \
--exp_name 0504_pixel_storm \
--data_root ../storm2.3/data/STORM2 \ # replace this with your data root.
--batch_size 4 --num_iterations 100000 --lr_sched constant \
--model STORM-B/8 --num_motion_tokens 16 \
--use_sky_token --use_affine_token \
--load_depth --load_flow --load_ground \
--enable_depth_loss --enable_flow_reg_loss --flow_reg_coeff 0.005 --enable_sky_opacity_loss \
--enable_perceptual_loss --perceptual_loss_start_iter 5000 \
--enable_wandb \
--auto_resume