This repository contains all my work for the Udacity's Deep Learning Nanodegree Program.
The goal in this project was to perform a Deep Generative Adversarial Network (DCGAN) to generate new images of faces that look as realistic as possible.
To accomplish this, I implemented DCGAN model adversarial networks (discriminator and generator) with PyTorch tracking their losses to avoid overfitting. Then, initialized hyperparameters (learning rate, epochs) and network weights to help the model to converge. Finally, I trained the DCGAN network tracking the generator and discriminator losses to avoid overfitting.
Learn to understand Generative Adversarial Networks in this project and implement a Deep Convolutional GAN. This DCGAN is made of a pair of multi-layer neural networks that compete against each other until one learns to generate realistic images of faces.
In this project, you'll define and train a DCGAN on a dataset of faces. Your goal is to get a generator network to generate new images of faces that look as realistic as possible.
This project uses the following software and Python libraries:
You will also need to have software installed to run and execute a Jupyter Notebook.
If you do not have Python installed yet, it is highly recommended that you install the Anaconda distribution of Python, which already has the above packages and more included.
This repository contains three files needed to solve the project.
- dlnd_face_generation.ipynb: This is the main file where I performed the work on the project.
- dlnd_face_generation.html: This is an HTML report of the Jupyter notebook.
- assets/processed_face_data.png: Example of human faces.
- problem_unittests.py: Unit tests to verify correct functionality of the algorithms created.
In the Terminal or Command Prompt, navigate to the folder on your machine where you've put the project files, and then use the command:
jupyter notebook dlnd_face_generation.ipynbto open up a browser window or tab to work with your notebook. Alternatively, you can use the command:
jupyter notebookor
ipython notebookand navigate to the notebook file (dlnd_face_generation.ipynb) in the browser window that opens.