摘要: 原文:error: command ‘gcc‘ failed with exit status 1 点击直达 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(74) 评论(0) 推荐(0)
摘要: 主要参考文档http://docs.wand-py.org/en/0.4.4/guide/install.html#install-imagemagick-windows上的说明: 第一步:下载二进制文件,ImageMagick-6.9.3-1-Q16-x86... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(174) 评论(0) 推荐(0)
摘要: 1 Ubuntu系统 1.1--pycairo sudo git clone git://git.cairographics.org/git/pycairosudo apt-get install libcairo2-dev libjpeg-dev li... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(31) 评论(0) 推荐(0)
摘要: 之前因为很多库对于64位的python版本在安装时出现问题,于是换了32位的python。在用pandas读取大量数据时,便出现了内存不足的情况,32位python最多可用内存为2G。 换成64位内存利用率就高很多。 如果想安装简便,下载 64位Anaco... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(95) 评论(0) 推荐(0)
摘要: [C++]LeetCode: 118 Find Peak Element (二分查找 寻找数组局部峰值) - cindy_niu的专栏 - 博客频道 - CSDN.NET http://blog.csdn.net/cinderella_niu/article/... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(30) 评论(0) 推荐(0)
摘要: 一、打开命令行,输入 python -v 二、这里以OpenCV为例,cv2为OpenCV模块名,接着输入 import cv2 结果如下 扫码关注 实用AI客栈 获取最新AI资讯与实战案例 小编微信号 : langu86 福利区:独... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(220) 评论(0) 推荐(0)
摘要: 1. An overview of gradient descent optimization algorithms http://sebastianruder.com/optimizing-gradient-descent/ 2. 各种优... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(26) 评论(0) 推荐(0)
摘要: 使用API:list.count(a),示例如下: [1,2,3,4,4,3,2,1].count(1) 扫码关注 实用AI客栈 获取最新AI资讯与实战案例 小编微信号 : langu86 福利区:独学而无友,则孤陋而寡闻.加入机器学习与深度学习讨论QQ群(... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(389) 评论(0) 推荐(0)
摘要: 我安装的python版本是2.7,log完整提示: No module named msvccompiler in numpy.distutils; trying from distutilsMissing compiler_cxx fix f... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(170) 评论(0) 推荐(0)
摘要: 编码 python 转换为json时候 汉字编码问题 - 分享 快乐 - ITeye技术网站 http://flashdream8.iteye.com/blog/1538789 python技巧26[str+unicode+codecs] - iTech -... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(29) 评论(0) 推荐(0)
摘要: 在py文件中加入以下代码即可: import tensorflow as tf;print(tf.__version__) 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(26) 评论(0) 推荐(0)
摘要: 美观 •简历版式和字体 简洁 •简单明了,主体1-2页纸 通顺 •语句通顺,无错字、病句 紧扣主题 •始终围绕求职主题和意向 突出亮点 •能够体现求职意向的个人优势 描述生动 •内容明了、具体化,容易理解 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(20) 评论(0) 推荐(0)
摘要: 一、下载Matconvnet 下载网址为http://www.vlfeat.org/matconvnet/,写这篇博客时最新版本为1.0-beta23 二、配置Matlab编译器 输入 mex -setup C++ ,然后选择Microsoft Visual... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(65) 评论(0) 推荐(0)
摘要: 在算术运算中,1+5=6,1-9= - 8。那么用OpenCV读取图像后的图像的矩阵运算也是否如此呢? 我们先找来了两张图片, 分别命名为cat.jpg和dog.jpg,将两张图片对应的矩阵相加并显示结果cat_add_dog,然后输出这三... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(141) 评论(0) 推荐(0)
摘要: 除法的取整分类除法的取整分为三类:向上取整、向下取整、向零取整。 1.向上取整:在这种取整方式下,9/4=3,9/(-4)=-2,6/3=2,6/(-3)=-2 2.向下取整:在这种取整方式下,9/4=2,9/(-4)=-3,6/3=2,6/(-3)=-... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(187) 评论(0) 推荐(0)
摘要: 界面没有经过自适应缩放前: 界面自适应缩放后: 程序演示版下载地址: http://pan.baidu.com/s/1nvFIYY9 程序源代码下载以及程序详细文档下载(与程序配套) 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(122) 评论(0) 推荐(0)
摘要: 1、网络划分 局域网:覆盖范围小,封闭型广域网:距离远,需要租用带宽Internet ISP:自建机房,提供Internet访问服务... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(77) 评论(0) 推荐(0)
摘要: 网络速率和存储单位比较 相同标记速率(bit/s )存储(bit)Kb1000b1024bMb10^6b1024KbGb10^9b1... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(320) 评论(0) 推荐(0)
摘要: 一、python2.7 比如python安装在C:/Python27,下载OpenCV并安装,到opencv/build/pytho... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(373) 评论(0) 推荐(0)
摘要: Pydev中注释默认为灰色,很容易混在背景中,修改方法如下图: 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(38) 评论(0) 推荐(0)
摘要: 报错是因为要安装PIL库,库名现在为Pillow,在命令行上安装即可: pip3 install Pillow 福利区:独学而无友,则孤陋而寡闻.加入机器学习与深度学习讨论QQ群(581789266),一块交流与探讨,共同成长和进步! ... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(0) 评论(0) 推荐(0)
摘要: 之前写了一篇在python3.5安装scipy的博客( python3.5安装Scipy和Matplotlib ),在写程序时出现了这样的错误, import scipy.ioFile "C:\Program Files\Python35\lib\site-p... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(47) 评论(0) 推荐(0)
摘要: 注:下载windows二进制python包地址: http://www.lfd.uci.edu/~gohlke/pythonlibs 安装Scipy pip3 install "D:\Downloads\scipy-0.18.1-cp35-cp35m-win_... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(60) 评论(0) 推荐(0)
摘要: 由于换了新系统(64位),移动硬盘插上去没有盘符(比如H盘)出现。当时十分诧异,以为移动硬盘已经损坏。 搜索资料后,发现用Disk Genius就可以搞定,当做移动硬盘新的资源管理器。 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(366) 评论(0) 推荐(0)
摘要: 如果在使用Opencv的过程中出现OpenCV Error: Assertion failed (size.width>0 && ... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(533) 评论(0) 推荐(0)
摘要: 通过shape得到h,w, resize时先传入w。 h,w,depth=img.shapeimg=cv2.resize(img,(int(w/2),int(h/2)),interpolation=cv2.INTER_AREA) 扫码关注 实用AI客栈 获取最... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(86) 评论(0) 推荐(0)
摘要: gnome-screensaver-command -l 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(193) 评论(0) 推荐(0)
摘要: sudo apt-get autocleansudo apt-get cleansudo apt-get autoremove 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(31) 评论(0) 推荐(0)
摘要: 命令如下: install itorch type command as following: sudo pip3 install ipython==5.2.0 sudo pip3 install notebook git clone https://gith... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(31) 评论(0) 推荐(0)
摘要: 1.用命令确定挂载位置 sudo mkdir disksudo mount -t ext4 /dev/sdb /media/upDiff/disk 2.在/etc/fstab中添加挂载 sudo gedit /etc/fstab #打开文件/dev/sd... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(62) 评论(0) 推荐(0)
摘要: $ sudo rm /var/lib/apt/lists/* -vf $ sudo apt-get update 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(18) 评论(0) 推荐(0)
摘要: 1.can not load "VOCtraffic/JPEGImages/89110.jpg", STB Reason: expected marker Corrupt JPEG file, based on code at (https://hackag... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(29) 评论(0) 推荐(0)
摘要: 1.修改GPU架构代码 --gpu-architecture=compute_52, --gpu-code=compute_52修改为 --gpu-architecture=compute_61, --gpu-code=compute_61 ... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(46) 评论(0) 推荐(0)
摘要: 今天读取文件时eclipse报错, IOError: [Errno 2] No such file or directory: '/home/xxx/images/xx.jpg\n' 然后我反复对照自己本地的路径仔细检测了几遍,都没发现问题。期间进行了测试,代... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(146) 评论(0) 推荐(0)
摘要: 第一步:安装python包依赖 sudo pip install Cythonsudo pip install easydict 第二步:下载源代码 git clone --recursive https://github.com/rbgirshick/py... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(41) 评论(0) 推荐(0)
摘要: 用distutils构造Cpthon模块 第一步:先写一个hello.pyx脚本 def say_hello_to(name): print("Hello %s!" % name) 第二步:写一个和编译有关的 setup.py脚本 from distu... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(28) 评论(0) 推荐(0)
摘要: 区别一: py2:dict.iteritems() py3:dict.items() 区别二: py2:cPickle py3:_pickle (import _pickle as cPickle) 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(43) 评论(0) 推荐(0)
摘要: 我将dataframe写入到csv文件中时 df.to_csv('out.csv') 报了下面的错误 UnicodeEncodeError: 'ascii' codec can't encode character u'\u03b1' in position... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(86) 评论(0) 推荐(0)
摘要: 我在python3中import keras,出现报错信息"ImportError: No module named scipy.sparse".解决方法如下: #卸载原来的scipy sudo pip3 uninstall scipy #通过apt-get安... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(478) 评论(0) 推荐(0)
摘要: 在网上查找了一番,问题主要出在ubuntu的pip3上.准备手动重装pip3.解决方法如下: 一 安装setuptools模块 #先卸载系统的pip3 sudo apt install python3-pip #打开setuptools · PyPI,下载se... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(60) 评论(0) 推荐(0)
摘要: gsettings set org.gnome.desktop.interface document-font-name 'Sans 10'gsettings set org.gnome.desktop.interface font-name 'Ubuntu ... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(100) 评论(0) 推荐(0)
摘要: 安装pyTorch时,按照官网的命令进行安装 pip3 install http://download.pytorch.org/wh... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(338) 评论(0) 推荐(0)
摘要: python中对文件、文件夹的操作需要涉及到os模块和shutil模块。 创建文件: 1) os.mknod("test.txt") 创建空文件 2) open("test.txt",w) 直接打开一个文件,如果文件不存在则创建文件 创建目... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(86) 评论(0) 推荐(0)
摘要: tf.constant需要用numpy array进行初始化,不能用tf自己的函数返回值,也就是tensor进行初始化赋值。 import tensorflow as tf import numpy as np arr=np.array([[1,2,3],[4... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(96) 评论(0) 推荐(0)
摘要: 1.安装最新版tf--tensorflow1.5,gpu版本需要CUDA8和cudnn6,命令如下 GPU版:sudo pip3 install tf-nightly-gpu CPU版:sudo pip3 install tf-nightly 对应pip网... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(58) 评论(0) 推荐(0)
摘要: 1.先卸载之前的版本 sudo pip3 uninstall tensorflow-gpu 2.安装新的tf sudo pip3 install tensorflow-gpu==1.3 3.tensorflow1.3需要CUDA8.0和cudnn6.0,因... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(67) 评论(0) 推荐(0)
摘要: 解决方法: sudo rm /var/lib/apt/lists/* -vfsudo apt-get update 之后执行 sudo apt-get upgrade 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(55) 评论(0) 推荐(0)
摘要: 1.下载tensorflow官方代码 git clone --recurse-submodules https://github.com/tensorflow/tensorflow.git 2.下载Android SDK和Android NDK Androi... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(51) 评论(0) 推荐(0)
摘要: #include #include #include #include char *dirname="/path/";DIR *dirfile;dirfiles=opendir(dirname);struct dirent *dir;while((dir =... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(390) 评论(0) 推荐(0)
摘要: 除了在/.bashrc中配置LD_LIBRARY_PATH路径以外,还需要配置PATH路径,完整配置如下: export LD_LIBRARY_PATH=/usr/local/cuda/lib export PATH=$PATH:/usr/local/cuda... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(1400) 评论(0) 推荐(0)
摘要: tensorflow通过命令行传入参数示例代码如下: import tensorflow as tfFLAGS=tf.app.flags.FLAGStf.app.flags.DEFINE_string('demo','','This is a demo to ... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(30) 评论(0) 推荐(0)
摘要: 打开命令行,输入: echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.l... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(88) 评论(0) 推荐(0)
摘要: 在命令行输入以下代码: import cv2print(cv2.__version__) 扫码关注 实用AI客栈 获取最新AI资讯与实战案例 小编微信号 : langu86 独学而无友,则孤陋而寡闻。欢迎加入机器学习与深度学习Q群(581789266),... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(1569) 评论(0) 推荐(0)
摘要: 1.np.argmax(hist,axis=0) 在hist的列里面寻找最大值 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(28) 评论(0) 推荐(0)
摘要: 面试中的常考的有关链表算法题 面试中的常考的有关链表算法题_疯狂之桥_新浪博客 http://blog.sina.com.cn/s/blog_a46817ff0102v11i.html 关于红黑树和链表的疑问 数据结构和算法 - 关于红黑树和链表的疑问 ... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(18) 评论(0) 推荐(0)
摘要: 一、检查用pip安装时tensorflow的具体位置 在命令行输入以下指令: py2 cpu版:pip show tensorflow gpu版:pip show tensorflow-gpu py3 cpu版:pip3 show tensorflow g... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(1259) 评论(0) 推荐(0)
摘要: Ubuntu显示桌面除了使用快捷键外,还可以直接在侧栏显示图标。 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(129) 评论(0) 推荐(0)
摘要: 打开/etc/rc.local文件, sudo gedit /etc/rc.local在exit 0前添加脚本 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(79) 评论(0) 推荐(0)
摘要: 解决方法:调整tab length window > preferences > pydev > editor > tab length 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(40) 评论(0) 推荐(0)
摘要: Αα:阿尔法 Alpha Ββ:贝塔 Beta Γγ:伽玛 Gamma Δδ:德尔塔 Delte Εε:艾普西龙 Epsilon ζ :捷塔 Zeta Ζη:依塔 Eta Θθ:西塔 Theta Ιι:艾欧塔 Iota Κκ:喀帕 Kappa ... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(3906) 评论(0) 推荐(0)
摘要: pandas对numpy版本要求比较高,需要先升级numpy再安装pandas,命令行如下: 1.python2 pip install --upgrade numpypip install pandas 2.python3 pip3 install --u... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(235) 评论(0) 推荐(0)
摘要: 方法一:在软件中心,输入meld安装 方法二:命令行安装 sudo apt-get install meld 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(611) 评论(0) 推荐(1)
摘要: 在VS2015社区版中如果出现登陆失败的情况,而且错误提示为 SP324099: 无法完成操作 或者英文提示 SP324099: Could not complete the operation. 将IE浏览器版本更新为IE 11即可. 下载网址 ... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(63) 评论(0) 推荐(0)
摘要: 一、问题描述 ‘Premature end of JPEG file’是使用cv2(python版的opencv)读取图片时出现的警告,警告代码位于libjpeg中, JMESSAGE(JWRN_JFIF_MAJOR, "Warning: unknown ... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(951) 评论(0) 推荐(0)
摘要: 1. scipy.misc #coding=utf=8import scipy.misc as misc"""本程序用于测试misc.imresize的size中h和w的顺序"""path='test.jpg'img = misc.imread(path)pr... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(88) 评论(0) 推荐(0)
摘要: 类别次序根据文件名称的字母顺序来排列,对于二分类问题,cat文件夹和dog文件夹里面的图片会分别归为第一类和第二类。 相关链接 扫码关注 实用AI客栈 获取最新AI资讯与实战案例 小编微信号 : langu86 福利区:独学而无友,则孤陋而寡闻.加入机器学习... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(139) 评论(0) 推荐(0)
摘要: sudo apt-get updatesudo apt-get install flashplugin-installer 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(21) 评论(0) 推荐(0)
摘要: 在Environment settings最下方一栏的下拉菜单中 kde环境 选择下拉菜单中的 konsole -e gnome环境 选择下拉菜单中的gnome-terminal -t $TITLE -x 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(79) 评论(0) 推荐(0)
摘要: 问题出现在sklearn调用predict函数时,需要将输入数据由列表改为数组,即x_array =np.array(x_list).reshape(1,-1).predict(x_array) 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(23) 评论(0) 推荐(0)
摘要: 一、起因:当初在装双系统、分配Ubuntu空间的时候,只留了40G的空间。之后安装各种开发包,硬盘空间越来越不够用。然后我把一个后缀为pkl(超过1G)的文件放到了NTFS格式的盘下,读取数据时出现了ValueError: insecure string pi... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(70) 评论(0) 推荐(0)
摘要: 1.单个数据集介绍 1)PASCAL VOC数据集分析 2.多数据集介绍 1)语义分割常用数据集 2)深度学习视觉领域常用数据集汇总 3.数据集下载地址 1)Visual Object Classes Challenge 2012 (VOC2012) ... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(70) 评论(0) 推荐(0)
摘要: 在命令行输入以下代码: sudo add-apt-repository ppa:damien-moore/codeblocks-stablesudo apt-get updatesudo apt-get install codeblocks codeblock... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(84) 评论(0) 推荐(0)
摘要: 注:本文适合python2.7 opencv2.4.x, 之前学习其他DL框架时安装过CUDA的情况 一、安装必要的依赖库 sudo apt-get updatesudo apt-get install -y libprotobuf-dev liblevel... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(107) 评论(0) 推荐(0)
摘要: 重新ON_WM_PAINT()、ON_WM_CTLCOLOR()消息对应的函数OnPaint()、OnCtlColor() (一)OnPaint() //CDialogEx::OnPaint(); CRect rect; CPa... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(352) 评论(0) 推荐(0)
摘要: 1、Find() 该函数从左侧0索引开始,查找第一个出现的字符位置 CString str( "abc" );int postion=str.Find('a');如果查到,返回以0索引起始的位置;未查到,返回-1。如果查到,返回以0索引起始的位置;未查到,返回... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(1270) 评论(0) 推荐(0)
摘要: TCHAR szFilePath[MAX_PATH + 1]; GetModuleFileName(NULL, szFilePath, MAX_PATH); CString Dir = szFilePath;int last=Dir.ReverseFind(... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(123) 评论(0) 推荐(0)
摘要: 当MFC UI 界面删除控件,而控件已经通过DDX_Control绑定后,就可能报这种错。 解决方法: 搜索DDX_Control,查看绑定的控件是否被删除,然后注释该句。 //DDX_Control(pDX, IDC_Edit, name); ... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(196) 评论(0) 推荐(0)
摘要: 下载地址: https://ffmpeg.zeranoe.com/builds/ static版本为静态编译版本,shared版本为动态编译。 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(150) 评论(0) 推荐(0)
摘要: (一)安装环境: Windows 64位 python3.5 (二)安装步骤: 1.下载vs运行库 https://www.microsoft.com/en-us/download/details.aspx?id=53587 2.下载Win 64下的pytho... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(62) 评论(0) 推荐(0)
摘要: 全名是"The Secret Rules of Modern Living Algorithms",主要内容为: 1. haar人脸检测 2. 巧克力、辣椒游戏 3. 求最大公约数 4. 搜索引擎rank算法 5. 排序算法可视化 6. 稳定婚姻算法(用于学生... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(37) 评论(0) 推荐(0)
摘要: 斐波那契数列为1、1、2、3、5、8、13、21、····,递归公式为:F(1)=1,F(2)=1,F(n)=f(n-1)+F(n-2) (n>=2),越往后相邻的两个数的比值越趋向于黄金比例值(0.618)。 斐波那契查找就是在二分查找的基础... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(58) 评论(0) 推荐(0)
摘要: 1、首先,用Disk_Genius磁盘分区,分配给Linux系统空间 2、下载Ubuntu最新的系统 3、软碟通--这是用于将你在上一步中下载的系统文件刻录成ISO文件的工具,你需要准备一个U盘,写入方式:USB-ZIP+。 4、关闭计算机,插入U盘,按F8... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(70) 评论(0) 推荐(0)
摘要: 在零件缺陷检测时,很多时候需要定位零件的位置,比如下图: 零件是多孔的工业常见部件,上图是打光后二值化的图像。一般来说,二值化后的图像不可能没有噪声,经常有很多斑点,如下图: 这时需要确定零件的区域,将零件区域填充后和原图像相加(或运算)。而且有时候... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(352) 评论(0) 推荐(0)
摘要: 好东西,果断收藏 刚开始用C++做界面的时候,根本不知道怎么用简陋的MFC控件做出比较美观的界面,后来就开始逐渐接触到BCG Xtreme ToolkitPro v15.0.1,Skin++,等界面库,以及一些网友自己写的界面库,开始... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(601) 评论(0) 推荐(0)
摘要: 转载地址:http://blog.csdn.net/jiangping_zhu/article/details/18044109 1、找到要转载的文章,用chrome浏览器打开,右键选择审查元素 2、在chrome中下方的框里... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(28) 评论(0) 推荐(0)
摘要: 函数的原型是: C++: Mat Mat::operator()(const Rect& roi) const 测试代码如下: double m[3][3] = { {1, 3, 1}, {4 ,8, 7}, {6 ... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(58) 评论(0) 推荐(0)
摘要: 一、迁移学习是指将已经预先训练好的模型权重的某部分或整体用到相似任务的处理上。 优点:1)节省训练时间 2)当新问题的数据集很小时,直接训练容易过拟合,迁移学习可以有效避免这种情况。 二、fine-tuning 属于trick,... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(149) 评论(0) 推荐(0)
摘要: 原文:TensorFlow中 将tensor 转为 numpy数组 点击直达 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(240) 评论(0) 推荐(0)
摘要: 原文:查看tensorflow为CPU版还是GPU版 点击直达 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(93) 评论(0) 推荐(0)
摘要: 原文:Jupyter notebook教程系列(四)Jupyter notebook切换python环境 点击直达 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(59) 评论(0) 推荐(0)
摘要: su:Swith user 切换用户,切换到root用户 cat: Concatenate 串联 uname: Unix name 系统名称 df: Disk free 空余硬盘 du: Disk usage 硬盘使用率 chown: Change o... 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(105) 评论(0) 推荐(0)
摘要: 解决办法一: conda config --set ssl_verify no 解决办法二: 使用Anaconda自带的控制台"Anaconda Prompt",不用windows的cmd窗口 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(136) 评论(0) 推荐(0)
摘要: str='/┴їЎйЎй-18697/5e' 如果给python字符串赋值乱码,则程序运行会卡住, 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(28) 评论(0) 推荐(0)
摘要: 如果我们的Python工程对非当前工作区的python包/模块有依赖,则需要将该python包/模块和工程进行绑定。具体如下所示 扫码关注 实用AI客栈 获取最新AI资讯与实战案例 小编微信号 : langu86 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(446) 评论(0) 推荐(0)
摘要: 梯度下降及其变体被用作训练过程的关键部分在机器学习中广泛使用。梯度下降中的“梯度”是指单变量导数的推广形式,即多元变量求导。 梯度下降法是解决“优化问题”的迭代方法,其中优化问题是指围绕寻找函数的全局最小值或最大值而展开的数学问题。我们将很快看到,对于简单的优... 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(90) 评论(0) 推荐(0)
摘要: 利用ffmpeg可以将ts视频文件转换为图片,命令行如下: cd C:\ffmpeg\binffmpeg.exe -i video_name.ts -r 1/1 03d.jpg 参考链接: https://stackoverflow.com/questio... 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(248) 评论(0) 推荐(0)
摘要: id product date0 220 6647 2014-09-01 1 220 6647 2014-09-03 2 220 6647 2014-10-163 826 33... 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(59) 评论(0) 推荐(0)
摘要: 1-One-to-one model.add(Dense(output_size, input_shape=input_shape))2-One-to-many: model.add(RepeatVector(number_of_times, ... 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(68) 评论(0) 推荐(0)
摘要: 1)出错代码 import pandas as pddfs = pd.HDFStore('xx.h5') 2)分析原因 版本问题 python - ImportError HDFStore requires PyTables No module named t... 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(59) 评论(0) 推荐(0)
摘要: 在用python写lmdb文件时出现了报错信息"Won't implicitly convert Unicode to bytes; use .encode() 原报错代码: def writeCache(env, cache): with env.be... 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(85) 评论(0) 推荐(0)