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

keyerror when eval the pretrained model provided by the offical #29

Open
zyjzxy9 opened this issue Apr 6, 2024 · 0 comments
Open

keyerror when eval the pretrained model provided by the offical #29

zyjzxy9 opened this issue Apr 6, 2024 · 0 comments

Comments

@zyjzxy9
Copy link

zyjzxy9 commented Apr 6, 2024

Process ForkServerProcess-2:
Traceback (most recent call last):
File "/home/zyj/anaconda3/envs/semexp/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/home/zyj/anaconda3/envs/semexp/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/zyj/vln/Object-Goal-Navigation/envs/habitat/utils/vector_env.py", line 193, in _worker_env
observations = env.reset()
File "/home/zyj/vln/Object-Goal-Navigation/agents/sem_exp.py", line 62, in reset
obs, info = super().reset()
File "/home/zyj/vln/Object-Goal-Navigation/envs/habitat/objectgoal_env.py", line 329, in reset
obs = self.load_new_episode()
File "/home/zyj/vln/Object-Goal-Navigation/envs/habitat/objectgoal_env.py", line 106, in load_new_episode
goal_name = episode["goal_name"]
KeyError: 'goal_name'
I0406 18:01:11.748121 174960 Simulator.cpp:39] Deconstructing Simulator
I0406 18:01:11.749099 174959 Renderer.cpp:33] Deconstructing Renderer
I0406 18:01:11.749117 174959 WindowlessContext.h:16] Deconstructing WindowlessContext
I0406 18:01:11.749120 174959 WindowlessContext.cpp:245] Deconstructing GL context
Process ForkServerProcess-1:
Traceback (most recent call last):
File "/home/zyj/anaconda3/envs/semexp/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/home/zyj/anaconda3/envs/semexp/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/zyj/vln/Object-Goal-Navigation/envs/habitat/utils/vector_env.py", line 193, in _worker_env
observations = env.reset()
File "/home/zyj/vln/Object-Goal-Navigation/agents/sem_exp.py", line 62, in reset
obs, info = super().reset()
File "/home/zyj/vln/Object-Goal-Navigation/envs/habitat/objectgoal_env.py", line 329, in reset
obs = self.load_new_episode()
File "/home/zyj/vln/Object-Goal-Navigation/envs/habitat/objectgoal_env.py", line 106, in load_new_episode
goal_name = episode["goal_name"]
KeyError: 'goal_name'
I0406 18:01:11.749852 174959 Simulator.cpp:39] Deconstructing Simulator
I0406 18:01:11.753590 174961 Renderer.cpp:33] Deconstructing Renderer
I0406 18:01:11.753607 174961 WindowlessContext.h:16] Deconstructing WindowlessContext
I0406 18:01:11.753609 174961 WindowlessContext.cpp:245] Deconstructing GL context
Process ForkServerProcess-3:
Traceback (most recent call last):
File "/home/zyj/anaconda3/envs/semexp/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/home/zyj/anaconda3/envs/semexp/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/zyj/vln/Object-Goal-Navigation/envs/habitat/utils/vector_env.py", line 193, in _worker_env
observations = env.reset()
File "/home/zyj/vln/Object-Goal-Navigation/agents/sem_exp.py", line 62, in reset
obs, info = super().reset()
File "/home/zyj/vln/Object-Goal-Navigation/envs/habitat/objectgoal_env.py", line 329, in reset
obs = self.load_new_episode()
File "/home/zyj/vln/Object-Goal-Navigation/envs/habitat/objectgoal_env.py", line 106, in load_new_episode
goal_name = episode["goal_name"]
KeyError: 'goal_name'
I0406 18:01:11.754305 174961 Simulator.cpp:39] Deconstructing Simulator
I0406 18:01:11.761523 174962 Renderer.cpp:33] Deconstructing Renderer
I0406 18:01:11.761543 174962 WindowlessContext.h:16] Deconstructing WindowlessContext
I0406 18:01:11.761547 174962 WindowlessContext.cpp:245] Deconstructing GL context
Process ForkServerProcess-4:
Traceback (most recent call last):
File "/home/zyj/anaconda3/envs/semexp/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/home/zyj/anaconda3/envs/semexp/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/zyj/vln/Object-Goal-Navigation/envs/habitat/utils/vector_env.py", line 193, in _worker_env
observations = env.reset()
File "/home/zyj/vln/Object-Goal-Navigation/agents/sem_exp.py", line 62, in reset
obs, info = super().reset()
File "/home/zyj/vln/Object-Goal-Navigation/envs/habitat/objectgoal_env.py", line 329, in reset
obs = self.load_new_episode()
File "/home/zyj/vln/Object-Goal-Navigation/envs/habitat/objectgoal_env.py", line 106, in load_new_episode
goal_name = episode["goal_name"]
KeyError: 'goal_name'
I0406 18:01:11.762240 174962 Simulator.cpp:39] Deconstructing Simulator
I0406 18:01:11.767433 174963 Renderer.cpp:33] Deconstructing Renderer
I0406 18:01:11.767453 174963 WindowlessContext.h:16] Deconstructing WindowlessContext
I0406 18:01:11.767457 174963 WindowlessContext.cpp:245] Deconstructing GL context
Process ForkServerProcess-5:
Traceback (most recent call last):
File "/home/zyj/anaconda3/envs/semexp/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/home/zyj/anaconda3/envs/semexp/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/zyj/vln/Object-Goal-Navigation/envs/habitat/utils/vector_env.py", line 193, in _worker_env
observations = env.reset()
File "/home/zyj/vln/Object-Goal-Navigation/agents/sem_exp.py", line 62, in reset
obs, info = super().reset()
File "/home/zyj/vln/Object-Goal-Navigation/envs/habitat/objectgoal_env.py", line 329, in reset
obs = self.load_new_episode()
File "/home/zyj/vln/Object-Goal-Navigation/envs/habitat/objectgoal_env.py", line 106, in load_new_episode
goal_name = episode["goal_name"]
KeyError: 'goal_name'
I0406 18:01:11.768168 174963 Simulator.cpp:39] Deconstructing Simulator
Traceback (most recent call last):
File "main.py", line 697, in
main()
File "main.py", line 84, in main
obs, infos = envs.reset()
File "/home/zyj/vln/Object-Goal-Navigation/envs/init.py", line 24, in reset
obs, info = self.venv.reset()
File "/home/zyj/vln/Object-Goal-Navigation/envs/habitat/utils/vector_env.py", line 330, in reset
results.append(read_fn())
File "/home/zyj/anaconda3/envs/semexp/lib/python3.8/multiprocessing/connection.py", line 250, in recv
buf = self._recv_bytes()
File "/home/zyj/anaconda3/envs/semexp/lib/python3.8/multiprocessing/connection.py", line 414, in _recv_bytes
buf = self._recv(4)
File "/home/zyj/anaconda3/envs/semexp/lib/python3.8/multiprocessing/connection.py", line 383, in _recv
raise EOFError
EOFError
Exception ignored in: <function VectorEnv.del at 0x7f1d5c804820>
Traceback (most recent call last):
File "/home/zyj/vln/Object-Goal-Navigation/envs/habitat/utils/vector_env.py", line 539, in del
self.close()
File "/home/zyj/vln/Object-Goal-Navigation/envs/habitat/utils/vector_env.py", line 403, in close
read_fn()
File "/home/zyj/anaconda3/envs/semexp/lib/python3.8/multiprocessing/connection.py", line 250, in recv
buf = self._recv_bytes()
File "/home/zyj/anaconda3/envs/semexp/lib/python3.8/multiprocessing/connection.py", line 414, in _recv_bytes
buf = self._recv(4)
File "/home/zyj/anaconda3/envs/semexp/lib/python3.8/multiprocessing/connection.py", line 383, in _recv
raise EOFError
EOFError:

Does anyone face the same question?How can I solve this problem? Thank you .This problem "KeyError: 'goal_name' " just exists in the eval stage not exists in training stage.

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