Skip to content

ishon19/CSE676-FinalProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Deep Learning (CSE-676) Spring 2022 Group Project

Introduction

This is the repo for the Deep Learning group project. We have implemented Pix2Pix conditional adversarial network using Pytorch and have used different datasets to test and validate our implementation, details mentioned below.

Setup

For running the project locally, we need following

  • Python
  • Installed instance of CUDA (optional, but essential for training huge datasets requiring more compute)

Getting Started

To run the project, you can choose a Pix2Pix specific dataset or create your own (as done in the anime_to_sketch.py script we created). The links to the datasets we have used in this project are listed down below:

We assume the Maps dataset is already downloaded for the purpose of this project, and have defaulted to Maps dataset if no specific dataset is provided in the command line argument as mentioned below

How to run

Please follow below command line arguments for running the project. In general, following flags are available to use

  • --flip to be used when we want to use the flip side of the image as input and other as target, false is the default value
  • --mode specifies in which mode the script is starting the available options are either test or train with test being the default option in case not specified
  • --epochs specifies how many epochs the training should run, defaults to 50
  • --loadmodel specifies whether to load the saved model for futher training, defaults to false

For instance to run the training on anime dataset while loading the saved model, in training mode with 100 epochs, we can use below command

python3 Pix2Pix.py --epochs=100 --mode=train --loadmodel=true --modelname=anime --flip=true

Please note that the order of the flags does not matter.

Results

image image

References

[1] Lecture Slides.

[2] Isola, Phillip and Zhu, Jun-Yan and Zhou, Tinghui and Efros, Alexei A, "Image-to-image translation with conditional adversarial networks", pp. 1125-1134, 2017

[3] Mirza, Mehdi and Osindero, Simon, "Conditional generative adversarial nets", arXiv preprint arXiv:1411.1784, 2014

[4] Zhang, Richard and Isola, Phillip and Efros, Alexei A, "Colorful image colorization", European conference on computer vision, pp. 649-666, Springer, 2016

About

Final Project Repo CSE676

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages