ppyoloe_reader.yml 617 B

1234567891011121314151617181920212223242526
  1. metric: COCO
  2. num_classes: 80
  3. # Datset configuration
  4. TrainDataset:
  5. !COCODataSet
  6. image_dir: train2017
  7. anno_path: annotations/instances_train2017.json
  8. dataset_dir: dataset/coco/
  9. EvalDataset:
  10. !COCODataSet
  11. image_dir: val2017
  12. anno_path: annotations/instances_val2017.json
  13. dataset_dir: dataset/coco/
  14. worker_num: 0
  15. # preprocess reader in test
  16. EvalReader:
  17. sample_transforms:
  18. - Decode: {}
  19. - Resize: {target_size: [640, 640], keep_ratio: False, interp: 2}
  20. - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: True}
  21. - Permute: {}
  22. batch_size: 4