摘要: plot_model接收两个可选参数: show_shapes:指定是否显示输出数据的形状,默认为False show_layer_names:指定是否显示层名称,默认为True 阅读全文
posted @ 2019-12-26 16:14 泊月居 阅读(810) 评论(0) 推荐(0) 编辑
摘要: 1 import numpy as np 2 a=np.random.rand(5) 3 print(a) 4 [ 0.64061262 0.8451399 0.965673 0.89256687 0.48518743] 5 6 print(a[-1]) ###取最后一个元素 7 [0.48518743] 8 9 print(a[:-1]) ### 除了最后一个取全部 10 [ 0.6406126 阅读全文
posted @ 2019-12-21 16:19 泊月居 阅读(7968) 评论(3) 推荐(1) 编辑
摘要: 1.创建.Desktop文件 2.建立pycharm.desktop 其中Exec是.sh文件,pycharm的启动项;Icon是图标,一般安装完成后,都会有一个pycharm图标,当然你也可以设置成任意的图标 阅读全文
posted @ 2019-09-03 21:38 泊月居 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 经过网上查找,找到了问题所在:在使用keras编程模式是,中间插入了tf.reshape()方法便遇到此问题。 解决办法:对于遇到相同问题的任何人,可以使用keras的Lambda层来包装张量流操作,这是我所做的: 阅读全文
posted @ 2019-08-30 10:51 泊月居 阅读(2976) 评论(0) 推荐(0) 编辑
摘要: 用了pip install pydot; pip install graphviz都不行 去网上查了才发现window下要去https://graphviz.gitlab.io/下载windows版本的安装包,安装好之后在环境变量中添加对应的路径重启ide 阅读全文
posted @ 2019-08-28 17:01 泊月居 阅读(4602) 评论(0) 推荐(0) 编辑
摘要: 使用keras做vgg16的迁移学习实验,在实现的过程中,冒各种奇怪的bug,甚至剪贴复制还是出问题。 解决方案: 当使用组合keras和tensorflow.keras时。由于版本不一致问题导致很多正常的功能不能实现,只使用一个问题解决。 阅读全文
posted @ 2019-08-27 22:39 泊月居 阅读(154) 评论(0) 推荐(0) 编辑
摘要: Configuring the Object Detection API on Windows is a tricky task. You will find the answer in the following links. https://www.cnblogs.com/jqpy1994/p/ 阅读全文
posted @ 2019-08-11 15:43 泊月居 阅读(1101) 评论(0) 推荐(0) 编辑
摘要: refer this https://github.com/philferriere/cocoapi However, you may encounter a bug where you cannot open basestd.h. The solution is as follows: For t 阅读全文
posted @ 2019-08-11 10:52 泊月居 阅读(694) 评论(0) 推荐(0) 编辑
摘要: 1 ##深度学习过程中,需要制作训练集和验证集、测试集。 2 3 import os, random, shutil 4 from config import * 5 import re 6 7 #用于清空并生成文件夹 8 def test_train_dir(): 9 # 清空文件夹里面的所有文件,然后创建,解决重复占用问题 10 # ... 阅读全文
posted @ 2019-07-16 17:17 泊月居 阅读(1630) 评论(0) 推荐(0) 编辑
摘要: Q: 进行数据集图片预处理时,初始命名如下图(Fig1左),发现读取文件时,读取的结构并非如所设想的那样顺序读取 Fig 1 A: pyhton读取文件的时候,按照文件名的ascii码中的顺序进行逐位排序,于是编写以下代码,更改命名规则,程序如下 1 # -*- coding:utf-8 -*- 2 阅读全文
posted @ 2019-05-26 11:23 泊月居 阅读(626) 评论(0) 推荐(0) 编辑