Initial release of SwiftFormer
This commit is contained in:
21
dist_train.sh
Normal file
21
dist_train.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
#!/usr/bin/env bash
|
||||
|
||||
IMAGENET_PATH=$1
|
||||
nGPUs=$2
|
||||
|
||||
## SwiftFormer-XS
|
||||
python -m torch.distributed.launch --nproc_per_node=$nGPUs --use_env main.py --model SwiftFormer_XS --aa="" --mixup 0 --cutmix 0 --data-path "$IMAGENET_PATH" \
|
||||
--output_dir SwiftFormer_XS_results
|
||||
|
||||
## SwiftFormer-S
|
||||
python -m torch.distributed.launch --nproc_per_node=$nGPUs --use_env main.py --model SwiftFormer_S --data-path "$IMAGENET_PATH" \
|
||||
--output_dir SwiftFormer_S_results
|
||||
|
||||
## SwiftFormer-L1
|
||||
python -m torch.distributed.launch --nproc_per_node=$nGPUs --use_env main.py --model SwiftFormer_L1 --data-path "$IMAGENET_PATH" \
|
||||
--output_dir SwiftFormer_L1_results
|
||||
|
||||
## SwiftFormer-L3
|
||||
python -m torch.distributed.launch --nproc_per_node=$nGPUs --use_env main.py --model SwiftFormer_L3 --data-path "$IMAGENET_PATH" \
|
||||
--output_dir SwiftFormer_L3_results
|
||||
Reference in New Issue
Block a user