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

Error in Evaluate.py #4

Open
bigAndSmall opened this issue Dec 17, 2020 · 0 comments
Open

Error in Evaluate.py #4

bigAndSmall opened this issue Dec 17, 2020 · 0 comments

Comments

@bigAndSmall
Copy link

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!

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

1 participant