Implements image synthesis with a robust classifier based on Computer Vision with a Single (Robust) Classifier. Implements image generation, inpainting, image-to-image translation, and super-resolution on CIFAR-10 and ImageNette images. This repo is meant to be run in Google Colab.
- Clone this repository with
git clone git@github.com:ShaanGondalia/robust-synthesis.git. - Visit the authors' GitHub repository to download the pre-trained CIFAR-10 model. Add this model to the
modelsfolder in this repository.- If you want to use ImageNette, download the pre-trained ImageNet model instead.
- Upload the root directory of the repository to your Google Drive, so that Colab can access your code.
- Change the
WORKDIRconstant inmain.ipynbto the path of your repository in Google Drive.
Download the ImageNette dataset from here. Add the downloaded data folder to the robust-synthesis/data folder. Make sure the folder is called imagenette.
Once the initial setup is complete, run main.ipynb in Google Colab. CUDA is required. See specific sections of the notebook for each synthesis technique.