Upload folder using huggingface_hub
Browse files- README.md +38 -0
- model.onnx +3 -0
- model.safetensors +3 -0
README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: onnx
|
| 4 |
+
tags:
|
| 5 |
+
- image-classification
|
| 6 |
+
- ai-image-detection
|
| 7 |
+
- deepfake-detection
|
| 8 |
+
- onnx
|
| 9 |
+
- webgpu
|
| 10 |
+
base_model: OwensLab/commfor-model-384
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# Detectra detector v1
|
| 14 |
+
|
| 15 |
+
On-device AI-image detector powering the [Detectra Chrome extension](https://github.com/ashhart/Detectra):
|
| 16 |
+
a ViT-S/16 @384 binary classifier (`sigmoid(logit)` = probability the image is
|
| 17 |
+
AI-generated), exported to single-file fp16 ONNX for ONNX Runtime Web
|
| 18 |
+
(WebGPU/WASM).
|
| 19 |
+
|
| 20 |
+
Fine-tuned from the MIT-licensed
|
| 21 |
+
[Community Forensics ViT-S](https://huggingface.co/OwensLab/commfor-model-384)
|
| 22 |
+
(Park & Owens, CVPR 2025) on modern generators (DALL·E 3, Midjourney, Flux,
|
| 23 |
+
SD3.5, Recraft, HiDream), in-the-wild social-media data (WildRF train), and a
|
| 24 |
+
replay slice of CommunityForensics-Small, with web-realism augmentation
|
| 25 |
+
(JPEG cascades, resize chains). GPT-4o and Ideogram were held out entirely.
|
| 26 |
+
|
| 27 |
+
Preprocessing: shortest edge → 440 (bilinear) → center-crop 384 → [0,1] →
|
| 28 |
+
ImageNet normalize. Input `pixel_values` 1×3×384×384 fp32, output `logit` 1×1.
|
| 29 |
+
|
| 30 |
+
Held-out results through the extension pipeline @0.65 threshold:
|
| 31 |
+
WildRF-test 97.6% balanced accuracy (mangled 97.1%), modern-generator eval
|
| 32 |
+
98.3%. Full training + evaluation code: https://github.com/ashhart/Detectra
|
| 33 |
+
|
| 34 |
+
sha256(model.onnx) = 94fac18030826da368304e0cd79ff831df3ab6e46f95463a84b19793a9d2692d
|
| 35 |
+
|
| 36 |
+
## Files
|
| 37 |
+
- model.onnx — fp16 ONNX export (deployed by the extension)
|
| 38 |
+
- model.safetensors — fp32 fine-tuned checkpoint (for further training/audit)
|
model.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:94fac18030826da368304e0cd79ff831df3ab6e46f95463a84b19793a9d2692d
|
| 3 |
+
size 43684258
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bad21cbc9c941e41458695b981b8c9474f5a2a20ec185d1f8a15bf809d8384bf
|
| 3 |
+
size 87262324
|