From ab2cfa028ff6e9535580bdb8c57e194981562cc7 Mon Sep 17 00:00:00 2001 From: alperenunlu Date: Tue, 7 Nov 2023 20:48:12 +0300 Subject: [PATCH] Enable antialias on marioRL --- intermediate_source/mario_rl_tutorial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intermediate_source/mario_rl_tutorial.py b/intermediate_source/mario_rl_tutorial.py index ffb4a54ac01..67d50b121dc 100755 --- a/intermediate_source/mario_rl_tutorial.py +++ b/intermediate_source/mario_rl_tutorial.py @@ -199,7 +199,7 @@ def __init__(self, env, shape): def observation(self, observation): transforms = T.Compose( - [T.Resize(self.shape), T.Normalize(0, 255)] + [T.Resize(self.shape, antialias=True), T.Normalize(0, 255)] ) observation = transforms(observation).squeeze(0) return observation