自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(44)
  • 资源 (3)
  • 收藏
  • 关注

原创 nvidia-docker 官方安装方法报错解决办法

环境ubuntu16.04,执行官网https://github.com/NVIDIA/nvidia-docker 上面的指令如下:# Add the package repositoriescurl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \ sudo apt-key add -distribution=$(....

2018-11-05 11:23:57 14487

转载 keras小数据集扩充

原文地址:http://blog.keras.io/building-powerful-image-classification-models-using-very-little-data.html参考译文地址:http://keras-cn.readthedocs.io/en/latest/blog/image_classification_using_very_little

2017-09-13 13:31:05 12947

转载 C++笔记:面向对象编程(Handle类)

句柄类句柄类的出现是为了解决用户使用指针时需要控制指针的加载和释放的问题。用指针访问对象很容易出现悬垂指针或者内存泄漏的问题。为了解决这些问题,有许多方法可以使用,句柄类就是其中之一。句柄类是一种包装类,用于存储和管理基类的对象指针,减轻用户使用对象的负担。句柄类使用指针执行操作,虚成员由于既可以指向基类型又可以指向派生类型,所以其行为将在运行时根据句柄实际绑定的对象而变化。句

2017-09-09 15:14:58 4651

转载 目标检测之CNN系列

排行榜pascal VOC:http://host.robots.ox.ac.uk:8080/leaderboard/main_bootstrap.phpcoco:http://mscoco.org/dataset/#detections-leaderboardkitti:http://www.cvlibs.net/datasets/kitti/eval_object.phpR

2017-09-07 14:41:12 1717

转载 TensorFlow:数据与参数的输入

转载:https://zhuanlan.zhihu.com/p/25307881(侵删)使用session运行了一个预先定义好的tensor,假如想使用一个空的tensor呢?这就需要用到tf.placeholder() 和 feed_dict 。tf.placeholder() 在TensorFlow(后文简称TF)中,数据并不会保存为 integer, float, 或 s

2017-09-07 14:13:18 799

原创 tensorflow学习笔记

1.tf读取数据有以下三种方式:1)供给数据(Feeding): 在TensorFlow程序运行的每一步, 让Python代码来供给数据。2)从文件读取数据: 在TensorFlow图的起始, 让一个输入管线从文件中读取数据。3)预加载数据: 在TensorFlow图中定义常量或变量来保存所有数据(仅适用于数据量比较小的情况)。2.由于项目需要同时完成分类和识别,因而选择了

2017-09-06 10:16:15 371

原创 关于win,linux下firefox以及谷歌内核浏览器网页播放视频的问题及解决方案

