自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(264)
  • 资源 (2)
  • 收藏
  • 关注

原创 Windows 下用 build_win.cmd 直接编译 GPU 版caffe

1.安装CUDA首先我们得从CUDA官网,下载对应版本得CUDA,这里打开默认是CUDA 10,若我们想下载低版本的 CUDA,如下图,选择 Legacy Releases:这里以 CUDA 8.0 为例:点击下载,下载完是一个 .exe 文件,只要硬件符合直接双击安装即可。2.安装cudnn这里自行下载,需要在 NVIDIA 的cudnn官网 注册一个账号,免费的,以后可能都会用到...

2018-10-24 10:18:15 3292 4

原创 Caffe-ssd 在 windows 下的配置,及 python 调用

本文主要是针对 runhang 的工作,修复了其中在用 Pycaffe 调用时得一个问题- Unknown layer type: Normalize:Check failed: registry.count(type) == 1 (0 vs. 1) Unknown layer type: Normalize (known types: AnnotatedData, BatchNorm, B...

2018-10-24 00:03:42 2492 7

原创 Windows下使用Anaconda 安装 Pytorch

现在 Pytorch 0.4 版本以后已经开始支持Windows系统了,下面是基于官网给出的教程,方便不能翻墙的同学使用:Tips: 这里的 Anaconda一个是 anaconda3,即python 的版本是 3版本的,这里 windows 下 pyorch 不在支持 python2.7。不论是 pip 的安装方式还是 conda 的安装方式:这里以 python3....

2018-09-13 21:05:50 19247 12

原创 ShuffleNet V2 论文阅读笔记

ShuffleNet V2: Practical Guidelines for Efficient CNN Architecture Design 阅读笔记论文链接:https://arxiv.org/abs/1807.11164我自己基于 caffe 框架的复现:https://github.com/anlongstory/ShuffleNet_V2-caffe本文主要是对目前一些...

2018-08-01 21:33:58 7145 9

原创 Anaconda 安装 openCV

conda install --channel https://conda.anaconda.org/menpo opencv3

2018-07-11 00:02:09 456

原创 Caffe 源码(一)—— caffe.proto 注解

参考内容:https://blog.csdn.net/mac_lzq/article/details/63725009使用以下语句可以对 caffe.proto 文件进行编译, 生成 caffe.pb.h 和 caffe.pb.cc 两个文件。 protoc -I=. --cpp_out=. ./caffe.proto以下内容是对 Caffe 框架下 src/caffe/proto 目...

2018-07-10 22:03:49 764

原创 Windows 下 Cmake 编译 OpenCV + opencv_contrib 模块总结

Tips: 第一次将 openCV 和 opencv_contrib 一起编译,编译了一晚上,中间报错了不少错,下面是安装记录以及一些错误的解决方式。注意事项:1. OpenCV 版本与 opencv_contrib 版本要一样2. Cmake 配置过程中取消某些选项可以避免一些错误——————————————————————-分割线—————————————————————...

2018-07-04 23:56:44 5416 11

原创 Ubuntu 16.04 下用 cmake 安装 caffe

首先要确保你的Unbuntu是16.04的版本,14.04好像不支持命令行直接装显卡驱动!1. 禁用nouveau驱动首先输入下面的命令来创建一个名字叫blacklist-nouveau.conf的关闭文件:sudo gedit /etc/modprobe.d/blacklist-nouveau.conf然后在这个空白文件中输入下面指令后保存退出:blacklist n...

2018-06-30 16:10:50 4435

原创 Anaconda下的LableImg标签工具安装方法

前提是已经在电脑中安装了 Anaconda1. 下载 LabelImg 安装包github下载地址:https://github.com/tzutalin/labelImg 文件大小为240MB左右,所以需要下载一会。2. 查看 Qt 版本在命令行工具中输出 conda list 查看当前 Qt 版本,以我的电脑为例:这里我的Qt 是5版本的。早一点版本的Anaconda...

2018-06-26 14:46:32 3704 3

原创 Caffe C++ 调用: Check failed: registry.count(type) == 1(0 vs. 1) Unknown layer type...

当我在配置好的C++项目中调用 Caffemodel 来测试模型时,需要deploy.txtcaffemodelmean.binaryprotolabel.txt有遇到如下的错误信息: 然后仔细查看cmd窗口输出的错误信息发现是如下的信息:将而且可以见到:通过参考相关博客:https://blog.csdn.net/fangjin_kl/article/deta...

2018-06-13 10:13:14 1899 1

原创 caffe-SSD配置及用caffe-MobileNet-SSD训练自己的数据集

1.配置 caffe-ssd下载源码github 地址: https://github.com/weiliu89/caffe在命令行中输入:git clone https://github.com/weiliu89/caffe下载完以后会得到一个名为 caffe 的文件夹,我们进入这个文件夹然后在此路径下打开命令行输入:git checkout ssd来切换ca...

2018-05-26 00:52:57 10573 4

原创 cmder —— 'findstr' 不是内部或外部命令,也不是可运行的程序 或批处理文件。

问题描述: 邮件打开 cmder 以后会提示 'findstr' 不是内部或外部命令,也不是可运行的程序或批处理文件 的字样,并且在相关路径下打开也无法进入对应打开地方的路径当中:解决方法: 在计算机的环境变量中 path 加入: C:\windows\system32就可以了!...

2018-04-13 15:06:44 6918 3

原创 Ubuntu 一直提示 “检测到系统程序出现问题”

从装好系统以后,电脑就会时不时的自己弹出 “检测到系统程序出现问题” 的窗口,解决方法:sudo apt install gksu gksu gedit /etc/default/apport然后输入电脑密码, 输入后文档的最后一行会出现: enable = 1的字样,将 1 改成 0 保存 就可以了。...

2018-04-09 23:56:24 7041 2

原创 Ubuntu 循环因为Nvidia显卡循环登陆的问题

问题描述: 电脑中安装的是 Ubuntu16.04 ,本身安装过程中就很曲折,然后在安装完一系列东西,使用几天以后想了想已经有几天没有关机了,就重启了电脑,结果重启以后系统就登陆不进去了。 并且视频输出的界面就像是没有安装显卡驱动之前的样本,分辨率佷低(重启之前显卡,CUDA都是配置好了的),而且登录以后界面就显示 “检测到系统程序出现问题” 的窗口,然后就退回到登录界面了,开始了循环登录的问...

2018-04-09 23:45:57 2277

原创 OpenCV 不同版本之间的切换

当我们在使用创建C++工程,配置OpenCV的时候,尤其是在复现其他开源项目的时候,可能会对OpenCV的版本和平台有要求,主要版本区别就是 OpenCV 2.x 版本还是 OpenCV 3.x 版本,平台区别是 x86 还是 x64, 这也是在使用 OpenCV 2.x 时有时会有以下问题发生的原因: 模块计算机类型“X64”与目标计算机类型“X86”冲突或者是 模块计算机...

2018-03-14 14:22:10 8440 1

原创 Python3 转换 SVHN 数据集成 lmdb 格式

该数据集处理的前提是需要先配置好 pycaffe,windows 下得具体方法见:Windows下 Pycaffe 的配置与使用 。然后程序处理方法其实有点类似于 处理 python 接口的 cifar100 数据集,只不过这里处理得是 mat 文件,用 scipy.io 是可以读取 mat 文件。import numpy as npimport caffeimport lmdbimp

2018-02-07 17:12:10 856

原创 Python3 转换 cifar100 数据集

Cifar官网给出的python接口的文件都是用python cPickle工具”pickled”的,可以看见 cifar 官网给出的例程是:python 2def unpickle(file): import cPickle with open(file, 'rb') as fo: dict = cPickle.load(fo) return dictpyt

2018-02-05 12:34:27 1116

原创 Windows下 Caffe C++接口的调用

此处时 Windows 下,添加 CPU 版 Caffe 源码的 C++ 工程A.带源码版1.拷贝 caffe 文件到 C++ 项目中这里我新建了一个名字是 Caffe_c 的空项目。根据我的上一篇博客:Windows 下用 build_win.cmd, 直接编译CPU版caffe,先配置出来 Debug 版的 Caffe。这里以我电脑中caffe的路径为例,我的路径是:F:\...

2018-02-01 23:48:07 3702

原创 Windows下 Pycaffe 的配置与使用

按照我的上一篇博客:Windows 下用 build_win.cmd 直接编译CPU版caffe 配置完 caffe 以后,因为我们在的 build_win.cmd 文件中设置了 电脑上对应的python 版本,并且 BUILD_PYTHON = 1 的话,编译完成以后 pycaffe 也就一起编译好了 。默认 是BUILD_PYTHON = 1,如果之前误修改为 BUILD_PYTHON = 0

2018-01-30 20:23:02 3883

原创 557. Reverse Words in a String III -- Python

557. Reverse Words in a String IIIGiven a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order.Example 1:

2018-01-22 22:32:48 514

原创 344. Reverse String -- Python

344. Reverse StringWrite a function that takes a string as input and returns the string reversed.Example:Given s = "hello", return "olleh".代码:class Solution: def reverseString(self, s)

2018-01-22 22:26:47 343

原创 520. Detect Capital -- Python

520. Detect CapitalGiven a word, you need to judge whether the usage of capitals in it is right or not.We define the usage of capitals in a word to be right when one of the following cases holds:

2018-01-22 22:24:57 465

原创 696. Count Binary Substrings -- Python

696. Count Binary SubstringsGive a string s, count the number of non-empty (contiguous) substrings that have the same number of 0’s and 1’s, and all the 0’s and all the 1’s in these substrings are g

2018-01-22 22:21:43 645

原创 383. Ransom Note -- Python

383. Ransom NoteGiven an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the ransom note can be constructed from

2018-01-22 22:14:19 710

原创 387. First Unique Character in a String --Python

387. First Unique Character in a StringGiven a string, find the first non-repeating character in it and return it’s index. If it doesn’t exist, return -1.Examples:s = "leetcode"return 0.s =

2018-01-22 22:09:27 566

原创 551. Student Attendance Record I -- Python

551. Student Attendance Record IYou are given a string representing an attendance record for a student. The record only contains the following three characters: 1. ‘A’ : Absent. 2. ‘L’ : Late. 3.

2018-01-22 22:05:36 373

原创 541. Reverse String II -- Python

541. Reverse String IIGiven a string and an integer k, you need to reverse the first k characters for every 2k characters counting from the start of the string. If there are less than k characters l

2018-01-22 22:00:11 575

原创 Windows 下用 build_win.cmd 直接编译CPU版caffe

1.前期准备可以看到caffe官方贴出的windows版安装对安装环境版本的说明:注:这里Python的版本只支持python2.7 或者 python3.5所以我们需要先准备好:a) VS2015 b) anaconda3: 因为现在官网最新下载的anaconda3都是python3.6版本的了,而目前caffe官方只支持到python3.5,这里给出anaco...

2018-01-18 14:37:00 6600 8

原创 747.Largest Number At Least Twice of Others -- Python

747.Largest Number At Least Twice of OthersIn a given integer array nums, there is always exactly one largest element.Find whether the largest element in the array is at least twice as much as eve

2018-01-17 23:48:43 615

原创 Leetcode刷题汇总(Easy篇) -- Python

Easy篇Array 专题561 Array Partition I | 66.5% Easy 566 Reshape the Matrix 58.0% Easy 485 Max Consecutive Ones 53.9% Easy 695 Max Area

2018-01-17 23:34:32 4262

原创 557. Reverse Words in a String III -- Python

557. Reverse Words in a String III Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order.Example 1:

2018-01-17 22:52:19 281

原创 344. Reverse String -- Python

344. Reverse StringWrite a function that takes a string as input and returns the string reversed.Example: Given s = “hello”, return “olleh”.代码:class Solution: def reverseString(self, s)

2018-01-17 22:43:14 302

原创 ”编译OpenCV, /include/opencv2下只有一个opencv.hpp文件 “的解决方法

这个问题应该只有编译 OpenCV 源码的时候才会发生,windows 下直接下载 win pack 解压缩不会碰到这个问题。接我的上一篇OpenCV的源码配置博客:Windows下 Cmake + VS 编译 OpenCV 源码在第5步中想要使用 OpenCV 去跑一下相关的例程,配置C++项目的包含目录时,却发现 /include/opencv2 下只有一个opencv.hpp 文件

