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

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

Closed
Benson722 opened this issue Jun 17, 2024 · 6 comments
Closed

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

Benson722 opened this issue Jun 17, 2024 · 6 comments

Comments

@Benson722
Copy link

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
Copy link

imfks commented Jul 5, 2024

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

@PEACHTTT
Copy link

PEACHTTT commented Jul 5, 2024

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
Copy link

PEACHTTT commented Jul 5, 2024

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
Copy link
Author

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
Copy link
Author

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

@knightwzh
Copy link

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.

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

4 participants