first commit
This commit is contained in:
48
rtdetrv2_pytorch/configs/dataset/coco_detection.yml
Normal file
48
rtdetrv2_pytorch/configs/dataset/coco_detection.yml
Normal file
@@ -0,0 +1,48 @@
|
||||
task: detection
|
||||
|
||||
evaluator:
|
||||
type: CocoEvaluator
|
||||
iou_types: ['bbox', ]
|
||||
|
||||
# num_classes: 365
|
||||
# remap_mscoco_category: False
|
||||
|
||||
# num_classes: 91
|
||||
# remap_mscoco_category: False
|
||||
|
||||
num_classes: 80
|
||||
remap_mscoco_category: True
|
||||
|
||||
|
||||
train_dataloader:
|
||||
type: DataLoader
|
||||
dataset:
|
||||
type: CocoDetection
|
||||
img_folder: ./dataset/coco/train2017/
|
||||
ann_file: ./dataset/coco/annotations/instances_train2017.json
|
||||
return_masks: False
|
||||
transforms:
|
||||
type: Compose
|
||||
ops: ~
|
||||
shuffle: True
|
||||
num_workers: 4
|
||||
drop_last: True
|
||||
collate_fn:
|
||||
type: BatchImageCollateFunction
|
||||
|
||||
|
||||
val_dataloader:
|
||||
type: DataLoader
|
||||
dataset:
|
||||
type: CocoDetection
|
||||
img_folder: ./dataset/coco/val2017/
|
||||
ann_file: ./dataset/coco/annotations/instances_val2017.json
|
||||
return_masks: False
|
||||
transforms:
|
||||
type: Compose
|
||||
ops: ~
|
||||
shuffle: False
|
||||
num_workers: 4
|
||||
drop_last: False
|
||||
collate_fn:
|
||||
type: BatchImageCollateFunction
|
||||
40
rtdetrv2_pytorch/configs/dataset/voc_detection.yml
Normal file
40
rtdetrv2_pytorch/configs/dataset/voc_detection.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
task: detection
|
||||
|
||||
evaluator:
|
||||
type: CocoEvaluator
|
||||
iou_types: ['bbox', ]
|
||||
|
||||
num_classes: 20
|
||||
|
||||
train_dataloader:
|
||||
type: DataLoader
|
||||
dataset:
|
||||
type: VOCDetection
|
||||
root: ./dataset/voc/
|
||||
ann_file: trainval.txt
|
||||
label_file: label_list.txt
|
||||
transforms:
|
||||
type: Compose
|
||||
ops: ~
|
||||
shuffle: True
|
||||
num_workers: 4
|
||||
drop_last: True
|
||||
collate_fn:
|
||||
type: BatchImageCollateFunction
|
||||
|
||||
|
||||
val_dataloader:
|
||||
type: DataLoader
|
||||
dataset:
|
||||
type: VOCDetection
|
||||
root: ./dataset/voc/
|
||||
ann_file: test.txt
|
||||
label_file: label_list.txt
|
||||
transforms:
|
||||
type: Compose
|
||||
ops: ~
|
||||
shuffle: False
|
||||
num_workers: 4
|
||||
drop_last: False
|
||||
collate_fn:
|
||||
type: BatchImageCollateFunction
|
||||
Reference in New Issue
Block a user