A.推荐环境:经过实验:在win7系统下,firefox默认安装即可,如有问题,请更新解码器。B.备选环境:如需使用linux,根据实验,在ubuntu16.04版本自带的firefox浏览器上不能播放,可终端输入“sudo apt-get install ubuntu-restricted-extras”。(发现Ubuntu的一个新软件包:ubuntu-restricted-ex

2017-08-22 15:01:24 3639

转载 tensorflow1.0后有AttributeError: ‘module’ object has no attribute 'xx'

BUG 1. AttributeError: ‘module’ object has no attribute ‘mul’# 解决方案:用tf.multiply替代tf.mul1212BUG 2. AttributeError: ‘module’ object has no attribute ‘sub’解决方案:用tf.subtract替代tf.sub# 解决方案:用tf

2017-08-21 21:24:29 1624

原创 anaconda与pip install, sudo pip install

sudo pip install 安装到系统自带的python环境。pip install 安装到当前的环境当中。

2017-08-21 20:50:35 1188

原创 初试图像拼接

来顺丰科技半月有余,结识了很多德艺双馨的技术大牛,接触了无人机,图像拼接,面单识别等场景。目前在情景模拟,初步尝试采集公司附近的图片,使用matlab+SIFT试了试图像拼接。还是很简单的demo,以后可以逐步完善。

2017-08-02 14:21:09 626

原创 2017年支付宝五福活动的python生福脚本。

原理: 如图,观察五福的图案,福字的风格各有不同,网上也流传着九张各大家的福字,所以我将支付宝官方的五福和那个九福作为训练样本。使用keras分别对这14个福进行样本扩充,施加随机变换。可参考如下链接:http://keras-cn.readthedocs.io/en/latest/blog/image_classification_using_very_little_data

2017-01-19 19:35:50 3117

转载 若人工智能研发是登山,我们都经历了什么

转自:http://tech.sina.com.cn/zl/post/detail/it/2016-03-29/pid_8505413.htm?cre=techpagepc&mod=f&loc=1&r=9&doct=0&rfunc=13  欢迎关注“创事记”的微信订阅号:sinachuangshiji  创事记注:该文是卡内基梅隆大学计算机学院教授刑波在

2016-12-17 16:16:01 1217

原创 MATLAB2016A安装vlfeat

1.请到官网下载http://www.vlfeat.org/install-matlab.html,如果不想自己编译,一定要下载右边对应的,比如我是matlab程序就下载下图这个:2.安装过程要注意找到toolbox,如果下载的是编译好了的文件vlfeat-0.9.20-bin.tar.gz解压后可以找到如下目录D:\learningsoftware\vlfeat-0.9.20-bin\vlf

2016-12-14 14:51:55 2317

转载 MATLAB GPU编程基础

from:http://blog.sina.com.cn/s/blog_863f5cf90102uyrh.html从Matlab2013版本开始,matlab将可以直接调用gpu进行并行计算,而不再需要安装GPUmat库。这一改动的好处是原有的matlab内置函数都可以直接运用,只要数据格式是gpuArray格式的,那么计算过程会自动的调用GPU进行计算,不可谓不方便。具体

2016-12-13 14:48:28 545

原创 windows下添加conda源出现404错误解决方案。

conda infocd to config file (cd /Users/select/the/folder/where/config/file/is)open .condarc (textEdit app opened the file automatically)From the textEdit: delete https://pypi.python.or

2016-12-13 13:05:33 1315

转载 windows下pip、anaconda的多版本管理

ZZ:http://blog.csdn.net/u011274209/article/details/45440479一直在网上寻觅,无果。只能自己研究。http://jingyan.baidu.com/article/b87fe19e94ca95521935686e.html主要参照这个。这个经验主要是Python版本管理。(ps:如果你cmd到某一个版本的pyt

2016-12-08 15:47:34 824

转载 cuDNN 下载地址(支持cuda8.0)

from :http://blog.csdn.net/real_myth/article/details/52739801cuDNN Archive NVIDIA cuDNN is a GPU-accelerated library of primitives for deep neural networks.Download cuDNN v5.

2016-12-02 06:34:47 18638

转载 2013计算机视觉代码合集

一、特征提取Feature Extraction:SIFT [1] [Demo program][SIFT Library] [VLFeat]PCA-SIFT [2] [Project]Affine-SIFT [3] [Project]SURF [4] [OpenSURF] [Matlab Wrapper]Affine Covariant Fea

2016-12-01 14:30:01 728

转载 关于opencv2和3在图像特征识别的区别。

转https://www.hongweipeng.com/index.php/archives/709/1.opencv3并不自带sift,fast等,需要额外安装。2.cv2.drawMatches这个函数在OpenCV 2.4.12中不存在。3.0以后才提供。所以运行时得到这样的报错。函数原型如下:cv2.drawMatches(img1, keypoints1,

2016-12-01 12:33:50 4621

原创 关于opencv-python特征提取的一些问题。

1.如果使用anaconda,可以直接运行(此条为opencv2)conda install --channel https://conda.anaconda.org/menpo opencv或者(此条为opencv3)conda install --channel https://conda.anaconda.org/menpo opencv32.opencv3.0默认安装中

2016-11-30 23:56:53 1133 1

转载 用anaconda,pip安装opencv

参考http://blog.csdn.net/tina_ttl/article/details/51034845方法来自stackoverflowconda install --channel https://conda.anaconda.org/menpo opencv如果速度太慢了:添加清华大学的源:conda config --add channels 'http

2016-11-25 23:02:22 23783

原创 hadoop用vmare虚拟机实现桥接分布式,现实Livenode有4个,但是没有ResourceManager、SecondrryNameNode、JobHistoryServer 这几个 进程。

现实Livenode有4个,但是没有ResourceManager、SecondrryNameNode、JobHistoryServer 这几个 进程。输入如下两条指令。

2016-10-28 21:16:38 988

转载 hadoop2.60+ubuntu14.04+vmare12+w10配置分布式。vmware桥接模式不可用该怎么办?

转载:http://www.jb51.net/os/win10/406769.html想用一台电脑运行多个虚拟机发现W10桥接存在问题。找了很久,这篇亲测有效~看到windows10的升级提示以后手痒升级了,结果发现VMware workstation的虚拟机使用桥接模式怎么都连不上网,查了很多资料以后终于找到了解决方案。不需要做什么网卡桥接就可以和以前一样使用vmware的桥接模式。

2016-10-27 21:22:18 752

转载 leetcode: reverse-integer

Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321click to show spoilers.Have you thought about this?Here are some good questions to ask befo

2016-08-30 00:06:21 355

转载 leetcode : jumpgame

Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that position.Determine if yo

2016-08-29 16:40:42 358

原创 leetcode:two-sum

Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the target, whe

2016-08-25 20:51:52 265

转载 leetcode:search-in-rotated-sorted-array

Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).You are given a target value to search. If found in the array return its

2016-08-25 14:41:49 318

原创 剑指offer:整数中1出现的次数(从1到n整数中1出现的次数)

