自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

zlibo丶的博客

由小白到小黑丶

  • 博客(54)
  • 问答 (1)
  • 收藏
  • 关注

原创 docker报错:OCI runtime exec failed: exec failed...executable file not found in $PATH”: unknown

进入docker时,执行命令docker exec -it adf bash报错:尝试了半天...然后切换到根目录下,输入 ls -l /ho,按下tab键,发现报了bash命令的错误,设备空间已满无法使用...查看空间占用df -h,果然根目录下只有几十k了,遂删除一些文件,重新输入命令docker exec -it adf bash成功...所以,经常清理空间,删除无用文件,还是挺管用的......

2022-05-17 17:14:08 2068

原创 numpy-np.partition的使用

官方文档:https://numpy.org/doc/stable/reference/generated/numpy.partition.html官方给出的说明是:即:以第'k-th'位置为基准,该位置的元素位于对原始数组排序之后的位置,大于该元素值的元素被放置在该元素的后面,小于该元素值的元素被放置在该元素的前面,前后两端的元素排列顺序无要求。代码测试:a = np.array([3, 4, 2, 1]) # [1, 2, 3, 4]print(a)print(np.part

2021-01-28 14:54:19 1440 2

原创 numpy-np.searchsorted的用法

官方文档:https://numpy.org/doc/stable/reference/generated/numpy.searchsorted.html官方给出的说明是:即:查询给定数据在原始数组中的插入位置,而不改变原始数组的排列顺序。代码测试:print(np.searchsorted([1,2,3,4,5], 3))print(np.searchsorted([1,2,3,4,5], 3, side='right'))print(np.searchsorted([1,2,3

2021-01-25 11:47:11 555

原创 numpy-np.lexsort的用法

官方文档:https://numpy.org/doc/stable/reference/generated/numpy.lexsort.html官方给出的说明是:numpy.lexsort(keys, axis=-1)Perform an indirect stable sort using a sequence of keys.Given multiple sorting keys, which can be interpreted as columns in a spreadsheet,

2021-01-25 11:22:44 4290 1

原创 numpy-np.ix_函数的使用

官方文档:https://numpy.org/doc/stable/reference/generated/numpy.ix_.html#numpy.ix_,给出的用法是:numpy.ix_(*args)'''Construct an open mesh from multiple sequences.This function takes N 1-D sequences and returns N outputs with N dimensions each, such that the s

2021-01-12 16:35:46 498

原创 numpy-numpy.sum()中‘keepdims‘参数的作用

