-
Notifications
You must be signed in to change notification settings - Fork 64
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
CPU profile 2 process throwing CUDA out of memory for one image with multiple items when propagate button is clicked #27
Comments
I did not write the boundary condition for a single image, so it might be doing some extra work. It is also not the intended usage of the GUI. |
@hkchengrex can you add something to protect the boundary condition when it's a single image so that the GUI won't crash, please? Also, it's trying to pull GPU resources but the memory profile given was of type 2. I was not expecting a CUDA out-of-memory error to appear. |
It still uses the GPU even with mem_profile=2. We just buffer less on the GPU. |
@hkchengrex Is just protection so that it won't crash. And yes, I think it's doing extra work. It'll take me forever to set the project in debug mode and add the changes. I would prefer it if you add the protection. That's probably the last thing that's making the GUI crash right now. I've tried other combinations and it's doing pretty well. |
If you don't need to propagate then just don't click that button |
@hkchengrex Nah this is more from a software test context. The GUI should never crash. |
I see. That's a memory error (it is expected to use the GPU) and if we were to solve it we would need to guard against all CUDA OOM errors. I can see how that's useful in a production setting but it is of very low priority in this for-research codebase. |
@hkchengrex
To replicate:
python interactive_gui.py --mem_profile 2 --images ./example/test_folder/ --resolution -1 --num_objects 4
Throws error. See picture.
Even though I am doing one image if I click "Save" it does what is supposed to to (save overlay and mask). But clicking "Propagate" should not throw and error with cuda when --mem_profile was set to 2, right ? should not have used GPU.
The text was updated successfully, but these errors were encountered: