You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: