上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 28 下一页
摘要: 在用python写lmdb文件时出现了报错信息"Won't implicitly convert Unicode to bytes; use .encode() 原报错代码: def writeCache(env, cache): with env.be... 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(84) 评论(0) 推荐(0)
摘要: 写入的数据超出默认值,解决方法: env = lmdb.open('image_lmdb', map_size=int(1e9))#max_size为1e9kb,大小可调整 扫码关注 实用AI客栈 获取最新AI资讯与实战案例 小编微信号 : langu86 ... 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(603) 评论(0) 推荐(0)
摘要: import cv2import numpy as npimg=cv2.imread('test.jpg')pts = np.array([[10,5],[20,30],[70,20],[50,10]], np.int32)pts = pts.reshape(... 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(31) 评论(0) 推荐(0)
摘要: 虽然Python简洁方便、深得人心,但用Python去实现(pip install无法解决时)某种处理大数据的算法,往往令人头疼。Python实现的代码往往是低效的,这时候需要C/C++来拯救。 本文介绍一种在Python中使用C/C++的方法。 首先,您需要... 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(129) 评论(0) 推荐(0)
摘要: 在编译cocoapi时出现了 pycocotools/_mask.c:547:21: fatal error: maskApi.h: No such file or directory 的错误提示,原因在于新的环境里面没有安装cython。 解决办法: sud... 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(261) 评论(0) 推荐(0)
摘要: 在编译cocoAPI时,出现"module 'numpy' has no attribute 'get_include'" 解决方法:卸载旧版本的numpy,安装最新的numpy sudo pip3 uninstall numpy sudo pip3 inst... 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(192) 评论(0) 推荐(0)
摘要: 1.有好的IDE,建立符号表 2.能够调试 3.阅读文档和API 4.看commit和前期规模不大时的文档 5.根据某一个需求,一直调试下去 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(33) 评论(0) 推荐(0)
摘要: 1-2082 深度学习AI美颜系列----AI美甲算法揭秘(WANNA NAILS) https://blog.csdn.net/trent1985/article/details/81979255 2-3118 花卉大识别之崭露头角 https://blog... 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(6) 评论(0) 推荐(0)
摘要: 这个问题是py2和py3兼容性的问题 在py2中,判断key是否属于dict的写法可以是: d={'name':'abc','location':'BeiJing'}if d.has_key('location'): print(d['location'])... 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(93) 评论(0) 推荐(0)
摘要: 原文:TypeError: ‘_IncompatibleKeys‘ object is not callable 点击直达 阅读全文
posted @ 2022-11-13 22:35 dlhl 阅读(131) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 28 下一页