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
{{ message }}
Repository navigation
A problem with incompatibility between env.reset() methods #74
I configured the code environment as readme.md shows. And I run python main.py --split val --eval 1 --train_global 0 --train_local 0 --train_slam 0 --load_global pretrained_models/model_best.global --load_local pretrained_models/model_best.local --load_slam pretrained_models/model_best.slam .
But I got the following error.
Traceback (most recent call last):
File "main.py", line 789, in
main()
File "main.py", line 136, in main
obs, infos = envs.reset()
File "/home/csy/source_code/Neural-SLAM/env/init.py", line 27, in reset
obs, infos = self.venv.reset()
ValueError: not enough values to unpack (expected 2, got 1)
It is due to the inconsistency between the call and definition of reset method. The definition in file env/habitat/habitat_api/habitat/core/vector_env.py Line 249 is as follows
`
def reset(self):
Returns:
list of outputs from the reset method of envs.
self._is_waiting = True
for write_fn in self._connection_write_fns:
write_fn((RESET_COMMAND, None))
results = []
for read_fn in self._connection_read_fns:
results.append(read_fn())
self._is_waiting = False
return results
`
I copied the repo habitat-api to the directory manually. (I am not sure if the error is related to this.)
Can anyone give me some help? Thanks !
Activity