I have been following this tutorial: Transformers-Tutorials/Fine_tuning_DetrForObjectDetection_on_custom_dataset_(balloon).ipynb at master · NielsRogge/Transformers-Tutorials · GitHub
While trying to evaluate the model, I should be using from datasets import get_coco_api_from_dataset
. However, I am getting an ImportError
while doing that:
ImportError: cannot import name 'get_coco_api_from_dataset'
I don’t seem to find the coco_eval
module too. So, this line fails: from datasets.coco_eval import CocoEvaluator
. Were the coco-related modules shifted somewhere, or do I need to import them from a different package?
Can someone please help me understand how do I import this module?