bdaiinstitute / vlfm

The repository provides code associated with the paper VLFM: Vision-Language Frontier Maps for Zero-Shot Semantic Navigation (ICRA 2024)
http://naoki.io/portfolio/vlfm.html
MIT License
258 stars 24 forks source link

Problems about running "python -m vlfm.run" #35

Closed Benson722 closed 3 months ago

Benson722 commented 5 months ago

Thank you for your work! It helps me a lot. :-)

When I try to run the code, some errors occur:

(vlfm) zhangyiqing@inin:~/vlfm$ python -m vlfm.run
Could not import yolov7. This is OK if you are only using the client.
In 'habitat_baselines/rl/policy/vlfm_policy': ValidationError raised while composing config:
Invalid type assigned: str is not a subclass of PolicyConfig. value: HabitatITMPolicy
    full_key: habitat_baselines.rl.policy.name
    reference_type=Dict[str, PolicyConfig]
    object_type=dict

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

ps: "./scripts/launch_vlm_servers.sh" is running successfully

imfks commented 4 months ago

Maybe u can try cloning the habitat in --branch v0.2.4 ? Not the stable one.

PEACHTTT commented 4 months ago

Just run pip install -e .[habitat], make sure the version(habitat-sim,habitat-lab) is correct, you can check the file pyproject.toml.Please let me know if the problem is correct, I have some questions that I would like to discuss with you. Thanks!

PEACHTTT commented 4 months ago

Maybe u can try cloning the habitat in --branch v0.2.4 ? Not the stable one.

Hi,I wonder if you met the problem that
File "/home/tcy/anaconda3/envs/vlfm/lib/python3.9/site-packages/habitat/datasets/pointnav/pointnav_dataset.py", line 51, in get_scenes_to_load raise FileNotFoundError( FileNotFoundError: Could not find dataset file data/datasets/objectnav/hm3d/v1/val

I'm sure the datasets is in /home /name/vlfm/data/datasets/objectnav/hm3d/v1/val`

Benson722 commented 3 months ago

Maybe u can try cloning the habitat in --branch v0.2.4 ? Not the stable one.

Hi,I wonder if you met the problem that File "/home/tcy/anaconda3/envs/vlfm/lib/python3.9/site-packages/habitat/datasets/pointnav/pointnav_dataset.py", line 51, in get_scenes_to_load raise FileNotFoundError( FileNotFoundError: Could not find dataset file data/datasets/objectnav/hm3d/v1/val

I'm sure the datasets is in /home /name/vlfm/data/datasets/objectnav/hm3d/v1/val`

Sorry for replying late. I have not met this problem. It seems like a problem about the dataset locations. Perhaps you can try download the dataset by the recommended ways again. Hope it works. :)

Benson722 commented 3 months ago

The problem has been solved by being installed again. Perhaps some errors occur in the environment

knightwzh commented 1 month ago

I have met the same problem and here is how I solved it. The error is raised in line 51 in "habitat/datasets/pointnav/pointnav_dataset.py", which is triggered when cls.check_config_paths_exist(config) returns true. And cls.check_config_paths_exist(config) actually checks both the dir "/name/vlfm/data/datasets/objectnav/hm3d/v1/val" and another dir "/name/vlfm/data/scene_datasets" where the glb and navmesh files of mp3d are stored. So you need to check if the BOTH dir is existed.