createamind / Planet

Apache License 2.0
23 stars 5 forks source link

Install #3

Open zdx3578 opened 5 years ago

zdx3578 commented 5 years ago

https://github.com/JingbinLiu/planet_A carla8 https://github.com/createamind/Planet carla94


系统层面: https://askubuntu.com/questions/841876/how-to-disable-nouveau-kernel-driver

cuda 安装: https://developer.nvidia.com/cuda-90-download-archive?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1604&target_type=debnetwork sudo dpkg -i cuda-repo-ubuntu1604_9.0.176-1_amd64.deb sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub sudo apt-get update sudo apt-get install cuda-9-0 sudo apt-get install cuda-10-0 cudnn安装:


用户层面: 查看运行信息确认运行结果。 https://linuxize.com/post/how-to-create-a-sudo-user-on-ubuntu/

cd # 进入自己的目录

sudo apt install zsh zsh : https://ohmyz.sh/ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"

https://websiteforstudents.com/installing-the-latest-python-3-7-on-ubuntu-16-04-18-04/ 24 sudo apt install python-pip 25 pip install virtualenv 30 sudo /usr/bin/easy_install virtualenv


git clone https://github.com/createamind/Planet cd Planet virtualenv -p python3 planetenv #不用系统python,一律虚拟环境隔离影响。 source planetenv/bin/activate pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

pip install tensorflow-gpu opencv-python keras

pip install -r requirements.txt (https://github.com/createamind/Planet/blob/carla9_37/requirements.txt) export PYTHONPATH=$PYTHONPATH:${CARLA_ROOT}/PythonAPI/carla-.egg:${CARLA_ROOT}/PythonAPI cd /carla94/PythonAPI ➜ PythonAPI easy_install carla-0.9.4-py3.5-linux-x86_64.egg


carla: carla 94 下载地址: 链接: https://pan.baidu.com/s/1i6VP0vHDgZ31JuHu9l7IrQ 提取码: w2cr
本地已有直接使用即可。 carla8 链接: https://pan.baidu.com/s/1uRBxdLMPMnlAuWWxJ6UOCw 提取码: g6fk

export DISPLAY=:0 #carla 远程环境运行启动窗口 carla启动异常,可以参考下面命令 will fix sigal 11 error; sudo groupadd everyone sudo vim /etc/group #adduser to everyone group 162 sudo chown -R liu:everyone carla8 174 sudo chmod -R 775 carla8 175 sudo chmod -R 775 ../carla8 166 export DISPLAY=:0; ./CarlaUE4.sh 167 DISPLAY= ./CarlaUE4.sh # will fix sigal 11 error; 还不行就用原用户进行启动,文件权限的用户启动;

pycharm:https://www.jetbrains.com/pycharm/download/
https://download.jetbrains.8686c.com/python/pycharm-community-2019.1.1.tar.gz 单步调试 debug; 远程启动pycharm; ssh -Y user@server or ssh -X user@server $ source planetenv/bin/activate $ cd ??? ; ./pycharm.sh& ##这样pycharm就可以在远程服务器上启动了,然后在本地电脑上面显示pycharm界面进行图形化操作了。


scenarios: https://github.com/carla-simulator/scenario_runner sudo apt-get install -y python-numpy python-dev cmake zlib1g-dev libjpeg-dev xvfb \ libav-tools xorg-dev python-opengl libsdl2-dev swig python3-dev \ python3-venv make golang libjpeg-turbo8-dev gcc wget unzip git fceux virtualenv \ tmux

tmux 多窗口离线管理: http://blog.jobbole.com/87584/

zdx3578 commented 5 years ago

学习内容推荐: 1 cnn VAE :kexue.fm博客上的VAE 相关文章; 2 强化学习-openai的spinningup https://spinningup.openai.com/en/latest/spinningup/rl_intro3.html ; 3 planet github.com/createamind/Planet 4

zdx3578 commented 5 years ago

ImportError: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See the Python documentation for more information on installing Python as a framework on Mac OS X. Please either reinstall Python as a framework, or try one of the other backends. If you are using (Ana)Conda please install python.app and replace the use of 'python' with 'pythonw'. See 'Working with Matplotlib on OSX' in the Matplotlib FAQ for more information.

fix: 685 pip uninstall matplotlib 687 pip install matplotlib

ubuntu18 virtualenv 如果更换pip source will 404 http;

zdx3578 commented 4 years ago

git diff --no-index sample.py sample2.py

zdx3578 commented 4 years ago

ro quiet splash $vt_handoff TO: rw init=/bin/bash perform boot into a single mode. https://linuxconfig.org/how-to-reset-lost-root-password-on-ubuntu-18-04-bionic-beaver-linux

zdx3578 commented 1 year ago

carla ver 911

!/bin/bash

for (( i=1; i<=$1; i++ )) do port=$((i*$2)) fuser $port/tcp -k fuser $((port + 1))/tcp -k fuser $((port + 2))/tcp -k

${CARLA_ROOT}/CarlaUE4.sh -world-port=$port -vulkan -world-port=$port &

#${CARLA_ROOT}/CarlaUE4.sh -world-port=$port -vulkan -world-port=$port   -RenderOffscreen  &
DISPLAY= ${CARLA_ROOT}/CarlaUE4.sh  -world-port=$port  -opengl   -resx=400 -resy=300  & #-quality-level=low -world-port=$port -resx=400 -resy=300  $
sleep 1

done wait