Skip to content

Commit 42f5ede

Browse files
committed
bugfix if frameID is None
1 parent d1f2c37 commit 42f5ede

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

meshroom/imageSegmentation/VideoSegmentationSam3.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,10 @@ def processChunk(self, chunk):
346346
sourceInfo = {"h_ori": h_ori, "w_ori": w_ori, "PAR": PAR, "orientation": orientation}
347347

348348
viewId = chunk_image_paths[idx][1]
349-
frameId = chunk_image_paths[idx][2] - firstFrameId
349+
if firstFrameId is None or chunk_image_paths[idx][2] is None:
350+
frameId = idx
351+
else:
352+
frameId = chunk_image_paths[idx][2] - firstFrameId
350353

351354
objects = {}
352355
if viewId is not None and viewId in posClickDictFromShape:

0 commit comments

Comments
 (0)