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

Cleaned_LowRes_13434_overlapping_pairs.h5 has negative numbers #3

Open
P9J7 opened this issue Jul 28, 2020 · 2 comments
Open

Cleaned_LowRes_13434_overlapping_pairs.h5 has negative numbers #3

P9J7 opened this issue Jul 28, 2020 · 2 comments

Comments

@P9J7
Copy link

P9J7 commented Jul 28, 2020

Hello,I want to use PIL to load Cleaned_LowRes_13434_overlapping_pairs.h5 as PIL Image and I found that numpy.ndarray exist negative number led to a error,Is there a problem with the data?Here is my code:
`
f = h5py.File('./data/Cleaned_LowRes_13434_overlapping_pairs.h5', 'r')

f.close()

N = 11508

grey = pairs[N, :, :, 0]

Image.fromarray(grey)
or if can I correct it as follow?
Image.fromarray(np.unit8(grey))

`
I am worried about that this way will affect subsequent training results.

@jeanpat jeanpat pinned this issue Jan 21, 2024
@jeanpat
Copy link
Owner

jeanpat commented Jan 21, 2024

Sorry didn't see your question.

@P9J7
Copy link
Author

P9J7 commented Jan 21, 2024 via email

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

2 participants