MCPcopy Create free account
hub / github.com/CompVis/zigma / __call__

Method __call__

datasets/video_utils.py:412–419  ·  view source on GitHub ↗

Args: clip (torch.tensor, dtype=torch.uint8): Size is (T, C, H, W) Return: clip (torch.tensor, dtype=torch.float): Size is (T, C, H, W)

(self, clip)

Source from the content-addressed store, hash-verified

410 pass
411
412 def __call__(self, clip):
413 """
414 Args:
415 clip (torch.tensor, dtype=torch.uint8): Size is (T, C, H, W)
416 Return:
417 clip (torch.tensor, dtype=torch.float): Size is (T, C, H, W)
418 """
419 return to_tensor(clip)
420
421 def __repr__(self) -> str:
422 return self.__class__.__name__

Callers

nothing calls this directly

Calls 1

to_tensorFunction · 0.85

Tested by

no test coverage detected