femboydetector (AstrBot Img Curator Taste DINOv2 v1)
The repo name is a joke; the model does not detect femboys, gender or identity. It is a three-class "taste" classifier used by the AstrBot image-curator plugin to decide whether a picture/video frame is worth collecting. It must not be used to infer anything about real people.
0 skip do not collect
1 suspicious resolved by the publisher's saved-image count, not by the model
2 collect collect
Architecture: DINOv2 ViT-S/14 (vit_small_patch14_dinov2.lvd142m) with a frozen
backbone and a linear probe head (LayerNorm + Dropout 0.2 + Linear(384, 3)).
Training used 224x224 inputs, batch 32, AdamW (head lr 1e-3), 20+ epochs on a
private dataset of collect / suspicious / skip favourites.
- Input:
[1, 3, 224, 224]float32, ImageNet normalization - Output:
logits [1, 3] class_names = ["skip", "suspicious", "collect"],positive_class_index = 2collectthreshold: frommodel_config.json(calibrated on validation for 0.95 precision)
Preprocessing (must match inference.py)
RGB
-> resize shortest edge to 256, bicubic
-> center crop 224x224
-> /255
-> ImageNet mean [0.485, 0.456, 0.406]
-> std [0.229, 0.224, 0.225]
-> NCHW float32
The suspicious class
The model only outputs probabilities. Turning suspicious into a save/no-save
decision is a product policy applied outside the model, based on how many images
the publisher already has saved:
publisher_saved_count < 3 -> cache (pending)
3 <= count < 5 -> skip
count >= 5 -> save
Policy keys: suspicious_policy.save_at_saved_count (5) and
suspicious_policy.cache_below_saved_count (3) in model_config.json.
Metrics for the shipped checkpoint are in evaluation_test.json (collect
precision/recall/F1 at the calibrated threshold, plus per-class numbers).
Files
best.pt- PyTorch checkpoint (state dict, class names, training config, metrics)taste_classifier.onnx- fixed-shape ONNX (opset 17) for CPU inferencemodel_config.json- preprocessing, class order, threshold, suspicious policyinference.py- onnxruntime CPU inference (TasteClassifier) anddecide_save()threshold*.json,evaluation_test.*- calibration sweeps and test-split metricsonnx_parity.json- PyTorch vs ONNX parity check
Usage
from inference import TasteClassifier, decide_save
clf = TasteClassifier("taste_classifier.onnx", "model_config.json")
result = clf.predict(pil_image) # label, collect_score, class_scores, logits
decision = decide_save(
result["label"],
publisher_saved_count,
clf.config.get("suspicious_policy"),
) # "save" | "cache" | "skip"
Runtime dependencies: onnxruntime, numpy, Pillow only - no torch needed.
Privacy
Released without any training images, dataset files, QQ numbers, group IDs or nicknames. Paths inside the metrics files are rewritten to dataset-relative form before publishing.