深度学习
zqjackking
这个作者很懒,什么都没留下…
展开
-
leetcode第5题,最长回文子串
一开始用的穷举法,时间直接超了,后来稍作修改才被accept,但是只是打败了70%的人。 后来找到了大神写的代码,现在直接粘上如下: if (s.size() < 2) return s; int len = s.size(), max_left = 0, max_len = 1, left, right; for (int s原创 2017-02-17 19:04:02 · 493 阅读 · 0 评论 -
leetcode第7题,Reverse Integer
Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 Note: The input is assumed to be a 32-bit signed integer. Your function should return 0 when the reversed原创 2017-02-18 20:30:16 · 2485 阅读 · 1 评论 -
leetcode第八题 String to Integer (atoi)
题目要求: 1. 字串为空或者全是空格,返回0; 2. 字串的前缀空格需要忽略掉; 3. 忽略掉前缀空格后,遇到的第一个字符,如果是‘+’或‘-’号,继续往后读;如果是数字,则开始处理数字;如果不是前面的2种,返回0; 4. 处理数字的过程中,如果之后的字符非数字,就停止转换,返回当前值; 5. 在上述处理过程中,如果转换出的值超出了int型的范围,就返回int的最大值或最小值。 我一原创 2017-02-19 10:39:40 · 307 阅读 · 0 评论 -
Leetcode 11. Container With Most Water
Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lin原创 2017-02-20 15:34:11 · 387 阅读 · 0 评论 -
faster rcnn中的roi-pooling层
本文就faster rcnn中的ZF网络来对roi-pooling层做一个解读 首先看网络结构, layer { name: “roi_pool_conv5” type: “ROIPooling” bottom: “conv5” bottom: “rois” top: “roi_pool_conv5” roi_pooling_param { pooled_原创 2017-03-01 11:46:09 · 10857 阅读 · 4 评论 -
用caffe训练好的lenet_iter_10000.caffemodel测试单张mnist图片
原文链接:http://blog.csdn.net/lanxuecc/article/details/52485077 1 第一种方法,使用caffe自带的caffe/python/classify.py 因为classify.py中的测试接口caffe.Classifier需要训练图片的均值文件作为输入参数,而实际lenet-5训练时并未计算均值文件,所以这里创建一个全0的均值文件输入。编写一原创 2017-07-26 19:08:11 · 670 阅读 · 0 评论 -
SSD编译问题
编译SSD的时候,make all -j16 出现了以下错误:/usr/include/boost/property_tree/detail/json_parser_read.hpp:257:264: error: ‘type name’ declared as function returning an array make: *** [.build_release/cuda/src/caffe原创 2017-09-04 23:07:05 · 640 阅读 · 0 评论 -
tensorflow的坑
TFRecordReader “OutOfRangeError (see above for traceback): RandomShuffleQueue ‘_1_shuffle_batch/random_shuffle_queue’ is closed and has insufficient elements (requested 1, current size 0)” 问题原因总结; t...转载 2018-12-10 14:35:21 · 251 阅读 · 0 评论