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
Commit History
-
fix(critical/BREAKING): correct config, regenerate weights, add ONNX v1.1, requires transformers >= 5.4.0 (#5)β
- fix: correct ViT-Small config β num_classes(1β2), num_attention_heads(12β6), preprocessor(resize 440β384 crop) (9c142fdc8818feea92c498810504b984a10208af) - chore: move custom wrapper to scripts/, mark as deprecated (ce27b428c7ab125baf8406e92e4f4bdc741b40fc) - feat: add ONNX quantized variants (8 models, 21MBβ138MB) (eebc18e3af3c4a17a047b78db8796d37e33b4644) - docs: overhaul README β fix notice, ONNX variant guide, test app, deprecate old ONNX repo (4c85d938aadb0e43fecbe7f4eeb736c3acf85fe7) - feat: test app v2 β compare tab, benchmark tab, help tab (ccffb9c25930bed2f44bc69274625a4fb3e53a66) - docs: update AGENTS.md β ONNX directory, test app, corrected config specs (502665e1beecb8c4300e7859505855e167c45b8d) - chore: stash UI improvements before test images (228935d40f87205cd867a3570b947a28374093eb) - feat: add Old vs New comparison tab (4d303126f065d3adcc50810ff3c03496403bb47b) - fix: resolve old checkpoint path relative to repo root (7ec67b8f7cc87d866f9341bca7f564a5cc1709ef) - fix: rβ¦0b8f9cb