Giter Site home page Giter Site logo

abdul25basit / deepfake-image-detection-api Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6 KB

This repository features a Deepfake Image Detection API developed with FastAPI. The API enables you to submit images and receive a response indicating whether the image is a deepfake.

Python 100.00%

deepfake-image-detection-api's Introduction

Deepfake Image Detection API

This repository contains a Deepfake Image Detection API built using FastAPI. The API allows you to send images and receive a response indicating whether the image is a deepfake or not.

Installation

To run this project locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/Abdul25Basit/Deepfake-Image-Detection-API.git
  2. Navigate to the project directory:

    cd Deepfake-Image-Detection-API

Setup

Follow the steps below to set up and run the API locally.

1. Create a Virtual Environment

python -m venv fastml

2. Activate the Virtual Environment

  • For Windows:
.\fastml\Scripts\activate
  • For macOS/Linux:
source fastml/bin/activate

3. Install Dependencies

pip install uvicorn gunicorn fastapi pydantic scikit-learn pandas pillow torch transformers python-multipart

4. Run the API

uvicorn mlapi:app --reload

The API will be running on http://localhost:8000.

Usage

To use the API, send a POST request to the / endpoint with an image file. Send the image using form data with key name image and type will be file.

Use Case

One use case for this API is integrating it into a social media application to distinguish between deepfake images and real images, enhancing the trust and authenticity of the content shared on the platform.

Contributing

Contributions are welcome! If you have any suggestions or improvements, please create an issue or submit a pull request.

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature/your-feature-name.
  3. Make your changes and commit them: git commit -m 'Add some feature'.
  4. Push to the branch: git push origin feature/your-feature-name.
  5. Open a pull request.

Contact

If you have any questions or feedback, please feel free to contact me at [email protected]

deepfake-image-detection-api's People

Contributors

abdul25basit avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.