(cfg: Dict, total_video_len: int, **kwargs)
| 375 | #---------------------------------------------------------------------------- |
| 376 | |
| 377 | def sample_frames(cfg: Dict, total_video_len: int, **kwargs) -> np.ndarray: |
| 378 | if cfg['type'] == 'random': |
| 379 | return random_frame_sampling(cfg, total_video_len, **kwargs) |
| 380 | elif cfg['type'] == 'uniform': |
| 381 | return uniform_frame_sampling(cfg, total_video_len, **kwargs) |
| 382 | else: |
| 383 | raise NotImplementedError |
| 384 | |
| 385 | #---------------------------------------------------------------------------- |
| 386 |
no test coverage detected