![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
文章平均质量分 50
xizhehaitang
这个作者很懒,什么都没留下…
展开
-
pyinstaller打包exe import numpy等问题解决的spec
# -*- mode: python ; coding: utf-8 -*-block_cipher = Nonea = Analysis(['labelImg.py'], pathex=["C:\\Users\\***\\AppData\\Roaming\\Python\\Python37\\site-packages", "C:\\Users\\***\\AppData\\Local\\Programs\\Python\\Python3.原创 2022-01-25 14:12:42 · 3037 阅读 · 0 评论 -
NI Teststand 2014 64bit 调用python脚本指南
1.软件安装2.环境配置3.模块检查4.调用步骤1、teststand 2014没有自带的python adapter,可以通过安装ni官网提供的插件解决 安装完成teststand2014后双击安装如下插件即可.下载TestStand Python步骤类型 - NI2、配置python环境,teststand支持的比较友好的是从python官网下载的解释器。只支持cpython格式的解释器。点击如下连接下载3.6 3.7到3.10都可以,双击安装即可。安装完成后配置用户环境变量,我原创 2022-01-12 09:40:46 · 1384 阅读 · 0 评论 -
opencv python imshow 报错 window.cpp
pip uninstall opencv-python-headless 这个包不包含GUI部分的实现。原创 2021-12-15 16:29:01 · 2760 阅读 · 0 评论 -
deep-hight-relolution-net.pytorch训练自己的关键点检测数据步骤
数据集准备 标注转为coco格式 部署源码(https://github.com/HuangJunJie2017/UDP-Pose/tree/master/deep-high-resolution-net.pytorchttps://github.com/HuangJunJie2017/UDP-Pose/tree/master/deep-high-resolution-net.pytorch 修改代码适配自己的数据集 修改yaml文件 开始训练1、labelme进行数据标注2、.原创 2021-11-18 10:18:56 · 3051 阅读 · 13 评论 -
Deep learning 数据增强代码
import numpy as npfrom PIL import Imagefrom PIL import ImageDrawimport cv2 as cvimport os.pathimport shutilimport mathMAX_VALUE = 100### 图片亮度饱和度调整 ===def update(input_img_path, output_img_path, label_path, number, lightness, saturation): # 加载.原创 2021-08-06 10:53:21 · 157 阅读 · 0 评论 -
kitti分割数据格式转换脚本和bag包解析
def pcd_to_label(pcd_src_path, dst): with open(pcd_src_path, 'r') as fr: lines = fr.readlines() res = [] for point in lines[10:]: point = point.strip().split() point = np.array(point) label = int(point[3]) .原创 2020-08-18 10:15:32 · 636 阅读 · 0 评论 -
caffe与libprotobuf的那些事
安装环境 ubuntu16.04操作系统由于安装了各种 python版本 以及各种anconda版本,protobuf 也不只一种。先欣赏下我服务器的python版本 cuicui@ubuntu:~/python$ whereis pythonpython: /usr/bin/python3.5 /usr/bin/python2.7-config /usr/bin/python /u...原创 2019-01-10 15:30:39 · 652 阅读 · 0 评论 -
python 异常处理
平时写python3程序很少用异常处理,今天遇到一个问题就是一个多维数组取名为feats,type为ndarry,想要判断多维数组是否为空,尝试了几种方法如下:if not feats: ...... 不可以当数组有值时会提示使用feats.any() or feats.all() if not feats.any() ......不可以,当数组为空时会提示不能对一维数据使用any()解决...原创 2019-01-07 17:27:44 · 127 阅读 · 0 评论 -
tensorflow model deeplabv3 + mobilenetv2训练自标注数据流程整理
一、数据标注图片(tmp.jpg),标注结果文件(tmp.xml)如下:label 类别如下(10类):road;(128, 64, 128, 80)car;(0, 0, 142, 80)bus;(0, 60, 100, 80)truck;(0, 0, 70, 80)bicycle;(255, 0, 0, 80)motorcycle;(0, 0, 230, 80)per...原创 2019-07-04 13:57:50 · 3573 阅读 · 1 评论