import timm
import torch
import torchvision.transforms as T
from PIL import Image
from urllib.request import urlopen
model = timm.create_model("hf-hub:BVRA/MegaDescriptor-S-224", pretrained=True)
model = model.eval()
train_transforms = T.Compose([T.Resize(224),
T.ToTensor(),
T.Normalize([0.5, 0.5, 0.5], [0.5, 0.5, 0.5])])
img = Image.open(urlopen(
'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))
output = model(train_transforms(img).unsqueeze(0)) # output is (batch_size, num_features) shaped tensor# output is a (1, num_features) shaped tensor
Citation
@inproceedings{vcermak2024wildlifedatasets,
title={WildlifeDatasets: An open-source toolkit for animal re-identification},
author={{\v{C}}erm{\'a}k, Vojt{\v{e}}ch and Picek, Lukas and Adam, Luk{\'a}{\v{s}} and Papafitsoros, Kostas},
booktitle={Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision},
pages={5953--5963},
year={2024}
}
Runs of BVRA MegaDescriptor-S-224 on huggingface.co
28.0K
Total runs
1.7K
24-hour runs
7.6K
3-day runs
14.6K
7-day runs
27.3K
30-day runs
More Information About MegaDescriptor-S-224 huggingface.co Model
MegaDescriptor-S-224 huggingface.co is an AI model on huggingface.co that provides MegaDescriptor-S-224's model effect (), which can be used instantly with this BVRA MegaDescriptor-S-224 model. huggingface.co supports a free trial of the MegaDescriptor-S-224 model, and also provides paid use of the MegaDescriptor-S-224. Support call MegaDescriptor-S-224 model through api, including Node.js, Python, http.
MegaDescriptor-S-224 huggingface.co is an online trial and call api platform, which integrates MegaDescriptor-S-224's modeling effects, including api services, and provides a free online trial of MegaDescriptor-S-224, you can try MegaDescriptor-S-224 online for free by clicking the link below.
BVRA MegaDescriptor-S-224 online free url in huggingface.co:
MegaDescriptor-S-224 is an open source model from GitHub that offers a free installation service, and any user can find MegaDescriptor-S-224 on GitHub to install. At the same time, huggingface.co provides the effect of MegaDescriptor-S-224 install, users can directly use MegaDescriptor-S-224 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
MegaDescriptor-S-224 install url in huggingface.co: