- 博客(96)
- 收藏
- 关注
原创 C++编译,静态库,动态库那些事
一文把c++的编译过程,以及动态库、静态库的来世今生讲清楚文章目录两大编译主力编译流程预编译编译汇编链接静态库与动态库生成静态库生成动态库静态库和动态库使用静态库使用动态库使用动态链接动态加载:两大编译主力GCC(GNU Compile Collection) 是一整套编译工具,包括了前端 (如gcc,g++) 和 后端工具编译流程:C code —> GCC’s C frontend —> RTL —> GCC’s x86 backend —> x86 machine
2021-08-01 20:46:26
355
原创 Single-Stage 6D Object Pose Estimation——6D姿态估计
Single-Stage 6D Object Pose Estimation作者:Yinlin Hu,Pascal Fua, Wei Wang, Mathieu Salzmann实验室:CVLab, EPFL, Switzerland发表:2019.11.19 arkiv(盲猜2020CVPR)这篇文章出自EPFL的CVLab实验室,是对浙大发表的PVNet、以及他们自己实验室发表的Se...
2020-02-22 17:32:43
3300
10
原创 零基础搭建CUDA、Pytorch环境
服务器版本:Ubuntu16.04环境搭建版本:CUDA9.0,Pytorch1.0 branch 最新版安装anaconda先去anaconda官网获取下载连接https://www.anaconda.com/distribution/这里,我的是下面这个链接,进行下载wget https://repo.anaconda.com/archive/Anaconda3-2019.10-L...
2019-10-30 12:57:47
414
原创 word——公式居中,编号右对齐
在写论文的时候,公式加序号一直是个头疼的问题,这里记录一种很简单的方法:创建表格首先拉一个一行三列的表格设置表格属性右键中间的单元格呼出菜单键,点击表格属性,打开单元格这一列,度量单位改成百分比把百分比调成70%,然后以同样的方式把左右两边调成15%在表格这一列有个选项,把其中的左右边距都调为0然后把公式(图片或word里创建的公式)放在中间居中对齐,标号放在最右边的单元格...
2019-05-25 19:24:17
2312
原创 使用ElementTree对xml文件进行操作
需求:PASCAL VOC数据集的标签文件为XML文件,需要根据所做的课题对其进行更改,因此学习了一些最基础的XML操作方法进行操作。Python提供了三种方法对XML进行操作:SAX、DOM、ElementTree,其中ElementTree是最简单最轻便的方法。在这个方法中,把xml文件当成了一颗树,几个基本的操作就可以很好的对其中的数据进行读取、更改。原始XML文件<annota...
2019-05-23 19:13:02
1363
原创 ubuntu下常用命令
记录下ubuntu(非服务器)下常用的命令,免去搜索之苦。(长期更新)分页显示文件内容cat file | more经常会有比较大的文件,一次读取会很卡,用这个命令可以很好的解决这个问题更改文件权限chmod -R 777 file-R表示递归更改文件目录下所有文件建立文件夹软链接ln -s 源地址 目的地项目中常用到...
2019-05-23 17:47:19
161
原创 Pytorch——conv2d参数使用
记录下常用参数使用,方便查阅conv2d的官方文档点击这里首先是原函数的参数:torch.nn.Conv2d(in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, bias=True, padding_mode='zeros')输入输出的格式:input(N,C-in,H-...
2019-05-16 16:03:53
49215
11
原创 mmdetection相关资源
最近在用商汤科技开源的mmdetection,由于开源时间比较短,网上的资料还比较少,在这汇总下找到的相关资源。1、首先最最最重要的就是官方github,安装以及使用说明介绍的的很详细了https://github.com/open-mmlab/mmdetection但在安装这个库的时候,发生了各种bug,最后我是ubuntu16.04+cuda9.0+cuDNN7.1.4+pytorch1...
2019-04-21 22:43:23
1944
原创 PAT_甲级_1003
1003 EmergencyAs an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams in each...
2019-03-12 22:02:55
499
原创 PAT_甲级_1076
1076 Forwards on WeiboWeibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence a social network is formed with follo...
2019-03-12 19:54:30
205
原创 PAT_甲级_1021
1021 Deepest RootA graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are supposed to find the root that results in a highest ...
2019-03-12 17:46:11
249
原创 PAT_甲级_1013
1013 Battle Over CitiesIt is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed. We must kn...
2019-03-12 16:39:19
136
原创 PAT_甲级_1064
1064 Complete Binary Search TreeA Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys less th...
2019-03-08 20:54:40
190
原创 PAT_甲级_1043
1043 Is It a Binary Search TreeA Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys less tha...
2019-03-08 18:18:49
211
原创 PAT_甲级_1094
1094 The Largest GenerationA family hierarchy is usually presented by a pedigree tree where all the nodes on the same level belong to the same generation. Your task is to find the generation with the...
2019-03-08 17:07:39
154
1
原创 PAT_甲级_1102
1102Invert a Binary TreeThe following is from Max Howell @twitter:Google: 90% of our engineers use the software you wrote (Homebrew), but you can’t invert a binary tree on a whiteboard so fuck off....
2019-03-08 15:44:15
117
原创 PAT_甲级_1086
1086 Tree Traversals AgainAn inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tree (with the keys numbered from 1 t...
2019-03-08 13:20:16
410
1
原创 PAT_甲级_1103
1103 Integer FactorizationThe K−P factorization of a positive integer N is to write N as the sum of the P-th power of K positive integers. You are supposed to write a program to find the K−P factoriz...
2019-03-06 22:35:18
175
原创 PAT_甲级_1091
1091 Acute StrokeOne important factor to identify acute stroke (急性脑卒中) is the volume of the stroke core. Given the results of image analysis in which the core regions are identified in each MRI slice...
2019-03-06 22:29:19
175
原创 PAT_甲级_1032
1032 SharingTo store English words, one method is to use linked lists and store a word letter by letter. To save some space, we may let the words share the same sublist if they share the same suffix....
2019-03-06 15:52:57
138
原创 PAT_甲级_1051
1051 Pop SequenceGiven a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, …, N and pop randomly. You are supposed to tell if a given sequence of numbers is a possible p...
2019-03-06 12:41:16
163
原创 PAT_甲级_1071
1071 Speech PatternsPeople often have a preference among synonyms of the same word. For example, some may prefer “the police”, while others may prefer “the cops”. Analyzing such patterns can help to ...
2019-03-06 12:40:22
113
原创 PAT_甲级_1100
1100 Mars NumbersPeople on Mars count their numbers with base 13:Zero on Earth is called “tret” on Mars.The numbers 1 to 12 on Earth is called “jan, feb, mar, apr, may, jun, jly, aug, sep, oct, nov...
2019-03-05 14:57:05
152
原创 PAT_甲级_1063
1063 Set SimilarityGiven two sets of integers, the similarity of the sets is defined to be Nc /Nt ×100%, where Nc is the number of distinct common numbers shared by the two sets, and Nt ...
2019-03-04 21:21:32
173
原创 PAT_甲级_1024
1024 Palindromic NumberA number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number. All single digit numbers...
2019-03-04 16:54:43
121
原创 PAT_甲级_1023
1023 Have Fun with NumbersNotice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 246913578, which happens to be...
2019-03-04 13:12:11
101
原创 PAT_甲级_1059
1059 Prime FactorsGiven any positive integer N, you are supposed to find all of its prime factors, and write them in the format N = p1 k1 ×p2 k2 ×⋯×pm km .Input Specifica...
2019-03-03 22:55:47
147
原创 PAT_甲级_1078
1078 HashingThe task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the input numbers. The hash function is defined to be H(...
2019-03-03 21:00:40
158
原创 PAT_甲级_1015
1015 Reversible PrimesA reversible prime in any number system is a prime whose “reverse” in that number system is also a prime. For example in the decimal system 73 is a reversible prime because its ...
2019-03-03 19:20:10
156
原创 PAT_甲级_1081
1081 Rational SumGiven N rational numbers in the form numerator/denominator, you are supposed to calculate their sum.Input Specification:Each input file contains one test case. Each case starts wit...
2019-03-03 16:28:22
162
原创 PAT_甲级_1049
1049 Counting OnesThe task is simple: given any positive integer N, you are supposed to count the total number of 1’s in the decimal form of the integers from 1 to N. For example, given N being 12, t...
2019-03-03 12:37:18
127
原创 PAT_甲级_1067
1067 Sort with Swap(0, i) (25 分)Given any permutation of the numbers {0, 1, 2,…, N−1}, it is easy to sort them in increasing order. But what if Swap(0, *) is the ONLY operation that is allowed to use...
2019-02-26 21:36:24
141
原创 PAT_甲级_1038
1038 Recover the Smallest NumberGiven a collection of number segments, you are supposed to recover the smallest number from them. For example, given { 32, 321, 3214, 0229, 87 }, we can recover many n...
2019-02-25 22:44:08
254
原创 PAT_甲级_1037
1037 Magic CouponThe magic shop in Mars is offering some magic coupons. Each coupon has an integer N printed on it, meaning that when you use this coupon with a product, you may get N times the value...
2019-02-25 22:20:00
137
原创 PAT_甲级_1048
1048 Find CoinsEva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which could accept all kinds of coins as pa...
2019-02-25 18:51:40
163
原创 PAT_甲级_1092
1092 To Buy or Not to BuyEva would like to make a string of beads with her favorite colors so she went to a small shop to buy some beads. There were many colorful strings of beads. However the owner ...
2019-02-25 17:48:57
101
原创 PAT_甲级_1028
1028 List SortingExcel can sort records according to any column. Now you are supposed to imitate this function.Input Specification:Each input file contains one test case. For each case, the first l...
2019-02-25 16:47:01
167
原创 字符串比较大小
注:一定是strcmp,一定是strcmp,一定是strcmp!不要下意识的写“>”、"<"!直接对char数组进行比较,就是对存储地址进行比较,毫无意义。1、strcmp用法char str_1[20], str_2[20];...strcmp(str_1, str_2);按照字典序排序。str_1 > str_2,返回值大于0str_1 == str_2,...
2019-02-25 13:16:11
1766
原创 PAT_甲级_1025
1025 PAT Ranking (25 分)(算是一道经典的排序题)Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test is supposed to run simultaneously i...
2019-02-25 13:05:27
129
原创 PAT_甲级_1012
1012 The Best RankTo evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mathematics (Calculus or Linear Al...
2019-02-25 11:35:31
191
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人