Downloads · 30 days
14
2% of all-time downloads
Sumsub/Sumsub-ffs-synthetic-2.0
Sumsub-ffs-synthetic-2.0 is a image classification model from Sumsub. Use it when you need a label for an image. It is set up for generic. The card lists the license as cc-by-sa-3.0.
Many people on the internet have recently been tricked by fake images of Pope Francis wearing a coat or of Donald Trump's arrest. To help combat this issue, we provide detectors for such images generated by popular to…
Downloads · 30 days
14
2% of all-time downloads
All-time downloads
649
Public
Repo size
795 MB
Likes
7
Public
Click a slice to open those files.
.pt795 MB · 100%
From the Hugging Face model README
Many people on the internet have recently been tricked by fake images of Pope Francis wearing a coat or of Donald Trump's arrest. To help combat this issue, we provide detectors for such images generated by popular tools like Midjourney and Stable Diffusion.
![]() | ![]() | ![]() |
|---|
The demo page can be found here.
Use the code below to get started with the model:
git lfs install
git clone https://huggingface.co/Sumsub/Sumsub-ffs-synthetic-2.0 sumsub-ffs-synthetic-v2
from sumsub-ffs-synthetic-v2.pipeline import PreTrainedPipeline
from PIL import Image
pipe = PreTrainedPipeline("sumsub-ffs-synthetic-v2/")
img = Image.open("sumsub-ffs-synthetic-v2/images/2.jpg")
result = pipe(img)
print(result)
You may need these prerequsites installed:
pip install -r requirements.txt
pip install "git+https://github.com/rwightman/pytorch-image-models"
pip install "git+https://github.com/huggingface/huggingface_hub"
The models were trained on the following datasets:
To improve the performance metrics, we used data augmentations such as rotation, crop, Mixup and CutMix. Each model was trained for 30 epochs using early stopping with batch size equal to 32.
For evaluation we used the following datasets:
AI photos:
Realistic photos:
| Dataset | Accuracy |
|---|---|
| Kaggel SD Faces | 0.984 |
| DiffusionDB | 0.920 |
| Stable Diffusion Wordnet Dataset | 0.950 |
| MS COCO | 0.953 |
| Kaggle Midjourney 2022-250k | 0.938 |
| Kaggle Midjourney v5.1 | 0.971 |
| VizWiz Visual Question Answering dataset validation part | 0.998 |

If you find this useful, please cite as:
@misc{sumsubaiornot,
publisher = {Sumsub},
url = {https://huggingface.co/Sumsub/Sumsub-ffs-synthetic-2.0},
year = {2023},
author = {Savelyev, Alexander and Toropov, Alexey and Goldman-Kalaydin, Pavel and Samarin, Alexey},
title = {For Fake's Sake: a set of models for detecting deepfakes, generated images and synthetic images}
}