Skip to content

Commit 88e017e

Browse files
authored
Enable antialias on marioRL (#2660)
1 parent 105e952 commit 88e017e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intermediate_source/mario_rl_tutorial.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def __init__(self, env, shape):
199199

200200
def observation(self, observation):
201201
transforms = T.Compose(
202-
[T.Resize(self.shape), T.Normalize(0, 255)]
202+
[T.Resize(self.shape, antialias=True), T.Normalize(0, 255)]
203203
)
204204
observation = transforms(observation).squeeze(0)
205205
return observation

0 commit comments

Comments
 (0)