enpaiva commited on
Commit
3d316b9
·
verified ·
1 Parent(s): cd9e43c

Update configs/dataset/custom_detection.yml

Browse files
Files changed (1) hide show
  1. configs/dataset/custom_detection.yml +41 -41
configs/dataset/custom_detection.yml CHANGED
@@ -1,41 +1,41 @@
1
- task: detection
2
-
3
- evaluator:
4
- type: CocoEvaluator
5
- iou_types: ['bbox', ]
6
-
7
- num_classes: 777 # your dataset classes
8
- remap_mscoco_category: False
9
-
10
- train_dataloader:
11
- type: DataLoader
12
- dataset:
13
- type: CocoDetection
14
- img_folder: /data/yourdataset/train
15
- ann_file: /data/yourdataset/train/train.json
16
- return_masks: False
17
- transforms:
18
- type: Compose
19
- ops: ~
20
- shuffle: True
21
- num_workers: 4
22
- drop_last: True
23
- collate_fn:
24
- type: BatchImageCollateFunction
25
-
26
-
27
- val_dataloader:
28
- type: DataLoader
29
- dataset:
30
- type: CocoDetection
31
- img_folder: /data/yourdataset/val
32
- ann_file: /data/yourdataset/val/val.json
33
- return_masks: False
34
- transforms:
35
- type: Compose
36
- ops: ~
37
- shuffle: False
38
- num_workers: 4
39
- drop_last: False
40
- collate_fn:
41
- type: BatchImageCollateFunction
 
1
+ task: detection
2
+
3
+ evaluator:
4
+ type: CocoEvaluator
5
+ iou_types: ['bbox', ]
6
+
7
+ num_classes: 3 # your dataset classes
8
+ remap_mscoco_category: False
9
+
10
+ train_dataloader:
11
+ type: DataLoader
12
+ dataset:
13
+ type: CocoDetection
14
+ img_folder: ./laydoc/train_images
15
+ ann_file: ./laydoc/annotations/train.json
16
+ return_masks: False
17
+ transforms:
18
+ type: Compose
19
+ ops: ~
20
+ shuffle: True
21
+ num_workers: 8
22
+ drop_last: True
23
+ collate_fn:
24
+ type: BatchImageCollateFunction
25
+
26
+
27
+ val_dataloader:
28
+ type: DataLoader
29
+ dataset:
30
+ type: CocoDetection
31
+ img_folder: ./laydoc/val_images
32
+ ann_file: ./laydoc/annotations/val.json
33
+ return_masks: False
34
+ transforms:
35
+ type: Compose
36
+ ops: ~
37
+ shuffle: False
38
+ num_workers: 8
39
+ drop_last: False
40
+ collate_fn:
41
+ type: BatchImageCollateFunction