Skip to content
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

Your session crashed after using all available RAM. #3

Open
huynhbaobk opened this issue Jul 2, 2021 · 3 comments
Open

Your session crashed after using all available RAM. #3

huynhbaobk opened this issue Jul 2, 2021 · 3 comments

Comments

@huynhbaobk
Copy link

huynhbaobk commented Jul 2, 2021

I got the problem when I tried to run inference the �'second time' with same image (the first time is good).
outputs = model(inputs)[0]
I run the demo_letr.ipynb �on colab pro (25GB RAM).
I tried use
torch.cuda.empty_cache()
gc.collect() # garbage collection
but still got this error.
Thank you in advance

@yix081
Copy link
Contributor

yix081 commented Aug 31, 2021

can you share your colab notebook here?

@marcomiglionico94
Copy link

I am having the same problem

@Saoussenl
Copy link

Saoussenl commented Nov 9, 2021

I have the same problem while running on a setup with just a CPU.

RuntimeError: [enforce fail at ..\c10\core\CPUAllocator.cpp:79] data. DefaultCPUAllocator: not enough memory: you tried to allocate 1289507328 bytes.

I think it's because the network is fully connected.

Nevertheless, please consider to check your network and try to make it lighter because most ordinary pcs don't have the capabilities to run it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants