深度学习/强化学习
ML/DL/RL
墨池有雨
君子当以自强不息
展开
-
如何在ubuntu下正确安装NVIDIA显卡驱动?
从安装显卡驱动开始,尤其是做深度学习的话,始终要注意版本对应的问题!!!一、ubuntu 16.04默认安装了第三方开源的驱动程序nouveau,安装nvidia显卡驱动首先需要禁用nouveau,不然会碰到冲突的问题,导致无法安装nvidia显卡驱动。sudo gedit /etc/modprobe.d/blacklist.confsudo gedit /etc/modprobe.d/blacklist-nouveau.conf(还没搞清楚这两条命令哪个对)#在文件最后部分插入以下两行内容bla原创 2020-07-16 21:04:41 · 1182 阅读 · 0 评论 -
ubuntu下使用pip卸载包时出现Cannot uninstall scipy的bug
ubuntu系统下使用pip uninstall scipy命令卸载包时,遇到报错信息为:ERROR: Cannot uninstall ‘scipy’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.最终发现通过以下方式可以解决:在/根目录下搜索“scipy原创 2020-05-29 18:33:20 · 870 阅读 · 0 评论 -
ubuntu16.04下安装keras时候遇到“pip._internal”BUG
报错提示ImportError: No module named ‘pip._internal’:nuc@xy:~/Theano$ sudo pip3 install kerasTraceback (most recent call last): File "/usr/local/bin/pip3", line 7, in <module> from pip._internal.cli.main import mainImportError: No module named '原创 2020-05-20 16:11:04 · 218 阅读 · 0 评论 -
基于ubuntu16.04下安装anaconda及tensorflow深度学习环境配置
对前期深度学习环境配置过程中遇到的错误,进行简要总结,会不定时更新。由于时间紧迫,总结的不是很详细,待有时间回来补充,望大佬轻喷。1.安装tensorflow版本一定要与cuda版本对应,否则后期会报错;2.anaconda创建的虚拟环境下,尽量使用conda安装相关包,pip有时会出错;3.有时无法使用GPU进行TF训练,默认使用了CPU,此时可以选择升级GPU版本的TF,单纯试图卸载掉CPU版本TF,并不能解决问题,除非重新创建虚拟环境;4.不同conda虚拟环境中可以共存不同版本的cuda,但原创 2020-05-08 23:38:46 · 418 阅读 · 0 评论 -
使用turtlebot3_machine_learning包跑DQN算法BUG记
运行roslaunch turtlebot3_dqn result_graph.launch时遇到如下问题:Exception: PyQtGraph requires one of PyQt4, PyQt5 or PySide; none of these packages could be imported.Traceback (most recent call last): File "/home/xy/turtle3_ws/src/turtlebot3_machine_learning/t.原创 2020-05-18 23:47:22 · 1287 阅读 · 0 评论 -
基于ubuntu16.04和python3.5安装opencv3
首先安装相关依赖:sudo apt-get update#downloading the required packages to compile OpenCVsudo apt-get install build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev安装python3.5的dev包:sudo apt-get install python3.5-d.原创 2020-05-19 23:33:43 · 491 阅读 · 0 评论 -
ubuntu下同时存在python3.5和python3.6,如何设置默认为python3.5
ubuntu下先是安装了python3.6和python2.7,现在由于其他需要又装了python3.5,但现在终端中输入python3 --version 命令显示默认加载python3.6,那么如何让它默认python3.5启动呢:使用以下命令,更改python默认为python3.5:sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100sudo update-alternatives --原创 2020-05-20 00:52:12 · 1679 阅读 · 0 评论 -
基于ubuntu16.04和ROS-kinetic安装gym-gazebo时候遇到不少BUG
其中在bash setup_kinetic.bash时候遇到提示setup kinetic.bash: line 76: vcs: command not found,这个问题看似不显眼,但必须要解决。解决办法:sudo apt-get install python3-vcstool原创 2020-05-20 16:48:12 · 654 阅读 · 0 评论 -
ubuntu下明确tensorflow/pytorch/nvidia驱动/cuda/cudnn/python版本间对应关系,查看系统中nvidia显卡驱动/cuda/cudnn版本
1. 查看nvidia显卡驱动/cuda/cudnn版本:#nvidia显卡驱动cat /proc/driver/nvidia/version#cudacat /usr/local/cuda/version.txt#cudnncat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 22.tensorflow/cuda/cudnn/python版本关系配置深度学习环境一定要明确版本对应关系,才能事半功倍。首先,明确cuda与n原创 2020-05-23 17:25:14 · 1004 阅读 · 0 评论