逍遥

AHU~~~有问题请联系邮箱: 1210568677@qq.com

MDNet论文阅读和代码整理笔记

为什么要提出MDNet? 现有的一些目标跟踪算法是通过在大规模分类数据集ImageNet上进行预训练,但是跟踪任务和分类任务是不同的视觉任务,它们的模型之间存在“鸿沟”。 为了充分的发挥CNN在视觉跟踪方面强大的表现力,需要在大规模专门用于视觉跟踪的数据集上做训练,要求该数据集中包含目标和背景的...

2018-11-17 11:06:10

阅读数 576

评论数 14

计算IOU(取自MDNet代码)

def overlap_ratio(rect1, rect2): # 计算bounding box和ground truth的IOU ''' target bbox (min_x,min_y,w,h) ''' if rect1.ndim == 1: # 判断维...

2018-11-17 10:05:34

阅读数 119

评论数 0

常用PyTorch整理(持续更新)

for child in module.children(): # 遍历模型的网络结构 # child为每一层网络的每一个部分 for k, p in child._parameters.items(): # k为每一层的参数名称,如weight,bias ...

2018-11-17 09:11:28

阅读数 66

评论数 0

常用numpy整理(持续更新)

#常用的提取矩阵特定行: >>> x array([[6.93528128e-310, 4.68328808e-310, 1.58101007e-322], [1.58101007e-322, 4.68328790e...

2018-11-17 09:10:06

阅读数 42

评论数 0

利用python3 爬取教务处实现自动查询成绩并发送给用户QQ邮箱

1.登录和识别验证码过程我使用的Google浏览器,编译器是PyCharm2017.2.4,首先进入教务处主页,如下所示:在登陆界面发现需要用户进行填写的选项主要有用户名(学号),密码,验证码以及身份的选择,其中身份默认是学生,那么显然在登录过程中我们所需要做的显然就是填写这些信息来实现登陆的操作...

2018-01-18 21:09:07

阅读数 2637

评论数 0

拓扑排序模板

拓扑排序模板 /*邻接表拓扑排序模板*/ #include<iostream> #include<cstdio> #include<cstdlib> #incl...

2017-03-05 20:14:02

阅读数 217

评论数 1

Snakes & Ladders

题目大意: 题目的大概意思是又N*N的棋盘,编号从1 到 N*N 棋盘中分布着蛇和梯子玩家在位置1处,   然后掷骰子,如果点数在梯子尾则顺着梯子到达梯子头,若掷到蛇头,则滑到蛇尾   问最快到达终点所需掷的次数...   解题思路: bfs,创建两个地图,一个为前一步的地图,一个为这次能走...

2017-03-05 17:48:42

阅读数 383

评论数 0

ZOJ - 1649 Rescue

题目:   Angel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M <= 200) matrix. There a...

2017-03-01 16:21:24

阅读数 211

评论数 0

poj 1979 Red and Black

题目链接:http://poj.org/problem?id=1979 题目:   There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man ...

2017-02-27 18:56:18

阅读数 240

评论数 0

ZOJ 2412 Farm Irrigation

题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2412 题目:   Benny has a spacious farm land to irrigate. The farm land is a rectan...

2017-02-27 18:51:16

阅读数 126

评论数 0

ZOJ 2110 Tempter of the Bone

题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=1110 题目:   The doggie found a bone in an ancient maze, which fascinated him a lot....

2017-02-27 18:42:40

阅读数 131

评论数 0

codeforces 766 C Mahmoud and a Message

题目链接:http://codeforces.com/contest/766/problem/C 题目:   Mahmoud wrote a message s of length n. He wants to send it as a birthday present to his fri...

2017-02-20 20:59:15

阅读数 137

评论数 0

codeforces 766 B Mahmoud and a Triangle

题目链接:http://codeforces.com/contest/766/problem/B 题目:   Mahmoud has n line segments, the i-th of them has length ai. Ehab challenged him to useexac...

2017-02-20 20:48:48

阅读数 149

评论数 0

codeforces 766 A Mahmoud and Longest Uncommon Subsequence

  题目链接:http://codeforces.com/contest/766/problem/A   题目:   A. Mahmoud and Longest Uncommon Subsequence time limit per test 2 seconds mem...

2017-02-20 20:42:04

阅读数 191

评论数 0

poj 1659 Frogs' Neighborhood

题目链接:http://poj.org/problem?id=1659 解题思路: Havel-Hakimi定理的套用,该定理详见http://sbp810050504.blog.51cto.com/2799422/883904 AC代码:   //我的图论学习之路 2 #includ...

2017-02-14 22:39:06

阅读数 187

评论数 0

codeforces 762A k-th divisor

题目描述:   You are given two integers n and k. Find k-th smallest divisor of n, or report that it doesn't exist. Divisor of n is any such natural num...

2017-01-27 10:03:36

阅读数 274

评论数 0

codeforces 750A New Year and Hurry

题目描述:   Limak is going to participate in a contest on the last day of the 2016. The contest will start at 20:00 and will last four hours, exactly u...

2017-01-17 14:36:53

阅读数 393

评论数 0

codeforces 735 C Tennis Championship

题目描述:   Famous Brazil city Rio de Janeiro holds a tennis tournament and Ostap Bender doesn't want to miss this event. There will be n players parti...

2017-01-15 21:50:20

阅读数 197

评论数 0

codeforces 735 B Urbanization

题目描述:   Local authorities have heard a lot about combinatorial abilities of Ostap Bender so they decided to ask his help in the question of urbaniz...

2017-01-15 21:41:26

阅读数 118

评论数 0

codeforces 735 A Ostap and Grasshopper

题目描述: On the way to Rio de Janeiro Ostap kills time playing with a grasshopper he took with him in a special box. Ostap builds a line of length n su...

2017-01-14 17:34:38

阅读数 180

评论数 0

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