Upload custom_detection.yml with huggingface_hub
Browse files- custom_detection.yml +41 -0
custom_detection.yml
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
task: detection
|
| 2 |
+
|
| 3 |
+
evaluator:
|
| 4 |
+
type: CocoEvaluator
|
| 5 |
+
iou_types: ['bbox', ]
|
| 6 |
+
|
| 7 |
+
num_classes: 4 # your dataset classes
|
| 8 |
+
remap_mscoco_category: False
|
| 9 |
+
|
| 10 |
+
train_dataloader:
|
| 11 |
+
type: DataLoader
|
| 12 |
+
dataset:
|
| 13 |
+
type: CocoDetection
|
| 14 |
+
img_folder: /home/yootek/projects/yoostudio/D-FINE/datasets/train
|
| 15 |
+
ann_file: /home/yootek/projects/yoostudio/D-FINE/datasets/train/_annotations.coco.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: /home/yootek/projects/yoostudio/D-FINE/datasets/valid
|
| 32 |
+
ann_file: /home/yootek/projects/yoostudio/D-FINE/datasets/valid/_annotations.coco.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
|