Image Classification
Transformers
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") - 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
Update config.json
Browse files- config.json +1 -0
config.json
CHANGED
|
@@ -5,6 +5,7 @@
|
|
| 5 |
"Transformers"
|
| 6 |
],
|
| 7 |
"auto_map": {
|
|
|
|
| 8 |
"AutoModelForImageClassification": "modeling_vit_classifier.ViTForImageClassification"
|
| 9 |
},
|
| 10 |
"model": {
|
|
|
|
| 5 |
"Transformers"
|
| 6 |
],
|
| 7 |
"auto_map": {
|
| 8 |
+
"AutoModel": "modeling_vit_classifier.ViTClassifier"
|
| 9 |
"AutoModelForImageClassification": "modeling_vit_classifier.ViTForImageClassification"
|
| 10 |
},
|
| 11 |
"model": {
|