Real vs Fake Face Detector - AI Web App GenxiTechSolutions GenxiTech Solutions

Real vs Fake Face Detector 🔍🤖

A machine learning-powered web app that detects whether a face image is Real or Fake (AI-generated). Built using a deep learning model served via a smooth Node.js + Express backend and styled with a simple frontend interface. This project is open to improvements and community contributions! 💫

🧠 How It Works

🗃️ Dataset Used

This model was trained using the 140K Real and Fake Faces dataset from Kaggle.

📦 Dataset: https://www.kaggle.com/datasets/xhlulu/140k-real-and-fake-faces

⚠️ Note: This model performs best on images similar to the dataset (clean, centered, portrait-style images). Unseen fake styles or out-of-distribution faces may result in inaccurate predictions.

📦 Tech Stack

Layer Technology
FrontendHTML, CSS, JavaScript (jQuery)
BackendNode.js, Express
Machine LearningTensorFlow, Keras, Python
Image UploadMulter (memory storage)

🚀 Getting Started

  1. Clone the Repository
    git clone https://github.com/yourusername/RealVsFakeFaceDetector.git
    cd RealVsFakeFaceDetector
  2. Install Node.js Dependencies
    npm install
  3. Set Up Python Environment
    Make sure Python is installed (>= 3.10), and install required packages:
    pip install tensorflow numpy opencv-python
  4. Start the Server
    node server.js
  5. Visit the App in Your Browser
    http://localhost:4000
  6. Repository link
    https://github.com/emaaanbutt/ReaVsFakeFaceDetector

🎯 Prediction UI

Users can upload an image and get results displayed live under the form — without any page reloads!

Example output:

Prediction: Real (99.34%)
Prediction: Fake (78.23%)

⚠️ Limitations

✨ Future Improvements

❤️ Acknowledgements

📜 License

This project is licensed under the MIT License — free for personal or academic use. Please give credit if you use it or build upon it 💖

Preview