3 ms·
There’s also an interface to use OpenAI Gym environments in Godot. https://github.com/lupoglaz/GodotAIGym https://github.com/lupoglaz/GodotAIGym I have succee
by TaylorAlexander 5y ago
There’s also an interface to use OpenAI Gym environments in Godot.
https://github.com/lupoglaz/GodotAIGym https://github.com/lupoglaz/GodotAIGym
I have succeeded in modifying the interface to send images to a version of Google’s DreamerV2 RL learner. I have a simple test environment I could publish.
But I stalled because I kept getting a segmentation fault and I wasn’t up for debugging it. I have enough plumbing that it begins testing and makes it at most a few thousand cycles but this segfault eventually comes up.
I think it would be very cool to be able to make a game in Godot and then train an agent to play it using DreamerV2 or similar. I’ve still not posted my sample files but if someone responds here saying they would like to see it, I will try to push it all to GitHub.
- fire 5y agowhat license would you use if you pushed it?
- TaylorAlexander 5y agoCC0, MIT, or Apache, unless I find that used some code that requires something else.
- fire 5y agoSounds good! I'd like to check it out but I don't know if I can make immediate use of it!
- TaylorAlexander 5y agoAlright! I’ll see about cleaning it all up. Might take some time. If your Twitter in your profile is active I can let you know there when I’ve got it posted.
- fire 5y agoYep, DM's are open too!
- montenegrohugo 5y agooh please do! I've tried using GodotAIGym myself, but it was a bit too complicated to make it work, and I was getting non-trivial errors too (in fact last commit on the repo is a small pull request from me). I'd love a way to make Pytorch work in Godot. I see a lot of future in videogames like that, and it's also just plain fun to simulate RL agents. I'm reminded of the Primer youtube channel [1] [1] https://www.youtube.com/channel/UCKzJFdi57J53Vr_BkTfN3uQ https://www.youtube.com/channel/UCKzJFdi57J53Vr_BkTfN3uQ