-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assertion Error #26
Comments
It worked when you add a '.' after your object, so instead of TEXT_PTOMPT="bird", it should be "bird." |
@ZhangT-tech @rentainhe |
The actual reason of the assertion error happened is because the model didn't detect anything in the video/img, the original code repo didn't differentiate it, you can manually add a if statement to skip this video:
And in terms of the '.', it is just format thing that implicitly in their code, like a End of Token, to separate the objects you want to segment. For example in their grounded_sam2_gd1.5_demo.py, they use '.' to separate 2 objects. |
I get it, thank you for your explanation! |
I have encountered this issue when directly running the sample code |
I have modifed the python grounded_sam2_local_demo.py file for predicting from a video file. I found that, grounding_dino/grounddino/utils/inference.py has a function
Here, the height of the image is resized to 800 and the maximum width is to 1333. However, if I changed the height to 400 and the max_size to 600 (it maintains the aspect ratio), I get an error like this
I reduced the image size to get a higher FPS. How can I solve this issue? Moreover is there any other way to increase the FPS?
TIA
The text was updated successfully, but these errors were encountered: