MCPcopy Create free account
hub / github.com/Kitware/COAT / __call__

Method __call__

utils/transforms.py:128–131  ·  view source on GitHub ↗
(self, image, target)

Source from the content-addressed store, hash-verified

126
127class ToTensor:
128 def __call__(self, image, target):
129 # convert [0, 255] to [0, 1]
130 image = F.to_tensor(image)
131 return image, target
132
133
134def build_transforms(cfg, is_train):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected