Coder Social home page Coder Social logo

realsr's Issues

dataset

Hello, what dataset is used for training?

How to do test when I add model/realsr into original edsr-pytorch repo?

Hi, @Alan-xw
I didn't use your repo to train realsr, I used original edsr-pytorch instead.
I first pre-upscale the input x so that the output size is original size * args.scale.
the training process is ok, but when test PSNR on Set5 each epoch, something wrong happened.

model/common.py", line 39, in _space_to_channel
    x = x.contiguous().view(b, C, hout, scale, wout, scale)
RuntimeError: shape '[1, 4, 65, 4, 67, 4]' is invalid for input of size 280800

Model parameters

Hi, thanks for your codes. However, in origional paper, the model (k = 5) parameters is 5.731M, the model parameters you implemented with pytorch contains only 1545765. I check the model carefully and can not find the reason. Do you notice that...

calc_psnr()

Hi, the author() uses the y channel to calculate psnr. Doesn't your calc_psnr function calculate the y channel?

training for x4 super resolution

Dear @Alan-xw , thank you for your code.
I want to train LP-KPN model for superresolution task in which the input lr images are 4 times smaller than GT. I wonder which part of the model I should change. Could you please give me any advice on this?

Issue in "model/common.py"

In the line 213~219 of "model/common.py":

        gaussian_down = self.Prdown(Gaussian_lists[-1])
        Gaussian_lists.append(gaussian_down)
        size_lists.append(gaussian_down.size()[2:])
        Gaussian_lists.append(gaussian_down)
        Lap = Gaussian_lists[-2]-self.PrUp(Gaussian_lists[-1],size_lists[-2])
        Lap = lap.mul(1./255.)
        Laplacian_lists.append(Lap)

I think the 2nd "Gaussian_lists.append(gaussian_down)" need to be commented, and replace "lap" with "Lap".

SRFlow

Hey,
I implement the SRFlow based on the paper with Pytorch. I saw your issue on the official repository.
I would be very happy if you could share your code with me because I have some problems with implementation.
Looking forward to your reply.!

common.py line 214-220

        Gaussian_lists.append(gaussian_down)
        size_lists.append(gaussian_down.size()[2:])
        Gaussian_lists.append(gaussian_down)
        Lap = Gaussian_lists[-2]-self.PrUp(Gaussian_lists[-1],size_lists[-2])
        Lap = lap.mul(1./255.)

--->why append gaussian_down two times? and Lap = lap.mul the second lap should be Lap?

how about the performance?

how about the performance of your implementation?
Can it achieve similar performance to the original paper?

Issue in "loss/vgg.py"

self.sub_mean = common.MeanShift(rgb_range, vgg_mean, vgg_std)

I can't find Where the function "MeanShift" is.

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.