historical-illustration-detector
14
license:apache-2.0
by
small-models-for-glam
Image Model
OTHER
New
14 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
Unknown
Mobile
Laptop
Server
Quick Summary
AI model with specialized capabilities.
Code Examples
Python (transformers + optimum)pythontransformers
from optimum.onnxruntime import ORTModelForImageClassification
from transformers import AutoImageProcessor
from PIL import Image
model = ORTModelForImageClassification.from_pretrained("small-models-for-glam/historical-illustration-detector")
processor = AutoImageProcessor.from_pretrained("small-models-for-glam/historical-illustration-detector")
image = Image.open("page.jpg")
inputs = processor(image, return_tensors="pt")
outputs = model(**inputs)
predicted_class = outputs.logits.argmax(-1).item()
# 0 = not-illustrated, 1 = illustratedDeploy This Model
Production-ready deployment in minutes
Together.ai
Instant API access to this model
Production-ready inference API. Start free, scale to millions.
Try Free APIReplicate
One-click model deployment
Run models in the cloud with simple API. No DevOps required.
Deploy NowDisclosure: We may earn a commission from these partners. This helps keep LLMYourWay free.