Mindket

Deepfake Detect

Newversion 1 · updated

Overview

A detector that tells real pictures from GAN-generated ones, using an ensemble of EfficientNet-B4 networks. It suits fact-checkers and researchers, with a Gradio page and a script.

Deepfake Detect is a kit in the Research category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Python and pip
  • The huggingface_hub package, to fetch the files
  • The packages in requirements.txt, plus Gradio
  • For the detector script, a conda environment from environment.yml and the model weights, which the README says to download and unzip under the main folder
Runs in
  • A web browser, straight from the Space page on Hugging Face
  • Windows, macOS or Linux with Python, as a local copy
  • A conda environment, for the detector script
Start with
pip install -U huggingface_hub
hf download artspark/deepfake-detect --repo-type space --local-dir deepfake-detect
cd deepfake-detect

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

Deepfake Detect is a Gradio app on Hugging Face Spaces that tells real pictures from ones made by a GAN. It combines several convolutional networks built on the EfficientNet-B4 backbone, each trained in a different way to hold up under compression and resizing. The repository also holds a script, an ROC notebook and the license file.

Who it suits

It suits people who need to check whether an image looks synthetic, and researchers who study image forensics.

IndustryWho uses itHow they use itExample
JournalismFact-checkersCheck whether a suspicious picture may be generatedRun a picture through the detector
Trust and safetyModeration teamsScreen uploaded images for synthetic onesScore an image from the command line
AcademiaForensics researchersStudy the detector and its ROC curvesOpen roc_curves.ipynb

Anyone who needs a guaranteed verdict can skip it, because a detector returns a score and the source gives no accuracy promise.

Where to use it

  • A web browser, straight from the Space page on Hugging Face
  • Windows, macOS or Linux with Python, as a local copy
  • A conda environment, for the detector script
Use caseWhoWhat they get back
Check one image onlineAnyone curiousA score for whether the picture looks real or synthetic
Score images from a scriptResearchersThe model score for a single image path
Review performanceResearchersROC curves for each dataset from the notebook

How to set it up

Using the Space online needs nothing. A local copy of the Space needs these first.

  • Python and pip
  • The huggingface_hub package, to fetch the files
  • The packages in requirements.txt, plus Gradio
  • For the detector script, a conda environment from environment.yml and the model weights, which the README says to download and unzip under the main folder
  1. Install the Hugging Face Hub package.
  2. Download the Space into a folder called deepfake-detect.
  3. Move into that folder.
  4. Install Gradio, then the packages from requirements.txt.
  5. Start the app.
pip install -U huggingface_hub
hf download artspark/deepfake-detect --repo-type space --local-dir deepfake-detect
cd deepfake-detect
pip install gradio
pip install -r requirements.txt
python app.py

For the detector script on its own, create the conda environment, unzip the downloaded weights and run the script on one image.

conda env create -f environment.yml
conda activate gan-image-detection
unzip weigths.zip
python gan_vs_real_detector.py --img_path $PATH_TO_TEST_IMAGE

How to use it

Open the Space page on Hugging Face and give it an image. From a terminal, run the detector script with the path of one image.

ToolWhat it does
app.pyRuns the Gradio page where you give an image
gan_vs_real_detector.pyGives the model score for one image path
roc_curves.ipynbComputes the ROC curve for each dataset

Example

You run the detector script on one photo and pass its path. The script gives back the model score for that picture, which tells you how synthetic it looks.

For newcomers and experts

If you are new, try the Space page with a photo you know is real. A GAN is a kind of program that generates pictures, and this tool scores how likely a picture is one of those.

If you know the field, the detector is an ensemble of EfficientNet-B4 networks trained with different recipes, following a published paper on training under JPEG compression. That aims to keep it working when images are compressed or resized.

  1. You give the app an image
  2. Several EfficientNet-B4 networks score it
  3. The scores combine into one result

Good to know

  • Weights come as a separate download that the README points to, and the script needs them in the main folder
  • A score is evidence, not proof, so treat it as one signal
  • License: gpl-3
  • Cost to run: none named
  • Data it reaches: the images you give it and a weights download from the author

README and files

README

Deepfake Detect

A detector that tells real pictures from GAN-generated ones, using an ensemble of EfficientNet-B4 networks. It suits fact-checkers and researchers, with a Gradio page and a script.

Made by artspark on Hugging Face. These notes are Mindket's, written from its Space page and README; the app's own files and license are on Hugging Face.

About

What it is: Deepfake Detect is a Gradio app on Hugging Face Spaces that tells real pictures from ones made by a GAN. It combines several convolutional networks built on the EfficientNet-B4 backbone, each trained in a different way to hold up under compression and resizing. The repository also holds a script, an ROC notebook and the license file.

