Mindket

AI Generated Image Detector

Newversion 1 · updated

Overview

Judges whether a picture is real or AI-generated, using a classifier trained on texture patches from about 50,000 real and 50,000 generated images. For anyone who wants a quick second opinion on an image.

AI Generated Image Detector is a kit in the Productivity 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 with pip on Windows, macOS or Linux
  • The Python packages listed in requirements.txt
  • Nothing at all if you only use the Space in a browser
Runs in
  • A browser: the Space runs on Hugging Face with nothing to install
  • Windows, macOS or Linux: run a copy of the Space with Python
Start with
pip install -U huggingface_hub
hf download ymcmy/AI_Generated_Image_Detector --repo-type space --local-dir AI_Generated_Image_Detector
cd AI_Generated_Image_Detector

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

This Space is an image classifier that judges whether a picture is real or AI-generated. It cuts the image into patches, sorts them by how much texture they hold, then runs a frequency measure on each patch before a trained classifier decides. The trained weights are included in the repository.

Who it suits

Journalists, researchers and curious users who want a second opinion on a picture, and students who want to study a small detector end to end.

IndustryWho uses itHow they use itExample
MediaJournalistsGet a quick signal about a suspicious imageCheck a picture sent in by a reader
ResearchResearchersStudy a patch and frequency based detectorRead train.py and preprocess.py
EducationStudentsSee how an image classifier is trainedFollow the preprocess then train steps

People who need proof for a legal or newsroom decision can skip it, since a classifier gives an estimate and not proof.

Where to use it

  • A browser: the Space runs on Hugging Face with nothing to install
  • Windows, macOS or Linux: run a copy of the Space with Python
Use caseWhoWhat they get back
Check an imageJournalistsA real or AI-generated judgment for the picture
Study the methodResearchersCode for preprocessing, training and the model
RetrainStudentsA path to train your own copy on your data

How to set it up

  • Python with pip on Windows, macOS or Linux
  • The Python packages listed in requirements.txt
  • Nothing at all if you only use the Space in a browser
  1. Install the Hugging Face hub package.
  2. Download the Space's files into a folder.
  3. Move into that folder.
  4. Install Gradio 4.36.1 and the packages from requirements.txt.
  5. Start the app.
pip install -U huggingface_hub
hf download ymcmy/AI_Generated_Image_Detector --repo-type space --local-dir AI_Generated_Image_Detector
cd AI_Generated_Image_Detector
pip install gradio==4.36.1
pip install -r requirements.txt
python app.py

How to use it

Open the Space page in a browser, or start your own copy with the command below. Then give the page a picture to check.

python app.py

Example

You add a picture you are unsure about. The app runs its classifier on the image and returns whether it looks real or AI-generated.

For newcomers and experts

If you are new, open the Space and try a picture you know is a photo, then one you know was generated. Treat the answer as a hint and not a verdict.

For experts, the detector splits each image into patches, labels them rich or poor in texture, and computes an azimuthal integral for each patch with a positional embedding. The author suggests running preprocess.py first and saving the data as .h5 files, then running train.py. Preprocessing is slow and keeps the CPU busy, so do not run it during training.

  1. You add an image
  2. It is cut into patches
  3. Each patch gets a frequency measure
  4. The classifier gives its judgment

Good to know

  • License: mit
  • Cost to run: none named
  • Data it reaches: the image you give it, and the trained weights stored in the Space
  • Not for: proof that an image is fake, since the author reports 97.5 percent validation accuracy, so some images will be misjudged

README and files

README

AI Generated Image Detector

Judges whether a picture is real or AI-generated, using a classifier trained on texture patches from about 50,000 real and 50,000 generated images. For anyone who wants a quick second opinion on an image.

Made by ymcmy 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: This Space is an image classifier that judges whether a picture is real or AI-generated. It cuts the image into patches, sorts them by how much texture they hold, then runs a frequency measure on each patch before a trained classifier decides. The trained weights are included in the repository.

