小镇大爱
码龄8年
关注
提问 私信
  • 博客:293,681
    动态:31
    293,712
    总访问量
  • 88
    原创
  • 1,503,154
    排名
  • 60
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:安徽省
  • 加入CSDN时间: 2017-04-16
博客简介:

qq_38343151的博客

查看详细资料
个人成就
  • 获得310次点赞
  • 内容获得90次评论
  • 获得999次收藏
  • 代码片获得663次分享
创作历程
  • 3篇
    2021年
  • 74篇
    2020年
  • 29篇
    2019年
成就勋章
TA的专栏
  • 笔记
    19篇
  • 深度学习
    22篇
  • NLP
    6篇
  • bug
    11篇
  • 目标检测
    11篇
  • metric learning
    1篇
  • cv2
    3篇
  • pytorch
    7篇
  • Semantic Segmentation
    11篇
  • machine learning
    3篇
  • python问题
    5篇
  • 视觉问答
    8篇
  • VQA
    6篇
  • GAN
  • OSR
    1篇
  • TensorFlow
    3篇
兴趣领域 设置
  • 人工智能
    pytorch
创作活动更多

AI大模型如何赋能电商行业,引领变革?

如何使用AI技术实现购物推荐、会员分类、商品定价等方面的创新应用?如何运用AI技术提高电商平台的销售效率和用户体验呢?欢迎分享您的看法

175人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

self._get_services_status()))RuntimeError: The services status exception:

import jsonfrom nebula2.gclient.net import ConnectionPoolfrom nebula2.Config import Configfrom nebula2.common import *if __name__=='__main__': client =None try: config = Config() config.max_connection_pool_size=2 conn.
转载
发布博客 2021.11.15 ·
1421 阅读 ·
0 点赞 ·
1 评论 ·
0 收藏

Cairo包安装

1.7.2 Cairo包安装 - 51CTO.COM
转载
发布博客 2021.11.02 ·
2240 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

COCO格式数据集转pascal_voc数据集格式

import osimport loggingimport argparsefrom xml.dom import minidomfrom pycocotools.coco import COCOimport jsonclass Dataset(): def __init__(self, jsonSrc, annFolder): super(Dataset, self).__init__() self.setLogger() # 设置日志 .
原创
发布博客 2021.06.12 ·
1446 阅读 ·
0 点赞 ·
0 评论 ·
2 收藏

图像经过仿射变换后分辨率降低

可以尝试一下一下几种插值方法INTER_NEAREST- a nearest-neighbor interpolationINTER_LINEAR- a bilinear interpolation (default)INTER_AREA- resampling using pixel area relation. It may be a preferred method for image decimation, as it gives moire’-free results. But ...
原创
发布博客 2020.12.11 ·
515 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Linux下安装配置tensorflow cuda cudnn并运行程序

tensorflow对CUDA和cudnn版本的依赖性很强,就算你这三个都安装成功了,但是版本不匹配,执行程序时还是会报出各种五花八门的错误,下面就来看一下这三个的对应关系:1、要安装 tensorflow-gpu ,需要处理以下几个依赖:按顺序依次为 python、CUDA driver、CUDA toolkit、cudnn;2、conda create -n tf36 python=3.6其中 tf36 是环境名3、CUDA driver 版本nvidia-smi确定自己...
转载
发布博客 2020.12.03 ·
1091 阅读 ·
1 点赞 ·
0 评论 ·
4 收藏

from torch.hub import HASH_REGEX ImportError: cannot import name ‘HASH_REGEX‘

将model_zoo.py下的5-7行改为:from torch.utils.model_zoo import _download_url_to_filefrom torch.utils.model_zoo import urlparsefrom torch.utils.model_zoo import HASH_REGEX
原创
发布博客 2020.12.01 ·
1395 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

根据轮廓坐标得到图形质心

a = seg['segmentation'] b = np.array(a) c = b.reshape(-1,1,2) mu=cv2.moments(c) center_of_mass=[round(mu['m10'] / mu['m00']), round(mu['m01'] / mu['m00'])]
原创
发布博客 2020.11.28 ·
764 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

直接对整张图像旋转(无黑边)

drt = cv2.transpose(img_crop) img_crop = cv2.flip(drt, 1)
原创
发布博客 2020.10.27 ·
707 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

error: (-215) p.checkVector(2, 4) >= 0 in function cv::polylines

错误:OpenCV Error: Assertion failed (p.checkVector(2, 4) >= 0) in cv::polylines, fileC:\projects\opencv-python\opencv\modules\imgproc\src\drawing.cpp, line 2432Traceback (most recent call last): File "deal_seg_test2.py", line 36, in <module>..
转载
发布博客 2020.10.27 ·
1362 阅读 ·
1 点赞 ·
0 评论 ·
3 收藏

RuntimeError: _th_or not supported on CUDAType for Bool / IndexError: list index out of range(mask)

