-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PyTorch standard Coco dataset (datasets.CocoDetection) not compatible with Faster R-CNN object detection model #8353
Comments
Hi @ranjaniocl , try to print the input that gets passed to |
Hi @NicolasHug, Thank for looking into my issue. I do not know how to print input that get passed to RandomIoUCrop(). Can you please guide me with sample script/steps? I tried to print a sample dataset in the notebook and it has tensors for image and bounding boxes. |
@ranjaniocl sorry it looks like your issue might be more in scope for https://discuss.pytorch.org/ |
@NicolasHug Ok. sure. I will try my luck there. |
@NicolasHug Just for reference, there was one similar issue reported in past. |
@NicolasHug I just logged it at PyTorch forum. While I was creating, similar issues from past popped up (please see links below). I do not see any response so I do not have much hope. https://discuss.pytorch.org/t/training-faster-r-cnn-model-with-coco-dataset-has-been-consistently-unsuccessful/178023 |
Help on class CocoDetection in module torchvision.datasets.coco: class CocoDetection(torchvision.datasets.vision.VisionDataset) Note: the class has transform, target_transform and transforms arguments, passing value to transforms (not transform) can solve the issue for me. |
🐛 Describe the bug
Hi,
I am trying to train and evaluate pre-trained Faster R-CNN model with standard coco dataset. I am getting the following error
TypeError: RandomIoUCrop() requires input sample to contain tensor or PIL images and bounding boxes. Sample can also contain masks.
Here are the high level steps
Here is colab notebook
https://colab.research.google.com/drive/1Tbu2Thf-thn0lLG12dM3bq_BMZDihX2Y?usp=sharing
Any help will be appreciated. Thanks.
Versions
Hi,
I am trying to train and evaluate pre-trained Faster R-CNN model with standard coco dataset. I am getting the following error
TypeError: RandomIoUCrop() requires input sample to contain tensor or PIL images and bounding boxes. Sample can also contain masks.
Here are the high level steps
Here is colab notebook
https://colab.research.google.com/drive/1Tbu2Thf-thn0lLG12dM3bq_BMZDihX2Y?usp=sharing
Any help will be appreciated. Thanks.
The text was updated successfully, but these errors were encountered: