自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Hello Word!

从此好好码代码。。【专注于计算机视觉和深度学习】

  • 博客(587)
  • 收藏
  • 关注

翻译 linux ubuntu pip search报错 Fault: <Fault -32500: “RuntimeError: PyPI‘s XMLRPC API is currently disab

pip search 无法正常工作,报错如下完整报错:$ pip search absl-py --proxy http://10.xxx.xxx.xxx:8080 --trusted-host=pypi.python.org/usr/share/python-wheels/urllib3-1.22-py2.py3-none-any.whl/urllib3/connectionpool.py:860: InsecureRequestWarning: Unverified HTTPS request i

2021-02-23 18:20:02 104

原创 mxnet stream_gpu-inl.h:62: Check failed: e == cudaSuccess: CUDA: unspecified launch failure Stack tr

Traceback (most recent call last): File "train_parall_fc7.py", line 409, in <module> main() File "train_parall_fc7.py", line 406, in main train_net(args) File "train_parall_fc7.py", line 401, in train_net epoch_end_callback = epoch_

2021-02-18 23:10:20 12 1

翻译 python多点外接多边形(Delaunay三角网),凸多边形、非凸多边形

计算Delaunay三角网,通过调整阈值,得到不同的外接多边形(凸、非凸)这里的凸的意思是外接凸多边形,非凸指的是按照最外面的点相互连接得到的多边形。如这里白色区域为非凸,外面绿色连线围成的区域为凸。以下代码生成的为非凸。points = [(319, 320), (125, 198), (250, 366), (129, 182), (262, 375), (235, 344), (248, 369), (367, 261), (196, 307), (163, 286)]pts = np.a

2021-02-08 21:45:57 50

翻译 python opencv cv2点集外接凸多边形

凸包问题import numpy as npfrom scipy.spatial import ConvexHull, convex_hull_plot_2dpoints = np.random.rand(30, 2) # 30 random points in 2-Dhull = ConvexHull(points)import matplotlib.pyplot as pltplt.plot(points[:,0], points[:,1], 'o')for simplex i

2021-02-08 18:06:54 35

原创 mxnet构建的图和生成的图不一致,mxnet可视化模型结构

坑爹的同事的代码逻辑混乱mxnet在最后生成计算图的时候,会自动修剪掉那些最后没有用到其输出的分支,即使你之前已经构建过了。所以你会发现一个神奇的事情:你明明构建了那部分计算图最后可视化和get_symbol的时候却没有!!!!...

2021-02-05 00:39:58 60

原创 网络结构设计

resnet中使用1x1卷积代表权重。

2021-02-04 15:15:52 24

原创 import mxnet error: ImportError: cannot import name _LIB,ImportError: cannot import name Union

