Giter Site home page Giter Site logo

aml's Introduction

Generating Monet Paintings via CycleGAN

This repository contains code to train a CycleGAN and analyze the results.


Data

  • The dataset used was downloaded from Kaggle and contains two directories: Monet and Photo.
  • The Monet directory contains 300 Monet paintings sized 256x256 in JPEG format.
  • The Photo directory contains 7028 photos sized 256x256 in JPEG format.

Use pre-trained model

  • The notebook "GenerateMonetFromExcistingModel.ipynb" uses google drive to upload the data. In order for that notebook to run smoothly, uploading a zip of the generate.zip folder to your google drive is necessary. Here is a link to the folder: https://drive.google.com/file/d/1NZMds1WLYqjvS8Qrhb3fIaOAhrWGK7XJ/view?usp=sharing
  • The runbook generates Monets from 4 different pictures using a pre-existing model (the best model) for two different epoch numbers (epoch 2 and epoch 100). These results are then combined into one .png image called "GeneratedMonets.png".

To train model:

  • Running main.py will train a model
  • To tweak parameters you can select a subset of hyperparamters, by chaning the index in the training step.
  • To monitor performance you can add your own Weight and Biasis api-key.
  • 6 types of images will be generated during training:
    • Original photos
    • Generated Monet
    • Reconstructed
    • Original Monet
    • Generated photo
    • Reconstructed Monet

Analysis

  • Data for the best model can be downloaded: https://drive.google.com/file/d/115vhzf6M-uzOwk8RGOGQh5i3a4YOnCUZ/view?usp=share_link
    • The data has already been pre-processed (so this step can be skipped in the analysis)
  • The analysis conists of:
    • A RGB comparison of images from a previous training with 3 different metrics (MSE,PSNR,SSIM)
    • A grey-scale comparison of images from a previous training
    • A comparison of original photos and reconstructed photos

aml's People

Contributors

harpagud avatar torap avatar booy99 avatar

Stargazers

Noah Syrkis avatar

Watchers

 avatar  avatar

aml's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.