自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 收藏
  • 关注

原创 树莓派安装中文输入法的简单方法

树莓派安装中文输入法的简单方法# 第一步sudo apt update# 第二步sudo apt install -y fcitx-googlepinyin# 第三步reboot# 第四步 可以看到右上角的键盘符号, 输入时,点击它就能切换谷歌拼音输入法![在这里插入图片描述](https://img-blog.csdnimg.cn/203dd0a978574ad29361ded351f6b224.png?x-oss-process=image/watermark,type_ZHJva

2021-09-29 13:55:46 859

原创 python调用百度unit实现对话(科大讯飞平台也类似)

本博客记录python调用百度unit实现对话,再搭配语音合成、语音唤醒即可实现自定义的聊天机器人等。参考其它博客,硬是没跑起来,一直报错,可能是API3.0改版的原因,改动的地方程序中已标出。1 改动1,这个地方很多坑,1,内容要放在" "里面, 2"version"要填"3.0"不是2.0 3,“service_id”:"S57400"换成自己的机器人ID,如图,post_data = "{\"version\":\"3.0\",\"service_id\":\"S57400\",\"ses

2021-08-31 15:12:54 1194 1

原创 MATLAB 使用PLS建模并预测

1 数据标准化(可省略)例如z-score2 主成分分析help pca # 使用这个指令查看帮助[coeff, score, latent, tsquared, explained] = pca(ingredients);3 PLS建模并预测 help plsregres # 使用这个指令查看帮助 [xl,yl,xs,ys,beta,pctvar,mse] = plsregress(X,Y, ‘主成分个数’);...

2021-08-30 21:54:40 2268

原创 keras中使用concatenate报错

Layer concatenate_1 was called with an input that isn't a symbolic tensor. Received type: <class 'tuple'>. Full input:原代码x = concatenate((input_1, input_2), axis=1)修改代码x = concatenate([input_1, input_2], axis=1)

2021-08-04 09:00:04 575

原创 python读取含有结构体struct的.mat文件

数据如图data_path2 = './tablet_dataset/tablet_new.mat'x_train = sio.loadmat(data_path2)['x_train_1'][0, 0]['data']print("x_train.shape,", x_train.shape)另一种写法data_path2 = './tablet_dataset/tablet_new.mat'x_train = sio.loadmat(data_path2)['x_train_1']x_

2021-04-12 15:18:42 1599 1

原创 ValueError: You are trying to load a weight file containing 5 layers into a model with 9 layers.

kera报错:ValueError: You are trying to load a weight file containing 5 layers into a model with 9 layers.报错原因:擅自修改模型的层的名称解决办法:load_weight()时添加参数by_name = Trueweight_path = ' 'model.load_weights(weight_path, by_name = True)...

2021-04-11 20:56:17 1743 2

原创 LG G7ULM版只有移动2G,不能用4G的解决方法

Go to Settings Connections Mobile networksAccess Point NamesAdd a new APN by pressing ADD on right topcorner. If device has already set values for ChinaMobile for any fields below leave them. Changeothers as below.Name:China MobileAPN:cmnetProxy:P

2021-04-10 21:37:31 4933

原创 tensorflow2/kera搭建网络模型报错Input layers to a `Model` must be `InputLayer` objects. Received inputs:

报错内容Input layers to a `Model` must be `InputLayer` objects. Received inputs: Tensor("batch_normalization_1/cond/Merge:0", shape=(?, 321, 64), dtype=float32). Input 0 (0-based) originates from layer type `BatchNormalization`.原程序def build_disk_and_q_n

2021-04-09 16:38:21 457

原创 简单解决jupyter notebook没有其它conda环境及访问D,E盘的问题

本教程是在windows系统上操作1 解决jupyter notebook没有其它conda环境1.1打开anaconda prompt, 在base环境下使用命令conda install nb_conda安装可能会很慢,需要切换conda源,在C:\Users\用户名\下打开.condarc文件(没有就新建一个)channels: #- defaults - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ - ht

2021-04-02 10:12:18 687

原创 数据归一化-matlab代码

记A为原始数据,A1为归一化后的数据, PS为对应关系**1.归一化FlattenedData = A(:)'; % 展开矩阵为一列,然后转置为一行。[A1,PS] = mapminmax(FlattenedData, -1, 1); % 归一化到[-1, 1]。A2 = reshape(A1, size(A)); 还原为原始矩阵形式。2.反归一化A3= mapminmax('reverse',A1,PS); %反归一化A4=reshape(A3, size(A));

2021-03-31 12:36:00 5079

原创 keras报错:ValueError: Layer model_1 was called with an input that isn’t a symbolic tensor

keras报错:ValueError: Layer model_1 was called with an input that isn’t a symbolic tensor后面还有错误Received type: <class 'numpy.ndarray'>All inputs to the layer should be tensors.解决办法例如搭建了自定义的网络模型self.discriminator_layer1, 在调用时不能忘了加.predictself.dis

2021-03-29 14:47:53 2121

原创 windows系统conda环境安装pytorch gpu版、tensorflow gpu版

1.查看电脑英伟达驱动的cuda版本**2.(conda环境里再次安装cuda,但版本必须低于或等于上面查询的版本,这样就不用做一些教程说的去英伟达官网下载cuda,注册下载cudnn),创建conda环境:conda create -n pytorch python=3.7使用命令conda activate pytorch 进入conda虚拟环境后,使用命令安装英伟达的SDK10.1版本:conda install cudatoolkit=10.1安装英伟达深度学习软件包7.6版本co

2020-07-17 10:01:49 954

原创 ubuntu18.4中使用dock安装配置Autoware

ubuntu18.4中使用dock安装配置Autoware一、准备工作二、安装 docker1、 添加 docker 的官方 key2、确认添加成功3、添加 docker repository4、安装 docker三、安装 Autoware四、Autoware.AI的安装五、运行官方的demo2、运行autowre3、依次把文件添加进去一、准备工作官方对电脑配置的建议:通用x86;Inte...

2019-12-04 17:41:40 1792 1

空空如也

空空如也

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

TA关注的人

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