Who it suits: It suits people who need to check whether an image looks synthetic, and researchers who study image forensics.

Industry | Who uses it | How they use it | Example
Journalism | Fact-checkers | Check whether a suspicious picture may be generated | Run a picture through the detector
Trust and safety | Moderation teams | Screen uploaded images for synthetic ones | Score an image from the command line
Academia | Forensics researchers | Study the detector and its ROC curves | Open roc_curves.ipynb

Anyone who needs a guaranteed verdict can skip it, because a detector returns a score and the source gives no accuracy promise.

Where to use it:

  • A web browser, straight from the Space page on Hugging Face
  • Windows, macOS or Linux with Python, as a local copy
  • A conda environment, for the detector script
Use case | Who | What they get back
Check one image online | Anyone curious | A score for whether the picture looks real or synthetic
Score images from a script | Researchers | The model score for a single image path
Review performance | Researchers | ROC curves for each dataset from the notebook

How to set it up: Using the Space online needs nothing. A local copy of the Space needs these first.

  • Python and pip
  • The huggingface_hub package, to fetch the files
  • The packages in requirements.txt, plus Gradio
  • For the detector script, a conda environment from environment.yml and the model weights, which the README says to download and unzip under the main folder
  1. Install the Hugging Face Hub package.
  2. Download the Space into a folder called deepfake-detect.
  3. Move into that folder.
  4. Install Gradio, then the packages from requirements.txt.
  5. Start the app.
pip install -U huggingface_hub
hf download artspark/deepfake-detect --repo-type space --local-dir deepfake-detect
cd deepfake-detect
pip install gradio
pip install -r requirements.txt
python app.py

For the detector script on its own, create the conda environment, unzip the downloaded weights and run the script on one image.

conda env create -f environment.yml
conda activate gan-image-detection
unzip weigths.zip
python gan_vs_real_detector.py --img_path $PATH_TO_TEST_IMAGE

How to use it: Open the Space page on Hugging Face and give it an image. From a terminal, run the detector script with the path of one image.

Tool | What it does
app.py | Runs the Gradio page where you give an image
gan_vs_real_detector.py | Gives the model score for one image path
roc_curves.ipynb | Computes the ROC curve for each dataset

Example: You run the detector script on one photo and pass its path. The script gives back the model score for that picture, which tells you how synthetic it looks.

For newcomers and experts: If you are new, try the Space page with a photo you know is real. A GAN is a kind of program that generates pictures, and this tool scores how likely a picture is one of those.

If you know the field, the detector is an ensemble of EfficientNet-B4 networks trained with different recipes, following a published paper on training under JPEG compression. That aims to keep it working when images are compressed or resized.

You give the app an image
Several EfficientNet-B4 networks score it
The scores combine into one result

Good to know:

  • Weights come as a separate download that the README points to, and the script needs them in the main folder
  • A score is evidence, not proof, so treat it as one signal
  • License: gpl-3
  • Cost to run: none named
  • Data it reaches: the images you give it and a weights download from the author

On Hugging Face, 13 November 2026

  • Likes: 0
  • Built with: gradio
  • License: gpl-3.0

Links

Try it

Open the Space in your browser, or copy it to your own Hugging Face account from its page. Nothing in this kit runs by itself.

Files
README.md  5 KB

1 file, 5 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Compare with similar

Listed Hugging Face Spaces in the same category that share the most tags with this one.

ProductLikesBuilt withLicenseLast change
Deepfake Detect This page0gradiogpl-3.0
Open VLM LeaderboardShares gradio1,034gradioapache-2.0
Face SwapShares gradio808gradiocc-by-nc-sa-4.0
TTS Spaces ArenaShares gradio493gradiozlib
Depth Anything 3Shares gradio490gradiocc-by-nc-4.0
BLIPShares gradio431gradiobsd-3-clause
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

anaksor-ocr

Sokheng · Kit

Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…

New

Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…

New

ACE-Step 1.5 XL SFT

ACE-Step · Kit

Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…

New

Similar in Research

See all in Research

Merlin-Cancer-Super

AbdomenAtlas · Kit

Detects and outlines tumors in 9 organs on CT scans, trained with the R-Super method that learns from radiology reports. A research model for medical imaging g…

New

EarthJev

dBenf · Kit

Answers typed questions about satellite image patches from all 12 Sentinel-2 bands, returning a probability for each option without writing text. A Qwen3.5-0.8…

New

getting-over-it-rl-jax

zimmerk4 · Kit

Plays the full game Getting Over It from the bottom to the end with a small trained policy network that learned inside a JAX physics simulator. For reinforceme…

New