- 博客(35)
- 资源 (7)
- 收藏
- 关注
原创 ERROR: CMake must be installed to build dlib
【代码】ERROR: CMake must be installed to build dlib。
2024-04-23 09:46:30
1041
1
原创 Rebuild the library with Windows, GTK+ 2.x or Cocoa support
cv2.error: OpenCV(4.7.0) /io/opencv/modules/highgui/src/window.cpp:1255: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and p
2023-12-12 16:47:33
384
原创 ImportError: cannot import name ‘soft_relu‘ from ‘paddle.fluid.layers.nn‘
ImportError: cannot import name 'soft_relu' from 'paddle.fluid.layers.nn'
2023-12-12 15:27:04
1068
原创 face_alignment.FaceAlignment AttributeError: _2D
self.detector = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D, device=device)File "py73base/lib/python3.7/enum.py", line 349, in __getattr__raise AttributeError(name) from NoneAttributeError: _2D
2023-11-21 09:57:17
691
原创 TypeError: mediapipe.python._framework_bindings.image.Image(image_format: mediapipe
TypeError: __init__(): incompatible constructor arguments. The following argument types are supported: 1. mediapipe.python._framework_bindings.image.Image(image_format: mediapipe::ImageFormat_Format, data: numpy.ndarray[numpy.uint8]) 2. mediapipe.p
2023-11-10 14:07:07
365
原创 0 paddle::pybind::ThrowExceptionToPython(std::__exception_ptr::exception_ptr)
0 paddle::pybind::ThrowExceptionToPython(std::__exception_ptr::exception_ptr)
2023-05-26 09:52:15
903
3
原创 华北工控EMB3581 瑞芯微Rockchip RK3568,python部署rknn_toolkit_lite2
华北工控EMB3581 瑞芯微Rockchip RK3568,python部署rknn_toolkit_lite2 onnx.onnx_cpp2py_export.checker.ValidationError: Your model ir_version is higher than the checker's.
2022-08-19 11:51:29
2164
5
原创 Paddle-Lite/lite/core/program.cc:661 Run] Check failed: op_->CheckShape()【已解决】
Run] Check failed: op_->CheckShape(): CheckShape] Check failed
2022-08-05 17:10:12
2020
原创 python选股策略,金叉,死叉,绿色云
取4个列表值,hongda,lvxiao,hongxiao,lvda。有两条线,a绿线MA20,b红线MA60。当线在a>b金叉到a< b死叉(绿色云)区间时,取a的最大值添加到(lvda)里,b的最小值添加到( hongxiao)里。当线在a< b死叉到a当a[-1]>lvda[-1] and b[-1]>hongda[-1]:print(有个提醒)当a[-1]print(有个提醒)...
2022-08-05 11:26:23
1766
1
原创 linux 编译安装报错:Relocations in generic ELF (EM: 62)【已解决】
collect2: error: ld returned 1 exit status/usr/bin/ld: Programs/_testembed.o: Relocations in generic ELF (EM: 62)make编译报错
2022-08-03 14:54:08
2925
原创 合并文件夹下多个PDF,PDF转图片,图片转PDF,JPG转pdf,pdf转JPG
合并文件夹下多个PDF,PDF转图片,图片转PDF,JPG转pdf,pdf转JPG
2022-07-28 10:23:18
1489
原创 paddlelite编译python版: FIND_PACKAGE called with invalid argument或者fatal: no tag exactly matches 。【已解决】
paddlelite编译python版: FIND_PACKAGE called with invalid argument或者fatal: no tag exactly matches 。。。
2022-07-28 10:09:13
2346
原创 not trusted,doesn‘t have a known issuer.openssl (>= 1.1.1) but it is not going to be installed,已解决
is not trusted.doesn‘t have a known issuer.openssl (>= 1.1.1) but it is not going to be installed。
2022-07-27 18:10:42
1519
原创 Cannot decompress .tar.xz file, getting “xz: Cannot exec: No such file or directory“ from tar【已解决】
tar (child): xz: Cannot exec: No such file or directory
2022-07-26 12:02:27
1658
原创 包含opencv打包exe,关于pyinstaller打包生成的exe文件闪退【已解决】
pyinstaller打包生成的exe文件闪退,ImportError: ERROR: recursion is detected during loading of "cv2" binary extensions. Check OpenCV installation. [15316]
2022-07-22 17:45:00
1805
原创 ImportError: cannot import name ‘get_installed_distributions‘ from ‘pip._internal.utils.misc‘【已解决】
在aistudio中,使用默认的paddlehub模型时,报错。
2022-07-21 10:59:11
4005
原创 python3.7编译paddle-lite: Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS【已解决
python3.7编译paddle-lite: Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
2022-07-04 18:24:52
2500
原创 ubuntu16.04,MySql8:error while loading shared libraries: libaio.so.1: cannot open shared object file
报错:/usr/local/mysql/bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
2022-06-10 15:44:16
2266
原创 QIODevice::write (QSerialPort): device not open
在使用mu-editor开发MicroPython程序时,点击运行按钮终端打印输出如下错误信息:错误信息: QIODevice::write (QSerialPort): device not open如下图解决方法(开启权限):在终端中输入如下命令:sudo chmod 777 /dev/ttyUSB0,解决方法:错误信息如下:ERROR: Unexpected BUS error encountered in DataLoader worker. This might be caused by insufficient shared memory (shm), p
2022-04-22 15:21:56
3734
2
原创 Mask to Polygons mask转Polygons并保存为labelMe json文件
Mask to Polygons mask转Polygons并保存为labelMe json文件
2022-04-15 17:20:56
5831
原创 Mask to Polygons mask转Polygons并展示
import base64import copyimport globimport jsonimport sysimport timeimport cv2 as cvfrom paddle.vision import transformsimport osimport numpy as npfrom PIL import Imagefrom PIL import ImageDrawfrom PIL import ImageFontlabel_dict = { '十分大
2022-04-15 17:14:00
3162
原创 numpy中np.bincount报错{ValueError}object too deep for desired array
{ValueError}object too deep for desired array
2022-04-11 11:18:03
5661
2
原创 Segmentation fault` is detected by the operating system
原因为模型需要输入多个参数,而输入仅有一个参数,或者输入的参数shape不一致def run(predictor, input_arg):# 准备输入input_names = predictor.get_input_names()for i, name in enumerate(input_names):input_tensor = predictor.get_input_handle(name)# input_tensor.reshape(img[i].shape)input_tensor
2021-12-27 15:58:10
4176
原创 通过KerasModel创建模型
本文介绍通过tf.keras.Model(inputs=input_x, outputs=pred_y),关系模型的输入、输出,建立任意模型结构的深度学习模型。一、模型结构信息流图二、导入依赖包# coding: utf-8import tensorflow as tffrom tensorflow.keras import layersimport numpy as npimport os三、导入或者生成模型输入数据#训练数据导入trin_in = np.random.random
2020-08-08 21:35:09
2651
原创 关于前端js后-台java检查网页链接是否可用
在开发网页的时候,当我们需要从其他链接处获取信息时,我们需要先判断所使用的链接是否可用,本文整理了,前端js验证链接是否可用和后台java验证链接是否可用的方法。1、前端JS验证网页链接是否可用,别改变ajax的配置参数,直接用function urlState(url){ $.ajax({ type:'get', url:url, initDataType:'jsonp', timeout:'3000', proc
2020-08-08 20:41:09
2089
原创 TensorFlow2-创建Sequential模型
一、引入相关包# coding: utf-8import tensorflow as tffrom tensorflow.keras import layersimport numpy as npimport os二、设置网络维度#设置网络层维度M = 50 #输入数据维度N = 32 #隐藏层维度L = 10 #输出分类数量三、声明Sequential模型# Sequential模型堆叠# Y = σ(Wx+B) σ=relumodel = tf.keras.Sequen.
2020-07-27 22:20:48
2687
原创 关于tomcat服务中的中文乱码
本文记录自己在解决tomcat运行 WEB时产生乱码的解决情况,一般情况在conf/service.xml和在bin/catalina.bat下修改,这两个方法很多文章可以参考。我的情况是在eclipse中设置了workSpace编码为UTF-8,开发的时候没有乱码,直接通过tomcat启动就会有乱码,这就是JVM虚拟机运行环境编码设置问题,属于后台编码bug,不同的启动方式通过不同的设置方法来规范JVM编码。本文包括在service.xml、catalina.bat和service.bat中修改UTF
2020-07-25 15:41:59
2878
四张图片纵横拼接.zip
2023-11-13
图片纵向拼接,输入2张以上图片,输出一张拼接好的图片
2023-11-13
python多张图片横向拼接,图片横向拼接.zip
2023-11-13
python 旋转图片,并生成mask
2023-11-10
人工智能训练数据增强Mosaic Mixup
2022-07-14
python自动创建字符验证码,python创建验证码
2022-07-14
PythonPIL详解
2022-07-14
通用爬虫,基本爬虫,爬虫最小系统
2022-07-13
java反编译工具jd-gui-1.6.6.全家桶
2022-04-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人