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

extract_subimgs_single #120

Closed
Feiyu-Zhang opened this issue May 8, 2019 · 4 comments
Closed

extract_subimgs_single #120

Feiyu-Zhang opened this issue May 8, 2019 · 4 comments

Comments

@Feiyu-Zhang
Copy link

Feiyu-Zhang commented May 8, 2019

I run scripts/extract_subimgs_single.py , but I only get 12 sub_img from 12 different images. Are there some bugs in scripts/extract_subimgs_single.py?

@xinntao
Copy link
Member

xinntao commented May 8, 2019

It works at my end.
You may want to check your image size or others.

@Feiyu-Zhang
Copy link
Author

It works at my end.
You may want to check your image size or others.

Thanks.
I shouldn't extract sub-images of LR images. HAHA, I'm silly.

@xinntao xinntao closed this as completed May 9, 2019
@Cugtyt
Copy link
Contributor

Cugtyt commented May 14, 2019

@Feiyu-Zhang May I ask why shouldn't extract sub-images of LR images? if there are equal numbers of LR and HR images, and HR is extracted while LR not, then the number of images are not equal, right?

I got this error:

AssertionError: HR and LR datasets have different number of images - 5000, 140400.

My LR and HR images are 5000, but after extract HR is 140400, but I saw that extract_subimgs_single.py that crop 480 size that may not suitable for LR, so can you give specific information about how you solve it?

@Feiyu-Zhang
Copy link
Author

@Feiyu-Zhang May I ask why shouldn't extract sub-images of LR images? if there are equal numbers of LR and HR images, and HR is extracted while LR not, then the number of images are not equal, right?

I got this error:

AssertionError: HR and LR datasets have different number of images - 5000, 140400.

My LR and HR images are 5000, but after extract HR is 140400, but I saw that extract_subimgs_single.py that crop 480 size that may not suitable for LR, so can you give specific information about how you solve it?

At last, I didn't extract the sub-images of HR and LR.

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