"vscode:/vscode.git/clone" did not exist on "9b19b73f6fcb844dfb2ef19c944502973c784090"
train.sh 381 Bytes
Newer Older
chenych's avatar
chenych committed
1
2
3
4
5
6
#!/bin/bash
echo "Export params ..."

export HIP_VISIBLE_DEVICES=0,1,2,3 # 自行修改为训练的卡号和数量
export HSA_FORCE_FINE_GRAIN_PCIE=1
export USE_MIOPEN_BATCHNORM=1
Rayyyyy's avatar
Rayyyyy committed
7
export MIOPEN_FIND_MODE=4
chenych's avatar
chenych committed
8
9
10

echo "Training start ..."
# coco_path是训练数据集地址,数据是coco format
Rayyyyy's avatar
Rayyyyy committed
11
torchrun --nproc_per_node=4 main.py --coco_path /path/to/coco
chenych's avatar
chenych committed
12

Rayyyyy's avatar
Rayyyyy committed
13
echo "Training finished."