Downloads · 30 days
8
2% of all-time downloads
eligapris/v-mdd-2000
v-mdd-2000 is a image classification model from eligapris. Use it when you need a label for an image. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
8
2% of all-time downloads
All-time downloads
469
Public
Parameters
23.6M
283 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors189 MB · 50%
From the Hugging Face model README
| Metric | Value |
|---|---|
| Loss | 0.5462 |
| Accuracy | 0.7371 |
| Type | Value |
|---|---|
| Macro | 0.3900 |
| Micro | 0.7371 |
| Weighted | 0.6628 |
| Type | Value |
|---|---|
| Macro | 0.3468 |
| Micro | 0.7371 |
| Weighted | 0.6320 |
| Type | Value |
|---|---|
| Macro | 0.4972 |
| Micro | 0.7371 |
| Weighted | 0.7371 |
This model is designed for image classification. Here's how you can use it:
from transformers import AutoImageProcessor, AutoModelForImageClassification
import torch
from PIL import Image
model_name = "eligapris/v-mdd-2000"
processor = AutoImageProcessor.from_pretrained(model_name)
model = AutoModelForImageClassification.from_pretrained(model_name)
image = Image.open("path_to_your_image.jpg")
inputs = processor(images=image, return_tensors="pt")
with torch.no_grad():
outputs = model(**inputs)
logits = outputs.logits
predicted_class_idx = logits.argmax(-1).item()
print("Predicted class:", model.config.id2label[predicted_class_idx])