Loading weights from TorchVision will stop working
See original GitHub issueHi OpenMMLab team, Thanks for your awesome work on MMCV.
The current implementation of get_torchvision_models()
is trying to access the model_urls
variable that existed in some backbone implementations of TorchVision. TorchVision considers this variable non-public (because it’s not included in the __all__
) and non-standard (because it’s not available in all models) and thus plans to remove it on the next version. We are currently moving on a new API that will allow us to support multiple pretrained weights for every model variant (read more here). This change has recently landed at TorchVision on https://github.com/pytorch/vision/pull/5618.
To avoid breakages, we recommend to update your code. A few options include to:
- Access the URLs from the new public locations
- Move the the
model_urls
maps on your side - Something else, happy to work with you to figure it out
We intentionally released this change several months before the next release to give time to iron out issues like that. Let me know your thoughts on how we should go about it. Thanks!
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:8 (7 by maintainers)
Hi @datumbox , thanks for your awesome work on torchvision. We are trying to handle these changes and we want to know when will the new version v0.13 be released?
Got it. Thanks for your reply.