|
|
|
@ -20,12 +20,21 @@ if [ ${seed} != 0 ]; then
|
|
|
|
|
export FLAGS_cudnn_deterministic=True
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ ${ngpu} == 0 ]; then
|
|
|
|
|
python3 -u ${BIN_DIR}/train.py \
|
|
|
|
|
--ngpu ${ngpu} \
|
|
|
|
|
--config ${config_path} \
|
|
|
|
|
--output exp/${ckpt_name} \
|
|
|
|
|
--checkpoint_path "${ckpt_path}" \
|
|
|
|
|
--seed ${seed}
|
|
|
|
|
else
|
|
|
|
|
python3 -m paddle.distributed.launch --gpus=${CUDA_VISIBLE_DEVICES} ${BIN_DIR}/train.py \
|
|
|
|
|
--ngpu ${ngpu} \
|
|
|
|
|
--config ${config_path} \
|
|
|
|
|
--output exp/${ckpt_name} \
|
|
|
|
|
--checkpoint_path "${ckpt_path}" \
|
|
|
|
|
--seed ${seed}
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ ${seed} != 0 ]; then
|
|
|
|
|
unset FLAGS_cudnn_deterministic
|
|
|
|
@ -36,4 +45,4 @@ if [ $? -ne 0 ]; then
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
exit 0
|
|
|
|
|