Open huynhbaobk opened 3 years ago
can you share your colab notebook here?
I am having the same problem
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.
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