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 running run_pretrained_interactive.py #184

Open
ideasxiang opened this issue Jul 30, 2024 · 0 comments
Open

Error running run_pretrained_interactive.py #184

ideasxiang opened this issue Jul 30, 2024 · 0 comments

Comments

@ideasxiang
Copy link

Got this error

(pokey) C:\Users\lifeup\Downloads\PokemonRedExperiments v1\baselines>python run_pretrained_interactive.py
UserWarning: Using SDL2 binaries from pysdl2-dll 2.28.0
2732 pyboy.pyboy WARNING The emulation speed might not be accurate when speed-target is higher than 5

loading checkpoint
C:\Users\lifeup\miniconda3\envs\pokey\lib\site-packages\stable_baselines3\common\vec_env\patch_gym.py:95: UserWarning: You loaded a model that was trained using OpenAI Gym. We strongly recommend transitioning to Gymnasium by saving that model again.
warnings.warn(
Wrapping the env with a Monitor wrapper
Wrapping the env in a DummyVecEnv.
Wrapping the env in a VecTransposeImage.
C:\Users\lifeup\miniconda3\envs\pokey\lib\site-packages\stable_baselines3\common\base_class.py:752: UserWarning: You are probably loading a model saved with SB3 < 1.7.0, we deactivated exact_match so you can save the model again to avoid issues in the future (see DLR-RM/stable-baselines3#1233 for more info). Original error: Error(s) in loading state_dict for ActorCriticCnnPolicy:
Missing key(s) in state_dict: "pi_features_extractor.cnn.0.weight", "pi_features_extractor.cnn.0.bias", "pi_features_extractor.cnn.2.weight", "pi_features_extractor.cnn.2.bias", "pi_features_extractor.cnn.4.weight", "pi_features_extractor.cnn.4.bias", "pi_features_extractor.linear.0.weight", "pi_features_extractor.linear.0.bias", "vf_features_extractor.cnn.0.weight", "vf_features_extractor.cnn.0.bias", "vf_features_extractor.cnn.2.weight", "vf_features_extractor.cnn.2.bias", "vf_features_extractor.cnn.4.weight", "vf_features_extractor.cnn.4.bias", "vf_features_extractor.linear.0.weight", "vf_features_extractor.linear.0.bias".
Note: the model should still work fine, this only a warning.
warnings.warn(

(pokey) C:\Users\lifeup\Downloads\PokemonRedExperiments v1\baselines>

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