在numpy的许多函数中,会出现'keepdims'参数,以numpy.sum()为例:官方文档中给出的解释:numpy.sum(a, axis=None, dtype=None, out=None, keepdims=<no value>, initial=<no value>, where=<no value>)'''keepdimsbool, optionalIf this is set to True, the axes which are re

2021-01-08 16:11:10 1993

原创 numpy-array初始化时指定的dtype=[(‘x‘,‘i4‘),(‘y‘,‘i4‘)]参数

今天看numpy文档时,遇到一个问题https://numpy.org/doc/stable/reference/generated/numpy.argsort.html#numpy.argsort,在初始化array时的参数dtype=[('x','i4'),('y','i4')],做个记录:x = np.array([(1, 1000), (0, 1111)], dtype=[('x', '<i4'), ('y', '<i4')])这里的dtype的作用:给array中初始化值指.

2021-01-07 11:03:37 3147 3

原创 ubuntu重启后显示“/dev/sda2 contains a file system with error“的解决办法

今天重启ubuntu后,遇到错误:"/dev/sda2 contains a file system with errors, check forced."如图:

2020-12-30 17:44:34 1523

原创 linux-Ubuntu 16.04 LTS重启后分辨率降低问题解决

折腾了两天的,自以为疑难杂症的问题,解决办法居然是---拔线最近在服务器上遇到了,重启之后屏幕分辨率降低的问题,原有的1920x1080不再存在,打开 系统设置-显示-分辨率 中,只有1024x768和800x600两个选项,无法修改回原始分辨率,尝试各种办法,包括但不限于:1.重启机器 --- 无效。2.卸载显卡驱动,并重装 --- 无效。3.换另一种显卡驱动卸载和安装的方法 --- 无效。4.再次尝试显卡驱动卸载和安装,并尝试更新驱动 --- 无效。^-^5. …………6.放

2020-08-24 11:17:59 1767

转载 深度学习笔记-SKNet

记录一个关于SKNet的解释,SKNet的图解清晰,结合代码看,更容易理解。地址:https://www.jianshu.com/p/20552b8da40d

2020-06-24 11:49:30 457

原创 VS code设置anaconda的python路径并忽略pylint警告

重装系统后,vscode重新配置anaconda的python环境。1.启动vscode,file->Preferences->Setting,找到Workspace Settings,如图,添加自己anaconda的python路径,"python.pythonPath": "自己的python路径"成功配置python路径。2.接下来忽略pylint警告...

2019-11-14 17:23:53 1725

原创 mmdetection踩坑1~docker内RuntimeError: DataLoader worker (pid 1727) is killed by signal: Bus errer

今天在docker内使用mmdetection做训练时,workers_per_gpu参数设置为0时,可以正常训练。但修改配置文件中workers_per_gpu=2参数后,开始训练,程序报错:网上查资料显示,是因为docker的共享内存不足,使用命令df -h查看:shm果然很小。有两种解决办法:1.重启docker容器,在重启docker容器时,使用 --shm...

2019-09-26 22:05:41 3094 7

转载 深度学习笔记~集成方法bagging, boosting和stacking

转载:https://towardsdatascience.com/ensemble-methods-bagging-boosting-and-stacking-c9214a10a205作者:Joseph Rocca Ensemble methods: bagging, boosting andstackingIntroduction“Unity is ...

2019-05-16 19:15:25 2416

转载 深度学习笔记~卷积网络中特征图的可视化

转载:https://machinelearningmastery.com/how-to-visualize-filters-and-feature-maps-in-convolutional-neural-networks/作者:Jason Brownlee, PhDHow to Visualize Filters and Feature Maps in Convolutional...

2019-05-08 18:37:46 4032

转载 深度学习笔记~1x1卷积层在CNN中降低模型复杂度

转载:https://machinelearningmastery.com/introduction-to-1x1-convolutions-to-reduce-the-complexity-of-convolutional-neural-networks/作者:Jason Brownlee, PhD一篇关于1x1卷积层在CNN中的作用详细解释,并附有代码。A Gentle Intro...

2019-05-07 14:26:25 2985

转载 目标检测笔记~2012至2017目标检测领域主要成就

目标检测作为当下正热门的一个深度学习方向,对其的了解需要投入大量的时间和精力,这篇博文中总结了目标检测领域从2012年至2017年的主要成就,对目标检测有兴趣的同学可以考虑按照这个顺序,进入和了解目标检测领域。转载:https://medium.com/@nikasa1889/the-modern-history-of-object-recognition-infographic-aea185...

2019-04-11 20:17:01 516

转载 深度学习笔记~感受野(receptive field)的计算

以前对CNN中的感受野(receptive field)已经有了一些认识,基本上是从概念理解上得到的。本篇文章给出了receptive field的计算过程和相应的python代码,对receptive的理解和计算有较好的帮助作用。转载:https://medium.com/mlreview/a-guide-to-receptive-field-arithmetic-for-convolu...

2019-04-11 19:59:38 1342

转载 机器学习笔记~faster-rcnn安装过程error: too few arguments to function

linux下安装faster-rcnn时,出现下面错误时的解决方案:这是因为当前版本的caffe的cudnn实现与系统所安装的cudnn的版本不一致引起的。解决办法:1.将./include/caffe/util/cudnn.hpp 换成最新版的caffe里的cudnn的实现,即相应的cudnn.hpp.2. 将./include/caffe/layers里的,所有以cudn...

2019-03-16 13:52:15 3373

转载 C++学习笔记~动态库生成中的dllimport、dllexport与(.def)文件

以下是关于C++动态库生成中dllimport、dllexport与(.def)文件的博客,通过阅读可以较好地理解它们的作用和区别。1.https://www.cnblogs.com/de0319gh/p/3254013.htmldllimport与dllexport作用与区别这篇博客中给出了C++导出动态库时,是否需要dllimport的情况以及必须具备的原因。以下为博客全文:...

2019-03-13 16:30:49 2771 2

原创 机器学习笔记~HDF5 library version mismatched error与ImportError: 'save_model' requires h5py问题解决

1. 今天在windows上使用Tensorflow时,出现了下面的问题:直接执行如下命令,解决:pip uninstall h5pypip install h5py2. 后续在使用过程中,又出现下面的问题:直接执行如下命令,解决:pip install --upgrade h5py3. 当执行上面upgrade指令时,遇到下面的问题:按照提示...

2019-03-11 19:49:18 1162

转载 TensorRT学习笔记~TensorRT基础讲解(转载)

TensorRT作为GPU加速解决方案,在深度学习领域有着广泛的应用,其针对许多当下流行的深度学习模型都有简单的API供调用,对应没有集成到内部的自定义深度学习模型,也提供了自定义API,构建TensorRT加速引擎,方便快捷,简单有效。结合开发者手册以及博客中对TensroRT的简单讲解,可以有效理解TensorRT的构建方法和原理:https://arleyzhang.github.i...

2019-03-08 09:17:53 2671 1

转载 机器学习笔记~图像的空间分辨率

In terms of digital images, spatial resolution refers to the number of pixels utilized in construction of the image. Images having higher spatial resolution are composed with a greater number of pixel...

2018-12-24 20:25:52 1617

转载 机器学习笔记~卷积神经网络的反向传播理解

此文转载于外文网站https://medium.com/@2017csm1006/forward-and-backpropagation-in-convolutional-neural-network-4dfa96d7b37e文中对卷积神经网络的反向传播的计算过程,使用了动图表示,理解起来更简单明了。Forward And Backpropagation in Convolutiona...

2018-11-26 20:45:36 435

转载 机器学习笔记~五种常见的聚类算法简介

参考:https://towardsdatascience.com/the-5-clustering-algorithms-data-scientists-need-to-know-a36d136ef68 The 5 Clustering Algorithms Data Scientists Need to KnowClustering is a Machine Learning tech...

2018-11-21 19:25:19 1869

转载 机器学习笔记~高斯混合模型聚类

Clustering with Gaussian Mixture ModelsClustering is an essential part of any data analysis. Using an algorithm such as K-Means leads to hard assignments, meaning that each point is definitively a...

2018-11-20 20:16:30 958

转载 机器学习笔记~线性回归和非线性回归模型之间的区别

The Difference between Linear and Nonlinear Regression ModelsThe difference between linear and nonlinear regression models isn’t as straightforward as it sounds. You’d think that linear equations pr...

2018-11-16 20:21:10 7187

原创 Python学习笔记~临时添加环境变量

在python编程中,经常需要导入当前文件所在文件夹的同级目录中的其他文件夹内的文件,但又不想在环境变量中永久添加,可以使用临时环境变量的方法,使程序能够完好运行。如下图所示,在example中的py文件,需要使用misvm中的某个py文件,添加临时环境变量的方法是:import osimport syscurrent_path = os.getcwd()sys.path.append...

2018-11-15 20:27:28 5255

转载 机器学习~分类与回归异同

一篇来着外文网站的关于分类与回归异同的解释。Difference Between Classification and Regression in Machine LearningFundamentally, classification is about predicting a label and regression is about predicting a quantity....

2018-11-09 18:58:54 764

原创 C++学习笔记~对项目中缺少dll的简单粗暴解决方式

在Visual Studio中,经常会遇到工程找不到dll文件的情况,对于长久使用的dll的解决办法,当然是找到相应的dll文件并拷贝到C盘下C:\Windows\System32中。但是总存在暂时使用dll的情况,需要一种简单粗暴的方法来解决,以release x64下为例:首先找到该工程下的x64文件夹,如下图: 然后进入该文件夹下的Release文件夹,将所有需要使用的临时dll...

2018-11-08 10:18:14 2448 1

翻译 机器学习笔记~F-score beta衡量precision和recall之间重要性

f-score是一种衡量机器学习模型性能的指标,一般定义为: 当beta大于1,更多关注recall;当beta小于1,更多关注precision。f-score是通过权衡recall和precision之间的重要性的性能指标,下面是关于beta如何权衡两者之间的重要性的解释: 参考:https://stats.stackexchange.com/questions/2...

2018-11-01 10:06:23 8490

转载 机器学习笔记~Practical Advice for Building Deep Neural Networks by Matt H and Daniel R

这是一篇从外文网站转载的一篇关于构建深度神经网络时的建议,在进行网络搭建时可以适当借鉴和参考。Practical Advice for Building Deep Neural Networksby Matt H and Daniel RIn our machine learning lab, we’ve accumulated tens of thousands of trainin...

2018-10-27 13:01:31 521

转载 机器学习笔记~梯度爆炸-A Gentle Introduction to Exploding Gradients in Neural Networks

Exploding gradients are a problem where large error gradients accumulate and result in very large updates to neural network model weights during training.This has the effect of your model being unst...

2018-10-19 17:52:46 323

翻译 机器学习笔记~bias的作用

I think that biases are almost always helpful. In effect, a bias value allows you to shift the activation function to the left or right, which may be critical for successful learning.It might help t...

2018-10-19 15:05:09 1520

原创 OpenCV学习~moviepy视频裁剪

moviepy是python中视频处理库,使用前首先进行安装:打开Anaconda Prompt界面,执行语句pip install moviepy,等待安装完成。使用代码对视频裁剪处理。from moviepy.editor import *def video_cut(file_path, file_path_save, start = 0, end = None): vid...

2018-10-16 15:54:29 2241

原创 Tensorflow学习~cmd中运行import tensorflow as tf出现FutureWarning解决办法

解决cmd中import tensorflow as tf运行时出现的问题:FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.d...

2018-10-15 11:29:02 9011

原创 Tensorflow学习~查看已安装的tensorflow版本

查看Tensorflow版本可通过命令:tf.__version__首先,开始菜单中搜索打开cmd:输入python,进入python环境: 导入tensorflow:查看tensorflow版本 :

2018-10-15 11:02:19 4218

原创 机器学习笔记~k-means cluster,层次聚类,KNN算法的异同

参考链接:1. kNN与kMeans聚类算法的区别 : https://www.cnblogs.com/190260995xixi/p/5945652.html2. 聚类的方法(层次聚类,K-means聚类) : https://www.cnblogs.com/nku-wangfeng/p/7642745.html...

2018-10-09 15:21:04 1699

原创 机器学习笔记~三种梯度下降算法的优劣

常用的梯度下降算法一般是Batch Gradient Descent,Mini-batch Gradient Descent和Stochastic Gradient Descent。1. Batch Gradient Descent1)优点:在训练过程中,使用固定的学习率,不必担心学习率衰退现象的出现。 具有一条直接到最小值的轨迹线,并且当目标函数为凸函数时,理论上保证收敛到全局最小...

2018-09-26 17:33:35 6076

原创 机器学习笔记~K折交叉验证(K-Fold Cross Validation)的应用和局限性

1. 交叉验证的应用1)交叉验证被用于比较在特定数据集上,不同机器学习模型的性能:假设将两种机器学习模型K Nearest Neighbours (KNN) or Support Vector Machine (SVM)应用于MNIST数据集上,为了比较两种模型的分类性能,可使用交叉验证方法,这可以帮助选择在MNIST数据集中表现较好的一种模型。2)交叉验证被用于选择合适的模型参数:...

2018-09-25 16:26:06 4186

原创 Python学习笔记~UnicodeDetectorError: 'gbk' codec can't decode byte 0xae in position 90解决方法

运行python脚本时,遇到一下错误的解决办法:在打开文件的代码行添加命令:encoding='UTF-8',如下所示:

2018-09-05 12:55:23 1610

空空如也

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

TA关注的人

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