Reinforcement Learning with Rlib and Carla
wget http://carla-assets-internal.s3.amazonaws.com/Releases/Linux/CARLA_0.9.6.tar.gz
Optional: wget http://carla-assets-internal.s3.amazonaws.com/Releases/Linux/Town06_0.9.6.tar.gz
Optional: wget http://carla-assets-internal.s3.amazonaws.com/Releases/Linux/Town07_0.9.6.tar.gz
http://carla-assets-internal.s3.amazonaws.com/Releases/Linux/Dev/CARLA_Latest.tar.gz
Under your Carla/CARLAUE4/Config, edit DefaultEngine.ini:
r.TextureStreaming=True
To prevent the freezing of the mouse (which is very annoying).Under your Carla/CARLAUE4/Config, edit "DefaultInput.ini":
bCaptureMouseOnLaunch=False
DefaultViewportMouseCaptureMode=CaptureDuringMouseDown
bDefaultViewportMouseLock=False
DefaultViewportMouseLockMode=DoNotLock
Download and install conda: https://www.anaconda.com/distribution/
conda env create --name [enviroment-name] -f=requirements.yml
conda activate [enviroment-name]
conda install -c anaconda tensorflow-gpu
In "helper" folder, change the location of your Carla path in file "CARLA_PATH.txt". Example: ~/home/Carla_Simulator
Start a new pycharm project. Point the project to this directory. Choose an existing anaconda enviroment. Pick the enviroment created in [enviroment-name] It will look like "/anaconda/env/[enviroment-name]/bin/python Open the folder and run "carla_env.py". Also run "a3c_vision.py"
Algorithms: Allow you to setup different RL algorithms and models Core: Has Base Carla Functionality and can be extended or modified experiments: Allows you to setup your experiment. Example, observations and rewards helper: Help functions that are used used by multiple modules Test_code: Couple Carla script to allow you to run and test the core
There is an ami available on ec2 with everything setup and no display.
Find "ami-070f500a304414585" and start the machine.
Make sure your security setting have the inbound and outbound ports open.
Update the code to the latest.
Run "source ~/.bashrc" and run "python3 carla_env.py" or "python3 vision_algorithm.py"
- Setup the AMI to properly run RLIB on the cloud with autoscales
- Verify experiment 1 and experiment 2 and verify apex_vision and ppo_custom
- Add rollout to export and test inference