Is this real? True Masterpiece or not.
This is a course project for ECE-7123 Deep Learning of Youwen Zhang (yz6999) and Run Yu (ry2068).
├── data/ -- data dir
├── src/ -- scripts for model training, evaluation, and others
| ├── GAN.ipynb -- GAN model training scirpt
| ├── Evaluation.ipynb -- evaluation script for FID
| └── ResNet50.ipynb -- ResNet50 training and evaluation script
├── images/ -- results
└── README.md -- readme
-
Download data from Kaggle Dataset: Best Artworks of All Time
-
Run the
GAN.ipynb
on Kaggle Notebook or Google Colab.-
If you use Kaggle Notebook, please change the dir name in the Kaggle format.
-
If you use Google Colab, please download the dataset to your Google Colab with following instructions (~5mins):
!pip install kaggle !mkdir ~/.kaggle !echo '{"username":"","key":""}' >> kaggle.json # kaggle.json from kaggle account API !cp kaggle.json ~/.kaggle/ !chmod 600 ~/.kaggle/kaggle.json !kaggle datasets download ikarus777/best-artworks-of-all-time !unzip -qq best-artworks-of-all-time.zip
-
Train GAN models (~4hrs).
-
Generate fake images (~10mins).
-
-
Run the
Evaluation.ipynb
with real and fake images as input to calculate Frechet Inception Distance (FID) scores. -
Run the
ResNet50.ipynb
with real images as training set and test set. Then use the trained ResNet50 model to classify the fake images.
- Real artworks with generated images: