Skip to content

Cleaned_LowRes_13434_overlapping_pairs.h5 has negative numbers #3

@P9J7

Description

@P9J7

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions