dataset not register error when using visualizer for custom dataset #4795
Replies: 6 comments 1 reply
-
Hey there, when using custom datasets i would encourage you to write a visualiser of your own that way you can ensure that your datasets are in fact registered depending on which kind of dataset you use for example for coco its pretty straight forward:
when the training_dataset_name its the name you declared and the json is for the annotations, you can check it in the documentation.
And for visualizing there are many examples online, but here is one:
and one for prediction:
Try adjusting your custom visualizing to the format of your dataset :) |
Beta Was this translation helpful? Give feedback.
-
Thank you so much mark. This is a great help :) |
Beta Was this translation helpful? Give feedback.
-
I have a small question though! if I have registered dataset in another files, How can I use it in new visualization file without having to register it once again? I did try import but it doesn't seem to work. I am new so apologies for this question. |
Beta Was this translation helpful? Give feedback.
-
@suryasid09 you can try using jupyter notebook which saves all the kernel variables, but it dosent matter if you register it once again, the dataset is the same dataset as long as you provide the right paths in the functions. |
Beta Was this translation helpful? Give feedback.
-
@mark1ng123 thanks I will :) |
Beta Was this translation helpful? Give feedback.
-
You can also import the "another file" from the "visualization file". |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Instructions To Reproduce the Issue:
I am using detectron2/tools/visualize_data.py with my custom dataset.
I am able to train and evaluate using my custom data. But, when I use visualize_data.py file, it throws an error that my dataset is not register. It also gives list of registered dataset and I don't see my custom dataset.
command format as in detectron2 github page:
python visualize_data.py --config-file config.yaml --source annotation/dataloader --output-dir dir/ [--show]
The command used:
!python3 /home/jovyan/thesis_s2577712/DeFRCN_voc_format/thesis-pascal_voc_format/defrcn/data/visualize_data.py --source annotation --config-file /home/jovyan/thesis_s2577712/DeFRCN_voc_format/thesis-pascal_voc_format/checkpoints/voc/runDeFrcn/defrcn_fsod_r101_novel1/fsrw-like/1shot_seed0_repeat0/config1.yaml --output-dir /home/jovyan/thesis_s2577712/DeFRCN_voc_format --show
Expected behavior:
The model should have data registered, and it should visualize my custom dataset with bounding box on it.
Environment:
PyTorch built with:
Beta Was this translation helpful? Give feedback.
All reactions