Who it suits: Journalists, researchers and curious users who want a second opinion on a picture, and students who want to study a small detector end to end.

Industry | Who uses it | How they use it | Example
Media | Journalists | Get a quick signal about a suspicious image | Check a picture sent in by a reader
Research | Researchers | Study a patch and frequency based detector | Read train.py and preprocess.py
Education | Students | See how an image classifier is trained | Follow the preprocess then train steps

People who need proof for a legal or newsroom decision can skip it, since a classifier gives an estimate and not proof.

Where to use it:

  • A browser: the Space runs on Hugging Face with nothing to install
  • Windows, macOS or Linux: run a copy of the Space with Python
Use case | Who | What they get back
Check an image | Journalists | A real or AI-generated judgment for the picture
Study the method | Researchers | Code for preprocessing, training and the model
Retrain | Students | A path to train your own copy on your data

How to set it up:

  • Python with pip on Windows, macOS or Linux
  • The Python packages listed in requirements.txt
  • Nothing at all if you only use the Space in a browser
  1. Install the Hugging Face hub package.
  2. Download the Space's files into a folder.
  3. Move into that folder.
  4. Install Gradio 4.36.1 and the packages from requirements.txt.
  5. Start the app.
pip install -U huggingface_hub
hf download ymcmy/AI_Generated_Image_Detector --repo-type space --local-dir AI_Generated_Image_Detector
cd AI_Generated_Image_Detector
pip install gradio==4.36.1
pip install -r requirements.txt
python app.py

How to use it: Open the Space page in a browser, or start your own copy with the command below. Then give the page a picture to check.

python app.py

Example: You add a picture you are unsure about. The app runs its classifier on the image and returns whether it looks real or AI-generated.

For newcomers and experts: If you are new, open the Space and try a picture you know is a photo, then one you know was generated. Treat the answer as a hint and not a verdict.

For experts, the detector splits each image into patches, labels them rich or poor in texture, and computes an azimuthal integral for each patch with a positional embedding. The author suggests running preprocess.py first and saving the data as .h5 files, then running train.py. Preprocessing is slow and keeps the CPU busy, so do not run it during training.

You add an image
It is cut into patches
Each patch gets a frequency measure
The classifier gives its judgment

Good to know:

  • License: mit
  • Cost to run: none named
  • Data it reaches: the image you give it, and the trained weights stored in the Space
  • Not for: proof that an image is fake, since the author reports 97.5 percent validation accuracy, so some images will be misjudged

On Hugging Face, 13 November 2026

  • Likes: 11
  • Built with: gradio
  • License: mit

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  4 KB

1 file, 4 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
AI Generated Image Detector This page11gradiomit
MusicGenShares gradio5,116gradiocc-by-nc-4.0
Kokoro TTSShares gradio3,556gradioapache-2.0
Background RemovalShares gradio2,988gradiomit
Omni Image EditorShares gradio2,922gradiomit
Diffusers Image OutpaintShares gradio2,565gradioapache-2.0
Numbers as Mindket last read them, on 2026-11-12.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

Bonsai-27B-GGUF

lmstudio-community · Kit

A GGUF conversion of the 27B Bonsai model for LM Studio, with a 3.80 GB Q1_0 language file and a 0.93 GB BF16 vision projector. Tested for text, vision and par…

New

Runs DeepSeek-V4.1-Flash-1017 as a 2.9 bits-per-weight EXL3 quantization, a 196 GiB copy for people serving large models on their own hardware. Perplexity stay…

New

MusicGen Small

facebook · Kit

Generates short music clips from a text description or an audio prompt, in the small checkpoint of facebook's MusicGen. It suits developers and music hobbyists…

New

Similar in Productivity

See all in Productivity

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

Guizang PPT Skill

op7418 · Skill

Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…

New29.8k

Frontend Slides

zarazhangrui · Skill

Builds HTML presentations from scratch or from a PowerPoint file and shows visual style previews to pick from, for people who want web slides with no CSS or Ja…

New32.3k