Linux
Shaelyn_W
这个作者很懒,什么都没留下…
展开
-
conda虚拟环境安装代码过程记录及遇到的问题解决
1. 将conda换成清华源,打开~/.condarc文件,将里面的内容全部替换为:channels: - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2 - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main - https://mir原创 2021-03-20 09:24:45 · 476 阅读 · 0 评论 -
解决虚拟环境调用.local下pytorch的问题
在conda虚拟环境下安装了pytorch 0.4.1,但执行python却调用了.local下的pytorch 1.2.0原因在于python导包顺序不对,查看sys.path,发现.local下pytorch在虚拟环境的pytorch之前解决方案:用-s运行python脚本,即执行python -s-s会忽略用户下的site-package,具体原因在链接...原创 2021-03-19 21:39:07 · 897 阅读 · 0 评论 -
将服务器挂载在本机linux
1.新建auto_connect_lib.sh,内容如下:time_use=0while truedotime_use=`expr $time_use + 1`echo $time_use minnum_files=`ls server | wc -l`if [ $num_files -eq 0 ];thensshfs name@xxx.xxx.xx.xxx:/home/name/ server/ fisleep 60done2.将auto_connect_li原创 2021-01-07 16:00:16 · 367 阅读 · 0 评论 -
Ubuntu下pip或编译无权限问题处理
pip install --user xxxpython setup.py develop --user代表仅该用户安装,安装后仅该用户可用原创 2020-03-18 11:39:07 · 387 阅读 · 0 评论 -
Ubuntu下tracker占用CPU过高
解决方案参考:https://askubuntu.com/questions/346211/tracker-store-and-tracker-miner-fs-eating-up-my-cpu-on-every-startup#348692将Hidden=true添加到所有tracker开头的文件末尾echo -e "\nHidden=true\n"|sudo tee --append...原创 2019-10-15 18:45:31 · 3416 阅读 · 0 评论 -
运行ALFNet(keras)代码时的问题及解决
代码https://github.com/VideoObjectSearch/ALFNet1、import .pyx文件解决: 参考https://blog.csdn.net/m0_37733057/article/details/980221772、运行test.py时,batchnormalization出错ValueError: Shape must be rank...原创 2019-08-01 14:31:32 · 532 阅读 · 1 评论 -
python导入.pyx文件
1、参考https://cython.readthedocs.io/en/latest/src/tutorial/cython_tutorial.html以bbox.pyx为例,先新建setup.py,内容为from distutils.core import setupfrom Cython.Build import cythonizesetup( ext_modules...原创 2019-08-01 08:02:58 · 21117 阅读 · 5 评论 -
Ubuntu出现问题
1.sudo apt updatesudo apt upgrade系统弹窗问题,参考2.无法联网,参考https://blog.csdn.net/qq_17783559/article/details/82670920原创 2017-08-30 09:04:21 · 272 阅读 · 0 评论 -
Keras报错l2_normalize() got an unexpected keyword argument 'axis'
不用改tensorflow版本 (自己的是1.4.0),将tensorflow_backend.py中的 tf.nn.l2_normalize(x,axis=axis)变成tf.nn.l2_normalize(x,dim=axis)解决参考:https://github.com/rykov8/ssd_keras/issues/134...原创 2019-02-20 08:53:02 · 2593 阅读 · 0 评论 -
安装TeamViewer
参考:https://www.cnblogs.com/wmr95/p/7574615.html遇到安装包依赖问题,解决方案同上述参考链接重新安装:https://blog.csdn.net/zerfew/article/details/82019916原创 2019-02-23 18:32:00 · 246 阅读 · 0 评论 -
Ubuntu下MATLAB问题解决
1、Ubuntu高分屏下matlab标题栏(菜单栏)字体过小问题解决:在MATLAB command中输入>> s = settings;>> s.matlab.desktop.DisplayScaleFactor>> s.matlab.desktop.DisplayScaleFactor.PersonalValue = 1.5具体Person...原创 2018-12-25 17:33:41 · 1159 阅读 · 0 评论 -
Ubuntu相关操作
实用操作参考1. 删除文件夹:rm -rf或rm -r:删除非空目录删除文件:rm2. 批量更改文件名3.查看磁盘剩余空间等su sf,转换到sf@sf转载 2017-09-30 09:54:48 · 267 阅读 · 0 评论 -
Ubuntu下调用opencv的cv2.imshow()错误
之前在Ubuntu16.04下用Anaconda直接conda install opencv,调用opencv的cv2.imshow()时出现错误:The function is not implemented. Rebuild the library with Windows, GTK+2.x or Carbon support. If you are on Ubuntu or Debian原创 2018-01-17 17:32:30 · 4834 阅读 · 2 评论 -
Ubuntu16.04下安装caffe
最简单的方法,参考,(http://cuijiahua.com/)。可直接conda install caffe-gpu,亲测可用,本人是Ubuntu16.04。tensorflow-gpu也可用,用keras的话pip install keras。此外没有选择新建caffe-tf环境,或者caffe环境,而是直接开装,因为spyder默认时不会打开环境里的caffe,所以只能在终端使用caffe...原创 2018-01-15 21:57:55 · 639 阅读 · 0 评论 -
cannot open shared object file
参考要写到.bashrc中保存起来,不然换个窗口仍出错protobuf转载 2018-01-15 20:32:37 · 351 阅读 · 0 评论 -
ubuntu下查看CPU/GPU/内存使用率及分配
watch -n 1 nvidia-smi每秒刷新一次原文Ubuntu死机查看CPU内存控制keras显存使用控制显存转载 2017-10-18 17:25:44 · 3258 阅读 · 0 评论