MCPcopy Create free account
hub / github.com/dcharatan/flowmap / load_image

Function load_image

flowmap/misc/image_io.py:70–73  ·  view source on GitHub ↗
(
    path: Union[Path, str],
)

Source from the content-addressed store, hash-verified

68
69
70def load_image(
71 path: Union[Path, str],
72) -> Float[Tensor, "3 height width"]:
73 return tf.ToTensor()(Image.open(path))[:3]

Callers 1

subsample_framesFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected