-
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
a little problem when using some pretrained models #4274
Comments
@ZhiyanWXZ you can pass |
@datumbox maybe we should only download the backbone weights if |
@ZhiyanWXZ the vast majority of the models have As for when fasterrcnn_mobilenet_v3_large_fpn/fasterrcnn_mobilenet_v3_large_320_fpn: vision/torchvision/models/detection/faster_rcnn.py Lines 382 to 383 in 183a722
fasterrcnn_resnet50_fpn: vision/torchvision/models/detection/faster_rcnn.py Lines 364 to 366 in 183a722
keypointrcnn_resnet50_fpn: vision/torchvision/models/detection/keypoint_rcnn.py Lines 334 to 336 in 183a722
maskrcnn_resnet50_fpn: vision/torchvision/models/detection/mask_rcnn.py Lines 327 to 329 in 183a722
retinanet_resnet50_fpn: vision/torchvision/models/detection/retinanet.py Lines 616 to 618 in 183a722
ssd300_vgg16: vision/torchvision/models/detection/ssd.py Lines 574 to 576 in 183a722
ssdlite320_mobilenet_v3_large: vision/torchvision/models/detection/ssdlite.py Lines 193 to 194 in 183a722
fcn_resnet50/fcn_resnet101/deeplabv3_resnet50/deeplabv3_resnet101/deeplabv3_mobilenet_v3_large: vision/torchvision/models/segmentation/segmentation.py Lines 70 to 72 in 183a722
The only problematic case I found was for lraspp_mobilenet_v3_large which I'll patch in a bit. |
thanks, I get it! |
🐛 Bug
A little problem.
I used some pretrained models to do object detection.
However, when i used models whose name include others models' name, such as 'fasterrcnn_mobilenet_v3_large_320_fpn', (its name includes the name of model 'mobilenet_v3_large'), it will download the weight file of the short name models.
For example, when i used model 'fasterrcnn_mobilenet_v3_large_320_fpn', whenever the pretrained attribute is True or not, the weight file of model 'mobilenet_v3_large' will be downloaded.
This problem also happen in the models such as 'maskrcnn_resnet50_fpn' and many other models.
To Reproduce
Steps to reproduce the behavior:
it's easy to reproduce. For example:
excute the code above, the weight file of model "mobilenet_v3_large" will be downloaded.
you can change the model name to other this kind of model names.
cc @fmassa @vfdev-5 @pmeier
The text was updated successfully, but these errors were encountered: