Giter Site home page Giter Site logo

light-up's Introduction

Light-Up

Image Enhancement

Note: Please search in google for under-exposed or low contrast images before trying the web-app.

Quick Start: Enhance Low light Images -https://brightenhance.herokuapp.com/ Low-end version- https://enhanceimage.herokuapp.com/ [In case of hicupps, please referesh:)]

Losses

https://wandb.ai/vijish/uncategorized/reports/Losses---VmlldzoyNjYwNjc

Generator output (media)

https://wandb.ai/vijish/uncategorized/reports/Output--VmlldzoyNjYwNzA


Table of Contents

About Light-Up

The aim of the project is to enhance under-exposed Images. Before going into technical details I would like to show some pictures.

Example Images

Imgur

Imgur

Imgur

Imgur

Imgur

Imgur

Imgur

Imgur

Imgur

Imgur

Imgur

Imgur

Imgur

Imgur

Extremely Dark

Imgur

Almost NoGAN

The steps are as follows:

  • Train the generator with feature loss.
  • Train the critic on distinguishing between those outputs and real images.
  • Finally, train the generator and critic together in a GAN.

All the useful GAN training here only takes place within a very small window of time(thanks to DeOldify), This helped me do the whole project in Colab. The GAN training took about 25-30 minutes.

Technical Details

-Generator is pretrained U-Net

-This has been modified to have spectral normalization along with self attention.

Note: Perceptual Loss (or Feature Loss) based on VGG16--(Thanks to #Fast.ai)

Size of the input is progressively Changed and the learning rates are adjusted to make sure that the transitions between sizes happened successfully.

Docker

Clone the repo and navigate to the repo:

git clone https://github.com/vijishmadhavan/Light-Up.git app 
cd app/enhance

Build and run the docker image locally:

make run

Navigate to http://localhost:8501 for the app. (Streamlit runs on port 8501 by default)

Shutdown the server:

make stop 

Installation Details

This project is built around the wonderful Fast.AI library.

  • fastai==1.0.61 (and its dependencies). Please dont install the higher versions
  • PyTorch 1.6.0 Please don't install the higher versions

Credits

Project - https://github.com/jantic/DeOldify

Copyright (c) 2018 Jason Antic

License (MIT)-https://github.com/jantic/DeOldify/blob/master/LICENSE

light-up's People

Contributors

aniketwazarkar avatar

Watchers

 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.