MCPcopy Create free account
hub / github.com/PolyU-ChenLab/UniPixel / _load_frames

Method _load_frames

sam2/utils/misc.py:137–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

__getitem__Method · 0.95

Tested by

no test coverage detected