Giter Club home page Giter Club logo

Comments (7)

huangzehao avatar huangzehao commented on September 18, 2024

Hi, have you installed matconvnet?

from caffe-vdsr.

cheongjunyoung avatar cheongjunyoung commented on September 18, 2024

Hello. First of all, thanks for your wonderful project.
I have a question about the project. Have you tried to train VDSR model using matconvnet??
I have struggled with training it in matconvnet.
There is no gradient clipping method in matconvnet so I clipped weight gradients using L2 norm.
However, after training, PSNR result could not reach to even 32dB.
this is my implementation of gradient clipping in matconvnet DAG version

T = net.params(p).der;
clip = 1 / net.params(p).learningRate;
norm = sqrt(sum(T(:).^2));
if norm>clip
net.params(p).der = T*(clip/norm);
end

I tried various clip values but all trained result were similar.
I wish to know what different or problem are between my training method and Caffe.
If you have any tips or comments, I would be glad. thank you

from caffe-vdsr.

huangzehao avatar huangzehao commented on September 18, 2024

@cheongjunyoung Hi, I didn't trained VDSR using matconvnet.
But I think you can simply implement gradient clip by a clamp-like function, like

grad(>threshold) = threshold
grad(<-threshold) = -threshold

You don't need to do gradient clipping like caffe. The purpose of gradient clipping is to overcome the problem of gradient explosion. Just clip big gradient to a certain value and you can handle this problem.

from caffe-vdsr.

luciaL avatar luciaL commented on September 18, 2024

I have installed matconvnet. It seems that I need to run setup before I run a new project.
Thank you for your answering,I have a question about the training of multiple scale.How to train a model with {2,3}or{3,4}?Does it mean the input images are interpolated to different scale???

from caffe-vdsr.

huangzehao avatar huangzehao commented on September 18, 2024

@luciaL Yes, but I didn't achieve better performance than single scale training. You can have a try.

from caffe-vdsr.

luciaL avatar luciaL commented on September 18, 2024

Okay,thank you.The input images are divided into the same size patches.Then the output images are also the same size patches.How to get the full image with the same scale factor??

from caffe-vdsr.

huangzehao avatar huangzehao commented on September 18, 2024

It's the same with single scale training. I didn't achieve better performance in my experiments. Maybe you can ask the author of VDSR paper for help.
Thanks.

from caffe-vdsr.

Related Issues (20)

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.