question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:open
  • Created 4 years ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

4reactions
NicolasHugcommented, Feb 9, 2022

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 and import 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 if import torchvision is removed)

0reactions
datumboxcommented, Feb 9, 2022

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found