- 博客(90)
- 资源 (88)
- 问答 (1)
- 收藏
- 关注
原创 math range error
异常原因:exp的值太大或者太小了。try: ans = math.exp(200000)except OverflowError: ans = float('inf')
2018-09-28 19:46:51 17834 6
原创 python获取vot gt坐标
https://github.com/jacke121/meta_trackers/tree/master/datasetimport cv2import numpy as npimport osdata = {}seq=r"../data/vot2016/bag/"img_list = sorted([p for p in os.listdir(seq) if os.pa...
2018-09-27 23:29:10 2728 1
原创 float64toint
>>> a = numpy.array([1, 2, 3, 4], dtype=numpy.float64)>>> aarray([ 1., 2., 3., 4.])>>> a.astype(numpy.int64)array([1, 2, 3, 4])
2018-09-27 23:02:51 4253
原创 opencv显示vot groundtruth.txt
from __future__ import divisionimport sysimport osimport cv2import numpy as npfrom PIL import Image# import src.siamese as siamfrom src.parse_arguments import parse_argumentsimport numpy...
2018-09-27 22:56:12 3218 1
原创 pytorch 批量iou计算
import torchdef bbox_iou(box1, box2, x1y1x2y2=True): """ Returns the IoU of two bounding boxes """ if not x1y1x2y2: # Transform from center and width to exact coordinates...
2018-09-27 17:56:21 4850 2
原创 map has no len python3
python3中会出这个异常:map has no len()x = [[1, 'a'], [2, 'b'], [3, 'c']]# `map` returns object of map type>>> map(lambda a: a[0], x)<map object at 0x101b75ba8># on doing `len`, raise...
2018-09-27 14:10:06 3201
转载 Softer-NMS:CMU&旷视最新论文提出定位更加精确的目标检测算法
Softer-NMS:CMU&旷视最新论文提出定位更加精确的目标检测算法 前天arXiv新上论文《Softer-NMS: Rethinking Bounding Box Regression for Accurate Object Detection》,来自卡内基梅隆大学与旷视科技的研究人员在文中提出了一种新的非极大抑制算法Softer-NMS,显著改进了目标检测的定位精度,代码已...
2018-09-27 09:30:00 6742 2
转载 Siamese Network理解(附代码)
Siamese Network理解(附代码) 原文:https://blog.csdn.net/sxf1061926959/article/details/54836696author:DivinerShi文章地址:http://blog.csdn.net/sxf1061926959/article/details/54836696提起siamese network一般都会引用...
2018-09-26 22:17:11 4443
原创 Siamese-RPN目标跟踪算法
Siamese-RPN目标跟踪算法的实现2019.11.26 出了一版dcn的:有权重 80多mhttps://github.com/hahastrong/SiamRPN-dcn关于Siamese-RPN目标跟踪算法的实现,参见我的github:https://github.com/zkisthebest/Siamese-RPN...
2018-09-26 22:16:20 4722 5
转载 重磅!商汤&港中文等将开源ECCV2018MS COCO检测比赛冠军代码库
重磅!商汤&港中文等将开源ECCV2018MS COCO检测比赛冠军代码库原文出处: 我爱计算机视觉来自商汤科技、港中文、浙大、悉尼大学、南洋理工大学的研究人员组成的团队MMDet,赢得了ECCV2018 MS COCO检测比赛的冠军。近日,他们将开源在比赛中使用的代码和模型库。MMDet团队成员:ECCV2018MS COCO检测比赛结果:在这个比赛中MMDet团队开发...
2018-09-26 22:14:00 3496
原创 python 比较文件夹或列表异同
import osimport cv2import numpy as nppath =r'../../origin_all_datas/_2train'pic_files = [os.path.join(rootdir, file) for rootdir, _, files in os.walk(path) for file in files if file.endswith('....
2018-09-25 17:58:00 2850 1
原创 only one element tensors can be converted to Python scalars
only one element tensors can be converted to Python scalars维度为1,1的能item()维度多的就不能转换:loss=torch.Tensor([1,1])loss.item()import torcha=[[1,2,3],[2,3,4],[1]]b=torch.Tensor(a)print(...
2018-09-24 16:39:30 16253 3
原创 list转torch tensor
这种的比较慢pick=[1,2,3,4]bbb=torch.tensor(pick, dtype=torch.long)这种的比较快img = cv2.imread('d:/bgs.jpg')start=time.time()# tensor = torch.Tensor(img)tensor= torch.from_numpy(img)import torch a...
2018-09-24 11:50:39 73782 1
转载 CFNet 论文解读
原文:https://blog.csdn.net/u014085471/article/details/78442137End-to-end representation learning for Correlation Filter based tracking Jack Valmadre∗ Luca Bertinetto∗ Joao F. Henriques Andrea Vedaldi ...
2018-09-23 23:44:08 10768 3
原创 pytorch 几个不同获得索引的方法
pytorch 几个不同获得索引的方法https://blog.csdn.net/luolinll1212/article/details/822244912018年08月30日 17:08:36 荷塘翠柳 阅读数:46 标签: 深度学习pytorch 更多个人分类: pytorch深度学习 运算 函数...
2018-09-22 22:03:31 8349
转载 pytorch 索引
原文:https://www.cnblogs.com/hellcat/p/8445250.html一、普通索引示例 1 2 3 4 5 a = t.Tensor(4,5) print(a) print(a[0:1,:2]) print(a[0,:2]) # 注意和前一种索引出来的值相同,shape不同...
2018-09-22 22:01:23 3014
原创 torch.where用法
把矩阵x中大于5的变成5了import torchx = torch.linspace(1, 27, steps=27).view(9, 3)bbb = torch.where(x > 5, torch.full_like(x, 5), x)print(bbb)
2018-09-22 20:20:42 29135
原创 One-hot function in PyTorch
Method1: use scatter_ functionlabels = [0, 1, 4, 7, 3, 2]one_hot = torch.zeros(6, 8).scatter_(dim = 1, index = labels, value = 1)Method2: use index_select() funtionlabels = [0, 1, 4, 7, 3, 2]inde...
2018-09-22 18:21:19 2798 1
原创 mat转ckpt
SiameseFC-TensorFlow 代码详细注解(一):预训练模型下载转换测试以及结果可视化2018年05月27日 15:52:26 StayFoolishAndHappy 阅读数:1428 标签: SiameseFC孪生网络结构tensorflow目标跟踪 更多个人分类: 目标跟踪SiameseFCPython版权声明:本文为博主原创文章,未经博主允许不得转载。 https:/...
2018-09-22 16:28:18 3026 1
原创 pytorch 损失函数总结
PyTorch深度学习实战4 损失函数损失函数,又叫目标函数,是编译一个神经网络模型必须的两个参数之一。另一个必不可少的参数是优化器。损失函数是指用于计算标签值和预测值之间差异的函数,在机器学习过程中,有多种损失函数可供选择,典型的有距离向量,绝对值向量等。上图是一个用来模拟线性方程自动学习的示意图。粗线是真实的线性方程,虚线是迭代过程的示意,w1 是第一次迭代的权重,w2 是...
2018-09-22 14:52:48 25605
原创 python自动选取空闲gpu
自动选取可用gpupip install nvidia-ml-py==4.304.04pip安装pynvml pip install nvidia-ml-py3如果是Python2,则pip nvidia-ml-py2 import osimport pynvmlpynvml.nvmlInit()def usegpu(need_gpu_count=1): ...
2018-09-22 13:21:33 4777
原创 Pytorch自定义Loss
Pytorch如何自定义Loss原文:https://blog.csdn.net/yutingzhaomeng/article/details/80454545将Loss视作单独的层,在forward函数里写明loss的计算方式,无需定义backward class MyLoss(nn.Module): def __init__(self): super...
2018-09-22 11:16:58 4799
原创 pytorch bceloss测试
个别测试结果:pre t loss0.6 0.5 0.7130.4 0.5 0.7130.5 0.5 0.6930.5 0.4 0.6930.5 0.3 0.693torch bceloss测试1.越大的情况:1)x与y两个值差异越大,loss越大,2)数据集越小,loss越大3)a与b都接近0.5,loss也不小4) 两个分布很接近,...
2018-09-22 03:00:08 4348
原创 any() missing 1 required positional arguments: "dim"
any() missing 1 required positional arguments: "dim" scores = torch.linspace(0.5, 0.6, steps=2).view(2)# b = torch.FloatTensor(0.5).seqence()# print(b)if np.any(scores != -1): print(1...
2018-09-21 14:48:54 6328
原创 soft nms torch测试
代码:https://github.com/qfgaohao/pytorch-ssd/blob/ba305674654905f088ff6b11ae3a7c5a60344938/vision/utils/box_utils.pyimport torchimport numpy as npimport collectionsimport torchimport itertools...
2018-09-20 23:38:07 3244
原创 分割开源资料整理segmentation
https://github.com/zijundeng/pytorch-semantic-segmentation https://github.com/CSAILVision/semantic-segmentation-pytorch https://github.com/meetshah1995/pytorch-semseg
2018-09-20 17:40:43 2383
原创 python获取路径下所有图片:
import os这个带计数;def get_many_folder(images_path): max_count=0 max_path="" for root, dirs, files in os.walk(images_path): # 遍历统计 if "mouse_error" in root: count=0...
2018-09-20 15:33:50 6501 2
原创 torch自定义随机加载
import random data_img = [] data_lable = [] m_index_i = 0 for astep, samples in enumerate(dataloader): start = time.time() images, labels = samples["image"], sa...
2018-09-19 13:30:52 2486
原创 NMS和soft-nms算法
NMS和soft-nms算法nms :iou阈值的作用,如果iou大于阈值,则认为是两个框是同一个物体,所以会删除分数小的框。https://blog.csdn.net/eurus_/article/details/84251975以此图为例,传统的NMS,首先选定一个IOU阈值,例如为0.25。然后将所有4个窗口(bounding box)按照得分由高到低排序。然后选中得分最高的窗口...
2018-09-18 14:04:52 5529
原创 pytorch 筛选不齐
import numpy as npimport torchx = torch.linspace(1, 27, steps=27).view(9, 3)y = torch.ones(2, 2) # .numpy()#.astype(np.uint8)#.type(torch.uint8)# [第一维][第二维][第三维]y = np.asarray([[0, 1, 2], [...
2018-09-17 21:01:28 2479
原创 torch.log函数
torch.log(torch.Tensor([1])结果:0,任何数的0次方,为1torch.log是以自然数e为底的指数函数。torch.log(torch.Tensor([2.7])=0.999import numpy as npimport torchfrom numpy.core.defchararray import countimport matha...
2018-09-17 18:50:36 53763 5
原创 pytorch按维度取数据0917
这个是三维的:import numpy as npimport torchx = torch.linspace(1,27,steps=27).view(3,3,3)y= torch.ones(2,2)#.numpy()#.astype(np.uint8)#.type(torch.uint8)#[第一维][第二维][第三维]y=np.asarray([[0,1,2],[2...
2018-09-17 17:01:20 5607
原创 a leaf Variable that requires grad has been used in an in-place operation
a leaf Variable that requires grad has been used in an in-place operation这个是因为写成了x+=2,改为y = x + 2此时如果是写y+=2是可以的,也就是说torch变量带requires_grad 的不能进行+=操作import numpy as npimport torchfrom ...
2018-09-17 10:27:18 16182 1
原创 element 0 of tensors does not require grad and does not have a grad_fn
element 0 of tensors does not require grad and does not have a grad_fn这个是因为requires_grad=False,应该为trueimport numpy as npimport torchfrom torch.autograd import Variablex = Variable(torch.one...
2018-09-17 10:15:48 28299
原创 variables needed for gradient computation has been modified by an inplace operation
one of the variables needed for gradient computation has been modified by an self.conf加了cuda()之后就成这样了。 这个变量不求导 self.conf_mask = torch.zeros(batch_size,self.num_anchors,g_dim, g_dim, requ...
2018-09-17 09:45:54 2761
原创 python列拼接
import numpy as npa = np.array([[1], [2]])b = np.array([[5], [6]])print(np.hstack((a,b)))
2018-09-16 11:00:41 4298
转载 新思路!商汤开源利用无标注数据大幅提高精度的人脸识别算法
出处“来自微信公众号:我爱计算机视觉”新思路!商汤开源利用无标注数据大幅提高精度的人脸识别算法这篇论文解决的问题与现实中的人脸识别应用场景密切相关,其假设已经有了少量已经标注的数据,而未标注的人脸图像数据是来自于不受控的环境中采集的,且这些人与数据库中已经有标注的人没有重叠,希望将这些数据赋予标签加入到训练集中。 算法思想算法的核心动机是从未标注数据中找到那些来自同一个人的伪正...
2018-09-16 09:31:03 4135 1
pyopengl windows x64 whl安装包
2024-02-17
mmpose 预测转json标注
2024-01-25
3d-nms cuda代码
2024-01-07
MobileViT v3 pytorch代码
2023-12-31
OpenPCDet ingroup-inds库 windows编译
2023-12-27
Ultra-Fast-Lane-Detection-v2 pytorch版
2023-10-20
insightface/alignment 人脸关键点的pytorch版本
2023-04-29
yolov5 face onnx推理代码
2023-03-26
yolov7 分割 tensorrt 推理源代码
2023-02-23
labelme-5.1.1
2023-01-27
3DDFA-V2.5-opencv-yolov5face
2022-12-25
tensorrt c++ 推理项目
2022-07-03
yolov5各个版本 tensorrt cfg文件
2022-02-16
coco2017转xml格式,精选人体数据集
2022-01-13
Yolov5_DeepSort_bytetrack
2021-11-20
yolov5 代码版 芒果检测 带训练权重,可以直接用
2021-11-16
旋转目标检测标签转换为yolov5格式
2021-11-13
yolov5-face_align.rar
2021-09-01
256_256_resfcn256_weight.index
2021-08-21
yolov5代码版,带预训练,测试脚本,可训练
2021-08-21
torch_Retina_face_bifpn_bce_try_0124_atss.rar
2021-04-24
protobuf.zip
2020-05-21
WebSocketServer.zip
2019-12-17
神经网络改进的几个思考
2022-04-09
TA创建的收藏夹 TA关注的收藏夹
TA关注的人