Coder Social home page Coder Social logo

About 4x start about dcsr HOT 5 CLOSED

tengfei-wang avatar tengfei-wang commented on August 23, 2024
About 4x start

from dcsr.

Comments (5)

Lkinyuu avatar Lkinyuu commented on August 23, 2024

For example, I set the scale of self.aa1() and FeatureMatching to 4 ,but failed

from dcsr.

Tengfei-Wang avatar Tengfei-Wang commented on August 23, 2024

Hi,
For 4x SR, the scale of ref image is 4x of that of LR images. So we also need to modify the feature extractor (pretrained vgg) accordingly. The key is to make sure the feature map sizes of Ref and LR are the same so that we can calculate patch-wise cosine similarity. For example, we modified 7 to 11 in this line:

for x in range(7):

And other lines specified on 2x SR should also be modified, like shape_out*4. It can be a little tedious.
warpped_features = F.fold(warpped_value, output_size=(shape_out[2]*2, shape_out[3]*2), kernel_size=(kernel,kernel), padding=0, stride=self.scale)

from dcsr.

Lkinyuu avatar Lkinyuu commented on August 23, 2024

Hi, For 4x SR, the scale of ref image is 4x of that of LR images. So we also need to modify the feature extractor (pretrained vgg) accordingly. The key is to make sure the feature map sizes of Ref and LR are the same so that we can calculate patch-wise cosine similarity. For example, we modified 7 to 11 in this line:

for x in range(7):

And other lines specified on 2x SR should also be modified, like shape_out*4. It can be a little tedious.

warpped_features = F.fold(warpped_value, output_size=(shape_out[2]*2, shape_out[3]*2), kernel_size=(kernel,kernel), padding=0, stride=self.scale)

Maybe you mean " for x in range(10):"? Because when modified 7 to 11 ,it will cause channels error .Besides, if I follow the above method to modify parameters, can I train on the CUFED5x4 to get the same results as in the paper?

from dcsr.

Lkinyuu avatar Lkinyuu commented on August 23, 2024

Hi, For 4x SR, the scale of ref image is 4x of that of LR images. So we also need to modify the feature extractor (pretrained vgg) accordingly. The key is to make sure the feature map sizes of Ref and LR are the same so that we can calculate patch-wise cosine similarity. For example, we modified 7 to 11 in this line:

for x in range(7):

And other lines specified on 2x SR should also be modified, like shape_out*4. It can be a little tedious.

warpped_features = F.fold(warpped_value, output_size=(shape_out[2]*2, shape_out[3]*2), kernel_size=(kernel,kernel), padding=0, stride=self.scale)

May I ask for the settings that train on the CUFED5 ? I want to reproduce the same result as in the paper.

from dcsr.

Lkinyuu avatar Lkinyuu commented on August 23, 2024

@Tengfei-Wang

from dcsr.

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.