Type: lib.numpy.conversion.ConvertToArray

Namespace: lib.numpy.conversion

Description

Convert PIL Image to normalized tensor representation. image, tensor, conversion, normalization

Use cases:
- Prepare images for machine learning models
- Convert between image formats for processing
- Normalize image data for consistent calculations

Properties

Property Type Description Default
image image The input image to convert to a tensor. The image should have either 1 (grayscale), 3 (RGB), or 4 (RGBA) channels. {'type': 'image', 'uri': '', 'asset_id': None, 'data': None}

Outputs

Output Type Description
output np_array  

Metadata

Browse other nodes in the lib.numpy.conversion namespace.