Wrapping the env with a `Monitor` wrapper
Wrapping the env in a DummyVecEnv.
Wrapping the env in a VecTransposeImage.
Traceback (most recent call last):
File "D:/Projects/street-fighter-ai/main/test.py", line 78, in <module>
action, _states = model.predict(obs)
File "D:\Anaconda3\envs\street\lib\site-packages\stable_baselines3\common\base_class.py", line 535, in predict
return self.policy.predict(observation, state, episode_start, deterministic)
File "D:\Anaconda3\envs\street\lib\site-packages\stable_baselines3\common\policies.py", line 340, in predict
observation, vectorized_env = self.obs_to_tensor(observation)
File "D:\Anaconda3\envs\street\lib\site-packages\stable_baselines3\common\policies.py", line 255, in obs_to_tensor
vectorized_env = is_vectorized_observation(observation, self.observation_space)
File "D:\Anaconda3\envs\street\lib\site-packages\stable_baselines3\common\utils.py", line 380, in is_vectorized_observation
return is_vec_obs_func(observation, observation_space)
File "D:\Anaconda3\envs\street\lib\site-packages\stable_baselines3\common\utils.py", line 247, in is_vectorized_box_observation
raise ValueError(
ValueError: Error: Unexpected observation shape (112, 160, 3) for Box environment, please use (3, 100, 128) or (n_env, 3, 100, 128) for the observation shape.
Fighting Begins!
运行环境: Python 3.8.10、Windows 10 家庭中文版