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-T-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-T-224 on huggingface.co
37.4K
Total runs
4.9K
24-hour runs
14.2K
3-day runs
21.3K
7-day runs
33.5K
30-day runs
More Information About MegaDescriptor-T-224 huggingface.co Model
MegaDescriptor-T-224 huggingface.co is an AI model on huggingface.co that provides MegaDescriptor-T-224's model effect (), which can be used instantly with this BVRA MegaDescriptor-T-224 model. huggingface.co supports a free trial of the MegaDescriptor-T-224 model, and also provides paid use of the MegaDescriptor-T-224. Support call MegaDescriptor-T-224 model through api, including Node.js, Python, http.
MegaDescriptor-T-224 huggingface.co is an online trial and call api platform, which integrates MegaDescriptor-T-224's modeling effects, including api services, and provides a free online trial of MegaDescriptor-T-224, you can try MegaDescriptor-T-224 online for free by clicking the link below.
BVRA MegaDescriptor-T-224 online free url in huggingface.co:
MegaDescriptor-T-224 is an open source model from GitHub that offers a free installation service, and any user can find MegaDescriptor-T-224 on GitHub to install. At the same time, huggingface.co provides the effect of MegaDescriptor-T-224 install, users can directly use MegaDescriptor-T-224 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
MegaDescriptor-T-224 install url in huggingface.co: