-
Notifications
You must be signed in to change notification settings - Fork 0
/
train.sh
77 lines (64 loc) · 1.72 KB
/
train.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/usr/bin/env bash
PYTHON=${PYTHON:-"python"}
# settings
GPUS=2,3
EPOCHS=500
BATCH_SIZE=12
IM_SIZE=800
CFG=yolov5m
RESUME=False
SAVE_INTERVAL=100
# dataset
# DATASET="HRSC2016"
# DATASET="UCAS_AOD"
# DATASET="DOTA"
# DATASET="DIOR"
# DATASET="FAIR1M"
# DATASET="IC15"
# DATASET="IC13"
# DATASET="MSRA_TD500"
# DATASET="NWPU_VHR10"
# DATASET="VOC2007"
DATASET="UAV_ROD"
### DP
# python tools/train.py \
# --cfg config/$DATASET/$CFG.yaml \
# --data config/$DATASET/$DATASET.yaml \
# --hyp config/$DATASET/hyp.yaml \
# --epochs $EPOCHS \
# --batch-size $BATCH_SIZE \
# --img-size $IM_SIZE \
# --resume $RESUME \
# --name $DATASET \
# --device $GPUS \
# --logdir runs/ \
# --save-interval $SAVE_INTERVAL \
# --angle_encoding 'BCL8'\
# --adam \
# --noautoanchor
# ##### DDP
python -m torch.distributed.launch --nproc_per_node 2 tools/train.py \
--cfg config/$DATASET/$CFG.yaml \
--data config/$DATASET/$DATASET.yaml \
--hyp config/$DATASET/hyp.yaml \
--epochs $EPOCHS \
--batch-size $BATCH_SIZE \
--img-size $IM_SIZE \
--resume $RESUME \
--name $DATASET \
--device $GPUS \
--save-interval $SAVE_INTERVAL \
--angle_encoding 'POE8'\
--logdir runs/ \
--adam --sync-bn --noautoanchor
###### ops
# --adam \
# --sync-bn \
# --multi-scale \
# --single-cls \
# --image-weights \
# --cache-images \
# --nosave \
# --notest \
# --evolve \
# --multi-scale