Fix SAM-2 API compatibility issue in preprocessing pipeline#158
Fix SAM-2 API compatibility issue in preprocessing pipeline#158kelseyee merged 1 commit intoWan-Video:mainfrom
Conversation
…issing frames_tracked_per_obj dictionary in inference state
|
When this can be merged? |
Hi @yarodevuci, thank you for bringing up the question. I have submitted a pull request with a detailed guide to resolve this issue. You can track the progress here: PR #187: docs: Fix SAM-2 build issues on Ubuntu 22.04 with Python 3.12 This PR adds the necessary build steps to the |
it works!thanks |
|
it works for me like a magic, hope this PR get merged soon. |
Add this line of code to both It works, thanks! |



issue
The preprocessing pipeline for replacement mode was failing with KeyError: 'frames_tracked_per_obj' #157
sam-2's API expect the
frames_tracked_per_objdictionary in the inference state, butvideo_predictor.pywasn't initializing this required keyadded initialization of
frames_tracked_per_objas an empty dictionary:Works fine now, see below Screenshot of output

Kindly merge this asap :)
@WanX-Video-1 @suruoxi @Steven-SWZhang