报错多种多样,在不同路径下报错不同:其中一种报错:ImportError: cannot import name _LIB$ pythonPython 2.7.18 (default, Aug 4 2020, 11:16:42)[GCC 9.3.0] on linux2Type "help", "copyright", "credits" or "license" for more information.>>> import mxnetTraceback (most re

2021-02-03 17:59:21 48

原创 基本循环Loop

continue跳过当前最内层循环(不一定是for,如if)后面的代码break跳出最内层的for循环

2021-02-02 15:26:50 30

翻译 mxnet可视化模型中间层feature map输出

注:model输入 112x112保存的图片可能是白色的(这个还没有修复),但是在pycharm中运行时可以通过scientific tool窗口看到#构造辅助函数做预处理, 注意mxnet中为通道在前格式即BCHW, 输入时要对通道维度调整,#其预训练模型采用减均值除方差的标准化预处理(均值标准差使用imagenet数据集的[0.485, 0.456, 0.406], [0.229, 0.224, 0.225])#mxnet使用专有数据类型nd.arrayimport cv2from

2021-01-30 20:53:30 23

翻译 python打开xlsx excel sheet添加数据,保存

文章目录1. 读取2. 添加sheet,写入,保存覆盖保存1. 读取def read_excel_xlsx(path, sheet_name): workbook = openpyxl.load_workbook(path) # sheet = wb.get_sheet_by_name(sheet_name)这种方式已经弃用,不建议使用 sheet = workbook[sheet_name] for row in sheet.rows: for cell

2021-01-30 20:37:33 42

原创 协方差矩阵

输入矩阵1 axb输入矩阵2 cxd协方差矩阵shape 为 (a+c) x (a+c)示例:>>> b = np.random.random((2,100))>>> a = np.random.random((3,100))>>> np.cov(a,b).shape(5, 5)

2021-01-29 17:37:27 18

翻译 python list列表和str字符串相互转换

列表转字符串,列表中的每个元素需要是字符串类型>>> a =[ 'a','b']>>> c = '/'.join(a)>>> c'a/b'字符串转列表,>>> c.split('/')['a', 'b']

2021-01-26 12:16:24 13

原创 Win10安装打印机驱动搜索不到打印机

很奇怪,打印机IP能ping通,但是安装驱动的时候就是搜索不到。之前电脑里装过这个打印机,但是每次打印在我的电脑上都显示成功,但是却在打印机上看不到任务。打印失败。无奈,准备重新安装打印机驱动(老的没有卸载)但是在安装的时候发现,驱动程序搜索不到这台打印机看了半天也没有什么发现最后,在控制面板里找到之前安装的这台打印机,右键,打印机属性-配置-账号管理-修改了用户识别符由 user1 改为了 iii-user1 (iii是内部域名)终于成功了,在打印的时候能在打印机上看到待打印的任务,刷用户卡

2021-01-25 11:16:55 69

原创 局域网window和linux ubuntu之间文件传输 pscp winscp

PSCP (612KB的一个小工具)存为.bat文件,可以在windows下执行@echo off pscp.exe -l hww -pw "user1" -r E:\user1\data\results usr1@10.xxx.xxx.xxx:/home/user1/data/pausewinSCP官网下载使用

2021-01-22 13:44:27 29

原创 System.IO.FileNotFoundException: Could not load file or assembly ‘xx.dll‘ or one of its dependencies

fff

2021-01-21 14:59:54 158

原创 Win10 Outlook打不开,无法启动Microsoft Outlook。无法打开Outlook窗口。无法打开此文件夹集合。客户端操作失败

重装office是没用的。报错:一直卡在加载配置文件,最后打不开,显示:无法启动Microsoft Outlook。无法打开Outlook窗口。无法打开此文件夹集合。客户端操作失败解决:给OUTLOOK进行重置。按以下步骤操作,每一步完成后确认是否OK,如果已经能打开,无需继续后续步骤重置IE设置 - internet选项 - 常规 - 删除还不行?高级 - 重置删除数据控制面板 - Mail (Microsoft outlook 20xx) - 数据文件 - 删除删除凭据:

2021-01-15 14:34:42 377

原创 dlib gpu版安装成功之后报错:dlib.DLIB_USE_CUDA False

按照:https://blog.csdn.net/qxqxqzzz/article/details/111875737安装编译成功了GPU版本的DLIB,但是在PYTHON中使用时出现了问题:(py377) user1@lthpc:/data/user1$ python3.7Python 3.7.7 (default, Mar 26 2020, 15:48:22) [GCC 7.3.0] :: Anaconda, Inc. on linuxType "help", "copyright", "cr

2021-01-14 13:50:28 61

原创 linux ubunt16.04 x86_64 安装最新稳定版wine,解决:Unable to locate package winehq-stable

什么破winehq 什么源 都没用。。通通报错:Unable to locate package winehq-stable下载二进制源码安装下载地址:https://dl.winehq.org/wine/source/https://www.winehq.org/announce/5.0.3https://dl.winehq.org/wine/source/5.0/wine-5.0.3.tar.xz安装:根据解压之后得到的README在这里插入代码片...

2021-01-14 13:20:42 75

原创 linux ubuntu apt update更新错误:Certificate verification failed: The certificate is NOT trusted. The cer

Ign:16 https://dl.winehq.org/wine-builds/ubuntu xenial InReleaseErr:17 https://download.sublimetext.com apt/stable/ Release Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. The certificate chain uses in

2021-01-14 10:47:33 142

原创 dlib调用出错 Invoked with: <dlib.shape_predictor object at 0x7f9cf6d17bb0>, array(

代码:path_to_dlib_model = "dlib_models/shape_predictor_68_face_landmarks.dat"predictor = dlib.shape_predictor(path_to_dlib_model)face_locations = predictor(gray, 1)报错: face_locations = args.predictor(gray, 1)TypeError: __call__(): incompatible func

2021-01-13 14:10:21 83

翻译 pycharm libcudart.so.8.0: cannot open shared object file: No such file or directory

libcudart.so.8.0: cannot open shared object file: No such file or directory 的解决办法$ sudo ldconfig /usr/local/cuda-10.0/lib64https://blog.csdn.net/qq_38451119/article/details/81007904

2021-01-11 18:14:14 37

翻译 Visual Studio 2015 Comunity Update3

https://xinyustudio.wordpress.com/2016/06/29/visual-studio-2015-update-3-offline-installation-iso-download-link/

2021-01-11 17:18:17 24

原创 shell根据文件列表list.txt使用scp拷贝文件和目录结构到远程服务器,远程创建目录

将单个文件拷贝到远程服务器但是希望拷贝(scp命令)到对应的目录(就是文件名的上一层目录, lastDir)下面,保持目录结构如果不存在,则在远程服务器上创建 (ssh命令)自动验证账号密码:$ apt-get install sshpass代码:# usage: sudo sh xxx.shtime=$(date "+%Y%m%d%H%M%S")fdir="/data5/user1/src/images"# divided file list txtsflistDir="/data

2021-01-11 14:56:17 89 1

原创 并行的几种思路

按操作系统windows1.1 同样的代码(如.bat文件),复制多份,手动运行Linux (Ubuntu)2.1 控制并行的数量(如同时运行两个Python脚本;# e. g. script.pyimport caffeimport sys...# 接收命令行参数 cmd = sys.argvsplit = cmd[1]gpu = int(cmd[2])caffe.set_device(gpu)caffe.set_mode_gpu()...运行脚本:#

2021-01-11 10:44:27 162

原创 python 简单进度条 tqdm

我觉得比progress.bar.Bar好用安装$ pip install tqdm简单示例pythonPython 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)] on win32Type "help", "copyright", "credits" or "license" for more information.>>> from tqdm import tq

2021-01-10 23:27:53 24

翻译 ngrok报错 ERR_NGROK_108,ngrok关闭隧道

$ ./ngrok start -config ngrok.yml vnc sshYour account 'j' is limited to 1 simultaneous ngrok client session.Active ngrok client sessions in region 'us': - ts_1xxxxxxxxxxxxxxxx (2000:0000:0000:xxxxxxxxxxxxxxx)ERR_NGROK_108解决:killall ngrok参考:https

2021-01-06 23:08:46 98

翻译 cv2.warpPerspective error: (-215:Assertion failed) _src.total() > 0

你传入的矩阵是空的,可能是文件路径不对。重新检查一下。https://github.com/penincillin/DREAM/issues/5

2021-01-04 15:47:21 181

原创 从mxnet .rec文件中解压出图片数组,报错:TypeError: __call__(): incompatible function arguments. The following argum

目的:从mxnet train.rec文件中解压还原出图片数组,送入dlib做人脸检测报错:TypeError: call(): incompatible function arguments. The following argument types are supported:1. (self: _dlib_pybind11.fhog_object_detector, image: array, upsample_num_times: int=0) -> _dlib_pybind11.rec

2021-01-04 15:18:27 222

原创 linux ubuntu 18.04 opencv降级、安装opencv3.1

https://gist.github.com/denti/7205065c8f0ce67cf368b9a2d5f76b00

2021-01-02 23:05:25 91

翻译 linux ubuntu18.04 update-initramfs -u提示The initramfs will attempt to resume from /dev/nvme0n1p3

update-initramfs: deferring update (trigger activated)Processing triggers for initramfs-tools (0.130ubuntu3.11) ...update-initramfs: Generating /boot/initrd.img-5.4.0-48-genericI: The initramfs will attempt to resume from /dev/nvme0n1p3I: (UUID=297bb92

2020-12-31 16:29:45 232

原创 ubuntu 18.04 gcc g++降级

9.x降级到5.x:https://blog.csdn.net/qxqxqzzz/article/details/111875737降级到4.8:$ sudo nano /etc/apt/sources.list# sources.list全部内容:deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiversedeb-src http://mirrors.ustc.edu.cn/ubuntu/ .

2020-12-31 14:53:34 49

原创 ubuntu18.04 TITAN RTX安装驱动、cuda10 cudnn神报错: ERROR: Unable to load the kernel module ‘nvidia.ko‘

官网下载runfile和patch:cuda_10.0.130_410.48_linux.runcuda_10.0.130.1_linux.run下载cudnncudnn-10.0-linux-x64-v7.6.5.32.tgz关闭xservermoba-xterm右上角关闭x-server$ sudo /etc/init.d/gdm stop$ sudo /etc/init.d/gdm status$ sudo /etc/init.d/lightdm stop$ sudo /etc/.

2020-12-31 11:23:55 239

原创 编译caffe ssd

地址:https://github.com/weiliu89/caffe/tree/ssdmake: *** No rule to make target '/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h', needed by '.build_release/cuda/src/caffe/layers/exp_layer.o'. Stop.

2020-12-30 23:35:33 72

原创 ubuntu 16.04安装boost, GPU版dlib (cuda9)

# 安装boost# 下载boost: https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.gz# 解压$ bunzip2 boost_1_66_0.tar.bz2$ sudo tar -xvf boost_1_66_0.tar$ cd boost_1_66_0/# 我使用的是默认路径安装,安装到:/usr/local。其他安装选项见:https://www.boost.org/doc/libs/1_66_

2020-12-28 22:27:40 110

翻译 人脸姿态

至于是角度是按顺时针转动算还是逆时针转动,没有看到统一说法pitch 俯仰角:绕X轴(指向脸右侧)转动的角度,表现为俯、仰yaw 偏航角:绕Y轴(指向脸下方)转动的角度,表现为向左侧或右侧水平转动roll 滚动角:绕Z轴(指向脸正前)转动的角度,表现为人脸照片旋转https://blog.csdn.net/leilei18a/article/details/108467268...

2020-12-25 18:16:27 65

原创 clion c++ build 报错:fatal error: opencv/cv.h: No such file or directory

In file included from /home/data/downloads/pjs/add_mask/Face_Verification_Test/include/segment/faceSegment.h:4:0, from /home/data/downloads/pjs/add_mask/Face_Verification_Test/src/segment/faceSegment.cpp:1:/home/data/downloads/pjs/add_mas

2020-12-23 01:42:15 188

原创 win10 Clion gcc CMake环境初始化Failed to reload报错:gcc.exe: error: language objective-c not recognized

clion从源码新建cmake项目,环境初始化的时候(reload CMakelLists.txt) 时候报错:报错1: g++.exe: error: CreateProcess: No such file or directory报错2: gcc.exe: error: CreateProcess: No such file or directory报错3: gcc.exe: error: language objective-c not recognized这几个错是同时报的。详

2020-12-23 00:08:58 128 1

原创 python文件包含中文执行报错:SyntaxError: Non-ASCII character ‘\xe8‘ in file xxx.py on line xx, but no encoding

SyntaxError: Non-ASCII character '\xe8' in file /data1/xxx/xxx.py on line 11, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details解决:在.py文件的第一行前面加上:# -*- coding: utf-8 -*-

2020-12-21 23:57:16 159

原创 apt-get install报错:GnuTLS recv error (-110): The TLS connection was non-properly terminated.

$ sudo apt-get install -y nvidia-docker2...Err:4 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu16.04/amd64 nvidia-container-runtime 3.4.0-1 GnuTLS recv error (-110): The TLS connection was non-properly terminated.Get:5 https://nvidia

2020-12-21 23:32:15 218

翻译 sudo apt update报错:E: Problem executing scripts APT::Update::Post-Invoke-Success ‘if /usr/bin/test -w

完整报错:$ sudo apt update...(appstreamcli:27333): GLib-CRITICAL **: g_strchug: assertion 'string != NULL' failed(appstreamcli:27333): GLib-CRITICAL **: g_strchomp: assertion 'string != NULL' failedfree(): double free detected in tcache 2Aborted (core d

2020-12-21 22:54:49 56

空空如也

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人 TA的粉丝

提示
确定要删除当前文章?
取消 删除