Mansoor-at / Semi-supervised-surgical-tool-detection

This repository contains code for our paper titled "A semi-supervised teacher-student framework for surgical tool detection and localization"
9 stars 1 forks source link

Path problems with datasets #1

Open 309020726 opened 4 months ago

309020726 commented 4 months ago

Hello, I changed the paths of train and test in the file "fast_rcnn_R_50_FPN_sup1_run1.yaml" to my own dataset, but it gives this error:

KeyError: "Dataset 'tool_detection/Datasets/coco/train2017' is not registered! Available datasets are: coco_2014_train, coco_2014_val, coco_2014_minival, coco_2014_minival_100, coco_2014_valminusminival, coco_2017_train, coco_2017_val, coco_2017_test, coco_2017_test-dev, coco_2017_val_100, keypoints_coco_2014_train, keypoints_coco_2014_val, keypoints_coco_2014_minival, keypoints_coco_2014_valminusminival, keypoints_coco_2014_minival_100, keypoints_coco_2017_train, keypoints_coco_2017_val, keypoints_coco_2017_val_100, coco_2017_train_panoptic_separated, coco_2017_train_panoptic_stuffonly, coco_2017_train_panoptic, coco_2017_val_panoptic_separated, coco_2017_val_panoptic_stuffonly, coco_2017_val_panoptic, coco_2017_val_100_panoptic_separated, coco_2017_val_100_panoptic_stuffonly, coco_2017_val_100_panoptic, lvis_v1_train, lvis_v1_val, lvis_v1_test_dev, lvis_v1_test_challenge, lvis_v0.5_train, lvis_v0.5_val, lvis_v0.5_val_rand_100, lvis_v0.5_test, lvis_v0.5_train_cocofied, lvis_v0.5_val_cocofied, cityscapes_fine_instance_seg_train, cityscapes_fine_sem_seg_train, cityscapes_fine_instance_seg_val, cityscapes_fine_sem_seg_val, cityscapes_fine_instance_seg_test, cityscapes_fine_sem_seg_test, cityscapes_fine_panoptic_train, cityscapes_fine_panoptic_val, voc_2007_trainval, voc_2007_train, voc_2007_val, voc_2007_test, voc_2012_trainval, voc_2012_train, voc_2012_val, ade20k_sem_seg_train, ade20k_sem_seg_val, coco_2017_unlabel, coco_2017_for_voc20"

Can I ask if I can't simply change the path, and what other operations I need to perform to make my own dataset valid?

Looking forward to your reply.

Mansoor-at commented 4 months ago

Hi

Try to change the name of your dataset with approved ones. Let me know if error persists.

On Wed, Apr 17, 2024 at 8:11 PM jack @.***> wrote:

Hello, I changed the paths of train and test in the file "fast_rcnn_R_50_FPN_sup1_run1.yaml" to my own dataset, but it gives this error:

KeyError: "Dataset 'tool_detection/Datasets/coco/train2017' is not registered! Available datasets are: coco_2014_train, coco_2014_val, coco_2014_minival, coco_2014_minival_100, coco_2014_valminusminival, coco_2017_train, coco_2017_val, coco_2017_test, coco_2017_test-dev, coco_2017_val_100, keypoints_coco_2014_train, keypoints_coco_2014_val, keypoints_coco_2014_minival, keypoints_coco_2014_valminusminival, keypoints_coco_2014_minival_100, keypoints_coco_2017_train, keypoints_coco_2017_val, keypoints_coco_2017_val_100, coco_2017_train_panoptic_separated, coco_2017_train_panoptic_stuffonly, coco_2017_train_panoptic, coco_2017_val_panoptic_separated, coco_2017_val_panoptic_stuffonly, coco_2017_val_panoptic, coco_2017_val_100_panoptic_separated, coco_2017_val_100_panoptic_stuffonly, coco_2017_val_100_panoptic, lvis_v1_train, lvis_v1_val, lvis_v1_test_dev, lvis_v1_test_challenge, lvis_v0.5_train, lvis_v0.5_val, lvis_v0.5_val_rand_100, lvis_v0.5_test, lvis_v0.5_train_cocofied, lvis_v0.5_val_cocofied, cityscapes_fine_instance_seg_train, cityscapes_fine_sem_seg_train, cityscapes_fine_instance_seg_val, cityscapes_fine_sem_seg_val, cityscapes_fine_instance_seg_test, cityscapes_fine_sem_seg_test, cityscapes_fine_panoptic_train, cityscapes_fine_panoptic_val, voc_2007_trainval, voc_2007_train, voc_2007_val, voc_2007_test, voc_2012_trainval, voc_2012_train, voc_2012_val, ade20k_sem_seg_train, ade20k_sem_seg_val, coco_2017_unlabel, coco_2017_for_voc20"

Can I ask if I can't simply change the path, and what other operations I need to perform to make my own dataset valid?

Looking forward to your reply.

— Reply to this email directly, view it on GitHub https://github.com/Mansoor-at/Semi-supervised-surgical-tool-detection/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV7IBIMBQ634WPUWCIA4KV3Y54TT5AVCNFSM6AAAAABGML34S6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGI2DSNJYHA4TGMQ . You are receiving this because you are subscribed to this thread.Message ID: @.*** com>