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

[error] Training on the GPU Server #62

Open
AbelSyx opened this issue Nov 10, 2022 · 0 comments
Open

[error] Training on the GPU Server #62

AbelSyx opened this issue Nov 10, 2022 · 0 comments

Comments

@AbelSyx
Copy link

AbelSyx commented Nov 10, 2022

Your work is very good.
When I follow the tutorial “Training on the GPU Server”, I encountered some problems.
Now I execute the following code:
python scripts/training/train_agent.py --load pretrained_ppo_mpc --n_envs 24 --eval_log
But, It reminds me that the observation space does not match. The detailed error information is as follows:

(sim_3) Stage 1: Spawning 6 static and 0 dynamic obstacles!
/home/server/python_env/rosnav/lib/python3.8/site-packages/gym/spaces/box.py:73: UserWarning: WARN: Box bound precision lowered by casting to float32
  logger.warn(
(sim_4) Stage 1: Spawning 6 static and 0 dynamic obstacles!
Traceback (most recent call last):
  File "scripts/training/train_agent.py", line 217, in <module>
    main()
  File "scripts/training/train_agent.py", line 189, in main
    model = PPO.load(os.path.join(PATHS["model"], AGENT_NAME), env)
  File "/home/server/workspace/arena3D_ws/src/forks/stable-baselines3/stable_baselines3/common/base_class.py", line 628, in load
    check_for_correct_spaces(env, data["observation_space"], data["action_space"])
  File "/home/server/workspace/arena3D_ws/src/forks/stable-baselines3/stable_baselines3/common/utils.py", line 207, in check_for_correct_spaces
    raise ValueError(f"Observation spaces do not match: {observation_space} != {env.observation_space}")
ValueError: Observation spaces do not match: Box([ 0.         0.         0.         0.         0.         0. .............

I hope you can give me some suggestions. Thank you!

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