Git Product home page Git Product logo

vizdoom's Introduction

RL Project 2023.12.18

viz_doom제목

This project began as part of the Reinforcement Learning course at the University of Seoul.

vizdoom-demo

Scenario

Task

: Shoot randomly generated targets on the opposite wall with a gun.

Actions

: 3 actions [Left, Right, Shot]

Reward Design

-1 if 1 frame has passed -5 if shot missed +100 if shot hit

Episode Termination

(1) 200 frame timeout (2) enemy hit


Files

Warning: You might have to tune some file paths in the code.

basic.py
Run to test basic random policy agent in ViZDoom environment.

no_trained_base_model.py
Run to test initialized CNN-based agent.

trained_base_model.py
You can make model trained with ViZDoom scenario by REINFORCE policy gradient.
Reward and Loss will be saved during training every episodes.
Your trained model will be saved every after 10000 episodes.

gradient_accumulation.py
This is a version with gradient accumulation algorithm added to the trained_base_model.py.
Except for that, everything else is the same.

play_model.py
You can see how your trained agent play ViZDoom scenario well via this file.
Note that this file has to be excuted in terminal.
How to excute this file is writed at the last line of the file.

graph_log.py
Produces graph.png file via log.txt or acc_log.txt.
Tune some variables to tune value for x or y axis.

model.py
CNN model is factorized in this file.

for_ppt.py
It's just a dump file.

Contributors

Jeonghyun Kim 📧 [email protected]

Jiyoung Seo 📧 [email protected]

vizdoom's People

Contributors

krjeo avatar

Watchers

JIYOUNG SEO avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.