错误记录
依神女苑
这个作者很懒,什么都没留下…
展开
-
解决:ParserError: Error tokenizing data. C error: Buffer overflow caught - possible malformed input fi
解决方法:https://blog.csdn.net/weixin_45798684/article/details/109297232原创 2020-10-26 20:12:36 · 4360 阅读 · 0 评论 -
解决:ParserError: Error tokenizing data. C error: Expected 1 fields in line 16, saw 2
本来运行没毛病lbptop_train = pd.read_csv('D:\Workspace\JupyterNotebook\LBP-TOP\lbptop_data_tr.csv', header=None);换个文件,出错了lbptop_train = pd.read_csv('D:\Workspace\JupyterNotebook\LBP-TOP\lbptop_data_tr_landmarks.csv', header=None);ParserError: Error tokeniz原创 2020-10-26 20:08:02 · 15633 阅读 · 2 评论 -
解决:error: (-215:Assertion failed) !_src.empty() in function ‘cvtColor‘
原因是没有找到输入的图片,有时候使用摄像头的时候也会经常报这个错误,这个时候需要检查一下自己输入的图片地址是否正确,或者摄像头是否能够正常打开。原创 2020-08-15 20:32:11 · 5631 阅读 · 0 评论 -
解决:pandas 取消读取csv时默认第一行为列名
当第一行为有效数据,不可作为列名给 pd.read_csv() 加上 header=None 即可读出来的数据第一行为正常数据,列名为从0开始的序列>>> concated_lbptop_train = pd.read_csv('lbptop_data_tr.csv');>>> concated_lbptop_train.shape(28, 768)>>> concated_lbptop_train = pd.read_csv('lbptop原创 2020-08-13 14:39:18 · 5920 阅读 · 0 评论 -
解决:get_forge_pkg: could not read URL, please verify internet connection
比如这段代码现在出现error: get_forge_pkg: could not read URL, please verify internet connection>> pkg install -forge imageerror: get_forge_pkg: could not read URL, please verify internet connectionerror: called from get_forge_pkg at line 66 column 7原创 2020-08-06 22:39:25 · 1719 阅读 · 0 评论 -
解决:the ‘imresize‘ function belongs to the image package from Octave Forge which you have installed b
比如这段代码现在出现warning: the ‘imresize’ function belongs to the image package from Octave Forge which you have installed but not loaded. To load the package, run ‘pkg load image’ from the Octave prompt. Please read https://www.octave.org/missing.html to learn h原创 2020-08-06 22:32:56 · 3051 阅读 · 2 评论 -
shape_predictor_68_face_landmarks.dat百度云下载
predictor_path = “shape_predictor_68_face_landmarks.dat”链接: https://pan.baidu.com/s/10ZZNw86SqZL3-0D2XqC6tg提取码: p2fc原创 2020-06-19 20:56:00 · 5576 阅读 · 3 评论 -
解决:pycharm python3.7成功安装dlib库
ModuleNotFoundError: No module named ‘dlib’尝试命令,但没成功pip3 install dlib -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com解决方法:第1步下载对应python3.7的whl文件:链接: https://pan.baidu.com/s/1MKqW7WH2XP-J8MOLeq3cDA提取码: rfh8第2步将下载好的whl放到当前目录下第3步原创 2020-06-19 20:46:46 · 9862 阅读 · 11 评论 -
解决:在原有账号的基础上如何修改CSDN博客标题上的ID号
第1步第2步第3步第4步原创 2020-06-05 18:07:20 · 817 阅读 · 0 评论 -
Keras框架下Batch_Size在LSTM训练与预测中的使用
batch_input_shape=(BATCH_SIZE, TIME_STEPS, INPUT_SIZE)cost, accuracy = model.evaluate(X_test, y_test, batch_size=BATCH_SIZE, verbose=False)在keras框架中,搭建时候设置了batch_size后(即在训练过程中,保持着batch_size),那么我在预测的时候也必须将test设置成batch_size的大小,否则程序会报错。...原创 2020-06-04 17:37:19 · 2351 阅读 · 0 评论 -
解决:to_categorical() got an unexpected keyword argument ‘nb_classes’
比如这段代码现在出现TypeError: to_categorical() got an unexpected keyword argument ‘nb_classes’# data pre-processing# normalizeX_train = X_train.reshape(X_train.shape[0], -1) / 255X_test = X_test.reshape(X_test.shape[0], -1) / 255y_train = np_utils.to_categoric原创 2020-06-02 23:20:18 · 1436 阅读 · 0 评论 -
解决:使用keras自带的MNIST数据集加载方法不可行
(X_train, y_train), (X_test, y_test) = mnist.load_data()加载mnist数据,运行时会报错解决方法:第1步下载minst.npz:链接: https://pan.baidu.com/s/1b2ppKDOdzDJxivgmyOoQsA提取码: y5ir第2步将下载好的minst.npz放到当前目录下第3步修改mnist获取语句(X_train, y_train), (X_test, y_test) = mnist.load_data原创 2020-06-02 23:13:07 · 556 阅读 · 0 评论 -
解决:Invalid format specifier
一定是你format函数中某一占位少了,或者格式不对(位置问题)原创 2020-05-12 17:23:31 · 9283 阅读 · 1 评论 -
爬虫框架Scrapy的安装(图文教程)
第1步安装lxml(这个最重要)pip3 install lxml第2步安装pyOpenSSL在官网下载wheel文件点此下载下载后进入该文件所在目录使用pip3 install pyOpenSSL-19.1.0-py2.py3-none-any.whl第3步安装Twisted在控制台下输入python查看你的电脑版本和python版本如下图我电脑是64位p...原创 2020-04-29 17:50:30 · 549 阅读 · 0 评论 -
解决:intelliJ idea scene buider加载不出来
解决:intelliJ idea scene buider加载不出来intelliJ idea scene buider加载不出来解决方法:intelliJ idea scene buider加载不出来解决方法:在IDEA工具的Help菜单里面选择Find Action输入Switch看到提示显示“Switch IDE Boot JDK”选择这个选项然后配置一个新的启动项定位到JD...原创 2020-04-09 09:53:33 · 1972 阅读 · 0 评论 -
解决:win10所有打开方式全变成twinui了
解决:win10所有打开方式全变成twinui了win10所有打开方式全变成twinui了解决方法:win10所有打开方式全变成twinui了解决方法:想打开谁就右键打开方式选择其他应用始终使用此应用打开文件确定下次再想打开就可以直接双击打开了...原创 2020-04-07 09:34:20 · 4836 阅读 · 0 评论