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

NeuralSLAM model review and run #7

Open
BobMak opened this issue Feb 5, 2021 · 4 comments
Open

NeuralSLAM model review and run #7

BobMak opened this issue Feb 5, 2021 · 4 comments
Assignees

Comments

@BobMak
Copy link
Collaborator

BobMak commented Feb 5, 2021

No description provided.

@BobMak BobMak self-assigned this Feb 5, 2021
@BobMak
Copy link
Collaborator Author

BobMak commented Feb 18, 2021

getting an error trying to run eval on pre-trained models:

Traceback (most recent call last):
  File "/home/vlad/Projects/DroneObjectNav/Neural-SLAM/main.py", line 15, in <module>
    from env import make_vec_envs
  File "/home/vlad/Projects/DroneObjectNav/Neural-SLAM/env/__init__.py", line 3, in <module>
    from .habitat import construct_envs
  File "/home/vlad/Projects/DroneObjectNav/Neural-SLAM/env/habitat/__init__.py", line 9, in <module>
    from .exploration_env import Exploration_Env
  File "/home/vlad/Projects/DroneObjectNav/Neural-SLAM/env/habitat/exploration_env.py", line 28, in <module>
    from env.habitat.utils.noisy_actions import CustomActionSpaceConfiguration
  File "/home/vlad/Projects/DroneObjectNav/Neural-SLAM/env/habitat/utils/noisy_actions.py", line 12, in <module>
    from habitat_sim.agent.controls import register_move_fn
ImportError: cannot import name 'register_move_fn' from 'habitat_sim.agent.controls' (/home/vlad/anaconda3/envs/DroneObjectNav/lib/python3.7/site-packages/habitat_sim/agent/controls/__init__.py)

likely related to having a wrong version of habitat_sim

@BobMak
Copy link
Collaborator Author

BobMak commented Feb 21, 2021

Reinstalled neuralSlam and its dependencies outside of the conda env, and things seem to be working now.

running pretrained models on eval with 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 :
noloss

@Harryoter
Copy link

I also have the same problem, but I still cannot fix it. My env version: habitat-sim=v0.1.5, habitat-api=v0.1.5, python=3.7.11. How did you solve it?

@BobMak
Copy link
Collaborator Author

BobMak commented Mar 16, 2022

I was using incompatible habitat sim and api versions. Installing commits specified in NeuralSLAM repo helped.

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