mani_skill.utils.wrappers.visual_encoders#
Classes#
Modify observations from |
Module Contents#
- class mani_skill.utils.wrappers.visual_encoders.VisualEncoderWrapper(env, encoder, encoder_config=dict())[source]#
Bases:
gymnasium.ObservationWrapperModify observations from
Env.reset()andEnv.step()usingobservation()function.If you would like to apply a function to only the observation before passing it to the learning code, you can simply inherit from
ObservationWrapperand overwrite the methodobservation()to implement that transformation. The transformation defined in that method must be reflected by theenvobservation space. Otherwise, you need to specify the new observation space of the wrapper by settingself.observation_spacein the__init__()method of your wrapper.- Parameters:
encoder (Literal['r3m']) –