Comments (4)
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.
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.
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.
@JingyunLiang Thank you for the clarification
from hcflow.
Related Issues (14)
- About training and inference time? HOT 1
- How to make an invertible mapping between two variables whose dimensions are different ?
- How to build an invertible mapping between two variables whose dimensions are different ?
- RuntimeError: The size of tensor a (20) must match the size of tensor b (40) at non-singleton dimension 3
- Why NLL is negative during the training?
- New Super-Resolution Benchmarks
- NAN
- deploy
- NaN when training HOT 5
- Does the resolution of LQ images will affect the quality of results? I use the 256x256 LQ images for inference and the results are bad HOT 4
- environment HOT 2
- The code implementation and the paper description seem different HOT 2
- Code versions of BRISQUE and NIQE used in paper HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hcflow.