Image Classification
Transformers
ONNX
Safetensors
timm
vit
detection
deepfake
forensics
deepfake_detection
community
opensight
Instructions to use buildborderless/CommunityForensics-DeepfakeDet-ViT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use buildborderless/CommunityForensics-DeepfakeDet-ViT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="buildborderless/CommunityForensics-DeepfakeDet-ViT") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("buildborderless/CommunityForensics-DeepfakeDet-ViT") model = AutoModelForImageClassification.from_pretrained("buildborderless/CommunityForensics-DeepfakeDet-ViT", device_map="auto") - timm
How to use buildborderless/CommunityForensics-DeepfakeDet-ViT with timm:
import timm model = timm.create_model("hf-hub:buildborderless/CommunityForensics-DeepfakeDet-ViT", pretrained=True) - Inference
- Notebooks
- Google Colab
- Kaggle
feat: re-export ONNX from corrected ViT-Small weights
Browse files5 variants exported via optimum-cli + onnxruntime quantization:
- model.onnx (84 MB): FP32 base, matches PyTorch exactly
- model_int8.onnx (22 MB): dynamic INT8, best CPU speed
- model_uint8.onnx (22 MB): dynamic UINT8
- model_quantized.onnx (22 MB): alias of INT8
- model_q4.onnx (16 MB): 4-bit MatMul, smallest with good accuracy
Legacy ONNX variants archived in onnx_v1.1/.
FP16 and BNB4 skipped due to library API incompatibilities.
- onnx/model.onnx +3 -0
- onnx/model_int8.onnx +3 -0
- onnx/model_q4.onnx +3 -0
- onnx/model_quantized.onnx +3 -0
- onnx/model_uint8.onnx +3 -0
onnx/model.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a42c7d740fbb345ba9a26d469b22f301d73089ce3c6da993877ed2b6965a8ba1
|
| 3 |
+
size 87442080
|
onnx/model_int8.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:968f113f1107d58bfc73444b6e87020e2d541780ad43b7a1ac3e3b18b86c2bbd
|
| 3 |
+
size 23028026
|
onnx/model_q4.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e3091bf66b743559312b54e504d66a63bf5c6a5bc9a3ed0af933e12185d3d68a
|
| 3 |
+
size 15789307
|
onnx/model_quantized.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:968f113f1107d58bfc73444b6e87020e2d541780ad43b7a1ac3e3b18b86c2bbd
|
| 3 |
+
size 23028026
|
onnx/model_uint8.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6ae66948569b0d98d97f8143c0aeff43db846ebf3eab92450c8f4907b73e1439
|
| 3 |
+
size 23028063
|