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

Method __init__

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

Source from the content-addressed store, hash-verified

322 """
323
324 def __init__(
325 self,
326 size,
327 interpolation_mode="bilinear",
328 ):
329 if isinstance(size, tuple):
330 if len(size) != 2:
331 raise ValueError(
332 f"size should be tuple (height, width), instead got {size}"
333 )
334 self.size = size
335 else:
336 self.size = (size, size)
337
338 self.interpolation_mode = interpolation_mode
339
340 def __call__(self, clip):
341 clip_random_crop = random_shift_crop(clip)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected