To run locally:
- clone repo
- pip install -r requirements.txt
- store ur test-video in data folder.
- python main.py --input_path data/test_video.mp4 --output_path results --info_path method_info.json --device cpu --checkpoint_path checkpoints/model.pth
To run using Docker:
- https://hub.docker.com/r/tarunam172/altfreezing-image2
- Use the above link and pull image to local.
- To see the results folder, open a dir containing two folders (data,results) and CD to curr dir in cmd prompt.
- Put the .mp4 video in data folder.
- Run this cmd, docker run -v "path_to_dataFolder:/app/data" -v "path_to_resultsFolder:/app/results" tarunam172/altfreezing-image2 python main.py --input_path /app/data/your_test_video_name.mp4 --output_path /app/results --info_path /app/method_info.json --device cpu --checkpoint_path /app/checkpoints/model.pth
- Once it is run, result.json file will be created in results folder.
To run in Google colab: Connect to GPU
- Install python 3.9: !sudo apt-get install python3.9 python3.9-distutils python3.9-dev -y
- Get pip and install: !wget https://bootstrap.pypa.io/get-pip.py and !python3.9 get-pip.py
- Clone the github: !git clone https://github.com/Scoperr/deep-fake-dectection
- Navigate to deep-fake-detection folder: %cd deep-fake-dectection
- Install requirements.txt: !python3.9 -m pip install -r requirements.txt
- Use this cmd: !python3.9 main.py --input_path data/test_video_name --output_path results --info_path method_info.json --device cuda --checkpoint_path checkpoints/model.pth