From 54e8ec40155416880a1d143295b5ea0a649392a9 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Mon, 18 Sep 2023 18:42:34 +0200 Subject: [PATCH] Print warning on seeded metaworld reset --- fancy_gym/meta/metaworld_adapter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fancy_gym/meta/metaworld_adapter.py b/fancy_gym/meta/metaworld_adapter.py index 71e8ef0..21dfed7 100644 --- a/fancy_gym/meta/metaworld_adapter.py +++ b/fancy_gym/meta/metaworld_adapter.py @@ -55,6 +55,7 @@ class FixMetaworldIgnoresSeedOnResetWrapper(gym.Wrapper, gym.utils.RecordConstru gym.Wrapper.__init__(self, env) def reset(self, **kwargs): + print('[!] You just called .reset on a Metaworld env and supplied a seed. Metaworld curretly does not correctly implement seeding. Do not rely on deterministic behavior.') if 'seed' in kwargs: self.env.seed(kwargs['seed']) return self.env.reset(**kwargs)