Spaces:
Running
Running
A newer version of the Streamlit SDK is available:
1.44.0
metadata
license: apache-2.0
title: Heatmap
sdk: streamlit
colorFrom: gray
colorTo: gray
pinned: true
sdk_version: 1.43.2
app_file: streamlit_app.py
Deepfake Detection System with Heatmap Visualization
This project implements a deepfake detection system that processes images through multiple stages:
Verification Module: Uses Nvidia AI model for image comparison - Calculates SMI (Structural Matching Index) - Generates difference images
Applies threshold visualization
- Adds bounding boxes around detected areas
Labeling System: Labels detected areas based on threat level
Heatmap Visualization: Creates heatmaps highlighting high-threat areas
Project Structure
deepfake_detector.py
: Core detection functionality using Nvidia AI modelimage_processor.py
: Image processing utilitieslabeling.py
: Threat labeling systemheatmap_generator.py
: Heatmap visualization toolsmain.py
: Main application entry pointrequirements.txt
: Project dependencies
Setup and Installation
pip install -r requirements.txt
Usage
python main.py --input_dir /path/to/images --output_dir /path/to/output