Skip to content

Commit

Permalink
set resize_size in wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
HomerW committed Jan 8, 2024
1 parent 8576118 commit 756ae9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion octo/utils/gym_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,11 @@ def __init__(
self.observation_space, gym.spaces.Dict
), "Only Dict observation spaces are supported."
spaces = self.observation_space.spaces
self.resize_size = resize_size

if resize_size is None:
self.keys_to_resize = {}
elif isinstance(self.resize_size, tuple):
elif isinstance(resize_size, tuple):
self.keys_to_resize = {k: resize_size for k in spaces if "image_" in k}
else:
self.keys_to_resize = {
Expand Down

0 comments on commit 756ae9a

Please sign in to comment.