Python
李伯爵的指间沙
这个作者很懒,什么都没留下…
展开
-
python graphviz可视化
python graphviz可视化原创 2022-07-10 16:25:53 · 1186 阅读 · 1 评论 -
解决分割网络的结果一片黑的问题
解决分割网络的结果一片黑的问题原创 2022-04-30 14:49:54 · 1321 阅读 · 1 评论 -
cudart64_100.dll;cublas64_100.dll等没有找到的解决办法
cudart64_100.dll;cublas64_100.dll等没有找到的解决办法原创 2022-04-29 09:43:07 · 1231 阅读 · 0 评论 -
ValueError: some of the strides of a given numpy array are negative. This is currently not supported
ValueError: some of the strides of a given numpy array are negative. This is currently not supported原创 2022-04-23 10:14:31 · 890 阅读 · 0 评论 -
VOC数据集-修改标签
VOC数据集-修改标签原创 2022-04-15 10:00:48 · 641 阅读 · 0 评论 -
Pytorch错误:Torch not compiled with CUDA enabled
Pytorch错误:Torch not compiled with CUDA enabled原创 2022-04-11 20:35:01 · 427 阅读 · 0 评论 -
注意力机制代码实现
注意力机制原创 2022-04-09 10:58:11 · 1740 阅读 · 0 评论 -
自适应激活函数的实验结果记录
自适应激活函数的实验结果记录原创 2022-04-07 15:10:12 · 290 阅读 · 0 评论 -
目标检测中常用的激活函数代码实现-pytorch
目标检测中常用的激活函数代码实现-pytorch1.2.0原创 2022-04-04 18:12:11 · 2112 阅读 · 1 评论 -
从自己建立的VOC数据集提取需要的类
VOC数据集提取自己需要的类原创 2022-03-26 11:41:44 · 486 阅读 · 1 评论 -
ImportError: TensorBoard logging requires TensorBoard with Python summary writer installed. This sho
ImportError: TensorBoard logging requires TensorBoard with Python summary writer installed.原创 2022-03-17 18:25:21 · 1790 阅读 · 0 评论 -
OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
训练出错:OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.解决方案:import osos.environ["KMP_DUPLICATE_LIB_OK"]="TRUE"原创 2022-03-14 15:49:20 · 2167 阅读 · 2 评论 -
RuntimeError: (PreconditionNotMet) The third-party dynamic library (cublas64_102.dll;cublas64_10.dll
RuntimeError: (PreconditionNotMet) The third-party dynamic library (cublas64_102.dll;cublas64_10.dll原创 2022-03-14 11:08:15 · 3286 阅读 · 0 评论 -
小目标检测的数据增强------Stitcher和Mosaic效果对比
小目标检测的数据增强------Stitcher和Mosaic效果对比原创 2021-12-27 15:09:56 · 2289 阅读 · 4 评论 -
解决 RuntimeError: DataLoader worker (pid(s) 28632) exited unexpectedly 问题
将num_workers 修改为0原创 2021-12-09 09:32:16 · 2715 阅读 · 2 评论 -
2021-水下光学目标检测智能算法赛
比赛网址链接:https://www.heywhale.com/home/competition/605ab78821e3f6003b56a7d8 水下目标检测资源:https://github.com/wangdongdut/Underwater-Object-Detection首先看看原始数据集:1、直接拿原始数据训练,YOLOV4 线上:经过图像增强的视觉效果:采用cascade_rcnn_r50_fpn训练图像增强后的数据集,并删除数据集中水草“waterweeds”这一类.原创 2021-04-30 11:08:37 · 4403 阅读 · 21 评论 -
解决一个维度转换得问题:ValueError: Error when checking input: expected input_1 to have 4 dimensions, but got ar
ValueError: Error when checking input: expected input_1 to have 4 dimensions, but got array with shape (1, 512, 512)解决方案:test_img = cv2.cvtColor(test_img, cv2.COLOR_GRAY2BGR)出现问题原因:彩色图和灰度图之间得通道数问题...原创 2020-12-02 14:24:38 · 8976 阅读 · 1 评论 -
Tensorflow:UnknownError (see above for traceback): Failed to get convolution algorithm.
UnknownError (see above for traceback): Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.解决方案: #---------------------------------------------.原创 2020-11-03 10:13:08 · 357 阅读 · 0 评论 -
Tensorboard 1.13.1 时报错:OSError:[Errno 22] Invalid argument
路径:E:\Anaconda3\Lib\site-packages\tensorboardrun:tensorboard --logdir=dirpath --host=127.0.0.1原创 2020-10-14 19:24:15 · 153 阅读 · 0 评论 -
keras导入报错:ValueError: Error when checking input: expected conv2d_1_input to have 4 dimensions,
您定义的输入形状是单个样本的形状。而对于单个图像32*32的RGB图像,您应该返回一个形状(1,32,32,3)。也就是说输入应该是4维的,长,宽,通道三个维度外加一个图片数量维度,一张照片也应该是4维。...原创 2020-10-14 19:24:28 · 2534 阅读 · 0 评论 -
解决问题:RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available()
问题:RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location='cpu' to map your storages to the CPU.解决方案:model.load_state_原创 2020-10-10 12:04:19 · 2740 阅读 · 0 评论 -
基于Mask-RCNN的版面分析
数据集:PubLayNet训练:code:import osimport sysimport randomimport torchimport torchvisionfrom torchvision.models.detection.faster_rcnn import FastRCNNPredictorfrom torchvision.models.detection.mask_rcnn import MaskRCNNPredictorfrom torchvision.原创 2020-09-02 16:28:22 · 1328 阅读 · 3 评论 -
解决问题:AssertionError: Torch not compiled with CUDA enabled
error:Traceback (most recent call last): File "C:/Users/Administrator/Desktop/PubLayNet-maskrcnn/PubLayNet/maskrcnn/infer.py", line 117, in <module> main() File "C:/Users/Administrator/Desktop/PubLayNet-maskrcnn/PubLayNet/maskrcnn/infer.py原创 2020-09-02 16:16:09 · 30447 阅读 · 38 评论 -
labelImg 的安装
pip install labelImg -i https://pypi.tuna.tsinghua.edu.cn/simpleCMD 输入:labelImg原创 2020-09-02 16:06:13 · 242 阅读 · 0 评论 -
AI 版面分析
文档版面分析:输出文档图片中图、表、标题、文本的位置和文本信息Document layout analysis: Output the position and text information of the graph, table, title, text in the document picture在传统的文档OCR识别技术中,算法会先分析图片中有几个布局区域,然后分析出水平横向文字,竖向垂直文字,表格和配图照片等区域,然后在针对各自的特点进行切分字符,保留区域类型,进行OCR识别调整;所以可原创 2020-09-02 15:25:36 · 1157 阅读 · 0 评论 -
票据图片复杂表格框识别
配置github开源的代码,实现了表格框线的识别,需要更近一步的优化处理。The configuration of github open source code, the realization of table box line recognition, the need for further optimization.原创 2020-07-24 19:45:36 · 259 阅读 · 0 评论 -
cv Image enhancement
通过USB摄像头拍摄的图像非常非常非常模糊,想通过图像增强的方式变得清晰一点,效果不怎么好,看实验结果:The image taken by the USB camera is very, very fuzzy. I want to make it clearer through image enhancement, but the effect is not very good. See the experimental results:Code:import cv2 as cv#全局.原创 2020-07-18 22:38:29 · 169 阅读 · 0 评论 -
Python VTK(Notes)
(1)env:pip install vtk(2)test:import vtk# 1. 读取数据cube = vtk.vtkCubeSource()cube.Update()#记得加这句不加看不到模型# 2. 建图(将点拼接成立方体)cube_mapper = vtk.vtkPolyDataMapper()cube_mapper.SetInputData(cube.GetOutput())# 3. 根据2创建执行单元cube_actor = vtk.vtkActor()cube原创 2020-07-15 21:07:13 · 294 阅读 · 1 评论 -
Python Binocular camera image acquisition
实现了双目摄像头的实时视频显示,网上有很多相关的资料,但是不一定是可以用的,我现在使用的这个方法是可以用的。Realize the real-time video display of binocular camera, there are a lot of relevant information on the Internet, but it is not necessarily available, I am using this method can be used.看看效果:result原创 2020-07-08 18:28:10 · 355 阅读 · 0 评论 -
LAN video transmission
对于局域网通信无非就是传输视频或者进行信息交互,今天介绍一下局域网视频传输的构建。For LAN communication is nothing more than transmission of video or information exchange, today to introduce the construction of LAN video transmission.首先,看看我的程序目录: First, my program directory: config.ini.原创 2020-07-04 21:34:15 · 153 阅读 · 0 评论 -
Python draws a thermal diagram
绘制采集温度的温度热力场。参考博客:https://blog.csdn.net/liyazhou0215/article/details/72491993/ Draw the thermal field of temperature for the collection temperature. code:import matplotlib.pyplot as pltimport matplotlib.cm as cmfrom matplotlib.colors import LogNo原创 2020-07-03 22:09:36 · 1025 阅读 · 0 评论 -
Python Generate tables in PDF(2)
接着上一篇博客继续实现PDF中表格的绘制:https://blog.csdn.net/m0_37690102/article/details/107051058Then on a blog to continue to implement drawing in PDF form:https://blog.csdn.net/m0_37690102/article/details/107051058直接上代码:在上一篇博客中,您已经能够简单的能在PDF中生成相应的表格了,但是还是存在一点点小问题,对于表.原创 2020-07-01 20:15:30 · 177 阅读 · 0 评论 -
Python Generate tables in PDF
今天,使用python生成PDF文档,然后在生成的PDF中创建自定义表格。Today, you generate PDF documents in Python, and then create custom tables in the generated PDF.(1)使用python生成pdf文档需要的最基本的包是pdfgen。它属于reportlab模块,而reportlab模块并没有默认集成到python的安装包中,所以需要安装该模块。(2)pdfgen提供了一个绘画操作的对象canvas原创 2020-06-30 21:45:57 · 411 阅读 · 0 评论 -
Python Install PyTorch in Win10
Pytorch在win系统下比较难安装,直接使用pip 安装不能正常的安装,您可以参考我的方式。Pytorch is difficult to install in win system. Direct PIP installation cannot be normally installed. You can refer to my method.pip3 install torch==1.2.0+cpu torchvision==0.4.0+cpu -f https://download.p.原创 2020-06-29 18:14:28 · 143 阅读 · 0 评论 -
Python MASK and Pedestrian safety distance detection and bioassay
参考这一篇博客:https://blog.csdn.net/m0_37690102/article/details/106975159,今天,接着实现上面一篇博客没有实现的活体检测功能,今天,实现这部分功能,界面设计等功能就不在阐述了,主要实现活体检测的功能,使用dlib的库。Today, reference this blog: https://blog.csdn.net/m0_37690102/article/details/106975159, then to realize the above原创 2020-06-28 19:49:48 · 221 阅读 · 0 评论 -
Python tensorflow model into PB file
使用python打印model模型及pb模型的输入输出节点。参考下面的代码:The Input Output nodes of the Model model and THE PB model are printed in Python.Refer to the following code:from tensorflow.python import pywrap_tensorflowimport oscheckpoint_path=os.path.join('checkpoints/crnn原创 2020-06-27 12:46:16 · 185 阅读 · 0 评论 -
Python MASK and Pedestrian safety distance detection
首先,设计UI界面,如图所示: First, design the UI interface, as shown in the figure 使用语句:pyuic5 OboardCamDisp.ui -o OboardCamDisp.py将UI文件编译为PY文件Use: Pyuic5 oboardcamdisp.uI-o oboardcamdisp.py to compile the UI file into py file接下来就是美化界面,参考下面的代码: The next s原创 2020-06-26 21:57:29 · 809 阅读 · 0 评论 -
python plot-Notes
参考博客:https://www.cnblogs.com/jfdwd/p/11425487.htmlimport :import matplotlib.pyplot as plttest code:plt.figure(figsize=(10, 10))plt.plot(x, y, marker='o')ADD text:txt = ['A','V1','V2','V3','V4','V5','V6','V7','V8','V9','V10','V11','V12']f.原创 2020-06-25 20:51:22 · 144 阅读 · 0 评论 -
python printtime
通过Python实现指定函数的时间测试,比较有用的一个代码,您可以直接复制使用。Through The Python implementation of the specified function time test, a more useful code, you can directly copy the use.import time__all__ = ['print_time']def print_time(f): """Decorator of viewing func原创 2020-06-24 22:45:13 · 1231 阅读 · 0 评论 -
Python Linear processing
虚线处理成直线,这个代码是很有效的。 Dashed lines are processed into straight lines, and this code is very efficient. INPUT:OUTPUT:代码暂时不公开,请见谅 The code is temporarily closed, please forgive me I hope I can help you,If you have any questions, pleasecomm...原创 2020-06-22 21:45:03 · 163 阅读 · 0 评论