()
| 126 | |
| 127 | # load the rest of frames asynchronously without blocking the session start |
| 128 | def _load_frames(): |
| 129 | try: |
| 130 | for n in tqdm(range(len(self.images)), desc="frame loading (JPEG)"): |
| 131 | self.__getitem__(n) |
| 132 | except Exception as e: |
| 133 | self.exception = e |
| 134 | |
| 135 | self.thread = Thread(target=_load_frames, daemon=True) |
| 136 | self.thread.start() |
nothing calls this directly
no test coverage detected