Downloads · 30 days
6
0% of all-time downloads
DhruvJariwala/deepfake_vs_real_image_detection
deepfake_vs_real_image_detection is a image classification model from DhruvJariwala. Use it when you need a label for an image. It is set up for transformers.
This is a model finetuned on "google/vit-base-patch16-224-in21k" model for the image classification task to detect if the image is deepfake or not. Use following commands for inference. from transformers import pipeli…
Downloads · 30 days
6
0% of all-time downloads
All-time downloads
10.6K
Public
Parameters
85.8M
1 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt687 MB · 50%
From the Hugging Face model README
This is a model finetuned on "google/vit-base-patch16-224-in21k" model for the image classification task to detect if the image is deepfake or not. Use following commands for inference.
from transformers import pipeline from PIL import Image
model_name = "DhruvJariwala/deepfake_vs_real_image_detection"
pipe = pipeline('image-classification', model=model_name, device=0)
#load the image image_path = "/you_input_path/your_image.jpg" # Replace this with the path to your image image = Image.open(image_path)
pipe(image)