Replies: 1 comment
-
Hi @adi018, I don't have much experience with the PyTorch pre-trained FasterRCNN but my guess is you'd want the heads to be the same number of classes as you've got (e.g. 4 for A, B, C, D). Have you tried both combinations? One model with 4 classes and one model with 5 classes? That would be the first thing I try. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am working on an object detection application using a pre-trained FasterRCNN network on COCO dataset. For my use case, I want my network to detect only four classes i.e. A, B, C and D.
I have downloaded the model and frozed the weights of the backbone and RPN of the model. Now when I initialize the ROI head should I use
num_classes = 4
ornum_classes = 5
. According to https://pytorch.org/tutorials/intermediate/torchvision_tutorial.html or https://discuss.pytorch.org/t/finetuning-fasterrcnn-for-multi-class-examples/92707/3, I should setnum_classes = 5
. Could you please give an explanation? Thanks!Please find the model summary below:
Beta Was this translation helpful? Give feedback.
All reactions