Downloads · 30 days
0
champets/pet-breed-small-v1
pet-breed-small-v1 is a image classification model from champets. Use it when you need a label for an image. It is set up for timm. The card lists the license as mit.
Mục đích: mô hình demo phân loại một số giống chó/mèo phổ biến tại Việt Nam (corgi, poodle, shiba, aln, scottish). Trạng thái: minh họa giáo dục/nghiên cứu; không dùng cho chẩn đoán hay quyết định y tế.
Downloads · 30 days
0
Access
Public
Updated Oct 15, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 64%
From the Hugging Face model README
Mục đích: mô hình demo phân loại một số giống chó/mèo phổ biến tại Việt Nam (corgi, poodle, shiba, aln, scottish).
Trạng thái: minh họa giáo dục/nghiên cứu; không dùng cho chẩn đoán hay quyết định y tế.
from PIL import Image
import torch
from torchvision import transforms
# model = torch.jit.load("model.pt").eval() # khi có trọng số
preprocess = transforms.Compose([transforms.Resize((224,224)), transforms.ToTensor()])
img = Image.open("pet.jpg").convert("RGB")
x = preprocess(img).unsqueeze(0)
# logits = model(x); probs = torch.softmax(logits, dim=1)