PWhiddy / PokemonRedExperiments

Playing Pokemon Red with Reinforcement Learning
MIT License
6.99k stars 644 forks source link

Error running run_pretrained_interactive.py #184

Open ideasxiang opened 3 months ago

ideasxiang commented 3 months ago

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 https://github.com/DLR-RM/stable-baselines3/issues/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>