frozencherry/Forgery-Localization-App
1
1---2title: Forgery Localization App3emoji: 🖼️4colorFrom: green5colorTo: blue6sdk: gradio7sdk_version: 5.39.08app_file: app.py9pinned: false10---11 12# Forgery Localization App13 14This Hugging Face Space hosts a Gradio application for detecting forged regions in images using an ELA (Error Level Analysis) and CNN based model.15 16## How to use17 181. Upload an image (JPG, PNG, TIF).192. The application will process the image and display a forgery mask, highlighting potential manipulated areas.20 21## Model Details22 23The core of this application is a TensorFlow/Keras model (`final_finetune.keras`) that takes two inputs: the original image and its ELA preprocessed version. The model outputs a single-channel mask indicating forged regions.24 25## Local Development26 27To run this application locally, ensure you have Python 3.9+ and the following dependencies installed in a virtual environment:28 29```bash30pip install -r requirements.txt31```32 33Then, run the application:34 35```bash36python app.py37```38 39The Gradio interface will be accessible via your web browser.