Git Product home page Git Product logo

txt_torcs's Introduction

txt_torcs

This repository incorporates serval common issues in the original gym_torcs repository, including:

  • Support Text Mode training in practice mode #48;
  • Support running multiple gym_torcs experiments on the same machine #27;
  • Upgrade torcs to the latest version;
  • Display the car in the screen #7;
  • Support training different tracks. The supported tracks can be found in TORCS.

Examples of PPO

A simple example of using PPO to train torcs:

python run_torcs.py --road_type g-track-1*road

Examples of gym_torcs

from multigym_torcs import TorcsEnv

# each TorcsEnv object should be associated with a different port in the same machine
# text_model=False will require a window to display
env = TorcsEnv(vision=False, throttle=True, gear_change=False, \
               trackname='street-1*road', port=3102, text_mode=True) 
env.reset()
env.step(env.action_space.sample())

road_type or trackname in TorcsEnv consists of road_name and category name which are concatenated by *.

For exmaple:

g-speedway*oval

Road and category names can be found in TORCS.

DISPLAY VISION on the remote server

If you want to run experiments and use vision mode on a remote server, personally I recommend to use VirtualGL and TurboVNC. The setup files can be find here.

Issue

Currently I only test for sensor based training, not on image-based training like original gym_torcs.

Please raise a issue if there is any bug or problem.

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.