-
Notifications
You must be signed in to change notification settings - Fork 36
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
Releasing the model on torch.hub? #11
Comments
Hey @gmberton, We're restructuring the repository (as we make some updates), and we will surely keep note of this. Releasing the cluster centers for easy use is certainly helpful. Note for #7 : Torch Hub release (probably separate repository). |
Hi @TheProjectsGuy , do you have an estimate on when this will be ready? |
Hi @gmberton, |
Hey @gmberton, We've made the first beta release of
Tutorialimport torch
model = torch.hub.load("AnyLoc/DINO", "get_vlad_model",
backbone="DINOv2", device="cuda")
# Images
img = torch.rand(1, 3, 224, 224)
# Result: VLAD descriptors of shape [1, 49152]
res = model(img) It also supports batching # Images
img = torch.rand(16, 3, 224, 224)
# Result: VLAD descriptors of shape [16, 49152]
res = model(img) You can get more help from print(torch.hub.list("AnyLoc/DINO"))
r = torch.hub.help("AnyLoc/DINO", "get_vlad_model")
print(r) Also, please open issues about AnyLoc/DINO in this (current) repository since this is our main repository. We'll update the README with instructions after making more changes to the torch.hub release. Let me know if you face any issues. Edit: We will update here when the torch.hub release is stable, but in the meanwhile, you might want to use |
This is super useful, thank you @TheProjectsGuy! |
Are you getting slower speeds on AnyLoc-VLAD-DINOv2 while using batching on torch.hub, or are you talking about the DINOv2 (CLS)? |
Sorry for the lack of clarity in my previous message: I'm getting slower speed on AnyLoc-VLAD-DINOv2.
If I run this I get that the ResNet50 takes roughly 0.2 seconds, while AnyLoc about 10 seconds. |
Hi, are there any news on this? |
Hi, you might find useful to know that I tried the DINOv2-based SALAD and the speed is fine (only 4x slower than a ResNet50), so there might be some problem within AnyLoc's code. Anyway, results are good, it's only a speed issue |
Hey @gmberton, |
Hey @gmberton, |
Are there any plans to release the trained AnyLoc model on torch.hub? It is quite simple to do and allows people to use your model with two lines of code, allowing more people to use your model and helping to spread your work!
For example I did it for CosPlace, and the trained model can be automatically downloaded from anywhere without cloning the repo just like this
I'd be happy to help if needed :-)
The text was updated successfully, but these errors were encountered: