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-EfficientNetB3", pretrained=True)
model = model.eval()
transforms = T.Compose([T.Resize(288),
T.ToTensor(),
T.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])])
img = Image.open(urlopen(
'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))
output = model(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-CNN-288 on huggingface.co
3.8K
Total runs
969
24-hour runs
2.2K
3-day runs
2.7K
7-day runs
2.9K
30-day runs
More Information About MegaDescriptor-T-CNN-288 huggingface.co Model
MegaDescriptor-T-CNN-288 huggingface.co is an AI model on huggingface.co that provides MegaDescriptor-T-CNN-288's model effect (), which can be used instantly with this BVRA MegaDescriptor-T-CNN-288 model. huggingface.co supports a free trial of the MegaDescriptor-T-CNN-288 model, and also provides paid use of the MegaDescriptor-T-CNN-288. Support call MegaDescriptor-T-CNN-288 model through api, including Node.js, Python, http.
MegaDescriptor-T-CNN-288 huggingface.co is an online trial and call api platform, which integrates MegaDescriptor-T-CNN-288's modeling effects, including api services, and provides a free online trial of MegaDescriptor-T-CNN-288, you can try MegaDescriptor-T-CNN-288 online for free by clicking the link below.
BVRA MegaDescriptor-T-CNN-288 online free url in huggingface.co:
MegaDescriptor-T-CNN-288 is an open source model from GitHub that offers a free installation service, and any user can find MegaDescriptor-T-CNN-288 on GitHub to install. At the same time, huggingface.co provides the effect of MegaDescriptor-T-CNN-288 install, users can directly use MegaDescriptor-T-CNN-288 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
MegaDescriptor-T-CNN-288 install url in huggingface.co: