You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have trained my own pth, and tried to run evaluate.py. But I got errors after feature extration. The error message is: OSError: [Errno 24] Too many open files.
The complete error:
File "Evaluate.py", line 89, in
for i, (imgs, fnames, pids, _) in enumerate(test_loader):
File "/home/huangsien/anaconda2/lib/python2.7/site-packages/torch/utils/data/dataloader.py", line 345, in next
data = self._next_data()
File "/home/huangsien/anaconda2/lib/python2.7/site-packages/torch/utils/data/dataloader.py", line 841, in _next_data
idx, data = self._get_data()
File "/home/huangsien/anaconda2/lib/python2.7/site-packages/torch/utils/data/dataloader.py", line 808, in _get_data
success, data = self._try_get_data()
File "/home/huangsien/anaconda2/lib/python2.7/site-packages/torch/utils/data/dataloader.py", line 761, in _try_get_data
data = self._data_queue.get(timeout=timeout)
File "/home/huangsien/anaconda2/lib/python2.7/multiprocessing/queues.py", line 135, in get
res = self._recv()
File "/home/huangsien/anaconda2/lib/python2.7/site-packages/torch/multiprocessing/queue.py", line 22, in recv
return pickle.loads(buf)
File "/home/huangsien/anaconda2/lib/python2.7/pickle.py", line 1388, in loads
return Unpickler(file).load()
File "/home/huangsien/anaconda2/lib/python2.7/pickle.py", line 864, in load
dispatchkey
File "/home/huangsien/anaconda2/lib/python2.7/pickle.py", line 1139, in load_reduce
value = func(*args)
File "/home/huangsien/anaconda2/lib/python2.7/site-packages/torch/multiprocessing/reductions.py", line 287, in rebuild_storage_fd
fd = multiprocessing.reduction.rebuild_handle(df)
File "/home/huangsien/anaconda2/lib/python2.7/multiprocessing/reduction.py", line 155, in rebuild_handle
conn = Client(address, authkey=current_process().authkey)
File "/home/huangsien/anaconda2/lib/python2.7/multiprocessing/connection.py", line 169, in Client
c = SocketClient(address)
File "/home/huangsien/anaconda2/lib/python2.7/multiprocessing/connection.py", line 320, in SocketClient
fd = duplicate(s.fileno())
OSError: [Errno 24] Too many open files
I don't know how to solve it. Counld you please help me with this? Thanks a lot!
The text was updated successfully, but these errors were encountered:
Hello, I have trained my own pth, and tried to run evaluate.py. But I got errors after feature extration. The error message is: OSError: [Errno 24] Too many open files.
The complete error:
File "Evaluate.py", line 89, in
for i, (imgs, fnames, pids, _) in enumerate(test_loader):
File "/home/huangsien/anaconda2/lib/python2.7/site-packages/torch/utils/data/dataloader.py", line 345, in next
data = self._next_data()
File "/home/huangsien/anaconda2/lib/python2.7/site-packages/torch/utils/data/dataloader.py", line 841, in _next_data
idx, data = self._get_data()
File "/home/huangsien/anaconda2/lib/python2.7/site-packages/torch/utils/data/dataloader.py", line 808, in _get_data
success, data = self._try_get_data()
File "/home/huangsien/anaconda2/lib/python2.7/site-packages/torch/utils/data/dataloader.py", line 761, in _try_get_data
data = self._data_queue.get(timeout=timeout)
File "/home/huangsien/anaconda2/lib/python2.7/multiprocessing/queues.py", line 135, in get
res = self._recv()
File "/home/huangsien/anaconda2/lib/python2.7/site-packages/torch/multiprocessing/queue.py", line 22, in recv
return pickle.loads(buf)
File "/home/huangsien/anaconda2/lib/python2.7/pickle.py", line 1388, in loads
return Unpickler(file).load()
File "/home/huangsien/anaconda2/lib/python2.7/pickle.py", line 864, in load
dispatchkey
File "/home/huangsien/anaconda2/lib/python2.7/pickle.py", line 1139, in load_reduce
value = func(*args)
File "/home/huangsien/anaconda2/lib/python2.7/site-packages/torch/multiprocessing/reductions.py", line 287, in rebuild_storage_fd
fd = multiprocessing.reduction.rebuild_handle(df)
File "/home/huangsien/anaconda2/lib/python2.7/multiprocessing/reduction.py", line 155, in rebuild_handle
conn = Client(address, authkey=current_process().authkey)
File "/home/huangsien/anaconda2/lib/python2.7/multiprocessing/connection.py", line 169, in Client
c = SocketClient(address)
File "/home/huangsien/anaconda2/lib/python2.7/multiprocessing/connection.py", line 320, in SocketClient
fd = duplicate(s.fileno())
OSError: [Errno 24] Too many open files
I don't know how to solve it. Counld you please help me with this? Thanks a lot!
The text was updated successfully, but these errors were encountered: