LeetCode 76. Minimum Window Substring 时间复杂度(O( n))
时间复杂度(O( n))
class Solution {
public:
string minWindow(string s, string t) {
vector<bool> chsocurr(128,0);
vector<int> chscount(128,0);
for(int i=0;i<t.siz...
LeetCode 771. Jewels and Stones 时间复杂度(O( n))
时间复杂度(O( n))
class Solution {
public:
int numJewelsInStones(string J, string S) {
vector<int> vec(128,-1);
for(auto j:J) vec[j]=0;
int count=0;
for(auto s:S...
caffe框架理解-----cmake(1)
caffe/cmke
CMake是软件项目的一个开源生成管理器,它允许开发人员以简单的可移植文本文件格式指定生成参数。然后,CMake 使用此文件为本机开发工具(包括Microsoft Visual Studio 、 Apple’s Xcode)生成项目文件,以及unix、linux、nmake 和 borland各种类型的Makefiles文件。CMake处理构建软件的困难方面,如跨平台构建、...
caffe详解-------cmake(2)
caffe/cmake
CMake CMake附图 1 CMake就是针对上面问题所设计的工具:它首先允许开发者编写一种平台无关的 CMakeList.txt 文件来定制整个编译流程,然后再根据目标用户的平台进一步生成所需的本地化 Makefile 和工程文件,如 Unix 的 Makefile 或 Windows 的 Visual Studio 工程。从而做到“Write once, run ...
faste-rcnn代码详解(1)
tools\train_faster_rcnn_alt_opt.py
#!/usr/bin/env python
# --------------------------------------------------------
# Faster R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [...
8.17 12.21-12.24
12.21 php-fpm的pool [root@hyc-01-01 ~]# cd /usr/local/php-fpm/etc[root@hyc-01-01 etc]# cat php-fpm.conf [global]pid = /usr/local/php-fpm/var/run/php-fpm.piderror_log = /usr/local/php-fpm/var/
faster-rcnn代码详解(2)
lib/datasets/ds_utils.py
# --------------------------------------------------------
# Fast/er R-CNN
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# ---------...
faster-rcnn代码详解(3)
lib/faste_rcnn/config.py
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written ...
faster rcnn代码解析(4)
lib/datasets/imdb.py
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by R...
numpy.where()用法
官方教程numpy.where (condition[, x, y])
https://docs.scipy.org/doc/numpy/reference/generated/numpy.where.html
numpy.where() 有两种用法:
np.where(condition, x, y)
满足条件(condition),输出x,不满足输出y。
如果是一维数组,相当于[...
faster_rcnn(5)代码解析
lib/roi_data_layer/roidb.py
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Writt...
faster_rcnn代码解析(6)
lib/fast_rcnn/bbox_transform.py
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# W...
faster rcnn 代码解析(7)
lib/utils/blob.py
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross...
linux指令(1)
1.Linux输出重定向
>: 会重写文件,如果文件里面有内容会覆盖。
>>这个是将输出内容追加到目标文件中。如果文件不存在,就创建文件。
>>:追加文件,也就是如果文件里面有内容会把新内容追加到文件
是定向输出到文件,如果文件不存在,就创建文件;如果文件存在,就将其清空。
2.exec命令
用于调用并行执行指令
...
faster rcnn 代码解析(8)
tools/train_net.py
#!/usr/bin/env python
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for deta...
tf-faster-rcnn/tools/train_net.py
tf-faster-rcnn/tools/train_net.py
# --------------------------------------------------------
# Tensorflow Faster R-CNN
# Licensed under The MIT License [see LICENSE for details]
# Written by Zheqi He...
faster-rcnn代码解析(9)
/home/ubuntu/py-faster-rcnn/lib/datasets//factory.py
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICEN...
generate_anchors.py代码解析
anchor
首先我们需要知道anchor的本质是什么,本质是SPP(spatial pyramid pooling)思想的逆向。而SPP本身是做什么的呢,就是将不同尺寸的输入resize成为相同尺寸的输出。所以SPP的逆向就是,将相同尺寸的输出,倒推得到不同尺寸的输入。接下来是anchor的窗口尺寸,这个不难理解,三个面积尺寸(128^2,256^2,512^2),然后在每个面积尺寸下,取三种...
faster rcnn snippets.py
# --------------------------------------------------------
# Tensorflow Faster R-CNN
# Licensed under The MIT License [see LICENSE for details]
# Written by Xinlei Chen
# -----------------------------...
周排行