I encountered a segmentation fault while running the demo script with a video input. The error occurs during the execution of the SAM2 video predictor. Here are the details:
Current thread 0x00007b664476e480 (most recent call first):
File "/home/user1/samurai-master/./sam2/sam2/utils/misc.py", line 63 in get_connected_components
File "/home/user1/samurai-master/./sam2/sam2/utils/misc.py", line 322 in fill_holes_in_mask_scores
File "/home/user1/samurai-master/./sam2/sam2/sam2_video_predictor.py", line 961 in _run_single_frame_inference
File "/home/juser1/samurai-master/./sam2/sam2/sam2_video_predictor.py", line 283 in add_new_points_or_box
File "/home/juser1/anaconda3/envs/samurai/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116 in decorate_context
File "/home/user1/samurai-master/scripts/demo.py", line 78 in main
File "/home/user1/samurai-master/scripts/demo.py", line 125 in
I encountered a segmentation fault while running the demo script with a video input. The error occurs during the execution of the SAM2 video predictor. Here are the details:
python scripts/demo.py --video_path scripts/video_recortado.mp4 --txt_path scripts/bbox.txt
SAMURAI mode: True Fatal Python error: Segmentation fault
Current thread 0x00007b664476e480 (most recent call first): File "/home/user1/samurai-master/./sam2/sam2/utils/misc.py", line 63 in get_connected_components File "/home/user1/samurai-master/./sam2/sam2/utils/misc.py", line 322 in fill_holes_in_mask_scores File "/home/user1/samurai-master/./sam2/sam2/sam2_video_predictor.py", line 961 in _run_single_frame_inference File "/home/juser1/samurai-master/./sam2/sam2/sam2_video_predictor.py", line 283 in add_new_points_or_box File "/home/juser1/anaconda3/envs/samurai/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116 in decorate_context File "/home/user1/samurai-master/scripts/demo.py", line 78 in main File "/home/user1/samurai-master/scripts/demo.py", line 125 in
Extension modules: numpy._core._multiarray_umath, numpy.linalg._umath_linalg, torch._C, torch._C._fft, torch._C._linalg, torch._C._nested, torch._C._nn, torch._C._sparse, torch._C._special, yaml._yaml, zmq.backend.cython._zmq, tornado.speedups, PIL._imaging, scipy._lib._ccallback_c, scipy.linalg._fblas, scipy.linalg._flapack, scipy.linalg.cython_lapack, scipy.linalg._cythonized_array_utils, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, scipy.linalg._solve_toeplitz, scipy.linalg._decomp_lu_cython, scipy.linalg._matfuncs_sqrtm_triu, scipy.linalg.cython_blas, scipy.linalg._matfuncs_expm, scipy.linalg._decomp_update, scipy.sparse._sparsetools, _csparsetools, scipy.sparse._csparsetools, scipy.sparse.linalg._dsolve._superlu, scipy.sparse.linalg._eigen.arpack._arpack, scipy.sparse.linalg._propack._spropack, scipy.sparse.linalg._propack._dpropack, scipy.sparse.linalg._propack._cpropack, scipy.sparse.linalg._propack._zpropack, scipy.sparse.csgraph._tools, scipy.sparse.csgraph._shortest_path, scipy.sparse.csgraph._traversal, scipy.sparse.csgraph._min_spanning_tree, scipy.sparse.csgraph._flow, scipy.sparse.csgraph._matching, scipy.sparse.csgraph._reordering (total: 49) Segmentation fault (core dumped)