GithubHelp home page GithubHelp logo

lyx997 / rlcoursehw Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 407.01 MB

License: MIT License

CMake 1.95% C 2.34% C++ 81.19% Makefile 0.37% TypeScript 0.01% Shell 0.18% Python 0.56% Cuda 1.11% Fortran 11.20% JavaScript 0.07% CSS 0.05% ASP.NET 1.00%

rlcoursehw's Introduction

注意事项:

  1. 代码运行时会关闭所有终端,所以不要在终端中运行程序(可以在PyCharm中运行),其他在运行的程序也要注意先关闭;
  2. 程序环境依赖在environment.yaml中;
  3. /CarND-test/src/train/train.py中编写你的强化学习程序,注意在其中的150、179等行修改你的文件存储位置;
  4. 按照/CarND-test/README.md中的提示编译程序,理解/CarND-test/src/main.cpp的作用(可能需要作相应调整);
  5. 不同电脑,tensorflow-gpu、cuda、cudnn、keras的版本配置可能不同,请自行安装;
  6. 测试仿真环境是否安装成功,可以运行decision-making-CarND/term3_sim_linux/term3_sim.x86_64decision-making-CarND/CarND-test/src/test/path_planning
  7. 程序是利用C++与Python通过socket互传信息的方式,需要先开启Python监听,否则直接运行path_planning会显示connect error错误;
  8. 样本程序所使用tensorflow、keras的版本、方式较老,如果配置有困难,可以自由选择网络搭建的方式(例如pytorch等),只要Python可以通过socket正常监听到数据即可。

环境配置步骤:

  1. git clone https://github.com/DRL-CASIA/decision-making-CarND.git (有文件更新,建议重新克隆)
  2. cd decision-making-CarND/term3_sim_linux
  3. sudo chmod u+x term3_sim.x86_64
  4. 确保cmake >= 3.5,make >= 4.1,gcc/g++ >= 5.4(一般都已安装,未安装参考decision-making-CarND/CarND-test/README.md)
  5. 进入decision-making-CarND/CarND-test文件夹,运行install-ubuntu.sh安装依赖(bash install-ubuntu.sh
  6. 保持在decision-making-CarND/CarND-test文件夹,进行编译: mkdir build && cd build cmake .. && make 此时运行./path_planning显示connect error为正常现象
  7. 安装anaconda3或miniconda3
  8. 修改environment.yaml中最后一行至你的conda安装位置,运行conda env create -f environment.yaml建立虚拟环境
  9. 编写decision-making-CarND/CarND-test/src/train/train.py文件并运行,注意事项如上

rlcoursehw's People

Contributors

lyx997 avatar

Watchers

 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.