-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
45 lines (34 loc) · 974 Bytes
/
test.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
#!/usr/bin/env bash
PYTHON=${PYTHON:-"python"}
# settings
GPUS=0,1
IM_SIZE=800
CONF_THRES=0.05
IOU_THRES=0.5
USE_VOC07=True
DATASET='UCAS_AOD'
CKPT=runs/exp5_$DATASET/weights/epoch_200.pt
python tools/detect.py \
--weights $CKPT \
--output outputs \
--img-size $IM_SIZE \
--conf-thres $CONF_THRES \
--device $GPUS \
--dataset $DATASET \
--source data/$DATASET/yolo_test/images \
--angle_encoding 'POE8'\
--use-voc07 $USE_VOC07 \
--save-txt
###### ops
# --view-img \
# --classes \
# --agnostic-nms \
# --augment
python tools/evaluation.py \
--dataset $DATASET \
--imageset data/$DATASET/yolo_test/images \
--annopath data/$DATASET/yolo_test/labelTxt/{:s}.txt \
--use-voc07 $USE_VOC07 \
--ovthresh $IOU_THRES
# python tools/mAOE_evaluation.py \
# --dataset $DATASET \