自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Learning from the mistakes

我问佛∶世间为何有那麽多遗憾? 佛曰∶这是一个婆娑世界,婆娑既遗憾, 没有遗憾,给你再多幸福也不会体会快乐。

  • 博客(11)
  • 资源 (13)
  • 问答 (1)
  • 收藏
  • 关注

原创 python pandas tosql的时候“Incorrect string value: ‘\\xF0\\x9F\\x99\\x8F‘

今天想把pandas的csv里面的数据导入到数据库中,在导入的过程中有一些特殊字符,最终导致导入失败,错误码为:"Incorrect string value: '\\xF0\\x9F\\x99\\x8F'我的代码为:import pandas as pdfrom sqlalchemy import create_engineimport sqlalchemyimport globengine = create_engine('mysql+pymysql://username:pa

2020-07-31 10:10:33 794

原创 mac homebrew修改为国内的阿里源和中科院镜像

最近发现homebrew下载东西超级的慢,发现阿里的源很快,我这里分享一下我的修改过程:# 替换brew.git:cd "$(brew --repo)"git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git# 替换homebrew-core.git:cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"git remote set-url origin

2020-07-28 00:13:57 1518

原创 python 庖丁科技pdflux的表格解析(精度很高)

最近有个人叫我把印刷版的pdf解析一下,我试了腾讯,阿里,百度的方法,都不太行,后面发现创业公司庖丁科技对这方面优化得还可以,所以买了API,这里分享一下我的python实现。官网为:http://www.pdflux.com/上传文件到pdfluximport requests,jsonfrom Get_Token import encode_url""" 读取图片 """def get_file_content(filePath): with open(filePath, '

2020-07-26 09:49:35 2155 6

原创 ubuntu 命令行关掉visual studio code

今天ubuntu的图形界面被visual studio code搞卡了,想关掉它,界面关掉是不可能的了,所以只能用命令行,首先ssh登陆你的那台主机,然后运行:killall code是不是很简单参考文献[1].Kill vscode from the command line.https://stackoverflow.com/questions/52076242/kill-vscode-from-the-command-line...

2020-07-24 14:56:07 3564

原创 mac lightgbm Reason: image not found

今天在安装lightgbm的时候出现了下面的错误:Reason: image not found安装命令为: pip install lightgbm解决方法brew install lightgbm参考文献[1].LightGBM Image Not Found after Mac install.https://stackoverflow.com/questions/50889162/lightgbm-image-not-found-after-mac-instal.

2020-07-21 14:32:01 449

原创 python classification_report输出到csv文件

今天想把classification_report的统计结果输出到文件中,我这里分享一下一个简洁的方式:我的pandas版本:pandas 1.0.3代码:from sklearn.metrics import classification_reportreport = classification_report(y_test, y_pred, output_dict=True)df = pd.DataFrame(report).transpose

2020-07-20 10:46:55 3941 1

原创 python AttributeError: ‘SMOTE‘ object has no attribute ‘_validate_data‘

今天在跑树模型的时候用到了SMOTE,但是遇见了下面的错误:AttributeError: 'SMOTE' object has no attribute '_validate_data'好像是版本太低了,需要升级一下。但是升级了之后,sickitilearn又出现了错误:ModuleNotFoundError: No module named 'sklearn.externals.six'解决方法pip install imbalanced-learn==0.6pip inst

2020-07-15 10:29:05 4908 2

原创 python turtle画求逃生路线图

最近有个人要用turtle求生路线图,我这里画了一下,觉得挺烦的,不过最终还是画出来了。import turtle turtle.title('逃生路线')turtle.tracer(0) # Turns off screen updatesgrid = turtle.Turtle()STEP = 20LENGTH = 300split_num=15def draw_rectangle(width,height): for x in range(1, 5):

2020-07-10 09:49:33 1116 2

原创 python efficientdet AttributeError: module ‘gast‘ has no attribute ‘Num‘

今天在用efficientDet跑模型的时候,出现了下面的警告:WARNING:tensorflow:Entity <bound method RegressBoxes.call of <layers.RegressBoxes object at 0x7f41c3f35a90>> could not be transformed and will be executed as-is. Please report this to the AutgoGraph team. When

2020-07-05 09:41:30 1383

原创 python ModuleNotFoundError: No module named ‘frontend‘

今天在pdf转换为图片的时候,出现了下面的错误:➜ OCR_table python pdf_to_image.py Traceback (most recent call last): File "pdf_to_image.py", line 1, in <module> import sys, fitz File "/home/eric/anaconda3/lib/python3.6/site-packages/fitz/__init__.py", lin

2020-07-02 22:19:38 11653 6

原创 ubuntu 18.04安装horovod

今天在跑spellGCN的时候发现需要安装horovod,但是安装过程并不是很顺利,我这里分享一下我安装成功的方法:我的报错日志为: File "/home/wugaosheng/anaconda3/envs/ctc/lib/python3.6/site-packages/horovod/tensorflow/__init__.py", line 25, in <module> check_extension('horovod.tensorflow', 'HOROVOD_WIT

2020-07-01 14:29:52 2128 2

StegoShare.jar.zip

一个小工具,可以隐藏文件到某文件中,也可以从某文件中提取该文件

2021-05-24

openfst-1.6.7.tar.gz

编译ctcdecode所需要的第三方库,下载地址为:https://sites.google.com/site/openfst/home/openfst-down/openfst-1.6.7.tar.gz

2020-05-06

RotateDemo.rar

QT5版本的旋转图片的动画,编译器用的mingW,代码进行了重构改良,文章请参考: https://blog.csdn.net/w5688414/article/details/90072287

2019-05-10

springboot getopenid demo

springboot实现用户信息授权获取用户的id, 写的教程地址为https://blog.csdn.net/w5688414/article/details/88541743

2019-03-13

pytorch 0.3.1 python3.6 CPU版本whl

pytorch 0.3.1 python3.6 CPU版本whl,这个属于老版本了,在官网上都不容易找到,我这里分享出来

2019-03-11

NUS-WIDE多标签分类数据集整理

博客地址为:https://blog.csdn.net/w5688414/article/details/84593705 用keras进行多标签分类的图片数据集,图片取自于NUS-WIDE数据集

2018-11-29

VGG_ILSVRC_16_layers_fc_reduced.h5

VGG_ILSVRC_16_layers_fc_reduced.h5文件,用于ssd keras模型,考虑到国内没有搜到该资源,我来当当搬运工

2018-11-07

Jetson-TX2 tensorflow-1.3.0-cp35-cp35m-linux_aarch64.whl

最近编译成功了tensorflow 1.3的版本,tensorflow-1.3.0-cp35-cp35m-linux_aarch64.whl,把编译成功的文件分享给大家

2017-12-25

bazel-0.6.1-dist.zip 下载

官网地址为:https://github.com/bazelbuild/bazel/releases/,但是很难下载下来,我用的是校园网,都下了好久,我把我下载的包分享给大家,希望对大家有用

2017-11-15

Connectionist Temporal Classification: A Tutorial with Gritty Details

教程:Connectionist Temporal Classification详解补充中文翻译的对应的英文原版教程,链接为:http://blog.csdn.net/w5688414/article/details/77867786,希望能帮助到大家

2017-09-14

操作系统原理第二章作业

操作系统教程,第二版,第二章课后习题答案。

2015-01-05

操作系统页面置换LRU,FIFO,OPT算法实现代码

LRU算法,FIFO算法,OPT算法,belady现象

2015-01-05

异步框架上传客户端示例

android异步框架应用的一个小小的示例

2014-09-16

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

TA关注的人

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