MCPcopy Create free account
hub / github.com/alexklwong/mondi-python / load_image

Function load_image

src/data_utils.py:66–97  ·  view source on GitHub ↗

Loads an RGB image Arg(s): path : str path to RGB image normalize : bool if set, then normalize image between [0, 1] data_format : str 'CHW', or 'HWC' Returns: numpy[float32] : H x W x C or C x H x W image

(path, normalize=True, data_format='HWC')

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected