[go: nahoru, domu]

Skip to content

Desny/DQN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DQN

Introduction

This repository contains DQN related algorithms implemented in PyTorch. There are tutorial videos in Chinese on bilibili.

Subpackages

original_dqn

It contains 2 codes that dqn_Nature_gpu.py for training and dqn_Nature_eval.py for testing the model. You can run the code directly to train or test, but please be noticed of the path for saving or loading .pth files.

double_dqn

It refers to the code named dqn_zoo implemented by DeepMind in Jax. Double_dqn in this repository is converted from Jax to PyTorch. You can run main.py with the config variable --mode to choose train or eval. It is able to restart training at breakpoints by modifying the variable net_file in main.py.

To be noticed:

  • The working directory needs to be configured of DQN. It is recommended to run code on PyCharm that the configuration for running codes would be easier, referring to the picture below. image

  • If net_file(.pth) can not be found, the training process will start at the begining rather than breakpoints.

prioritized

Its code structure is similar to double_dqn. You can take steps above in double_dqn to run the code.

Dependencies

python3.7

gym==0.19.0
numpy==1.21.6
dm-env==1.5
torch==1.13.1
pyglet==1.5.21

About

DQN related algorithms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages