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")# 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
chore: archive legacy weights, rename ONNX to v1.1
Browse files- model_legacy.safetensors: archived old (incorrect) weights
- model_fixed.safetensors: explicit copy of current corrected weights
- onnx/ β onnx_v1.1/: ready for fresh re-export
- model_fixed.safetensors +3 -0
- model_legacy.safetensors +3 -0
- {onnx β onnx_v1.1}/model.onnx +0 -0
- {onnx β onnx_v1.1}/model_bnb4.onnx +0 -0
- {onnx β onnx_v1.1}/model_fp16.onnx +0 -0
- {onnx β onnx_v1.1}/model_int8.onnx +0 -0
- {onnx β onnx_v1.1}/model_q4.onnx +0 -0
- {onnx β onnx_v1.1}/model_q4f16.onnx +0 -0
- {onnx β onnx_v1.1}/model_quantized.onnx +0 -0
- {onnx β onnx_v1.1}/model_uint8.onnx +0 -0
- {onnx β onnx_v1.1}/quantize_config.json +0 -0
model_fixed.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:275ba982236ddd6afddf7131f8133e89f537574b964cf8fa5825b4956d741692
|
| 3 |
+
size 87270764
|
model_legacy.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:91a3c4d1b7d453b4b74e377c8e079662a6cc2c97f8ca448daedda8864ec54605
|
| 3 |
+
size 143969256
|
{onnx β onnx_v1.1}/model.onnx
RENAMED
|
File without changes
|
{onnx β onnx_v1.1}/model_bnb4.onnx
RENAMED
|
File without changes
|
{onnx β onnx_v1.1}/model_fp16.onnx
RENAMED
|
File without changes
|
{onnx β onnx_v1.1}/model_int8.onnx
RENAMED
|
File without changes
|
{onnx β onnx_v1.1}/model_q4.onnx
RENAMED
|
File without changes
|
{onnx β onnx_v1.1}/model_q4f16.onnx
RENAMED
|
File without changes
|
{onnx β onnx_v1.1}/model_quantized.onnx
RENAMED
|
File without changes
|
{onnx β onnx_v1.1}/model_uint8.onnx
RENAMED
|
File without changes
|
{onnx β onnx_v1.1}/quantize_config.json
RENAMED
|
File without changes
|