forked from openvinotoolkit/datumaro
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change image default dtype from float32 to uint8 (openvinotoolkit#1175)
- Currently, there is discrepancy between the return image data types: `ImageFromBytes.data` (`np.float32`), `ImageFromNumpy.data` (`np.float32`), and `ImageFromFile.data` (`np.uint8`). - This makes the data loader based on the Arrow data format (using `ImageFromBytes.data`) slower since the image preprocessing will be conducted on the `np.float32` data (4x larger than `np.uint8`). - This PR forces `np.uint8` data to be returned for all `Image` classes. Signed-off-by: Kim, Vinnam <[email protected]>
- Loading branch information
Showing
6 changed files
with
18 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters