(self)
| 82 | self.num_frames_per_batch = self.lengths[self.period_idx] |
| 83 | |
| 84 | def step_epoch(self): |
| 85 | # one epoch finishes. |
| 86 | print("Dataset: epoch {} finishes".format(self.current_epoch)) |
| 87 | self.set_epoch(self.current_epoch + 1) |
| 88 | |
| 89 | @staticmethod |
| 90 | def _targets_to_instances(targets: dict, img_shape) -> Instances: |