-
Notifications
You must be signed in to change notification settings - Fork 639
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
Cannot run trained v3 model #189
Comments
fixed it. (the diffs:)
red_gym_env_v3_minimal.py
|
Glad you were able to get it working! |
oh sh!t |
you mean, v2/baseline_fast_v2.py is the best one, and baseline/baseline_fast_v2.py in not the best one? |
I face this error:
➜ baselines git:(master) ✗ python3 run_pretrained_interactive.py
UserWarning: Using SDL2 binaries from pysdl2-dll 2.28.0
6697 pyboy.pyboy WARNING The emulation speed might not be accurate when speed-target is higher than 5
loading checkpoint
Wrapping the env with a
Monitor
wrapperWrapping the env in a DummyVecEnv.
Wrapping the env in a VecTransposeImage.
Traceback (most recent call last):
File "/Users/???/Programing/Fun/PokemonRedExperiments/baselines/run_pretrained_interactive.py", line 47, in
model = PPO.load(file_name, env=env, custom_objects={'lr_schedule': 0, 'clip_range': 0})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/stable_baselines3/common/base_class.py", line 716, in load
check_for_correct_spaces(env, data["observation_space"], data["action_space"])
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/stable_baselines3/common/utils.py", line 229, in check_for_correct_spaces
raise ValueError(f"Observation spaces do not match: {observation_space} != {env.observation_space}")
ValueError: Observation spaces do not match: Dict('screen': Box(0, 255, (72, 80), uint8)) != Box(0, 255, (3, 128, 40), uint8)
6820 pyboy.pyboy INFO ###########################
6820 pyboy.pyboy INFO # Emulator is turning off #
6820 pyboy.pyboy INFO ###########################
The text was updated successfully, but these errors were encountered: