- 博客(12)
- 资源 (13)
- 问答 (1)
- 收藏
- 关注
原创 ubuntu pip安装xgboost的CMake 3.13 or higher is required. You are running version 3.10.2
今天在装xgboost的时候出现了下面的错误: INFO:XGBoost build_ext:Building from source. /tmp/pip-install-elc4qdig/lib/libxgboost.so INFO:XGBoost build_ext:Run CMake command: ['cmake', 'xgboost', '-GUnix Makefiles', '-DUSE_OPENMP=1', '-DUSE_CUDA=0', '-DUSE_NCCL=0', '-D
2020-06-29 14:44:01 8219 4
原创 ubuntu 安装kenlm
今天想利用kenlm来跑一个n-gram模型,发现安装起来并不是很容易,我这里分享一下我的安装过程:安装依赖sudo apt install build-essential cmake libboost-system-dev libboost-thread-dev libboost-program-options-dev libboost-test-dev libeigen3-dev zlib1g-dev libbz2-dev liblzma-dev下载代码git clone https:
2020-06-28 11:06:30 769
原创 python matplotlib在图像上画方框
今天用matplotlib画方框,发现死活画不上去,opencv一下子就画上去了,但是jupyter用matplotlib居多,我这里分享一下我显示方框的代码:import numpy as npimport matplotlib.pyplot as plt # 导入绘图包from PIL import Imageimport matplotlib.patches as patchesimg_path='/media/data/projects/EyesDetection/eyes/眼部打码
2020-06-26 09:22:56 8817 3
原创 ubuntu 编译darknet error: ‘__args_arr’ was not declared in this scope
今天 在编译darknet的时候,出现了下面的错误:/usr/local/cuda/include/crt/host_runtime.h:19:2: warning: #warning "crt/device_functions.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp] #warning "
2020-06-20 18:42:07 1186
原创 ubuntu g++: error: unrecognized command line option ‘-fno-plt’
今天在编译chineseocr_lite下面的psenet的时候出现了下面的错误:g++: error: unrecognized command line option ‘-fno-plt’Makefile:10: recipe for target 'pse.so' failedmake: *** [pse.so] Error 1make: Leaving directory '/media/data/projects/OCR/chineseocr_lite/psenet/pse'Trac
2020-06-20 18:13:24 4057 1
原创 mac dyld: Library not loaded: /usr/local/opt/x265/lib/libx265.179.dylib
今天在用mac上的ffmpeg的时候出现了下面的错误:dyld: Library not loaded: /usr/local/opt/x265/lib/libx265.179.dylib Referenced from: /usr/local/bin/ffmpeg Reason: image not found貌似是ffmpeg出问题了。解决方法brew reinstall ffmpeg参考文献[1].Dynamically linked dependencies.
2020-06-16 16:18:51 1347
原创 python pdf转换为word
今天尝试了一下用pdf转换为word的操作,也是借鉴的别人的代码,地址为:https://github.com/python-fan/pdf2word,改了改,把多线程那些去掉了,然后这份代码有几个缺点,我说一下:扫描版不能转换 转换出来主要是文本,并且不带格式的 有一些字体不能转换这里面有很多可以改进的地方,就期待大牛加入推动这个项目了哈。代码需要的环境为:attrs==17.4.0lxml==4.1.1pdfminer3k==1.3.1pluggy==0.6.0ply==3.
2020-06-13 12:42:09 964
原创 mac ImportError cannot import name process_pdf from pdfminer pdfinterp
今天在使用pdfminer的时候出现了下面的错误:ImportError: cannot import name 'process_pdf' from 'pdfminer.pdfinterp'然后明明安装了pdfminer,却导入不进来。解决方法pip uninstall PDFMiner3Kpip uninstall PDFMinerpip install pdfminer3k然后就行了,主要思路就是先卸载干净,再安装下面是我的关于pdf的东西,仅供参考,我的是mac.
2020-06-13 12:11:41 2949 3
原创 python 按照标点符号切分句子,去除标点符号,判断字符串是否包含中文
最近在处理文本,发现切分句子,去除标点符号,判断字符串是否包含中文经常会用到,我这里分享一下我的代码:切分句子import redef split_sentences(line): line_split = re.split(r'[。!;?,]',line.strip()) line_split = [line.strip() for line in line_split if line.strip() not in ['。','!','?',';',','] and len(li
2020-06-09 18:29:59 7392 4
原创 opencv-python提取二维码(二)
今天尝试了一下博客:https://blog.csdn.net/kellen_f/article/details/81667315发现报了各种错误,然后我把解决过程记录下来,我安装了下面的库:pip install opencv-python-headlessopencv相关的版本为:opencv-contrib-python 3.4.2.16opencv-python 4.2.0.32openc
2020-06-08 22:28:43 1052 1
原创 python 把pdf的表格解析成excel
最近做了一个pdf解析的工具,能够对部分的pdf文档进行解析,对扫描版的pdf没啥用,我这里把我实现的代码分享出来:安装pip install pdfplumber代码import pdfplumberimport pandas as pdimport osfrom tqdm import tqdm # pip install pdfplumberdef PDF_parser(xlsx_name,pdf_name): writer=pd.ExcelWriter(xl.
2020-06-07 21:00:25 1050 1
原创 python 多分类画auc曲线和macro-average ROC curve
最近帮一个人做了一个多分类画auc曲线的东西,不过最后那个人不要了,还被说了一顿,心里很是不爽,anyway,我写代码的还是要继续写代码的,所以我准备把我修改的代码分享开来,供大家研究学习。导入基础的pandas和keras处理函数import pandas as pdfrom keras.utils import to_categorical导入数据data=pd.read_excel('5分类新.xlsx')data.head()导入机器学习库from sklearn.met
2020-06-07 00:15:07 7982 2
openfst-1.6.7.tar.gz
2020-05-06
RotateDemo.rar
2019-05-10
springboot getopenid demo
2019-03-13
pytorch 0.3.1 python3.6 CPU版本whl
2019-03-11
NUS-WIDE多标签分类数据集整理
2018-11-29
VGG_ILSVRC_16_layers_fc_reduced.h5
2018-11-07
Jetson-TX2 tensorflow-1.3.0-cp35-cp35m-linux_aarch64.whl
2017-12-25
bazel-0.6.1-dist.zip 下载
2017-11-15
Connectionist Temporal Classification: A Tutorial with Gritty Details
2017-09-14
TA创建的收藏夹 TA关注的收藏夹
TA关注的人