Skip to content

CodingwithArya/DeFakeIt

Repository files navigation

DeFakeIt

SWECC Hackathon Project

setup

  1. Clone this repository and cd into it

  2. Install the required dependencies:

  • (Probably best to create a specific env for this project)
pip install -r requirements.txt

(macOS only)

pip install -r requirements-mac.txt
  1. Run the application:
python server.py --port 5001
  1. Test through terminal:
python test_model.py /path/to/img.jpg

setting up google chrome extension

  1. Open Chrome and go to chrome://extensions/
  2. Enable Developer mode (toggle in the top-right)
  3. Load unpacked and select the project’s extension/ folder. (You should now see “DeFakeIt” in your list of extensions!)
  4. Click the puzzle-piece icon in Chrome’s toolbar, then click the pin icon next to DeFakeIt to make it visible. Click the DeFakeIt icon to open its popup.
  5. Now test it! Click "Capture Screenshot," "Browse" to choose a local image file, or copy and paste an image. Then wait for a couple seconds, and on the bottom, there will be a popup with the probability that the picture is a deepfake!

About

SWECC Hackathon Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors