
Deep Learning
悟空 AI
这个作者很懒,什么都没留下…
展开
-
Ubuntu安装 Caffe(Matlab接口) 爬坑指南
Caffe官方安装说明:http://caffe.berkeleyvision.org/installation.html#compilation 这个官方指导太学术化,对于我这种小白用户一点都不友好,而且,是个坑。后面会说到的。 安装过程其实比较简单,分为三步:(1)安装Caffe依赖的包;(2)设置和编译Caffe;(3)设置环境变量 提前声明:我用的 CPU-Only,没有原创 2017-07-03 12:26:53 · 1515 阅读 · 0 评论 -
Ubuntu + python + Tensorflow 安装
1. 前提说明 假设已经装好了 Ubuntu+python3.4+pip3+virtual environment+tensorflow 1.8.0 。本文主要收集 tensorflow 安装过程中的 bugs2. Import error: libcublas.so.9.0: cannot open shared object file: no such file or directory...原创 2018-05-28 17:32:37 · 448 阅读 · 0 评论 -
UnicodeDecodeError: 'ascii' codec can't decode byte 0x90 in position 614: ordinal not in range(128)
解决方法:将pickle.load(f) 改为 pickle.load(f,encoding='latin1')原创 2018-07-09 11:04:39 · 854 阅读 · 0 评论 -
Deep learning resources
1. Theano (1) Basic documentation: http://deeplearning.net/software/theano/tutorial/原创 2018-07-09 18:58:03 · 213 阅读 · 0 评论 -
can't read /var/mail/__future__
问题描述: 在当前目录下有一个 test.py 文件,我试图直接执行这个 test.py: ./test.py 报错: can't read /var/mail/__future__ 经过一番搜索,原因是: 使用 ./ + 文件名,系统默认会调用 bash 执行 test.py 而不是 python 解释器 ! 解决方案: python test.py OK !...原创 2018-07-17 10:02:26 · 6229 阅读 · 0 评论 -
OSError: Unable to create file
问题描述:在用 h5py 保存训练好的 tensorflow 模型时报错:OSError: Unable to create file (unable to open file: name = './training_1/cp.ckpt', errno = 2, error message = 'No such file or directory', flags = 13, o_flags = 2...原创 2018-07-12 15:35:51 · 16371 阅读 · 21 评论 -
Tensorflow 安装过程中遇到的问题和解决方法
1. 为了不纠缠 python 的各种包依赖关系,直接安装 Miniconda, 其中,Python 版本为 3.6.*2. 如果直接用官方网站给出的安装方法:pip install -U tensorflow它会自动安装与 python 3.6.* 对应的最新版 tensorflow 1.9, 而 1.9 会要求 cuda.so.9 (即cuda 9.0), 我的机器上只有 cuda.so.8...原创 2018-07-13 14:28:29 · 3875 阅读 · 0 评论 -
pytorch Segmentation Fault ( Core Dumped )
开发环境: PyTorch 0.4.1 TorchVision 0.2.1 face_recognition 1.2.3 现象描述: import face_recognition import torch 运行,报错:Segmentation Fault ( Core Dumped ) 原因分析: (1)face_r...原创 2018-09-01 14:53:23 · 9824 阅读 · 0 评论 -
深度优先搜索 幸运的袋子
分析: 1. 这是一个组合问题,求可行方案的数目,因此无法用动态规划。除了暴力搜索,必须进行剪枝! 有几个问题必须想清楚: (1)为什么要排序?而且还是从小到大排序?从大到小排序不行吗? 回答:我们考虑是否要加入一个新元素 y,假设前面已经选中了若干个数,这些数的和为 s, 乘积为 p。一般来说, s > 1 (因为都是正整数,s 必定>=1...原创 2018-09-30 11:17:40 · 392 阅读 · 0 评论