All Projects → JuheonYi → Dped Tensorflow

JuheonYi / Dped Tensorflow

TensorFlow implementation of "DSLR-Quality Photos on Mobile Devices with Deep Convolutional Networks"

Projects that are alternatives of or similar to Dped Tensorflow

Machinelearning
Machine learning algorithms implemented by pure numpy
Stars: ✭ 905 (+4013.64%)
Mutual labels:  jupyter-notebook
Python
Python code for YouTube videos.
Stars: ✭ 903 (+4004.55%)
Mutual labels:  jupyter-notebook
Pandas Formats Benchmark
A little benchmark comparing Pandas data frames serialization formats
Stars: ✭ 18 (-18.18%)
Mutual labels:  jupyter-notebook
Ml Spec
Code for Coursera's Machine Learning and Data Analysis specialization
Stars: ✭ 19 (-13.64%)
Mutual labels:  jupyter-notebook
Hacktoberfest 2k19
Stars: ✭ 20 (-9.09%)
Mutual labels:  jupyter-notebook
Recommendation System Practice Notes
《推荐系统实践》代码与读书笔记,在线阅读地址:https://relph1119.github.io/recommendation-system-practice-notes
Stars: ✭ 22 (+0%)
Mutual labels:  jupyter-notebook
Breast Cancer Prediction
Predicting the probability that a diagnosed breast cancer case is malignant or benign based on Wisconsin dataset
Stars: ✭ 19 (-13.64%)
Mutual labels:  jupyter-notebook
Finer Tsne
Code for the paper on t-SNE with variable degree of freedom
Stars: ✭ 22 (+0%)
Mutual labels:  jupyter-notebook
Cose474
COSE474: Deep Learning @ Korea University
Stars: ✭ 20 (-9.09%)
Mutual labels:  jupyter-notebook
Julia Programming Cookbook
Stars: ✭ 22 (+0%)
Mutual labels:  jupyter-notebook
Covid 19 Detection
Detecting Covid-19 from X-ray
Stars: ✭ 20 (-9.09%)
Mutual labels:  jupyter-notebook
Python
Stars: ✭ 20 (-9.09%)
Mutual labels:  jupyter-notebook
Tensorflow Tutorials
Series of Tensorflow Tutorials
Stars: ✭ 22 (+0%)
Mutual labels:  jupyter-notebook
Blog
A collection of resources and Jupyter notebooks from my blog.
Stars: ✭ 19 (-13.64%)
Mutual labels:  jupyter-notebook
Python Zero To Hero Beginners Course
Materials for a Python Beginner's Course. First given at the Royal Society of Biology. Designed and delivered by Chas Nelson and Mikolaj Kundegorski.
Stars: ✭ 22 (+0%)
Mutual labels:  jupyter-notebook
Machinelearningexp
MachineLearningExp.com projects
Stars: ✭ 19 (-13.64%)
Mutual labels:  jupyter-notebook
Spark Scala Tutorial
A free tutorial for Apache Spark.
Stars: ✭ 907 (+4022.73%)
Mutual labels:  jupyter-notebook
All Classifiers 2019
A collection of computer vision projects for Acute Lymphoblastic Leukemia classification/early detection.
Stars: ✭ 22 (+0%)
Mutual labels:  jupyter-notebook
Scite
Causality Extraction based on Self-Attentive BiLSTM-CRF with Transferred Embeddings
Stars: ✭ 22 (+0%)
Mutual labels:  jupyter-notebook
Fssgi
Exploratory Project on Fast Screen Space Global Illumination
Stars: ✭ 22 (+0%)
Mutual labels:  jupyter-notebook

TensorFlow-DPED

TensorFlow implementation of DPED [1]

Modifications

I had some difficulties reproducing the result when training with the same network architecture & parameters in the original paper, so I modified some points as follows.

  1. Removed batch normalization layer in generator network, as suggested in [2].
  2. Replaced the last layer of the generator network (tanh) to 1x1 convolutional layer (tanh layer didn't seem to train well).
  3. Modified weighting factors of each losses. When computing the losses as in build_generator_loss() function in DPED.py (line 104-121), they yielded values in different scales (e.g., color loss in 1e-1 scale, TV loss in 1e2 scale). I modified the weights so that they are scaled to comparable range. My preference was to give highest weight for the content loss (computed with VGG features), as the main difference between smartphone & DSLR pictures seemed to lie in the brightness. While I thought that color loss also was important, I did not give its weight as high as the content loss, as there are some pixel misalignments in the training dataset, as mentioned in the paper.
  4. Added data augmentation in dataloader by flipping, rotating (seems to be helpful since loss functions are shift-variant).
  5. Modified learning rate from 5e-4 to 1e-4.

Training result

  1. Training log
    • In DPED-main.ipynb (PSNR measurements on random test patches yield about 20~21 dB, similar to the original paper)
  2. Trained model
    • In "./checkpoints/" directory (currently I saved only models for "iphone" and "sony")
  3. Visual result (more examples in "./samples/iphone/image/" directory)

Example result

Codes I referenced for implementation

  1. Pretrained VGG for computing content loss
  2. Gaussian blurring for computing color loss

References

  • [1] Andrey Ignatov, Nikolay Kobyshev, Radu Timofte, Kenneth Vanhoey and Luc Van Gool. "DSLR-Quality Photos on Mobile Devices with Deep Convolutional Networks", in IEEE International Conference on Computer Vision (ICCV), 2017
  • [2] Bee Lim, Sanghyun Son, Heewon Kim, Seungjun Nah, and Kyoung Mu Lee, “Enhanced Deep Residual Networks for Single Image Super-Resolution,” in IEEE CVPR Workshops, 2017.
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].