Closed Chainesh closed 2 months ago
Hey, please provide the system info As far as I remember, the babyai mission is a str right?
Here is the system info as requested:
Yes you're correct it should be a string based on the babyai level, but image and direction key are not causing the issue for sure. Even on simply Using this code
env = gym.make("BabyAI-PickupLoc-v0")
model = PPO("MlpPolicy", env, seed = 42, verbose=1)
model.learn(50000)
env.close()
throws the same error.
Text observation is not supported. Technically, to make it work, you can convert the text to a discrete value, for example. That said, depending on what you're trying to do and show, this solution may not be relevant.
Can I convert text into a vector embedding and them might be able to use it?
it should work yes
Thanks :)
🐛 Bug
Hii,
I'm trying to train BabyAI environment for specific missions during training. The observation space of BabyAI looks like this
Dict('direction': Discrete(4), 'image': Box(0, 255, (7, 7, 3), uint8), 'mission': MissionSpace(<function BabyAIMissionSpace._gen_mission at 0x7f813d9da940>, None))
and using RGBImgPartialObsWrapper I've converted the observation Space toDict('direction': Discrete(4), 'image': Box(0, 255, (56, 56, 3), uint8), 'mission': MissionSpace(<function BabyAIMissionSpace._gen_mission at 0x7aa32616bc40>, None))
.Whether I pass DummyVecEnv or not it throws me the same error
TypeError: 'NoneType' object is not iterable
due to the fact that mission key is None. How can I train this model considering I want to use MultiInputPolicy after converting the mission into vector embedding and concatenating it with image embedding.Any help on this would be much appreciated. Let me know if something else is needed to solve this. Thanks :)
Code example
Relevant log output / Error message
System Info
No response
Checklist