Skip to content

Techtronics21/Winter-Project---Image-Deepfake-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deepfake Image Detection

This project aims to build and train a model to detect AI-generated images.

Project Overview

This code implements a system that uses image embeddings, an autoencoder for dimensionality reduction, and a Random Forest Classifier to identify AI-generated images. It involves the following steps:

  1. Data Preparation: Extracts images from zip files, generates image embeddings using 'clip-ViT-L-14' model, and creates datasets with embeddings and labels (real/fake).
  2. Autoencoder Training: Trains an autoencoder to reduce the dimensionality of the image embeddings.
  3. Random Forest Classifier Training: Trains a Random Forest Classifier using the encoded embeddings to classify images as real or fake.
  4. Inference: Loads the trained models, generates embeddings for test images, encodes them using the autoencoder, and predicts the labels using the Random Forest Classifier.

Dependencies

  • Python 3.x
  • sentence_transformers
  • Pillow (PIL)
  • TensorFlow
  • scikit-learn
  • pandas
  • numpy
  • matplotlib
  • zipfile
  • requests
  • io
  • os

Usage

  1. Install Dependencies:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published