Giter Site home page Giter Site logo

yurawoo / pve-mcc_for_unsignalized_intersection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mingtzge/pve-mcc_for_unsignalized_intersection

0.0 0.0 0.0 36.68 MB

Aiming at the problem of the traffic efficiency of intelligent networked vehicles passing through unsignalized-intersection in the future smart cities, this project proposed a Progressive Value-expectation Estimation Multi-agent Cooperative Control (PVE-MCC) algorithm based on reinforcement learning. The algorithm takes the intelligent networked ve

License: MIT License

Python 100.00%

pve-mcc_for_unsignalized_intersection's Introduction

PVE-MCC_for_unsignalized_intersection

Aiming at the problem of the traffic efficiency of intelligent networked vehicles passing through unsignalized-intersection in the future smart cities, this paper proposed a Progressive Value-expectation Estimation Multi-agent Cooperative Control (PVE-MCC) algorithm based on reinforcement learning. The algorithm takes the intelligent networked vehicles as the research object and designed the reward function for the optimization objective from the three aspects of traffic efficiency, safety, and comfort.

visible

Prerequisites

  • Linux or macOS
  • Python 3
  • matlab 2017b
  • CPU or NVIDIA GPU + CUDA CuDNN

python modules

  • numpy==1.16.2
  • opencv-contrib-python==3.4.2.16
  • opencv-python==4.2.0.32
  • tensorflow==1.12.0
  • matplotlib==3.0.2
  • scipy==1.2.1

Getting Started

Installation

  • Clone this repo:
git clone [email protected]:Mingtzge/PVE-MCC_for_unsignalized_intersection.git
cd PVE-MCC_for_unsignalized_intersection

Test the pre-trained model

python main.py --exp_name baseline --mat_path arvTimeNewVeh_new_1000_12.mat  --type test  --visible --video_name test

train/test (on the "main" branch)

  • Train a model:
python main.py --mat_path arvTimeNewVeh_for_train.mat --type train --exp_name train_demo

To see more intermediate results, run

tensorboard --logdir ./model_data/train_demo/log
  • Test the model:
python main.py --exp_name baseline --mat_path arvTimeNewVeh_new_1000_12.mat  --type train_demo  --visible --video_name test```
Note:the visual prarameters "--visible" and "--video_name" is optional. If use the "--visible", there will be a simulation interface to show the running interface of the vehicle in real time. the "--video_name test" is used to generate a video ,named "test.avi", saved in "./result_imgs/".

pve-mcc_for_unsignalized_intersection's People

Contributors

mingtzge 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.