- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 tensorflow模型加载时,出现“Key Variable_xxx not found in checkpoint”的问题
在使用tensorflow保存模型后,想要加载模型,用来对测试数据进行测试时,出现了“Key Variable not fonund in checkpoint"问题。谷歌了一下,发现有一篇博客已经解答了这个问题,链接在参考博客上。为了看看我的问题和他的问题是不是一样的,我按照该博客的方法,在加载模型的代码中进行如下修改。import tensorflow as tffrom...
2019-07-25 11:10:45
1917
1
原创 python显示归一化后的直方图
在使用python进行绘制直方图的时候,首先想到的是使用matplotlib.pyplot.hist这一个函数。matplotlib.pyplot.hist(x, bins=None, range=None, density=None, weights=None, cumulative=False, bottom=None, histtype='bar', align='mid', orie...
2019-07-18 14:12:34
8852
6
原创 解决使用pickle.dump出现cannot serialize a bytes object larger than 4 GiB的问题
直接在pickle.dump中增加一个protocol = 4这个参数就行。import picklepickle.dump(data,open('file','wb'),protocol = 4)
2019-05-12 16:44:16
9964
原创 解决在visualstudio2012调用exiv2库遇到的问题
文章总结了我在使用exiv2库中遇到的问题以及解决的方法,运行环境是在win10以及visualstudio2012下进行的,最后成功的提取到JPEG头文件的一些信息,希望对各位有所帮助。
2017-12-12 12:20:28
1294
1
原创 C++ primer plus(第六版)第八章课后编程练习
第一题#include #include using namespace std;void show_str(string &pf,int n = 0);int times = 0;int main(){ string str = "I love you!"; show_str(str); show_str(str,20); show_str(str,10); sho
2017-10-27 21:49:31
254
原创 C#中的ToolStrip控件的使用
ToolStrip控件1 概念:ToolStrip控件的属性管理着控件的显示位置和显示方式,是MenuStrip控件的基础。ToolStrip控件是在工具箱中容器中的菜单栏和工具选项下面2 主要属性(1) AllowItemRecorder 是否允许重新排列toolstrip中的控件,默认为false(2)Dock 工具栏停靠的位置,默认为TOP(3)LayoutStyl
2016-12-03 15:59:20
8818
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人