GithubHelp home page GithubHelp logo

sumittagadiya / image-super-resolution Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 67.17 MB

Implementation of image super-resolution using EDSR and WDSR on DIV2k Dataset

Jupyter Notebook 99.98% Python 0.02%
bicubic cnn div2k enhancement image super-resolution tensorflow2

image-super-resolution's People

Contributors

sumittagadiya avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

keshav2904

image-super-resolution's Issues

Issue with WeightNorm in TensorFlow Model Initialization

Hi, Sumit
thanks for your implementation!

I'm currently facing an error while attempting to instantiate the model using the conv2d_weightnorm function, as outlined in the WDSR paper. The issue arises during the initialization process.

def conv2d_weightnorm(filters, kernel_size, padding='same', activation=None, **kwargs):
return tfp.layers.weight_norm.WeightNorm(Conv2D(filters, kernel_size, padding=padding, activation=activation, **kwargs),
data_init=False)

However, I received the following error:

image

In an attempt to resolve this, I modified the code as follows:

def conv2d_weightnorm(filters, kernel_size, padding='same', activation=None, **kwargs):
    conv_layer = tf.keras.layers.Conv2D(filters, kernel_size, padding=padding, activation=activation, **kwargs)
    return tfp.layers.weight_norm.WeightNorm(conv_layer, data_init=False)

However, this resulted in the following error when trying to instantiate the model:

image (1)

I found a workaround by using tensorflow.disable_eager_execution(), but this introduces graph-related issues that I am unsure how to resolve.

image

I would greatly appreciate any guidance or solutions you can provide to overcome this problem.

regards,
Gabriel

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.