-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Error using VOS optimized inferences in vos_inference.py #501
Comments
Same issue |
@MohammedSB @tonydavis629 Can you share the full trace? |
|
Same issue, only when optimized is set to True. |
@MohammedSB Thanks for sharing the trace. Wondering if your installation and code is up to date with main? Specifically, in the trace, it says line 123 is |
@chayryali Sorry, you get the same issue even if you don't have the clone. |
@MohammedSB Ok, can you share a trace without this additional clone? Also, does compiling only the image encoder (using the setting in the config Also, what is the resolution of your video frames? The default assumes 1024 (see here) and warms up the cache accordingly. Can other folks (@Adibvafa @tonydavis629) also share some more information resolution, traces etc if possible. |
@chayryali I am using 512 image resolution. Changing the default from 1024 -> 512 actually fixed the issue. But now I get another one:
Also note, I am using ViT-tiny. |
I changed the rope feat_sizes to [32, 32] at 1024 resolution but it seems to be repeating the triton benchmarking. This is with
With
and indeed no progress in video mask propagation. |
@tonydavis629 Changing Compilation for the first time can take several minutes, this is not unexpected. It will be cached locally for later use though. |
Ok, it did take about 5 minutes, thanks. What is the appropriate feat_sizes for a resolution of 2048 and 4096? 128 did not work for 2048 (same |
@tonydavis629 Did you also change the image resolution here? Seems changing resolution is of interest, I'll push an update to automate these settings. |
Nice, that works! Thanks so much. |
Hi,
When setting the
--use_vos_optimized_video_predictor
I get the following error
torch._dynamo.exc.InternalTorchDynamoError: RuntimeError: Error: accessing tensor output of CUDAGraphs that has been overwritten by a subsequent run.
This is my environment, I built it from SAM2's requirement.
My OS
Ubuntu 22.04.5 LTS
Would really appreciate the help!
The text was updated successfully, but these errors were encountered: