Downloads · 30 days
0
JosephCatrambone/badcrop
badcrop is a machine learning model from JosephCatrambone. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Detects bad crop jobs and misalignments, like screenshots from phones that should be trimmed down to relevant details.
Downloads · 30 days
0
Access
Public
Updated Dec 14, 2025
Repo size
86.7 MB
Likes
0
Public
Click a slice to open those files.
.onnx86.7 MB · 100%
From the Hugging Face model README
Detects bad crop jobs and misalignments, like screenshots from phones that should be trimmed down to relevant details.
Version 8.
Training progress: https://wandb.ai/josephc/bad_crop/overview
import numpy
import onnxruntime as ort
session = ort.InferenceSession("./bad_crop.onnx")
blank = numpy.zeros((1, 3, 224, 224), dtype=numpy.float32)
out = torch.softmax(torch.tensor(session.run(["output"], {"input": blank,})[0][0]), axis=0)
print(out) # tensor([9.9941e-01, 5.8832e-04]) # Bad crop, good crop