简体   繁体   English

如何在 rllib 中输入图像

[英]How to input images in rllib

last time I saw library rllib: https://docs.ray.io/en/latest/rllib/index.html .上次我看到图书馆 rllib: https://docs.ray.io/en/latest/rllib/index.html It has amazing features for reinforcement learning, but unfortunately, I couldn't find a way to input images as an observation without flattening them (I basically want to use convolutional neural network).它具有强化学习的惊人功能,但不幸的是,我找不到一种方法来输入图像作为观察而不将它们展平(我基本上想使用卷积神经网络)。 Is there any way to input image observations in models using rllib library?有没有办法使用 rllib 库在模型中输入图像观察?

Rllib is compatible with openai's gym, you can create a custom env https://docs.ray.io/en/latest/rllib/rllib-env.html#configuring-environments and return a Box as an observation space like https://stackoverflow.com/a/69602365/4994352 Rllib 兼容 openai 的健身房,你可以创建一个自定义的 env https://docs.ray.io/en/latest/rllib/rllib-env.html#configuring-environments并返回一个 Box 作为观察空间,如https:/ /stackoverflow.com/a/69602365/4994352

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM