py-faster-rcnn代码
注意第18~20行是拿一个数(x1)和array(x1[ [0,2,3] ])去比:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUUAAAAqCAIAAACrw94xAAAAA3NCSVQICAjb4U/gAAAQI0lEQVR4Xu1deVxN6Rs/597ubV+0TBTFhKGoaWTLMpFksm8tMlF2bRoNpn5cDVKUwszEqGksoQURodKglKKaisRFlqiUVpXqLr9zt9x7z3IXN9Ny7sc/93ne9/s87/c9z3ve99zTF/it0lAA/+AM4Az0CgYIvWIU+CBwBnAGWAzg9YxfBzgDvYcBvJ67y1wSVEc5x8RS5ungU4I9Jb2OKKLOtLljB8ghjRrDhdQcvz8jswKAalYBl+qLz+wwkUdpIVszqGy88mKs7/SW569bZYvcy9BQiJIfufd2QTOV8y8nbopydxu2yuQDNdz0CpozNpsrfEpQ3mhB0IE/c39bPIzPyHFjuFAGiN8MEIkhKBoM1ycpGBrrkBH9sjWCahaBRz3NH4bbbDxV8IHBBSfrL/AJybyTw7pMS9KyDrlN1ezrs4VMFG8yyk+sM7a0MbK0W3O3RWCCQIXhi4Ko1PQ/xiiKNXFE9bFO/smptxoh5kv/uRexfoYOUayOnEag0mi3o1XUgiIvo867QXMOhZ3b7Lkx74Sg2p5EzVkdW2f9vyv+llqCM4zhQsmnr18hKLTQq2LWLJy6cPGqW00oLWRoJo9c6bdaK3/LTzEPWpmfcOl0OeWG1N+3L3L1cj2QJT/T89xeKy1QhnF7HBQKUbxx0JrrKqtrKqvfN3R00iinbTpn97ELBcG2eoC43JEN5u/3sahPDnd281yxP5NkvS4+9Ac9cSua/M3y0Ou+3wiRy+xoesfKraamhQ7jnVF9K3Qh5Z6WYwBlrIpglhguGAzLwK5nkr61p+NEIyWE4pbOhRiKYyRoTQo+Hv84j33boWYW//3TAn3uPRBy7YtJfFHM3jU9SrtzcNV0HcRTBT+8vKn7kZJCqEvO47OBR/669I6a9/r81jlfcegnDLALKsy/z46VQ43fucZEmT1I4sD54RXUf6JttdntCLq2weX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zAElZU+ovSTyFJ8ZCu/e0xn4z/5esvtrUGBMrXSiFhiAkEti5QpsONzbJxn40noGPUWDAuNikEaeAgNOOuUKDEDc1YcZ+NL13GM0KDCuCSnkKbDQpFKuwADEXX2YgS+934b+Xzg0ts2Vh6G5cDvOAM6AOAx0u7/HECdpvA3OAM4AIgN4PSPSghtxBnokA3g998hpw5PGGUBkAK9nRFpwI85Aj2QAr+ceOW140jgDiAz8H1o1tNpHJjSKAAAAAElFTkSuQmCC" alt="" />
2. box_inside_weights和box-outside_weights:
在smoothl1losslayer.cu里:
计算loss时乘的系数
3. tools/train_net.py:
对于git上默认的配置,这段代码实现:
roidb = get_roidb( voc_2007_trainval )
imdb = get_imdb( voc_2007_trainval )
generate_anchors.py:
注意原始py-faster-rcnn会设置batch_inds为0
proposal_layer.py:
bottom[0].shape=(1,18,7,7),最后得到all_scores.shpae=(1,9,7,7),根据注释,前面9层是背景,后面的9层才是前景,这里取bottom[0]里后面的9层。
proposal_target_layer.py:
bbox_overlaps函数在utils/bbox.pyx里,参考
偶见train.py:所以prototxt里不能随意改最后输出层的名字
涉及知识点:
from IPython import embed;embed() #程序运行到这里会转成ipython环境
py-faster-rcnn代码的更多相关文章
- py faster rcnn+ 1080Ti+cudnn5.0
看了py-faster-rcnn上的issue,原来大家都遇到各种问题. 我要好好琢磨一下,看看到底怎么样才能更好地把GPU卡发挥出来.最近真是和GPU卡较上劲了. 上午解决了g++的问题不是. 然后 ...
- Faster RCNN代码理解(Python)
转自http://www.infocool.net/kb/Python/201611/209696.html#原文地址 第一步,准备 从train_faster_rcnn_alt_opt.py入: 初 ...
- Faster rcnn代码理解(1)
这段时间看了不少论文,回头看看,感觉还是有必要将Faster rcnn的源码理解一下,毕竟后来很多方法都和它有相近之处,同时理解该框架也有助于以后自己修改和编写自己的框架.好的开始吧- 这里我们跟着F ...
- Faster R-CNN代码例子
主要参考文章:1,从编程实现角度学习Faster R-CNN(附极简实现) 经常是做到一半发现收敛情况不理想,然后又回去看看这篇文章的细节. 另外两篇: 2,Faster R-CNN学习总结 ...
- Faster rcnn代码理解(4)
上一篇我们说完了AnchorTargetLayer层,然后我将Faster rcnn中的其他层看了,这里把ROIPoolingLayer层说一下: 我先说一下它的实现原理:RPN生成的roi区域大小是 ...
- Faster rcnn代码理解(2)
接着上篇的博客,咱们继续看一下Faster RCNN的代码- 上次大致讲完了Faster rcnn在训练时是如何获取imdb和roidb文件的,主要都在train_rpn()的get_roidb()函 ...
- Faster rcnn代码理解(3)
紧接着之前的博客,我们继续来看faster rcnn中的AnchorTargetLayer层: 该层定义在lib>rpn>中,见该层定义: 首先说一下这一层的目的是输出在特征图上所有点的a ...
- tensorflow faster rcnn 代码分析一 demo.py
os.environ["CUDA_VISIBLE_DEVICES"]=2 # 设置使用的GPU tfconfig=tf.ConfigProto(allow_soft_placeme ...
- Faster RCNN代码解析
1.faster_rcnn_end2end训练 1.1训练入口及配置 def train(): cfg.GPU_ID = 0 cfg_file = "../experiments/cfgs/ ...
- py faster rcnn的lib编译出错问题
真是好事多磨啊,计算机系统依然是14.04,而cuda依然是8.0,唯一不同的是时间不一样,下载的各种库版本有差别,GPU的driver不一样. 但是这样就出问题了,py-faster rcnn的li ...
随机推荐
- Kubernetes集群部署之四Master节点部署
Kubernetes Master节点部署三个服务:kube-apiserver.kube-controller-manager.kube-scheduler和一个命令工具kubectl. Maste ...
- SpringBoot系统列 2 - 配置文件,多环境配置(dev,qa,online)
实现项目的多环境配置的方法有很多,比如通过在Pom.xml中配置profiles(最常见) 然后在Install项目打War包的时候,根据需求打不同环境的包,如图: 这种配置多环境的方法在SSM框架中 ...
- assets下的文件复制到SD卡
由于assets和res下的文件都只可以读不可以写,那么在程序初始化后,将后期需要使用并且需要修改的文件复制到SD卡.下面代码提供一个工具类,将assets下的任意资源复制到SD卡下. assets下 ...
- window/linux composer安装/卸载
packagist库:https://packagist.org/ window 安装 参考地址:https://www.kancloud.cn/thinkphp/composer/35668 1. ...
- SwipeToLoadLayout
SwipeToLoadLayout SwipeToLoadLayout is a reusable pull-to-refresh and pull-to-load-more widget. Supp ...
- ubuntu开机后弹出System program problem detected的解决办法
sudo gedit /etc/default/apport 将enabled=1改为enabled=0保存退出重启后就可以了
- Ai challenger 2017 image caption小结
参加了今年的ai challenger 的image caption比赛,最终很幸运的获得了第二名.这里小结一下. Pytorch 越来越火了.. 前五名有三个pytorch, 两个tensorflo ...
- 给vscode添加右键打开功能
将以下文本存为vscode.reg,然后运行: Windows Registry Editor Version 5.00 ; Open files [HKEY_CLASSES_ROOT\*\shel ...
- [破解] IPhone 5S icloud dns bypass
http://ui.iclouddnsbypass.com/deviceservices/buddy/barney_activation_help_en_us.buddyml http://www.j ...
- 11.8luffycity(3)
2018-11-8 19:11:49 打算过几天回学校! 越努力越幸运~!永远不要高估自己! 做一下笔记,等路飞项目做完放上github连接 1. 复杂的跨域 class CORSMiddleware ...