()
| 135 | |
| 136 | # load the rest of frames asynchronously without blocking the session start |
| 137 | def _load_frames(): |
| 138 | try: |
| 139 | for n in tqdm(range(len(self.images)), desc="frame loading (JPEG)"): |
| 140 | self.__getitem__(n) |
| 141 | except Exception as e: |
| 142 | self.exception = e |
| 143 | |
| 144 | self.thread = Thread(target=_load_frames, daemon=True) |
| 145 | self.thread.start() |
nothing calls this directly
no test coverage detected