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

hvln37/lib/python3.7/multiprocessing/connection.py", line 379, in _recv chunk = read(handle, remaining) ConnectionResetError: [Errno 104] Connection reset by peer Exception ignored in: <function VectorEnv.__del__ at 0x7f11486e6200> #4

Closed
dongxinfeng1 opened this issue Apr 19, 2024 · 1 comment

Comments

@dongxinfeng1
Copy link

Dear author:
When I try to run "run_nerf.py", It shows the following problems:
" File "/home/user/dxf/HNR-VLN-main1/habitat-lab/habitat/core/embodied_task.py", line 275, in _init_entities
task=self,
File "/home/user/dxf/HNR-VLN-main1/habitat-lab/habitat/tasks/vln/vln.py", line 60, in init
self.observation_space = spaces.Discrete(0)
File "/home/user/anaconda3/envs/hvln37/lib/python3.7/site-packages/gym/spaces/discrete.py", line 36, in init
assert n > 0, "n (counts) have to be positive"
AssertionError: n (counts) have to be positive"

and

" buf = self.recv_bytes()
File "/home/user/anaconda3/envs/hvln37/lib/python3.7/multiprocessing/connection.py", line 216, in recv_bytes
buf = self._recv_bytes(maxlength)
File "/home/user/anaconda3/envs/hvln37/lib/python3.7/multiprocessing/connection.py", line 407, in _recv_bytes
buf = self._recv(4)
File "/home/user/anaconda3/envs/hvln37/lib/python3.7/multiprocessing/connection.py", line 379, in _recv
chunk = read(handle, remaining)
ConnectionResetError: [Errno 104] Connection reset by peer
Exception ignored in: <function VectorEnv.del at 0x7f11486e6200>
Traceback (most recent call last):
File "/home/user/dxf/HNR-VLN-main1/habitat-lab/habitat/core/vector_env.py", line 588, in del
self.close()",

    Do you have any suggestions? 
@MrZihan
Copy link
Owner

MrZihan commented Apr 19, 2024

You can run the following command in the directory where run_nerf.py is located: bash run_r2r/nerf.bash train 2345 for pre-training.
Additionally, due to the enormous size of the data from 900 scenes, loading speed can be significantly slow, which might hinder code debugging. You can try modifying if count == 5: break in habitat_extensions/task.py to adjust the number of scenes loaded for quicker code debugging.

@MrZihan MrZihan closed this as completed Apr 21, 2024
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

2 participants