-
Notifications
You must be signed in to change notification settings - Fork 71
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
DefaultCPUAllocator: can't allocate memory: you tried to allocate 195696230400 bytes #3
Comments
Can you print |
Here you are:
Yep, 960×480×500×4×55 is exactly 47.21 Gb. |
|
I actually have 5 objects in the mask and I think I already know the problem... I have resized the original mask to lower resolutions, for sure the anti-aliasing has produced a lot of intermediate colors which are seen as new classes that don't really exist. Thanks for the support & debugging! |
Hey there,
first of all, thank you for the wonderful repo, it works great!
However, I've been experimenting for a few hours now and I can't process over seventy frames. I'm using 960x480 as resolution, but reducing the frame size doesn't seem to solve the problem.
Usually the script is interrupted by the usual CUDA OOM errors:
But sometimes there are much more disturbing errors like this one:
The command line is fairly standard:
The only thing that changes is the number of images and their resolution (960x480 is the maximum).
Is there a way to do inference one batch at a time, without allocating all the memory at the beginning and thus avoiding all these OOMs?
Thank you!
The text was updated successfully, but these errors were encountered: