Skip to content

fix: use uint8 instead of signed byte for image array - #119

Open
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/dataset-readers-use-uint8-instead-of-signed-byte-for
Open

fix: use uint8 instead of signed byte for image array#119
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/dataset-readers-use-uint8-instead-of-signed-byte-for

Conversation

@andrewwhitecdw

Copy link
Copy Markdown

Problem

fix: use uint8 instead of signed byte for image array

Fix

Replace:

            image = Image.fromarray(np.array(arr*255.0, dtype=np.byte), "RGB")

with:

            image = Image.fromarray(np.array(arr*255.0, dtype=np.uint8), "RGB")

Files changed

  • scene/dataset_readers.py

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

Successfully merging this pull request may close these issues.

1 participant