上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
由于安装新版本的TensorFlow需要cudnn6.0因此用6.0将原来的 5.0替换了,后来又用之前编译好的caffe进行训练,发现caffe会去找5.0的cudnn,然后就报错了,不能正常训练。 开始的时候试着建立一个软连接,没有成功,后来将caffe重新make了一下,又运行发现还是不能跑, Read More
posted @ 2017-12-01 15:43 rainsoul Views(776) Comments(0) Diggs(0) Edit
mask_all = np.zeros((256, 256), dtype='uint8') 单通道 mask_all_enlarge = np.zeros((256, 256, 3), dtype='uint8' 三通道 #为三通道图像赋值,这里我用的是循环,因该还有更简单的方式 img_base Read More
posted @ 2017-12-01 09:30 rainsoul Views(9553) Comments(0) Diggs(1) Edit
由于需要再python3的环境下运行demo,因此安装了python3的ipython notebook,过程如下: Read More
posted @ 2017-11-30 09:22 rainsoul Views(3948) Comments(0) Diggs(0) Edit
转载自:http://blog.csdn.net/silent56_th/article/details/77587792 系统环境:Ubuntu16.04 + GTX1060 目的:配置一下python-tensorflow环境 问题复现: 使用设置/软件与更新/附件驱动 安装nvidia-375 Read More
posted @ 2017-11-29 20:10 rainsoul Views(7647) Comments(0) Diggs(0) Edit
对于机器学习中的正负样本问题,之前思考过一次,但是后来又有些迷惑,又看了些网上的总结,记录在这里。 我们经常涉及到的任务有检测以及分类。 针对与分类问题,正样本则是我们想要正确分类出的类别所对应的样本,例如,我们要对一张图片进行分类,以确定其是否属于汽车,那么在训练的时候,汽车的图片则为正样本,负样 Read More
posted @ 2017-11-24 14:57 rainsoul Views(13934) Comments(1) Diggs(2) Edit
转载自这里,感谢原作者 sed 's/test/mytest/g' example.txt 表示将example.txt中的test文本全部替换为mytest 请注意这个命令sed 's/test/mytest/' example.txt 如果不带g则表示只会替换每行开头的test为mytest s Read More
posted @ 2017-11-16 19:58 rainsoul Views(673) Comments(0) Diggs(0) Edit
pip install http://download.pytorch.org/whl/cu80/torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl pip install torchvision 今天在按照上面的命令安装pytorch的时候,首先 Read More
posted @ 2017-10-25 18:01 rainsoul Views(25114) Comments(0) Diggs(1) Edit
用python写了一个测试Demo,其中涉及到一些常用的用法,现在记录在这里,方便后续查阅: 1 python中全局变量的使用: 引用全局变量,不需要golbal声明,修改全局变量,需要使用global声明,特别地,列表、字典等如果只是修改其中元素的值,可以直接使用全局变量,不需要global声明。 Read More
posted @ 2017-10-16 17:57 rainsoul Views(2390) Comments(0) Diggs(0) Edit
今天测试时间报错,具体如下图: 在网上查了一下,大概的原因是由于程序中使用了随机函数造成的,后来检查了一下prototxt中有可能含有随机数的地方,去掉之后就可以了,包括shuffle:true,以及distort_param两个,把它们去掉就可以了,反正不影响时间测试。 Read More
posted @ 2017-07-24 12:08 rainsoul Views(1130) Comments(0) Diggs(0) Edit
昨天在用python脚本处理文件的时候,遇到了题述问题,明明文件时存在的,但是在用os.path.isfile(imgpath) == False进行判断的时候总是成立,在一开始以为是正反斜杠windows与linux不同导致的,后来发现时因为中文路径造成的。 在网上查阅了解决办法如下: imgpa Read More
posted @ 2017-05-10 09:11 rainsoul Views(2326) Comments(0) Diggs(0) Edit
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页