hzxie/GRNet

Cannot allocate memory

Closed this issue · 1 comments

when I train with shapenet dataset, I meet this error.

##########
File "runner.py", line 76, in
main()
File "runner.py", line 58, in main
train_net(cfg)
File "/export/chenyue/GRNet/core/train.py", line 107, in train_net
for batch_idx, (taxonomy_ids, model_ids, data) in enumerate(train_data_loader):
File "/opt/conda/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 291, in iter
return _MultiProcessingDataLoaderIter(self)
File "/opt/conda/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 737, in init
w.start()
File "/opt/conda/lib/python3.7/multiprocessing/process.py", line 112, in start
self._popen = self._Popen(self)
File "/opt/conda/lib/python3.7/multiprocessing/context.py", line 223, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "/opt/conda/lib/python3.7/multiprocessing/context.py", line 277, in _Popen
return Popen(process_obj)
File "/opt/conda/lib/python3.7/multiprocessing/popen_fork.py", line 20, in init
self._launch(process_obj)
File "/opt/conda/lib/python3.7/multiprocessing/popen_fork.py", line 70, in _launch
self.pid = os.fork()
OSError: [Errno 12] Cannot allocate memory
###########

My server have 216 GB memory.

hzxie commented

Please check your PyTorch installation. It seems the bug is related to PyTorch instead of our project.