记一次配使用maskrcnn-benchmark的惨痛经历,因为要用到分割,所以就使用自己的数据集转成coco格式后用maskrcnn-benchmark来训练得到目标的轮廓,但是在运行的过程中报了两个错误,很致命。首先配置好环境,这里我就犯了一个错误,把pytorch版本装的太高了,我用的是pytorch==1.4.0,结果训练的时候报错selected_polygons.append(self.polygons[i])IndexError: list index out of range我查了
原创
发布博客 2020.10.26 ·
1546 阅读 ·
1 点赞 ·
3 评论 ·
4 收藏

empty range for randrange() (0,-15, -15)

报错如下:raise ValueError, "empty range for randrange() (%d,%d, %d)" % (istart, istop, width)empty range for randrange() (0,-15, -15)一开始按照网络上的说法修改wokers数量甚至取消,但是没用; 后来发现自己的数据大小是112,但是transfrom的时候随机裁剪尺寸为128,难怪有问题,更改数据增强时的裁剪尺寸即可。...
转载
发布博客 2020.10.22 ·
2174 阅读 ·
1 点赞 ·
0 评论 ·
2 收藏

使用COCO API评估模型在COCO数据集上的结果(需要的检测结果格式)

https://zhuanlan.zhihu.com/p/134229574
原创
发布博客 2020.10.18 ·
1302 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

pythonProject1.zip

发布资源 2020.10.01 ·
zip

计算前景区域比例

def compute(): with open('instances_train2019.json') as fid: data = json.load(fid) images = {} for x in data['images']: images[x['id']] = x annotations = {} for x in data['annotations']: annotations[images[x['i.
原创
发布博客 2020.09.26 ·
283 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

召回率计算

def recall_k(self, k=1): m = len(self.sim_mat) #self.sim_mat是测试集中所有图像两两结合 ##m为测试集中所有图像个数 match_counter = 0 # self.sim_mat[i] 就是第i张图和所有图像的结合结果,self.sim_mat[i][1],就是第i张和第1张 for i in range(m): pos_sim =...
原创
发布博客 2020.09.24 ·
1484 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

使用余弦相似度对图像进行分类

# -*- coding: utf-8 -*-import cv2import numpy as npimport osprint(u'正在处理中')w_fg = 20h_fg = 15picflag = 3def readpic(fn): # 返回图像特征码 fnimg = cv2.imread(fn) img = cv2.resize(fnimg,(800,600)) w = img.shape[1] h = img.shape[0] w_interval =int( .
原创
发布博客 2020.09.21 ·
1373 阅读 ·
1 点赞 ·
2 评论 ·
9 收藏

python 如何使用布尔类型作为索引

只有array格式的数据才有资格使用布尔类型作为索引。import numpy as npx = [2, 10, 2, 1, 5, 11, 9, 1, 1, 9, 1, 3, 1, 2]y = [2, 9, 2, 1, 8, 11, 9, 1, 1, 7, 1, 3, 5, 3]x = np.array(x)y = np.array(y)print(x[x==y])print(x[x!=y])[ 2 2 1 11 9 1 1 1 3][10 5 9 1 .
原创
发布博客 2020.09.20 ·
1731 阅读 ·
1 点赞 ·
0 评论 ·
1 收藏

评测标准召回率Recall@K的理解与解析

如图:定义总共红色边框为all_negative=5 (负样本)总共绿色边框为all_positive=5(正样本)top-k推荐:从最后的按得分排序的推荐列表中返回前k个结果。Precision准确率是检索出相关结果数与检索出的结果总数的比率,衡量的是检索系统的查准率Recall@K召回率是指前topK结果中检索出的相关结果数和库中所有的相关结果数的比率,衡量的是检索系统的查全率。top1中:召回率 Recall@1=正样本数/all_positive=1/5=0.2准确率 Pr..
转载
发布博客 2020.09.18 ·
6625 阅读 ·
5 点赞 ·
4 评论 ·
14 收藏

配置maskrcnn-benchmark出现ImportError: cannot import name ‘_download_url_to_file‘

解决办法修改 maskrcnn_benchmark/utils/model_zool.py文件里的导入包,改为如下代码:from torch.hub import _download_url_to_filefrom torch.hub import urlparsefrom torch.hub import HASH_REGEX
原创
发布博客 2020.09.14 ·
3486 阅读 ·
1 点赞 ·
1 评论 ·
1 收藏

AttributeError: module ‘torch.jit‘ has no attribute ‘_script_if_tracing‘

更换torchversion版本到0.4.0输入如下命令pip uninstall torchvisionpip install torchvision==0.4.0 -fhttps://download.pytorch.org/whl/torch_stable.html
原创
发布博客 2020.09.13 ·
10939 阅读 ·
6 点赞 ·
3 评论 ·
6 收藏
加载更多