Pre-trained detection models for PyTorch Hub
See original GitHub issue🚀 Feature
First of all, thanks for the amazing work.
I noticed currently there’s no pre-trained detection models exposed via hub_conf.py
. It looks like the building blocks are already there. Is there plan to support it?
Thanks
Motivation
Increase coverage of supported vision tasks via Torch Hub.
Pitch
- entrypoints for detection models are added to
hub_conf.py
- some helpers e.g. for bbox parsing could also be added there
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (10 by maintainers)
Top Results From Across the Web
PyTorch Hub
Discover and publish models to a pre-trained model repository designed for research exploration. Check out the models for Researchers, or learn How It...
Read more >Running a pre-trained PyTorchVideo classification model ...
In this tutorial we will show how to load a pre trained video classification model in PyTorchVideo and run it on a test...
Read more >Loading a Pre-Trained Lane Detection Model from a PyTorch ...
Learn how to load a pre-trained lane detection model from PyTorch Hub. This model has been trained on a large dataset of images...
Read more >PyTorch Hub - YOLOv5 Documentation - Ultralytics
This example loads a pretrained YOLOv5s model from PyTorch Hub as model and passes an image for inference. 'yolov5s' is the lightest and...
Read more >YOLOv5: Object Detection Made Easy with PyTorch Hub
Let's download the smallest version of pre-trained YOLOv5. All we need to do is execute the following one line to download the model...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
As @datumbox mentioned in general one should not expect models with compiled extensions to work with torchhub.
However, since you already have torchvision 0.11 installed, these extensions have been compiled already and are present somewhere on your machine.
import torch
andimport torchvision
do quite a bit of magic under the hood, resolving dynamic lib symbols, and all sorts of shenanigans that I don’t understand enough. But I would bet that when you’re on the 0.11 branch, those symbols get resolved properly, which is why you’re able to load the models in this specific case (and why it still fails ifimport torchvision
is removed)I believe what you describe is expected. The specific version that you have installed will work because the binaries contain the compiled C++/CUDA ops.
I’m not an expert on the internals of TorchHub. @NicolasHug do you know if the point 2 on the Observation section above is expected?