Comments (2)
thanks bro, your code solve this problem...
from esrt.
sorry for bothering,
when i run the original code, the size of 'im_pre' and 'im_label' is different, and always 'im_pre' is 6-8 pixels less than the 'im_label'. May i ask why this happened and how to solve this issue?
thanks in advance for your support and attention.
i have this problem too, so i resized im_pre as below:
if opt.is_y is True:
#print("if opt.is_y is True\n")
im_label = quantize(sc.rgb2ycbcr(cropped_gt_img)[:, :, 0])
im_pre = quantize(sc.rgb2ycbcr(cropped_sr_img)[:, :, 0])
#print("y im_pre:\n" , im_pre.shape)
#print("y im_label:\n", im_label.shape)
if(im_label.shape != im_pre.shape):
#print("im_label shape:\n" , im_label.shape)
im_pre = cv2.resize((im_pre) , (int(im_label.shape[1]) , int(im_label.shape[0])))
#print("im_pre resized shape:\n" , im_pre.shape)
you can uncomment the lines to see exactly what is happening.
but I am not sure it affects the results or not.
from esrt.
Related Issues (19)
- not find module "utils"
- Real SR ---training
- Hi
- Pretrained models HOT 3
- What is common.Scale(1) means? HOT 1
- file image.py not found HOT 1
- what is the difference between Feature Split (FS) in EMHA and window-attention? HOT 1
- DataLoader worker (pid(s) 9504, 11496, 19564, 12924, 14856, 1256, 20244, 7752) exited unexpectedly HOT 8
- Cannot reproduce the result in the paper. HOT 1
- "scale factor was wrong in my original version" problem
- where is the 'architecture' in folder model ? HOT 2
- none
- About the calculate Flops and GPU memory cost HOT 1
- Model weights used in paper
- High-frequency Filtering Module (HFM)็ธๅ ณไปฃ็ HOT 1
- Try adding MLABlock to my model
- ESRT in remote sensing SR HOT 5
- import issue from model import architecture, esrt 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 esrt.