python
轻吟木兰辞
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
RuntimeError: threads can only be started once 解决方法
被threads can only be started once这个问题搞伤了,查了很多资料,大概的思路就是重新创建一个对象,没毛病因为我是需要通过MQ接收消息来开启关闭线程,用户什么时候点击发过来消息是未知的,所以用定时器的方式是不行的搞定这个问题的方式如下:①假如我有个线程:def func_1(): while True: print("解决线程问题") time.sleep(2)②每次接收到消息的时候创建一个线程i = 1a="thread"原创 2022-03-30 14:47:51 · 7894 阅读 · 4 评论 -
CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please
在windows上编译openpose,generate的时候出现下面的问题CMake Error: The following variables are used in this project, but they are set to NOTFOUND.Please set them or make sure they are set and tested correctly in the CMake files:Caffe_LIB_DEBUG linked by target "ope原创 2022-03-12 14:28:58 · 2935 阅读 · 1 评论 -
pytorch-retinanet出错 ValueError: not enough values to unpack (expected 3, got 0)
pytorch-retinanet报错ValueError: not enough values to unpack (expected 3, got 0)读取的文件夹是中文名称,改掉就好了要改掉用中文名称的坏习惯了。。。。。。。。。。。。。。。。。。。。。。原创 2021-12-13 10:20:25 · 1411 阅读 · 0 评论 -
yolov5训练时出现“assertionerror:no labels found in */*/*/train2017.cache can not train without labels”
yolov5训练时出现“assertionerror:no labels found in //*/train2017.cache can not train without labels”傻了,label中的标签文件是xml格式,yolo v5要转成.txt格式voc2txt.pyimport xml.etree.ElementTree as ETimport pickleimport osfrom os import listdir, getcwdfrom os.path import j原创 2021-08-24 13:58:30 · 7626 阅读 · 0 评论 -
python2、python3更改
python2、python3更改先看一下系统有哪些版本:update-alternatives --list python更改版本:sudo update-alternatives --config python选择哪个版本就输入对应的数字再回车就好了原创 2021-03-31 14:21:52 · 151 阅读 · 0 评论 -
src\loadsave.cpp:738: error: (-215:Assertion failed) !_img.empty() in function ‘cv::imwrite‘
cv2.error: OpenCV(4.3.0) C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:738: error: (-215:Assertion failed) !_img.empty() in function ‘cv::imwrite’yolo检测到目标后,需要将目标剪切出来进行保存的时候报错:cv2.error: OpenCV(4.3.0) C:\projects\opencv-python\openc原创 2021-03-01 17:50:43 · 2962 阅读 · 0 评论 -
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org‘,
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out. 解决方法原因:网络问题解决方法:pip --default-timeout=1000 install -U 需要安装的库原创 2021-01-22 14:41:36 · 420 阅读 · 0 评论 -
python——同时显示多张图像
import cv2from matplotlib import pyplot as plt#读取文件a=cv2.imread('your/filename.jpg')b=cv2.imread('your/filename.jpg')c=cv2.imread('your/filename.jpg')d=cv2.imread('your/filename.jpg')#title命名titles = ['a','b','c','d']images = [a,b,c,d]for i in原创 2020-12-29 09:34:47 · 5865 阅读 · 0 评论
分享