Downloads · 30 days
0
Droan-Maheshwari/Synthetic-Image-Detector
Synthetic-Image-Detector is a machine learning model from Droan-Maheshwari. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Synthetic-Image-Detection A deep learning model built with TensorFlow/Keras and deployed as a Streamlit app to classify images as either real photographs or AI-generated.
Downloads · 30 days
0
Access
Public
Updated Nov 12, 2025
Repo size
109 MB
Likes
0
Public
Click a slice to open those files.
.h5109 MB · 100%
From the Hugging Face model README
Synthetic-Image-Detection A deep learning model built with TensorFlow/Keras and deployed as a Streamlit app to classify images as either real photographs or AI-generated.
This model (best_real_vs_ai_detector.h5) detects whether an image is AI-generated or Real.
It is a fine-tuned VGG16 model trained on custom datasets of AI-generated and real images.
The model outputs a single probability score:
It is used in an interactive Streamlit web app that allows users to upload an image, get predictions, and provide feedback to continuously improve the system.
project/
│
├── app.py # Streamlit web interface
│
├── models/
│ └── best_real_vs_ai_detector.h5 # Model file (auto-downloaded from Hugging Face)
│
├── feedback/ # Saved feedback images from the Streamlit app
│ ├── correct_real/
│ ├── correct_ai/
│ ├── incorrect_real/
│ └── incorrect_ai/
│
├── requirements.txt # Dependencies for app and scripts
└── README.md # Documentation
💻 Usage
1️⃣ Install dependencies
pip install -r requirements.txt
2️⃣ Run the Streamlit app
streamlit run app.py
The first run will automatically download the model from Hugging Face into the models/ folder.
Then open the app in your browser:
http://localhost:8501
Upload an image, click Analyze, and the app will tell you if it’s Real or AI-Generated — with confidence percentage.
You can also provide feedback (Yes/No) to help future retraining.