求出1~13的整数中1出现的次数,并算出100~1300的整数中1出现的次数?为此他特别数了一下1~13中包含1的数字有1、10、11、12、13因此共出现6次,但是对于后面问题他就没辙了。ACMer希望你们帮帮他,并把问题更加普遍化,可以很快的求出任意非负整数区间中1出现次数。class Solution {public:    int NumberOf1Between1AndN_S

2016-08-25 11:54:41 223

转载 剑指offer:连续子数组的最大和

原地址:http://www.nowcoder.com/questionTerminal/459bd355da1549fa8a49e350bf3df484思路:分为两种情况,最大和非负和负。若当前最大和为负,那么令sum直接等于下一个值。思路:依次读入输入数组,进行累加,动态维护和的最大值。设置两个变量,一个表示当前累加和currentSum,另一个表示子数

2016-08-25 10:31:59 359

转载 利用容器完成“数组中出现次数超过一半的数字”笔试题

原地址:http://www.nowcoder.com/questionTerminal/e8a1b01a2df14cb2b228b30ee6a92163参考剑指offer的答案:1.假定存在一个数val,它出现的次数超过数组元素个数和的一半2.假定val在前半部分数组中,次数小于一半,那么在后半部分,必定大于一半,然后继续将该部分二分,总有一部分会大于一半,到最后每部分元素变为两个,

2016-08-24 19:00:39 252

转载 剑指offer 复杂链表的复制

原地址:http://www.nowcoder.com/questionTerminal/f836b2c43afc4b35ad6adc41ec941dba输入一个复杂链表(每个节点中有节点值,以及两个指针,一个指向下一个节点,另一个特殊指针指向任意一个节点),返回结果为复制后复杂链表的head。(注意,输出结果中请不要返回参数中的节点引用,否则判题程序会直接返回空)

2016-08-23 15:54:32 362

原创 数据结构: 归并排序 C++

#include#include#include#include#include//#include #include using namespace std;void Merge(int a[],int tmp[],int lPos,int rPos,int rEnd){int i, lEnd, NumElements, tmpPos;

2016-08-18 23:45:06 377

原创 数据结构:堆排序 C++

#include#include#include#include#include//#include #include using namespace std;//堆排序/*-------------------------------------------------------------------------------------------

2016-08-18 23:22:11 363

原创 数据结构:直接排序法 C++

#include#include#include#include#include#include #include using namespace std;void insert_sort(int a[], int n){int j, i, temp;//精髓,抽牌的法for (i = 0; i {temp = a[i];for

2016-08-18 23:02:06 608

原创 数据结构:用队列实现栈 C++

//栈实现队列功能#include#include#include#includeusing namespace std;//结点class MyData{public:MyData() :data(0), next(NULL){}//默认构造函数MyData(int value) :data(value), next(NULL){}//

2016-08-18 22:56:17 654

原创 数据结构 栈 C++

#include#include#include#includeusing namespace std;//结点class MyData{public:MyData() :data(0), next(NULL){}//默认构造函数MyData(int value) :data(value), next(NULL){}//带参数构造函数int da

2016-08-18 22:47:18 304

原创 数据结构:队列

#include#include#include#includeusing namespace std;//定义结点typedef struct _Node{int data;struct _Node *next;}node;//定义队列typedef struct _Queue{//node表示元素,queue表示队列n

2016-08-18 22:21:49 316

原创 数据结构:单链表 C++实现

#include#include#include#includeusing namespace std;//定义ListNode类typedef struct ListNode{int data;struct ListNode *link;}ListNode;//创建链表ListNode *create(){//定义头结点、当

2016-08-18 21:15:18 441

转载 华为OJ:递归分苹果

题目描述把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。 输入每个用例包含二个整数M和N。0 样例输入7 3 样例输出8    /**     * 计算放苹果方法数目     * 输入值非法时返回-1     * 1      * @param m 苹果数目     * @param n 盘子数目数     * 

2016-08-18 21:13:41 747

原创 华为OJ:百钱百鸡

描述公元前五世纪,我国古代数学家张丘建在《算经》一书中提出了“百鸡问题”:鸡翁一值钱五,鸡母一值钱三,鸡雏三值钱一。百钱买百鸡,问鸡翁、鸡母、鸡雏各几何?详细描述:接口说明原型:int GetResult(vector &list)输入参数:        无输出参数(指针指向的内存区域保证有效):    list  鸡翁、鸡母、鸡雏组合的列表返回值:     -1 失败         

2016-08-18 21:10:51 646

win10+anaconda2+python2.7+xgboost

win10下面已经编译好的xgboost,可直接通过命令行转到xgboost\python-package文件夹,然后输入python setup.py install安装,然后在python环境中输入Import xgboost验证。

2017-05-13

anaconda2+py27+xgboost

win10下面已经编译好的xgboost,可直接通过命令行转到xgboost\python-package文件夹,然后输入python setup.py install安装,然后在python环境中输入Import xgboost验证。

2017-05-13

基于camshift算法的OpenCV目标跟踪的实现

基于camshift算法的OpenCV目标跟踪的实现 用于OpenCV1.0+VC++6.0

2014-04-01

空空如也

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

TA关注的人

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