-
Notifications
You must be signed in to change notification settings - Fork 4
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
Refactor Object Detection for pretrained weights #33
Comments
Hello @oke-aditya. Can I work on this? If yes, can you give me a little more info on what needs to be done exactly? Because I am not sure what you guys did for classification. |
This is really tricky. |
This is actually something we should look in a longer run for major refactor. For Classification Torchvision provides CNNs (backbones) trained over imagenet. For this I created a dictonary in pretrained folder and simply load these models from urls. Instantiate the model with NO pretrained weights and use these as needed. Challenges for detection
Detection has tremendous configurations.
What currently the detection API works like
See that this creates a frcnn model without FPNs but it supports other pre trained backbones. For FPNs we use torchvision's
Now you might ask how to get a model trained over COCO ?For that after we create the FRCNN model, we need to load the COCO weights. Copying code from torchvision
That's how we get Resnet50_fpn over COCO.
|
In short. We need to support the following
P.S. Let me start an initial refactor, It will get clear with that. |
I got the gist of what should be done and with an initial refactor it will be more clear, thanks. |
@oke-aditya This is what I understood from your previous comment, correct me if I am wrong:
|
Hmm, let me start an initial refactor. This refactor is little tricky. |
These two are super hard to support.
Then 2nd feature is quite possible, but we need training. If people can provide them then it would be great. |
The above PR, reduces this urgency by sometime. There can be better solution but we need training for most weights. |
🚀 Feature
Similar to what we did for classification, probably we should provide something for detection.
This will allow to load pretrained weights from Kitty, COCO, etc. datasets.
The text was updated successfully, but these errors were encountered: