Ubuntu
东东就是我
这个作者很懒,什么都没留下…
展开
-
c程序编译解释
最近在编译ubuntu opencv gpu版本。1.cmake 与make 的联系参考:https://blog.csdn.net/lisfaf/article/details/904118621.make 就是一个批处理,通过调用makefile中的命令来进行编译和链接。2.makefile手写太麻烦,而且不能跨平台。所用使用cmake 可以生成makefile。但是cmake...原创 2020-05-08 14:31:05 · 193 阅读 · 0 评论 -
ubuntu 16.0.4 安装 cmake 3.17.2
参考:https://blog.csdn.net/king_700/article/details/1057520620.如果系统有cmake,版本过低,先卸载sudo apt remove cmake1.先在官网(https://cmake.org/download/)下载cmake源代码cmake-3.17.2.tar.gz,注意是linux版的,别下错了2.解压...原创 2020-04-30 15:26:39 · 27016 阅读 · 0 评论 -
'NoneType' object has no attribute 'shape' 批量修改xml
训练的时候出现这个错误,检查标记文件的xml的文件名后缀不对,所以批量修改xml。把png改成jpg#!/usr/bin/python# -*- coding: UTF-8 -*-import osimport os.pathfrom xml.etree.ElementTree import parse, Elementdef test(): path = "C:/Us...原创 2019-11-25 17:38:59 · 146 阅读 · 0 评论 -
Ubuntu+caffe+conda+opencv+anaconda
安装conda,要保证你的GPU事大于3.1的计算能力。否则别继续看了1,一个干净的ubuntu16.0.4系统。2,,安装请按照(https://zhuanlan.zhihu.com/p/25709284)一步一步来。如果出错再来这里找答案就好。解决问题1.sudo apt-get install --no-install-recommends libboost-all-...原创 2017-11-15 17:02:48 · 688 阅读 · 0 评论 -
ubuntu 16.0 +cuda 9.0+cudnn7.0 +tensorflow-gpu 1.9 离线安装
因为公司的服务器不能上网,所以经过两天的折磨,终于通过putty,把环境包一个一个的传上去安装成功python3.6tensorflow-gpu 1.9-tensorflow-tensorboard 1.5.1---html5lib=...原创 2018-07-26 15:28:40 · 771 阅读 · 0 评论 -
Ubuntu python 虚拟环境下 自启动
Ubuntu python 虚拟环境下 自启动1.编写一个shell1.前面的是你使用的环境下的python的绝对路径2.后面是你的程序(.py)的绝对路径3.我是把这个test.sh放在和app.py同一目录下的,不然报错4.给sh添加权限sudo chmod +x test.sh2.把shell加入自启动sudo gedit /etc/rc.lo...原创 2019-09-30 10:32:30 · 1239 阅读 · 0 评论 -
ubuntu 获取python进程pid,提高程序的优先级
import psutilimport osfor proc in psutil.process_iter(): if (proc.name()=='python'): os.system("sudo renice -20 -p %s "%(proc.pid))原创 2019-10-29 09:39:07 · 861 阅读 · 0 评论