All Projects → Rishit-dagli → Mirnet Tfjs

Rishit-dagli / Mirnet Tfjs

Licence: apache-2.0
TensorFlow JS models for MIRNet for low-light image enhancement.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Mirnet Tfjs

Text Classification
Machine Learning and NLP: Text Classification using python, scikit-learn and NLTK
Stars: ✭ 239 (+64.83%)
Mutual labels:  jupyter-notebook
Deeptextures
Code to synthesise textures using convolutional neural networks as described in Gatys et al. 2015 (http://arxiv.org/abs/1505.07376)
Stars: ✭ 241 (+66.21%)
Mutual labels:  jupyter-notebook
Loss toolbox Pytorch
PyTorch Implementation of Focal Loss and Lovasz-Softmax Loss
Stars: ✭ 240 (+65.52%)
Mutual labels:  jupyter-notebook
Tacotron2
Tacotron 2 - PyTorch implementation with faster-than-realtime inference
Stars: ✭ 3,300 (+2175.86%)
Mutual labels:  jupyter-notebook
Numerical Linear Algebra V2
Jupyter Notebooks for Computational Linear Algebra course, taught summer 2018 in USF MSDS program
Stars: ✭ 241 (+66.21%)
Mutual labels:  jupyter-notebook
Retail Demo Store
AWS Retail Demo Store is a sample retail web application and workshop platform demonstrating how AWS infrastructure and services can be used to build compelling customer experiences for eCommerce, retail, and digital marketing use-cases
Stars: ✭ 238 (+64.14%)
Mutual labels:  jupyter-notebook
Deepreplay
Deep Replay - Generate visualizations as in my "Hyper-parameters in Action!" series!
Stars: ✭ 240 (+65.52%)
Mutual labels:  jupyter-notebook
Deeplearningcoursecodes
Notes, Codes, and Tutorials for the Deep Learning Course <which I taught at ChinaHadoop>
Stars: ✭ 241 (+66.21%)
Mutual labels:  jupyter-notebook
The Elements Of Statistical Learning Notebooks
Jupyter notebooks for summarizing and reproducing the textbook "The Elements of Statistical Learning" 2/E by Hastie, Tibshirani, and Friedman
Stars: ✭ 241 (+66.21%)
Mutual labels:  jupyter-notebook
Deeppicar
Deep Learning Autonomous Car based on Raspberry Pi, SunFounder PiCar-V Kit, TensorFlow, and Google's EdgeTPU Co-Processor
Stars: ✭ 242 (+66.9%)
Mutual labels:  jupyter-notebook
Pytorch Sentiment Analysis
Tutorials on getting started with PyTorch and TorchText for sentiment analysis.
Stars: ✭ 3,209 (+2113.1%)
Mutual labels:  jupyter-notebook
Udemy derinogrenmeyegiris
Udemy Derin Öğrenmeye Giriş Kursunun Uygulamaları ve Daha Fazlası
Stars: ✭ 239 (+64.83%)
Mutual labels:  jupyter-notebook
Tslab
Interactive JavaScript and TypeScript programming with Jupyter
Stars: ✭ 240 (+65.52%)
Mutual labels:  jupyter-notebook
Stat Nlp Book
Interactive Lecture Notes, Slides and Exercises for Statistical NLP
Stars: ✭ 240 (+65.52%)
Mutual labels:  jupyter-notebook
Neural Ordinary Differential Equations
Sample implementation of Neural Ordinary Differential Equations
Stars: ✭ 242 (+66.9%)
Mutual labels:  jupyter-notebook
Malaya
Natural Language Toolkit for bahasa Malaysia, https://malaya.readthedocs.io/
Stars: ✭ 239 (+64.83%)
Mutual labels:  jupyter-notebook
6.006 2015 Notebooks
Stars: ✭ 241 (+66.21%)
Mutual labels:  jupyter-notebook
Pycon Nlp In 10 Lines
Repository for PyCon 2016 workshop Natural Language Processing in 10 Lines of Code
Stars: ✭ 242 (+66.9%)
Mutual labels:  jupyter-notebook
Tacotron pytorch
PyTorch implementation of Tacotron speech synthesis model.
Stars: ✭ 242 (+66.9%)
Mutual labels:  jupyter-notebook
Jetcam
Easy to use Python camera interface for NVIDIA Jetson
Stars: ✭ 242 (+66.9%)
Mutual labels:  jupyter-notebook

MIRNet-TFJS Twitter URL

Deploy Node.js app Open TF Hub Launch Example Binder Open In Colab

GitHub license GitHub stars GitHub forks GitHub watchers

This repository shows the TFJS model conversion and inference processes for the for the MIRNet model as proposed by Learning Enriched Features for Real Image Restoration and Enhancement by Zamir et al. This model is capable of enhancing low-light images upto a great extent.

Examples

Model training code and pre-trained weights are provided by Soumik through this repository.

A bit about the architecture

The MIRNet presents a novel architecture with the collective goals of maintaining high-resolution representations through the entire network, and receiving strong contextual information from the low-resolution representations.

The core of this approach is a multi-scale residual block containing the following key elements:

  • parallel multi-resolution convolution streams for extracting multi-scale features
  • information exchange across the multi-resolution streams
  • spatial and channel attention mechanisms for capturing contextual information
  • attention based multi-scale feature aggregation.

Framework of MIRNet

The figure above shows the framework of the proposed network MIRNet that learns enriched feature representations for image restoration and enhancement.

About the notebooks

MIRNet_Saved_Model.ipynb

Binder Open In Colab

This notebook shows the the process of downloading pre-trained weights for the MIRNet model and saving it as a SavedModel.

MIRNet_TFJS.ipynb

Binder Open In Colab

This notebook shows the the process of converting the SavedModel to the TFJS format we built in the prequel notebook for the MIRNet model. It also shows performing optimizations on this.

MIRNet_Inference.ipynb

Binder Open In Colab

This notebook shows the the process of inferencing for the MIRNet model on a couple of low light photos.

Running the TFJS Model, An example

The example can be launched by simply clicking on this button Launch Example. The code for the example can be found under the example folder in this repo. As of now this example is a very minimalistic one as you can see in the below image. The example website is deployed on the free tier of Azure App Services so inferences could take quite some time (90 seconds or so) when a lot of folks might be using it at the same time.

Getting Started

To get up and running with this example, run the following commands, make sure you have Node.js installed.

git clone [email protected]:Rishit-dagli/MIRNet-TFJS.git # or clone your own fork
cd MIRNet-TFJS
cd example # switch to the example folder
npm install
npm start

Your app should now be running on localhost:3000 🚀.

Run online on Repl.it

Alternatively you could also get up and running with this example with the free to use online service Repl.it. Get started by clicking on this button Run on Repl.it after which you would click the Run button on the top or run npm start and voila your app is now running 🚀.

Troubleshooting

The example folder has a standalone modeltest.js file, which tries to run the model on a specified file and then save the output to test the model. You can test the model with this file through:

git clone [email protected]:Rishit-dagli/MIRNet-TFJS.git # or clone your own fork
cd MIRNet-TFJS
cd example # switch to the example folder
npm install
node modeltest.js

The modeltest.js uses the input.PNG image file in the root directory and outputs a output.Png image file.

Contributors

License

Copyright 2020 Rishit Dagli

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].