Downloads · 30 days
0
chr1sggg/Film-Photo-Classification
Film-Photo-Classification is a image classification model from chr1sggg. Use it when you need a label for an image. The card lists the license as apache-2.0.
This model is built on the ResNet-18 CNN architecture and trained to distinguish film photographs from digital ones by analyzing differences in texture, color rendition, and overall visual characteristics. It designed…
Downloads · 30 days
0
Access
Public
Updated Jun 3, 2026
Repo size
89.6 MB
Likes
0
Public
Click a slice to open those files.
.pth44.8 MB · 100%
From the Hugging Face model README
This model is built on the ResNet-18 CNN architecture and trained to distinguish film photographs from digital ones by analyzing differences in texture, color rendition, and overall visual characteristics. It designed to capture the subtle traits that make film photography unique, and achieves great classification performance.
pip install huggingface_hub
pip install torch torchvision
from huggingface_hub import hf_hub_download
hf_hub_download(repo_id="chr1sggg/Film-Photo-Classification", filename="model.pth")
import torch
import torchvision
MODEL_PATH = "your_path"
DEVICE = "" #cuda / cpu / mps
model = torchvision.models.resnet18(weights=None)
model.fc = torch.nn.Linear(512, 2)
model.load_state_dict(
torch.load(MODEL_PATH, map_location=DEVICE)
)
model.to(DEVICE)
model.eval()