Skip to content

Instantly share code, notes, and snippets.

@trongan93
Created April 9, 2021 05:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trongan93/3ba86fc343d95e946296e7afa4c644cd to your computer and use it in GitHub Desktop.
Save trongan93/3ba86fc343d95e946296e7afa4c644cd to your computer and use it in GitHub Desktop.
from detectron2.data.datasets import register_coco_instances
register_coco_instances("rareplanes_dataset_train", {}, "/mnt/d/RarePlanes/datasets/synthetic/metadata_annotations/instances_train_aircraft.json", "/mnt/d/RarePlanes/datasets/synthetic/train/images")
register_coco_instances("rareplanes_dataset_val", {}, "/mnt/d/RarePlanes/datasets/synthetic/metadata_annotations/instances_test_aircraft.json", "/mnt/d/RarePlanes/datasets/synthetic/test/images")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment