forked from Peterande/D-FINE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom_detection.yml
41 lines (36 loc) · 909 Bytes
/
custom_detection.yml
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
task: detection
evaluator:
type: CocoEvaluator
iou_types: ['bbox', ]
num_classes: 5 # your dataset classes
remap_mscoco_category: False
train_dataloader:
type: DataLoader
dataset:
type: CocoDetection
img_folder: D:/chenxueqiang/data/PVS_coco/train2017
ann_file: D:/chenxueqiang/data/PVS_coco/annotations/instances_train2017.json
return_masks: False
transforms:
type: Compose
ops: ~
shuffle: True
num_workers: 4
drop_last: True
collate_fn:
type: BatchImageCollateFuncion
val_dataloader:
type: DataLoader
dataset:
type: CocoDetection
img_folder: D:/chenxueqiang/data/PVS_coco/val2017
ann_file: D:/chenxueqiang/data/PVS_coco/annotations/instances_val2017.json
return_masks: False
transforms:
type: Compose
ops: ~
shuffle: False
num_workers: 4
drop_last: False
collate_fn:
type: BatchImageCollateFuncion