Deepfake image detection project for CS523
Download dataset from: https://www.kaggle.com/xhlulu/140k-real-and-fake-faces
-
Save the dataset under the same directory as the jupyter notebook files. Under this dataset there should be 3 different dir named
train/
,valid/
, andtest/
. If you don't want to make changes to the path in the jupyter notebook file, you can name the dataset140K-data/
and make sure the path totrain/
,valid/
, andtest/
is called./140K-data/real_vs_fake/real-vs-fake/
. -
You can uncomment the Save Module cell and run the notebooks to train and save modules. Modules are saved under
.h5
extension. -
You can run cells below train with different modules to predict the model and get accuracy, results, and plots.
Pretrained model for Custom CNN is uploaded. Pretrained models for VGG16 and DenseNet are unable to be uploaded because they are too big.