MCPcopy Create free account
hub / github.com/ImprintLab/Medical-SAM2 / _load_frames

Method _load_frames

sam2_train/utils/misc.py:128–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 1

__getitem__Method · 0.95

Tested by

no test coverage detected