Downloads · 30 days
1
3% of all-time downloads
keejkrej/smart-exclusion-resnet18
smart-exclusion-resnet18 is a image classification model from keejkrej. Use it when you need a label for an image. It is set up for transformers.js. The card lists the license as mit.
Binary image classifier for LiSCA Smart exclude: predicts whether a micropattern grid cell ROI should be excluded from downstream ROI export.
Downloads · 30 days
1
3% of all-time downloads
All-time downloads
39
Public
Repo size
44.7 MB
Likes
0
Public
Click a slice to open those files.
.onnx44.7 MB · 100%
From the Hugging Face model README
Binary image classifier for LiSCA Smart exclude: predicts whether a micropattern grid cell ROI should be excluded from downstream ROI export.
Trained on user-preference exclusions (edge-clipped sites filtered out). Labels:
| ID | Label |
|---|---|
| 0 | exclude |
| 1 | include |
Matches export_meta.json:
import { pipeline } from "@huggingface/transformers";
const classifier = await pipeline(
"image-classification",
"keejkrej/smart-exclusion-resnet18",
);
const outputs = await classifier(image);
// exclude when P(label=exclude) >= 0.5
cp /path/to/runs/<timestamp>/model.onnx ./onnx/model.onnx
cp /path/to/runs/<timestamp>/export_meta.json ./export_meta.json