An open API service indexing awesome lists of open source software.

https://github.com/pd-mera/cart-pole-dqn

Try to reproduce basic example of Deep Q Learning (DQN) with Pytorch
https://github.com/pd-mera/cart-pole-dqn

deep-q-learning gymnasium-environment onnx onnxruntime torch

Last synced: 3 months ago
JSON representation

Try to reproduce basic example of Deep Q Learning (DQN) with Pytorch

Awesome Lists containing this project

README

        

# Basic Deep Q Learning with Pytorch

An reproduced code from [Reinforcement Learning (DQN) Tutorial](https://pytorch.org/tutorials/intermediate/reinforcement_q_learning.html) to learn about Deep Reinforcement Learning

## How to run

Training and convert model to onnx with `main.py`

Runing onnx model inference with `run.py`

## Result

Visualize training result

![](./assets/training.png)

Visualize environment result

![](./assets/visualize.gif)

## Reference

- [Reinforcement Learning (DQN) Tutorial](https://pytorch.org/tutorials/intermediate/reinforcement_q_learning.html)
- [boringtutor/makeGifFromGymOpenAi](https://github.com/boringtutor/makeGifFromGymOpenAi)