MIM support various kinds of abbreviations, which can be used to shorten the length of commands:
Sub-command Name: abbreviation can be used as long as its the prefix of one and only one subcommand, for example:
g
stands for sub-command gridsearch
tr
stands for sub-command train
Codebase Name: abbreviation can be used as long as its the substring of one and only one codebase name, for example:
act
stands for codebase mmaction
cls
stands for codebase mmcls
Abbreviation for argument / option names: defined in each sub-command, for example, for sub-command train
:
-g
stands for --gpus-per-node
-p
stands for --partition
# Full Length
mim test mmcls resnet101_b16x8_cifar10.py --checkpoint tmp/epoch_3.pth \
--gpus 8 --metrics accuracy --partition pname --gpus-per-node 8 \
--launcher slurm
# w. abbr.
mim te cls resnet101_b16x8_cifar10.py -C tmp/epoch_3.pth -G 8 -g 8 -p pname \
-l slurm --metrics accuracy
# Full Length
mim gridsearch mmcls resnet101_b16x8_cifar10.py --work-dir tmp --gpus 8 \
--partition pname --gpus-per-node 8 --launcher slurm --max-jobs 2 \
--search-args '--optimizer.lr 1e-2 1e-3 --optimizer.weight_decay 1e-3 1e-4'
# w. abbr.
mim g cls resnet101_b16x8_cifar10.py --work-dir tmp -G 8 -g 8 -p pname -l slurm -j 2\
--search-args '--optimizer.lr 1e-2 1e-3 --optimizer.weight_decay 1e-3 1e-4'