Open jianchaoci opened 1 month ago
Hi, @jianchaoci
Thank you for your feedback and for using our tool. I understand that you're experiencing an issue with object tracking in SAM2 video when annotating frames.
To help diagnose and resolve this problem, could you please provide more detailed information? Specifically, can you check the terminal output logs and look for any error messages or warnings related to the annotation process?
Additionally, if possible, please share the following details:
This information will be very helpful in troubleshooting the issue. Thank you!
Best regards, X-AnyLabeling Maintainer
The same problem to me. X-AnyLabeling: the latest commit from github log: No related log.(label_widget:run_all_images:5919 - Start running all images...)
@CVHub520 Could you provide the source of the dataset for the video demonstration so that I can check if it is an issue with my dataset?
My problem has been solved. The operation steps of the software are relatively strict. I can reason normally according to the following steps: Open X-AnyLabeling-> Load sam2video model-> Click Reset Tracker -> Create tags with sam2video-> Click Auto run all images at once I'm not sure if some of the steps are unnecessary or not in a strict order, but I can reason properly with this one. I don't know if it works for you. @jianchaoci
My problem has been solved. The operation steps of the software are relatively strict. I can reason normally according to the following steps: Open X-AnyLabeling-> Load sam2video model-> Click Reset Tracker -> Create tags with sam2video-> Click Auto run all images at once I'm not sure if some of the steps are unnecessary or not in a strict order, but I can reason properly with this one. I don't know if it works for you. @jianchaoci
I have solved this problem caused by another reason. I checked the log and found there was actually a problem of SAM2 installation. Show as following when 'annotating all images':
I solved it by run 'python setup.py build_ext --inplace' in segment-anything-2 folder. Then reopen the labeling app.
My problem has been solved. The operation steps of the software are relatively strict. I can reason normally according to the following steps: Open X-AnyLabeling-> Load sam2video model-> Click Reset Tracker -> Create tags with sam2video-> Click Auto run all images at once I'm not sure if some of the steps are unnecessary or not in a strict order, but I can reason properly with this one. I don't know if it works for you. @jianchaoci
I have solved this problem caused by another reason. I checked the log and found there was actually a problem of SAM2 installation. Show as following when 'annotating all images':
I solved it by run 'python setup.py build_ext --inplace' in segment-anything-2 folder. Then reopen the labeling app.
You can find the solution to this problem in other issues:https://github.com/CVHub520/segment-anything-2/blob/main/INSTALL.md
You can see the build error using the commands below:
pip uninstall -y SAM-2 && \
rm -f ./sam2/*.so && \
SAM2_BUILD_ALLOW_ERRORS=0 pip install -v -e ".[demo]"
I'd like to share similar issue.
Assume I have a video with different object to track. It has frames k, k+1, k+2, k+3,...
If new object appears on the frame, for example, k+2, I have to:
Alternative case. If new object appears on the frame, for example, k+2, I have to:
Wanted behavior if new object appears in the video:
At the moment I have to fully relabel frame to make object tracker see all labels after its reset.
Hey @yevhen-k, thanks for sharing this issue in detail!
I have provided a workflow that I hope may help solve this problem.
When a new object appears on frame k+2, here's a streamlined approach:
CTRL+Delete
to clear any existing annotated objects on frame k+2CTRL+J
to switch edit mode and add bounding boxes/points for ALL objects you want to track (both old and new ones)This approach should maintain tracking for both existing and new objects, avoiding the issue where labels for either old or new objects disappear. The key difference is that we're re-initializing tracking for all objects together, rather than trying to handle new objects separately.
Let me know if you try this workflow and if it helps with your use case!
Search before asking
Question
Hi, Thank you for the amazing work. But I found a problem when I use this tool. I was using SAM2 video to annotate the object in a video, which is a simple cup. I gave prompt (positive point) on the cup, then it was segmented successfully. When I clicking 'lable all images', I found no more cups in the rest frames was annotated successfully.
Additional
I would expecte to see the cup in the rest images can be annotated successfully.