AttributeError: 'str' object has no attribute 'predict'
关注
码龄 粉丝数 原力等级 --
- 被采纳
- 被点赞
- 采纳率
AttributeError: 'str' object has no attribute 'predict'
收起
- 写回答
- 好问题 0 提建议
- 关注问题
微信扫一扫点击复制链接分享
- 邀请回答
- 编辑 收藏 删除 结题
- 收藏 举报
3条回答 默认 最新
- 关注
码龄 粉丝数 原力等级 --
- 被采纳
- 被点赞
- 采纳率
CSDN专家-sinJack 2023-04-18 15:27关注str这个字符串对象不存在predict方法,检查你的代码并确定你正在正确地使用对象和方法
本回答被题主选为最佳回答 , 对您是否有帮助呢? 本回答被专家选为最佳回答 , 对您是否有帮助呢? 本回答被题主和专家选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏举报
微信扫一扫点击复制链接分享
评论按下Enter换行,Ctrl+Enter发表内容
报告相同问题?
提交
- 2022-08-23 13:55舞夏的博客 Error
- 七月初七淮水竹亭~的博客 AttributeError: 'Sequential' object has no attribute 'predict_classes'如何解决
- 2024-10-05 08:27几何心凉的博客 已解决:AttributeError: 'str' object has no attribute 'decode'
- 2022-10-24 15:13Zpadger的博客 AttributeError: 'str' object has no attribute 'decode' 问题分析 该报错意思是:属性错误:'str'对象没有'decode'属性 解决方法 最简单的方法,不用修改代码 pip install 'h5py<3.0.0' -i https://pypi.tuna....
- 2021-12-07 22:57一个处女座的程序猿的博客 成功解决keras库中出现AttributeError: 'str' object has no attribute 'decode' 目录 解决问题 解决思路 解决方法 解决问题 AttributeError: 'str' object has no attribute 'decode' ...
- melody_kangkang的博客 当我们在运行YOLOv10的val.py时,发现模型报错AttributeError: 'dict' object has no attribute 'shape'。通过在网上查找相关解决办法,发现原来是没有使用YOLOv10版本的val方式,而是使用了默认v8的方式(因为v10是...
- 2022-03-17 21:19Demon丶宇的博客 解决Yolov3中AttributeError: 'str' object has no attribute 'decode'错误的经验
- 2024-04-12 11:13鳗小鱼的博客 看个效果图: 相关链接 AttributeError: ‘str‘ object has no attribute ‘decode‘解决方法_attributeerror: 'str' object has no attribute 'dec-CSDN博客文章浏览阅读10w+次,点赞103次,收藏180次。...
- guotianqing的博客 再次加载这个模型时,报错了:AttributeError: ‘str‘ object has no attribute ‘decode‘ “: 我是使用 keras_to_tensorflow.py 这个脚本的时候报的错。 解决 网上说了一些报这个错误的解决方法。 python2和...
- 2021-05-08 11:23aigonna的博客 LogisticRegression 报错 AttributeError: ‘str’ object has no attribute ‘decode’ stackoverflow解答 解决办法将求解器指定为liblinear: logreg = LogisticRegression(solver='liblinear', class_weight=...
- 2020-01-06 11:21洪流之源的博客 AttributeError: 'str' object has no attribute 'decode' 解决思路 根据问题提示,意思是,属性错误:“str”对象没有属性“decode” python3.5和Python2.7在套接字返回值解码上的区别 python在bytes和str两种类型...
- 小刘鸭!的博客 使用keras训练好了mnist数字识别模型后,准备拿来做预测。 以下是预测代码: #coding:utf-8 import cv2 import numpy as np from keras.models import load_...img = cv2.imread('Predict_image/7.jpg', 0) ...
- 2021-04-10 11:14是春春呀·的博客 Pycharm之AttributeError: ‘function’ object has no attribute 'parse’报错 这个问题我百度了好久,也没有找到能解决的办法,在开始我的项目是可以运行的,可能是自己不小心点到了什么之后运行不出来,后面想起...
- 我是一只小小小小龙的博客 解决AttributeError: ‘DictVectorizer’ object has no attribute ‘get_feature_names’ 在当前版本的 scikit-learn 中,DictVectorizer类已经没有get_feature_names方法了。如果你想要获取转换后的特征名,可以...
- 没有解决我的问题, 去提问