How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("image-classification", model="not-lain/deepfake", trust_remote_code=True)
pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")
# Load model directly
from transformers import AutoModelForImageClassification
model = AutoModelForImageClassification.from_pretrained("not-lain/deepfake", trust_remote_code=True, dtype="auto")
Quick Links

original model repo :

πŸ“– this is a cutomized version of the following model aaronespasa/deepfake-detection-resnetinceptionv1

how to use

from transformers import pipeline
pipe = pipeline(model="not-lain/deepfake",trust_remote_code=True)
pipe.predict("img_path.jpg")
>> {"confidences":confidences,"face_with_mask": face_with_mask}

dependencies

to install related dependencies simply use the command

!wget https://huggingface.co/not-lain/deepfake/resolve/main/requirements.txt && pip install -r requirements.txt
Downloads last month
130
Safetensors
Model size
23.5M params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ 1 Ask for provider support

Model tree for not-lain/deepfake

Finetuned
(5)
this model

Spaces using not-lain/deepfake 7