2018-01-17 22:17:50 11194 3

原创 Windows下 Cmake + VS 编译 OpenCV (+ opencv_contribute)源码

windows下Cmake+VS编译OpenCV源码这里我使用的是VS2015 update3,默认大家电脑里都有VS了。1.下载Cmake点击Cmake官网的下载界面,点击下载对应版本的Cmake就可以了。下载完压缩包直接解压,无需安装。 点击开文件夹可以看见:最后一步就是把Cmake路径下的bin文件夹路径加入到电脑的环境变量。2.下载OpenCV源码

2018-01-17 21:56:10 35089 13

原创 657. Judge Route Circle -- Python

657. Judge Route Circle Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means it moves back to the original place.The move s

2018-01-17 21:00:46 533

原创 119. Pascal's Triangle II -- Python

119. Pascal’s Triangle II Given an index k, return the kth row of the Pascal’s triangle.For example, given k = 3, Return [1,3,3,1].Note: Could you optimize your algorithm to use only O(k) extr

2018-01-15 16:55:33 383

原创 118. Pascal's Triangle -- Python

118. Pascal’s TriangleGiven numRows, generate the first numRows of Pascal’s triangle.For example, given numRows = 5, Return:[ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1]]思路:

2018-01-15 16:47:46 485

原创 532. K-diff Pairs in an Array -- Python

532. K-diff Pairs in an ArrayGiven an array of integers and an integer k, you need to find the number of unique k-diff pairs in the array. Here a k-diff pair is defined as an integer pair (i, j), wh

2018-01-15 15:21:06 528

原创 665. Non-decreasing Array -- Python

665. Non-decreasing ArrayGiven an array with n integers, your task is to check if it could become non-decreasing by modifying at most 1 element.We define an array is non-decreasing if array[i] E

2018-01-15 14:11:08 816

原创 189. Rotate Array -- Python

189. Rotate ArrayRotate an array of n elements to the right by k steps.For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4].Note: Try to come up as many so

2018-01-15 00:02:07 454

Python.Machine.Learning.2015-Sebastian Raschka

Sebastian Raschka 2015版机器学习英文版书籍下载,高清版PDF

2017-09-30

在windows和ubuntu上面使用caffe

里面收录了比较全的caffe安装教程,适合初次在Windows或者Ubuntu操作系统下实战caffe的安装,及实战mnist,cifar10数据集的举例博客,是caffe初学者的首选

2017-03-13

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除