Giter Club home page Giter Club logo

naruto732-slay / deblurgan_ipynb_simplified Goto Github PK

View Code? Open in Web Editor NEW

This project forked from himanii777/deblurgan_ipynb_simplified

0.0 0.0 0.0 15 KB

This is a very simplified ipynb code for KupynOrest's Deblur GAN code. DeblurGAN addresses the challenge of end-to-end image deblurring through the use of conditional Generative Adversarial Networks (cGANs).I have used pytorch for this implementation.

Home Page: https://arxiv.org/abs/1711.07064

Jupyter Notebook 100.00%

deblurgan_ipynb_simplified's Introduction

image image

I have simplified the deblurgan implementation into a ipynb. There you can upload your custom dataset, train, test and continue training the pretrained model.

I had encountered a lot of issues while training and some of the tips I can give are:

  1. Instead of using nn.BatchNorm2d, try using nn.InstanceNorm2d because of the smaller batch size
  2. Start training with same learning rates of disc & generator (0.0001 standard according to the paper)
  3. If the generator doesn't seem to improve then change the lr to 0.0002/ train the generator twice per epoch or add noise to both blurred and sharp data
  4. When you are using custom dataset, resize it with correct dimensions so that image doesn't distort. I have put AR code inside.
  5. Overfitting isn't really an issue for this model however, balancing generator and discriminator can become challenging for which play with their learning rates and training frequency.

Loss visualization(100 epochs):

image image

Original Paper: https://arxiv.org/abs/1711.07064

Codes Borrowed from: https://github.com/KupynOrest/DeblurGAN https://github.com/The-GAN-g/DeblurGAN

deblurgan_ipynb_simplified's People

Contributors

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