Edit model card

Hiera mae_in1k_ft_in1k

This model is the transformers format converted version of the Hiera model mae_in1k_ft_in1k (https://github.com/facebookresearch/hiera)

Hiera: A Hierarchical Vision Transformer without the Bells-and-Whistles

from PIL import Image
import torch
from transformers import AutoModelForImageClassification, AutoImageProcessor

REPO = "p1atdev/hiera_mae_in1k_ft_in1k"

processor = AutoImageProcessor.from_pretrained(REPO)
model = AutoModelForImageClassification.from_pretrained(REPO, trust_remote_code=True)

image = Image.open("image.png")
with torch.no_grad():
  outputs = model(**processor(image, return_tensors="pt"))
print(outputs.logits.argmax().item())
# 207 (golden retriever (imagenet-1k))
Downloads last month
0
Safetensors
Model size
27.9M params
Tensor type
F32
·
Inference Examples
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social visibility and check back later, or deploy to Inference Endpoints (dedicated) instead.

Dataset used to train p1atdev/hiera_mae_in1k_ft_in1k_very_experimental_do_not_use