MCPcopy Create free account
hub / github.com/VainF/DeepLabV3Plus-Pytorch / ExtToTensor

Class ExtToTensor

utils/ext_transforms.py:273–296  ·  view source on GitHub ↗

Convert a ``PIL Image`` or ``numpy.ndarray`` to tensor. Converts a PIL Image or numpy.ndarray (H x W x C) in the range [0, 255] to a torch.FloatTensor of shape (C x H x W) in the range [0.0, 1.0].

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