Spring 2023 CS 444Assignment 4: Cat face generation with GANsDue date: Wednesday, April 19th, 11:59:59PM![]() Sample images from a GAN trained on the cat face dataset In this assignment, you will train a generative adversarial network (GAN) on a cat dataset and learn to generate cat face images. In addition to familiarizing you with generative models and recurrent neural networks, this assignment will help you gain experience with how to implement GANs in PyTorch and how to augment natural images. You will also get familiarised with one of the techniques to imporve the quality of images generated by GANs. This assignment was adapted from and inspired by material from the Stanford CS231n Assignments, the CMU 16-726 Assignment 3, and the PyTorch Tutorials. Download the starting code here. Data setupOnce you have extracted the zip file, go to the assignment folder and execute the download script provided:
Alternatively, you can download the cat face dataset from this download link (47.4 MB). The provided image data are all cropped and resized to the same width and height. ImplementationThe top-level notebook ( We also provide with a notebook to help with debugging called You will need to use a GPU for training your GAN. We recommend using Colab to debug, but a Google Cloud machine once your debugging is finished. Training the GAN should take roughly an hour. For reference, here are some samples of GAN (left) and LSGAN (right) output at various points during training:![]() Extra Credit
Useful Pointers
Environment Setup (Local)If you will be working on the assignment on a local machine then you will need a python environment set up with the appropriate packages. We suggest that you use Conda to manage python package dependencies (https://conda.io/docs/user-guide/getting-started.html). IPythonThe assignment is given to you in the Submission InstructionsThis assignment is due on Canvas on the due date specified above. You must upload the following files:
Please refer to course policies on collaborations, late submission, etc. |