自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 153

原创 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 380

原创 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 103

原创 2020-12-08

ValueError: TiffPage 0: <COMPRESSION.LZW: 5> requires the ‘imagecodecs’ package这个错误是因为:输入的图像属性不匹配,而在这里,图像原始格式为"jpg"改为"TIF".使得出现了错误

2020-12-08 16:54:29 512 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 1579 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 188

原创 AttributeError: module ‘tensorflow‘ has no attribute ‘variable_scope‘

import tensorflow as tf改为:

2020-08-01 10:54:14 2307

原创 ModuleNotFoundError: No module named ‘sklearn.cross_validation‘

改为:

2020-07-30 17:04:43 102

原创 ypeError: unsupported operand type(s) for /: ‘map‘ and ‘int‘

图中的1报错改为

2020-07-30 15:23:03 397

原创 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 2177 1

原创 pip install torchvision成功

2020-07-26 11:25:42 2321 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 1457

原创 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 2728

原创 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 101

原创 AttributeError: module ‘tensorflow‘ has no attribute ‘reset_graph‘

from tensorflow.python.framework import opsops.reset_default_graph()

2020-07-25 12:04:06 213

原创 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 2054

原创 python 3.7.3 安装opencv

先输了pip install opencv 发现不匹配再输了pip install opencv-python 成功解决

2020-07-25 09:38:09 159

原创 python3.7.3安装tensorflow

直接在python中的Scripts按住文件夹shift+Ctrl+右键进入命令窗口,pip install tensorflow 就成功安装如果安装成功显示No module named ‘tebsorflow’ 建议重启电脑,或者配置环境。

2020-07-25 09:35:22 279

空空如也

空空如也

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

TA关注的人

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