RuntimeError: DataLoader worker (pid 27) is killed by signal: Bus error.

docker에서 오류 발생

ERROR: Unexpected bus error encountered in worker. This might be caused by insufficient shared memory (shm).
Traceback (most recent call last):
File "run_on_thn_seq.py", line 44, in 
for step, (imgs, img_ids) in enumerate(val_loader):
File "/opt/conda/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 280, in __next__
idx, batch = self._get_batch()
 File "/opt/conda/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 259, in _get_batch
return self.data_queue.get()
  File "/opt/conda/lib/python3.6/queue.py", line 164, in get
self.not_empty.wait()  File "/opt/conda/lib/python3.6/threading.py", line 295, in wait
waiter.acquire()  File "/opt/conda/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 178, in handler
_error_if_any_worker_fails()
RuntimeError: DataLoader worker (pid 69) is killed by signal: Bus error.root@8719bf31dda6:~/deeplabv3/visualization# exit

해결 방법


마운트 후 shm 크기 설정 sudo nvidia-docker run --rm -it -v/home/lab316/Documents/Code/DepthSeg/deeplabv3-torch:/root/deeplabv3 --runtime=nvidia --shm-size 8g-m 32G --memory-swap -1 --name lab316 0.4_cuda9_cudnn7:latest/bin/bash

좋은 웹페이지 즐겨찾기