Trying to use this with gym stable retro (error). #20
-
I took some code I had that ran stable baselines 3 ppo with gym retro and tried to substitute this in and tried DAAC. However, I get the following error: Calculated padded input size per channel: (160 x 1). Kernel size: (8 x 8). Kernel size can't be greater than actual input size This is the observation space: Box(0, 255, (112, 160, 4), uint8) This error is at in your project, and in torch itself, the error is at What is this expecting? Also I'm using stable baselines3 vec environments, SubprocVecEnv and the frame stack one. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
The main reason for this error is that your input size (160, 4) is smaller than the kernel size (8, 8), we recommend you to use PathakCnnEncoder with the kernel size of 3. from rllte.xploit.encoder import PathakCnnEncoder
...
encoder = PathakCnnEncoder()
agent.set(encoder)
... Moreover, we will make many adjustments recently (still under development), so you are recommended to install the package with Thank you! |
Beta Was this translation helpful? Give feedback.
The main reason for this error is that your input size (160, 4) is smaller than the kernel size (8, 8), we recommend you to use PathakCnnEncoder with the kernel size of 3.
Moreover, we will make many adjustments recently (still under development), so you are recommended to install the package with
git
rather thanpip
.Thank you!