自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 资源 (2)
  • 收藏
  • 关注

原创 linux 下载 voc2007/2012 数据集

wget http://pjreddie.com/media/files/VOC2012test.tarwget https://pjreddie.com/media/files/VOCtrainval_11-May-2012.tarwget https://pjreddie.com/media/files/VOCtrainval_06-Nov-2007.tarwget https://pj...

2018-12-29 09:08:53 4518 3

原创 pytorch根据tensor.Size 创建tensor-----torch.FloatTensor()

类型转换, 将list ,numpy转化为tensor。 以list -> tensor为例:print(torch.FloatTensor([1,2]))# 输出: tensor([1., 2.])根据torch.Size()创建一个空tensor a = torch.tensor([[1, 2], [3, 4]]) print(torch.FloatTenso...

2018-12-27 19:14:18 18987 6

原创 python str类型 startswith()方法

Python startswith() 方法用于检查字符串是否是以指定子字符串开头,如果是则返回 True,否则返回 False。如果参数 beg 和 end 指定值,则在指定范围内检查。语法startswith()方法语法:str.startswith(str, beg=0,end=len(string));参数str -- 检测的字符串。strbeg -- 可选参数用于设置字符串检...

2018-12-23 19:35:56 1417 2

转载 ubuntu安装不同版本gcc/g++并切换, gcc降级

转自: https://www.linuxidc.com/Linux/2017-03/142299.htm注:不存在gcc降级, 那样会毁坏系统。实际是安装多版本,然后指定需要的版本。由于gcc在5.x版本修改了ABI,导致新版本gcc编译的二进制文件放在老的环境下会报错,所以需要安装gcc4.8.5。4.8.5这个版本支持c++11。首先尝试下载gcc-4.8.5的源码编译安装,结果mak...

2018-12-11 13:36:30 5150

转载 mAP/目标检测评价指标/AP/average precision

最好的说明文档以及实用程序https://github.com/rafaelpadilla/Object-Detection-Metrics

2018-12-10 20:33:33 716

原创 pytorch的tensor除法

python 3.6 pytorch 0.4.1正常的python 3.X, 除法的结果是直接把二者转化为浮点型, 再做除法, 因此有以下结果:1/3""" 0. 3333"""但是tensor不遵循这个规则, 结果如下:torch.tensor([1])/torch.tensor([3])"""tensor([0])"""...

2018-12-10 09:05:15 19779 2

原创 pytorch tensor比较大小 数据类型要注意

如下a = torch.tensor([[0, 0], [0, 0]])print(a>=0.5)输出tensor([[1, 1], [1, 1]], dtype=torch.uint8)结果明显不对, 分析原因是因为, a是long类型, 而0.5是float. 0.5会被转化为 long, 变为0. 因此结果会出错, 做出如下修改就可以得到正确答案正确用法...

2018-12-09 20:55:12 7448

原创 python list 转化为 int/ 含有整形字符的list转化为整形list

results = ['1', '2', '3'] 转化为 [1, 2, 3]利用map 函数:results = list(map(int, results))

2018-12-09 16:48:23 16642 1

原创 win10/华硕主板/ security boot disable/ security boot 是灰色

win10 由于安全原因, security boot 自带就是enable, 而且找不到 disable的选项. 百度出来一堆垃圾答案, 我翻了墙一下就找到了…垃圾百度…一:见下图中的1,2步骤(我这是已经disable了, 请忽略)二:进入2 以后, 忘了拍照 总之有个选项是 clear secure boot case, 选择这个以后就会自动由enable变为disable...

2018-12-09 08:39:25 14825 2

原创 pytorch-unsqueeze用法

tensor.unsqueeze 为tenor添加维度a = torch.rand((1, 3, 5), dtype=torch.float32)print("a shape is ", a.size())b = a.unsqueeze(-1) # 负1表示 在最后一维上添加print("b shape is ", b.size())输出结果如下a shape is torch...

2018-12-07 21:06:01 933

原创 opencv 读取图像,解决imread不能读取中文路径的问题

opencv-python 无法读取中文距离# 假设 im_name是中文路径im = cv2.imdecode(np.fromfile(im_name,dtype=np.uint8),-1) # 读取的数据是RGB 而不是 BGR, 要注意

2018-12-07 10:50:40 4132 3

原创 独立显卡电脑 安装ubuntu黑屏

现象:安装完重启直接黑屏原因:显示器接口接在了集成显卡上, 在windows上没事,但是在linux上有问题解决:视频线连在独立显卡就好

2018-12-05 20:25:33 872

转载 pytorch RuntimeError: An attempt has been made to start a new process before the current pr

pytorch 加载数据时报错:RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase. This probably means that you a...

2018-12-04 14:59:05 921

原创 pytorch 深度学习, CPU预处理时间大于GPU网络处理时间、数据增强

背景:想知道训练网络时,时间花在了哪.做了一个性能分析,关于训练网络时的时间消耗问题。1.电脑: i7-6700,1070 ti2.tiny-YOLO_v1(9层) ,3.预处理包括随机平移,缩放,Hue,Saturation等结果batch-size = 18时, 一个batch平均用时:image 加载和预处理 : 0.4849s;网络前向+损失计...

2018-12-04 09:20:26 1514

voc数据集voc2012voc2007.txt

VOC数据集镜像

2019-05-26

python官方tutorialPDF版_3.6.4

python官方tutorial,pdf版本。python版本是3.6.4. 目的是方便学习者打印下来学习

2018-09-01

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

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