How to use from the
Use from the
Diffusers library
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline

# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("dima806/deepfake_vs_real_image_detection", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("ompathak/DeepFakeDetection")

prompt = "-"
image = pipe(prompt).images[0]

DeepFakeDetection

Prompt
-

Model description


license: apache-2.0 metrics: - accuracy - f1

Checks whether an image is real or fake (AI-generated).

See https://www.kaggle.com/code/dima806/deepfake-vs-real-faces-detection-vit for more details.

``` Classification report:

          precision    recall  f1-score   support

    Real     0.9921    0.9933    0.9927     38080
    Fake     0.9933    0.9921    0.9927     38081

accuracy                         0.9927     76161

macro avg 0.9927 0.9927 0.9927 76161 weighted avg 0.9927 0.9927 0.9927 76161 ```

Download model

Weights for this model are available in PyTorch,Safetensors format.

Download them in the Files & versions tab.

Downloads last month
2
Safetensors
Model size
85.8M params
Tensor type
F32
·
Inference Examples
Examples
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for ompathak/DeepFakeDetection