mirror of
https://github.com/open-mmlab/mmselfsup.git
synced 2025-06-03 14:59:38 +08:00
* [Feature]: Add the scaffold * Code camp * Update dino.py * add loss * Update dino_neck.py * data_pipeline * Update imagenet_dino.py * [Feature]: Add dino neck * [Feature]: Add dino neck * [Feature]: Add teacher temp update hook * [Feature]: Add dino algorithm * [Feature]: Add Transform * [Feature]: Add init * [Feature]: Forward DINO * [Feature]: Add DINO * [Fix]: Delete dino dataset * [Feature]: Add docstring * [Feature]: Add readme * [Fix]: Fix reviews * [Fix]: Fix lint --------- Co-authored-by: YuanLiuuuuuu <3463423099@qq.com>
24 lines
553 B
Bash
24 lines
553 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -x
|
|
|
|
PARTITION=$1
|
|
JOB_NAME=$2
|
|
CONFIG=$3
|
|
GPUS=${GPUS:-8}
|
|
GPUS_PER_NODE=${GPUS_PER_NODE:-8}
|
|
CPUS_PER_TASK=${CPUS_PER_TASK:-5}
|
|
SRUN_ARGS=${SRUN_ARGS:-""}
|
|
PY_ARGS=${@:4}
|
|
|
|
PYTHONPATH="$(dirname $0)/..":$PYTHONPATH \
|
|
srun -p ${PARTITION} \
|
|
--job-name=${JOB_NAME} \
|
|
--gres=gpu:${GPUS_PER_NODE} \
|
|
--ntasks=${GPUS} \
|
|
--ntasks-per-node=${GPUS_PER_NODE} \
|
|
--cpus-per-task=${CPUS_PER_TASK} \
|
|
--kill-on-bad-exit=1 \
|
|
${SRUN_ARGS} \
|
|
python -u projects/dino/tools/train.py ${CONFIG} --launcher="slurm" ${PY_ARGS}
|