- 博客(18)
- 收藏
- 关注
原创 2020-12-26
xlrd.biffh.XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b’s1,s2,s3’这是输入数据的错误将输入数据的格式 .csv 改成 .xls
2020-12-26 16:03:53
171
原创 2020-12-15
from sklearn.ensemble.partial_dependence import partial_dependence, plot_partial_dependence#ModuleNotFoundError: No module named ‘sklearn.ensemble.partial_dependence’改为:from sklearn.inspection import partial_dependencefrom sklearn.inspection import plo
2020-12-15 17:02:44
424
原创 2020-12-15
from sklearn.preprocessing import SimpleImputerImportError: cannot import name ‘SimpleImputer’ from ‘sklearn.preprocessing’ (F:\Python37\lib\site-packages\sklearn\preprocessing_init_.py)修改为:from sklearn.impute import SimpleImputer
2020-12-15 16:57:14
121
原创 2020-12-08
ValueError: TiffPage 0: <COMPRESSION.LZW: 5> requires the ‘imagecodecs’ package这个错误是因为:输入的图像属性不匹配,而在这里,图像原始格式为"jpg"改为"TIF".使得出现了错误
2020-12-08 16:54:29
590
1
原创 2020-12-08
Lossy conversion from float64 to uint8. Range [0, 1]. Convert image to uint8 prior to saving to suppress this warning出现的原因是:批量处理的导入的图像格式与处理后保存的格式不符
2020-12-08 15:52:17
1622
3
原创 编码实现图像可视化
#import all required libimport matplotlib.pyplot as pltimport numpy as npfrom skimage.io import imreadfrom skimage.transform import resize#Load a color image in grayscaleimage = imread('C:/Users/Administrator/Desktop/OTganxiangququyue/2.tif', as_gra
2020-08-06 15:56:10
213
原创 AttributeError: module ‘tensorflow‘ has no attribute ‘variable_scope‘
import tensorflow as tf改为:
2020-08-01 10:54:14
2339
原创 ImportError: cannot import name ‘Optional‘ from ‘torch.jit.annotations‘ (F:\Python37\lib\site-packag
直接在命令行输入pip install torch=1.2.0 torchvision=0.4.0 -f https://download.pytorch.org/whl/torch_stable.html成功解决
2020-07-26 21:13:30
2228
1
原创 pip包安装PyTorch第三方包时出现错误“ Command errored out with exit status 1”
pip3 install http://download.pytorch.org/whl/cu80/torch-0.4.1-cp37-cp37m-win_amd64.whlpip3 install torchvision原文
2020-07-26 10:55:43
1482
原创 AttributeError: module ‘tensorflow‘ has no attribute ‘variable_scope‘
import tensorflow改为import tensorflow.compat.v1 as tftf.disable_v2_behavior()
2020-07-25 22:17:09
2766
原创 AttributeError: module ‘tensorflow‘ has no attribute ‘placeholder‘
import tensorflow as tf改import tensorflow.compat.v1 as tftf.disable_v2_behavior()
2020-07-25 12:07:04
119
原创 AttributeError: module ‘tensorflow‘ has no attribute ‘reset_graph‘
from tensorflow.python.framework import opsops.reset_default_graph()
2020-07-25 12:04:06
230
原创 AttributeError: module ‘keras.backend‘ has no attribute ‘set_image_dim_ordering‘
K.set_image_dim_ordering(‘th’)K.set_image_dim_ordering(‘tf’)改为from keras import backend as KK.image_data_format() == ‘channels_first’from keras import backend as KK.image_data_format() == ‘channels_last’
2020-07-25 09:47:48
2078
原创 python 3.7.3 安装opencv
先输了pip install opencv 发现不匹配再输了pip install opencv-python 成功解决
2020-07-25 09:38:09
186
原创 python3.7.3安装tensorflow
直接在python中的Scripts按住文件夹shift+Ctrl+右键进入命令窗口,pip install tensorflow 就成功安装如果安装成功显示No module named ‘tebsorflow’ 建议重启电脑,或者配置环境。
2020-07-25 09:35:22
312
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人