Closed xuguangyi1999 closed 1 year ago
This allows training on your local computer:
python -m torch.distributed.launch --nproc_per_node=8 --use_env main.py \ --data-path ./data/in1k \ --output_dir ./run \ --input-size 224 --batch-size 32 --dist-eval \ --model biformer_small \
You may compare the two launch commands below to figure out what to do.
hydra_main.py
is just a wrapper ofmain.py
to support hydra configuration system and slurm environments. You may read the code ofhydra_main.py
to figure out how it works if you want.Maybe I will update the script later to make it have a consistent launch command for both local environment and slurm environment.