Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set14——test #18

Closed
qingchuanhuajuan opened this issue Sep 11, 2018 · 3 comments
Closed

set14——test #18

qingchuanhuajuan opened this issue Sep 11, 2018 · 3 comments

Comments

@qingchuanhuajuan
Copy link

There is a picture (bridge) in set 14 that is single-channel, but the trained model requires that the input picture be three-channel. How did you solve this problem in the experiment?

@Zheng222
Copy link

@qingchuanhuajuan you can simply duplicate the data to another two channels.

@qingchuanhuajuan
Copy link
Author

Thank you! When I tested the X4 model, the image size in set14 was not a multiple of 4. I used the imresize() function in matlab to adjust the test image to an integer multiple of 4. How do you solve this problem?

@Zheng222
Copy link

Zheng222 commented Oct 27, 2018

@qingchuanhuajuan According to conventional practice, you should crop the right and bottom parts of image.

def modcrop(im, module):
      sz = im.shape
      h = np.int32(sz[0]/module) * module
      w = np.int32(sz[1]/module)* module
      ims = im[0:h, 0:w, ...]
      return ims

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants