-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Adapt the input size of SSDlite pre-trained model and assess its inference accuracy #3819
Comments
Here is the result table of my experiments:
Average Precision and average recall go down with increase in input size. Decreasing |
Awesome work @prabhat00155, thanks for the investigation! I think as we expected, SSD is very sensitive to the DefaultBox configuration. I don't think it's possible to reuse it with variable sizes. I'll close the issue because I think the work is complete here. |
🚀 Feature
The pre-trained
ssdlite320_mobilenet_v3_large()
model expects a fixed size input image of 320x320 and if a user tries to pass a size parameter to the method it's going to be ignored:vision/torchvision/models/detection/ssdlite.py
Line 202 in e35793a
vision/torchvision/models/detection/ssdlite.py
Lines 184 to 185 in e35793a
In other models such as FasterRCNN it is possible to reuse the existing pre-trained models but use different input sizes. The results might vary in terms of accuracy but this allows users to reuse the models and adjust them according to their speed needs.
It is possible that the SSD method is more sensitive than FasterRCNN to the input size because of the assumptions that it makes concerning the input and the parameterisation of the anchor boxes:
vision/torchvision/models/detection/ssdlite.py
Line 203 in e35793a
The target of this ticket is to investigate:
512x512
and to640x640
?min_ratio
andmax_ratio
or any other parameter of theDefaultBoxGenerator
to achieve better results?If the experiment yields positive results (reasonably higher mAP for the extra computation cost), we should follow up with a PR that allows the overwriting of the
size
from outside thessdlite320_mobilenet_v3_large
method and potentially the extra parameters of theDefaultBoxGenerator
.The text was updated successfully, but these errors were encountered: