MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / __call__

Method __call__

PATH/core/data/transforms/pose_transforms.py:460–463  ·  view source on GitHub ↗
(self, results)

Source from the content-addressed store, hash-verified

458 """
459
460 def __call__(self, results):
461 results['image'] = torch.as_tensor(np.ascontiguousarray(results['image'].transpose(2, 0, 1)))
462 # results['image'] = F.to_tensor(results['image'])
463 return results
464
465
466class NormalizeTensor:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected