Git Product home page Git Product logo

artistia's Introduction

Artistia

logo

A website made using HTML, CSS, Bootstrap and Flask to perform computer vision related tasks like style transfer and image colorization. Style transfer was made using transfer learning(vgg16) and tensorflow framework in Python and for image colorization we trained an autoencoder and the u-net model on images obtained from Flickr dataset.

Setting up and running the project

  1. Fork the repo and clone it.
git clone https://github.com/EnigmAI/Artistia.git
  1. To download the required packages run the commands below
pip install -r requirements.txt
  1. To start the backend server run the following command
python main.py
  1. Open your browser and navigate to the url below
http://localhost:5000

Deep Learning Models

  • Style Transfer - We used two different implementations of style transfer. One is for low resolution images and the other one for high resolution images, both made using Tensorflow framework. The difference between the two is only the optimizer, we used fmin_l_bfgs_b optimizer from scipy for low resolution image style transfer and SGD optimizer from tensorflow for high resolution image style transfer. We got better results in fewer epochs using fmin_l_bfgs_b but it was unable to handle higher resolution images so we used SGD for those. Both the implementations use transfer learning(pretrained vgg16 on imagenet dataset) and optimizes the image. Content optimization is done by reducing loss between convolutional outputs of content image and current image obtained from VGG while style optimization is done by reducing loss between gram matrices of convolutional outputs of current image and style image obtained at five different points from the VGG model. To understand style transfer more in-depth go through the OptimizingContent.ipynb, OptimizingStyle.ipynb, StyleTransfer.ipynb inside NeuralStyleTransfer directory.

  • Image Colorization - For image colorization we made an autoencoder and u-net model using tensorflow framework that we trained on images obtained from Flickr dataset. Instead of using RGB image format we converted images to LAB format(L channel is basically grayscale and AB channel contains information regarding colour of the image). The models take in the L channel(grayscaled image) as input then predicts AB channel, then we combine all the channels to get the final coloured image. To understand it better go through the jupyter notebooks provided inside the ImageColorization directory.

Preview

Disclaimer - Loading time to get the results were skipped in this preview for convenience but it might take upto 1 minute to get the actual results.

artistia's People

Contributors

frostday avatar aditya-u avatar

Watchers

James Cloos avatar

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.