-
Notifications
You must be signed in to change notification settings - Fork 60
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
CUDA OOM #47
Comments
same issue to me ,still to figure out how to disable the flow_loss,and If only 9 images are used, there won't be this problem |
Hi @lxin98, To disable the flow_loss, you can set Line 357 in ce88f01
Currently, running the "lady-running" sequence with the default setup requires 33G VRAM. Therefore, CUDA OOM is expected for hardware with 24GB VRAM (e.g., RTX4090). These are the tricks to overcome OOM issue:
Hope this helps! Best |
Thank you, I disable the flow_loss, and it worked. |
Thank you for your excellent work and assistance @Junyi42 |
I tried to turn off the flow-based loss. However, after turning it off, the result is much worse for the lady running demo. The model could no longer detect the lady as moving object anymore. The dynamic mask is completly black, the fact that indicate the whole scene is static. Noted: I only used the first 30 frames of the whole video. |
@npmhung |
Hi, I have updated an implementation for memory-efficient global alignment: #59 which comes with less effect on performance. Hope this helps. |
@npmhung @lxin98 @zhengbi-yong Hi, everyone, I just submitted a merge request for a window-wise optimization. Waiting for the author to review #72. Now one can directly optimize a long video with a larger number of frames, and obtain expected results. Please enjoy these changes! |
When I ran
python demo.py --input demo_data/lady-running --output_dir demo_tmp --seq_name lady-running
I have torch.OutOfMemoryError
I am using RTX4090
The text was updated successfully, but these errors were encountered: