All Projects → MrRobot2211 → pytorch-deep-photo-enhancer

MrRobot2211 / pytorch-deep-photo-enhancer

Licence: MIT license
pytorch implementation of deep photo enhancer

Programming Languages

python
139335 projects - #7 most used programming language
Jupyter Notebook
11667 projects

Projects that are alternatives of or similar to pytorch-deep-photo-enhancer

Cartoonize
A demo webapp to convert images and videos into cartoon!
Stars: ✭ 215 (+834.78%)
Mutual labels:  gans
Segan pytorch
Speech Enhancement Generative Adversarial Network in PyTorch
Stars: ✭ 242 (+952.17%)
Mutual labels:  gans
Everybody-dance-now
Implementation of paper everybody dance now for Deep learning course project
Stars: ✭ 22 (-4.35%)
Mutual labels:  gans
Awesome Gans And Deepfakes
A curated list of GAN & Deepfake papers and repositories.
Stars: ✭ 224 (+873.91%)
Mutual labels:  gans
Book deeplearning in pytorch source
Stars: ✭ 236 (+926.09%)
Mutual labels:  gans
SMIT
Pytorch implemenation of Stochastic Multi-Label Image-to-image Translation (SMIT), ICCV Workshops 2019.
Stars: ✭ 37 (+60.87%)
Mutual labels:  gans
Colorizing With Gans
Grayscale Image Colorization with Generative Adversarial Networks. https://arxiv.org/abs/1803.05400
Stars: ✭ 209 (+808.7%)
Mutual labels:  gans
tools-generation-detection-synthetic-content
Compilation of the state of the art of tools, articles, forums and links of interest to generate and detect any type of synthetic content using deep learning.
Stars: ✭ 107 (+365.22%)
Mutual labels:  gans
Finegan
FineGAN: Unsupervised Hierarchical Disentanglement for Fine-grained Object Generation and Discovery
Stars: ✭ 240 (+943.48%)
Mutual labels:  gans
GAN-XML-Fixer
No description or website provided.
Stars: ✭ 55 (+139.13%)
Mutual labels:  gans
Pytorch Cyclegan And Pix2pix
Image-to-Image Translation in PyTorch
Stars: ✭ 16,477 (+71539.13%)
Mutual labels:  gans
Awesome Real World Rl
Great resources for making Reinforcement Learning work in Real Life situations. Papers,projects and more.
Stars: ✭ 234 (+917.39%)
Mutual labels:  gans
CoCosNet-v2
CoCosNet v2: Full-Resolution Correspondence Learning for Image Translation
Stars: ✭ 312 (+1256.52%)
Mutual labels:  gans
Ml Workspace
Machine Learning (Beginners Hub), information(courses, books, cheat sheets, live sessions) related to machine learning, data science and python is available
Stars: ✭ 221 (+860.87%)
Mutual labels:  gans
Drowsy
💤🖌️ AI making tiny Bitsy video games. Features an experimental generative structure inspired by GANs and Genetic Algorithms
Stars: ✭ 19 (-17.39%)
Mutual labels:  gans
Cocosnet
Cross-domain Correspondence Learning for Exemplar-based Image Translation. (CVPR 2020 Oral)
Stars: ✭ 211 (+817.39%)
Mutual labels:  gans
Rnn.wgan
Code for training and evaluation of the model from "Language Generation with Recurrent Generative Adversarial Networks without Pre-training"
Stars: ✭ 252 (+995.65%)
Mutual labels:  gans
Anime2Sketch
A sketch extractor for anime/illustration.
Stars: ✭ 1,623 (+6956.52%)
Mutual labels:  gans
pytorch-gans
PyTorch implementation of GANs (Generative Adversarial Networks). DCGAN, Pix2Pix, CycleGAN, SRGAN
Stars: ✭ 21 (-8.7%)
Mutual labels:  gans
GazeCorrection
Unsupervised High-Resolution Portrait Gaze Correction and Animation (TIP 2022)
Stars: ✭ 174 (+656.52%)
Mutual labels:  gans

A Pytorch Implementation of Deep Photo Enhancer

This project is based on the thesis《Deep Photo Enhancer: Unpaired Learning for Image Enhancement from Photographs with GANs》。

The author's project address is:nothinglo/Deep-Photo-Enhancer

My code is based on https://github.com/mtics/deep-photo-enhancer

hyerania\Deep-Learning-Project

中文文档说明请看这里

https://github.com/junyanz/pytorch-CycleGAN-and-pix2pix

The latest code is on the dev branch

Requirements

  • Python 3.6
  • CUDA 10.0
  • To install requirements: pip install -r requirements.txt

Prerequisites

Data

Expert-C on MIT-Adobe FiveK dataset

Folders

  1. All hyperparameters are in libs\constant.py

All this extra foders are created by calling

python directory_strcture.py

  1. There are some folders need to be created, to do that just call python directory_structure.py:
    1. images_LR:Used to store datasets
      1. Expert-C
      2. input
      3. In each of the above two folders, the following three new folders need to be created:
        1. Testing
        2. Training1
        3. Training2
    2. models:Used to store all the training generated files:
      1. gt_images
      2. input_images
      3. pretrain_checkpoint
      4. pretrain_images
      5. test_images
      6. train_checkpoint
      7. train_images
      8. train_test_images
      9. In each of the above folders, the following two new folders need to be created:
        1. 1Way
        2. 2Way
    3. model: Used to store log_PreTraining.txt

Training

    1. images_LR/input/Training1 should contain folders containing images you want to correct.
    2. images_LR/Expert-C/Training2 should contain folders containing the images of the type you want to obtain.
    3. images_LR/input/Testing images_LR/Expert-C/Testing should contain folders containing the images to get the test scores. In the former you should put the 'bad' sample and on the latter the 'good' sample of the same image
  1. Run the following line to get all the images to max_size 512 ...change the commented directoies as needed python reize.py

  2. Run for training

python 2WayGAN_Train_v3.py

Evaluation

For now, the evaluation and training are simultaneous. So there is no need to run anything.

To evaluate my model, I use PSNR in “XWayGAN_Train.py”

Inference

This is inference for general ized images, it may be improved by using a loader.

python unbounded_inference.py --generator_model 'gan2_train_28_40.pth' --input_image 'input_image' --output_image 'output_image'

Problem

  1. There may be a problem in computing the value of PSNR or not. It needs to be proved.
  2. The compute functions in libs\compute.py are wrong, which cause the discriminator loss cannot converge and the output is awful.

License

This repo is released under the MIT License

Contributor

For now, This repo is maintained by Felipe Bivort Haiek.

Welcome to join me to maintain it together.

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].