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

Method __init__

datasets/video_utils.py:347–361  ·  view source on GitHub ↗
(
        self,
        size,
        interpolation_mode="bilinear",
    )

Source from the content-addressed store, hash-verified

345
346class CenterCropVideo:
347 def __init__(
348 self,
349 size,
350 interpolation_mode="bilinear",
351 ):
352 if isinstance(size, tuple):
353 if len(size) != 2:
354 raise ValueError(
355 f"size should be tuple (height, width), instead got {size}"
356 )
357 self.size = size
358 else:
359 self.size = (size, size)
360
361 self.interpolation_mode = interpolation_mode
362
363 def __call__(self, clip):
364 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected