Code Monkey home page Code Monkey logo

Comments (4)

JingyunLiang avatar JingyunLiang commented on June 12, 2024

Thank you for reporting the bug. We have fixed it. Please use the updated code ( we updated GT_dataset.py, LQ_dataset.py, HCFlow_SR_model and test_HCFlow.py), and then use dataloader mode LQ to test without GT.

from hcflow.

AhmedHashish123 avatar AhmedHashish123 commented on June 12, 2024

Thank you, the problem has been solved for both the face image SR and general image SR. Image rescaling gives AttributeError: 'HCFLowRescalingModel' object has no attribute 'real_H'

in "HCFlow_Rescaling_model.py", in line 312

from hcflow.

JingyunLiang avatar JingyunLiang commented on June 12, 2024

This is because there is no meaning to do so for the rescaling task.

Image rescaling aims to downscale the HR image to a visually meaningful LR image, and then recover the HR image plausibly. Different from image SR that works on a given LR image space, image rescaling tries to maintain as much information from the HR image as possible for a better subsequent reconstruction, for the purpose of reducing the storage and bandwidth cost. In other words, it can define its own LR image space which is expected to be more informative than that by simple downscaling such as bicubic downscaling.

Therefore, inputting a LR image for testing is meaningless. You can try to use GT_dataset.py to input a HR image for testing.

from hcflow.

AhmedHashish123 avatar AhmedHashish123 commented on June 12, 2024

@JingyunLiang Thank you for the clarification

from hcflow.

Related Issues (14)

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.