Downloads · 30 days
0
rsinema/aesthetic-scorer
aesthetic-scorer is a image classification model from rsinema. Use it when you need a label for an image. The card lists the license as mit.
This model predicts 7 different aesthetic metrics for images: - Overall aesthetic score - Technical quality score - Composition score - Lighting score - Color harmony score - Depth of field score - Content score
Downloads · 30 days
0
Access
Public
Updated Mar 20, 2025
Repo size
350 MB
Likes
13
Public
Click a slice to open those files.
.pt350 MB · 99%
From the Hugging Face model README
This model predicts 7 different aesthetic metrics for images:
from transformers import CLIPProcessor
from aesthetic_scorer import AestheticScorer
import torch
from PIL import Image
# Load the model
processor = CLIPProcessor.from_pretrained("rsinema/aesthetic-scorer")
model = torch.load("rsinema/aesthetic-scorer/model.pt")
# Process an image
image = Image.open("your_image.jpg")
inputs = processor(images=image, return_tensors="pt")["pixel_values"]
# Get scores
with torch.no_grad():
scores = model(inputs)
# Print results
aesthetic_categories = ["Overall", "Quality", "Composition", "Lighting", "Color", "Depth of Field", "Content"]
for category, score in zip(aesthetic_categories, scores):
print(f"{category}: {score.item():.2f}/5")