MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / __call__

Method __call__

datasets/bucket_config.py:420–426  ·  view source on GitHub ↗
(self, n_frame: int, height: int, width: int,
                 rnd_state: np.random.RandomState)

Source from the content-addressed store, hash-verified

418 self.frame_grading_arr = np.arange(frame_grading_num) * 4 + 1
419
420 def __call__(self, n_frame: int, height: int, width: int,
421 rnd_state: np.random.RandomState) -> Any:
422 tgt_h, tgt_w = self.preprocess(n_frame, height, width, rnd_state)
423 flop = FlopEstimator2D1DNotExact(n_frame, tgt_h, tgt_w,
424 self.pixel_grading_arr,
425 self.frame_grading_arr)
426 return flop

Callers

nothing calls this directly

Calls 2

preprocessMethod · 0.80

Tested by

no test coverage detected