mirror of
https://github.com/open-mmlab/mmselfsup.git
synced 2025-06-03 14:59:38 +08:00
* [Fix]: Refine mim_slurm_test.sh * [Feature]: Add cfg-options * [Fix]: classification/mim_dist_test.sh
18 lines
253 B
Bash
18 lines
253 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -x
|
|
|
|
CFG=$1
|
|
CHECKPOINT=$2
|
|
GPUS=${GPUS:-8}
|
|
PY_ARGS=${@:3}
|
|
|
|
|
|
PYTHONPATH="$(dirname $0)/..":$PYTHONPATH \
|
|
mim test mmcls \
|
|
$CFG \
|
|
--checkpoint $CHECKPOINT \
|
|
--launcher pytorch \
|
|
-G $GPUS \
|
|
--cfg-options $PY_ARGS
|