Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4474320
  • 博文数量: 356
  • 博客积分: 10458
  • 博客等级: 上将
  • 技术积分: 4734
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-24 14:59
文章分类

全部博文(356)

文章存档

2020年(17)

2019年(9)

2018年(26)

2017年(5)

2016年(11)

2015年(20)

2014年(2)

2013年(17)

2012年(15)

2011年(4)

2010年(7)

2009年(14)

2008年(209)

发布时间:2019-08-31 22:20:58

tensorflow保存模型有多种方法第一种:saver.save(sess, "./hello_model") # 生成ckpt模型文件, hello_model.data-00000-of-00001  hello_model.index  hello_model.meta第二种:tf.train.write_graph(sess.graph_def, ./,  'hello.pb') # 生成hello.pb, 再通过freeze_graph把hello.pb与ckpt固.........【阅读全文】

阅读(181288) | 评论(1) | 转发(0)

发布时间:2020-06-03 19:51:55

taro 1.7升级到2版本后,可能会遇到些问题1 无法编译,taro update project失败大部分情况按照官方文档是能正常升级并编译的,如果实在无法更新项目中的库,则暴力点就是直接删除它们,重新构建taro init projectname后,然后再把旧工程中的src拷贝进去,然后合并下配置比如package.json,安装其他的插件,比如taro-ui.........【阅读全文】

阅读(1182) | 评论(0) | 转发(0)

发布时间:2020-06-03 19:50:18

由于自己的linux系统比较新,导致编译个基于openwrt的sdk问题多多,在此记录解决过程1.问题:freadahead.c: In function 'freadahead':freadahead.c:91:3: error: #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bu.........【阅读全文】

阅读(9602) | 评论(0) | 转发(0)

发布时间:2020-06-03 19:47:08

企业微信历史记录,包括聊天信息,语音,视频,文件等,会占用很大的空间,如果需要暴力删除为系统清理空间,可找到保存信息的目录,进行手动删除目录是C:\Users\Administrator\Documents\WXWork比如C:\Users\Administrator\Documents\WXWork\1688850657273694\Cache下面有这些文件,分别对应  文件, 图片, 视.........【阅读全文】

阅读(1985) | 评论(0) | 转发(0)

发布时间:2020-06-03 19:45:50

如果是使用Button则此按钮的css需要加上border:none比如.xxbutto:after{ border: none; }修改后如下图......【阅读全文】

阅读(1607) | 评论(0) | 转发(0)

发布时间:2020-06-03 19:43:47

......【阅读全文】

阅读(4966) | 评论(0) | 转发(0)

发布时间:2020-05-30 13:27:09

使用keras,出错Traceback (most recent call last): File "./real-time.py", line 8, in <module>   detect_hand = Detector(weights='weights/solo.h5', threshold=0.8) File "/home/zm/下载/Unified-Gesture-and-Fingertip-Detection/SOLO/solo.py", line 11, in __init__   self.m.........【阅读全文】

阅读(4602) | 评论(0) | 转发(0)

发布时间:2020-05-30 13:25:54

python3# import keras出错:Traceback (most recent call last):  File "<stdin>", line 1, in <module>  File "/home/zm/tensor/lib/python3.6/site-packages/keras/__init__.py", line 5, in <module>    from . import applications  File "/home/zm/tensor/lib/python3.6/site-packag.........【阅读全文】

阅读(4278) | 评论(0) | 转发(0)

发布时间:2020-05-30 13:24:07

下载源码 https://sourceforge.net/projects/zint/tar -xvf zint-2.6.7.tar.gzcd zint-2.6.7/backend_qt/若不依赖png,则编辑backend_qt.pro    DEFINES += ZINT_VERSION="\\\"2.6.7\\\""    改成    DEFINES += NO_PNG ZINT_VERSION="\\\"2.6.7\\\""默认编译的是静态库,若要编译动.........【阅读全文】

阅读(1895) | 评论(0) | 转发(0)

发布时间:2020-05-30 13:21:56

读取代码如下,遍历文件夹,得到路径及对应label点击(此处)折叠或打开def GetLabelAndFileName(rootdir, level, label):    if not os.path.isdir(rootdir):        print("not dir").........【阅读全文】

阅读(972) | 评论(0) | 转发(0)

发布时间:2020-05-30 13:18:53

对于彩色图像,不管其图像格式是PNG,还是BMP,或者JPG,在PIL中,使用Image模块的open()函数打开后,返回的图像对象的模式都是“RGB”。而对于灰度图像,不管其图像格式是PNG,还是BMP,或者JPG,打开后,其模式为“L”。img = Image.open('1.bmp').convert('L')如果convert中 模式“1”为二值图像,非黑即白。但是它每.........【阅读全文】

阅读(1985) | 评论(0) | 转发(0)

发布时间:2020-05-30 13:14:48

taro多端开发框架的拖动重排控件github地址https://github.com/tczengming/taro-dragsort由wx-plugin移植而来,这里特别感谢wx-plugin的作者 目前只支持单列拖动重排,多列功能未实现,要实现也不难,当列改变时通过redux通知drag控件columns已经改变,让drag控件重新调用init()一次src/├── components│  &.........【阅读全文】

阅读(1669) | 评论(0) | 转发(0)

发布时间:2020-03-24 14:29:23

因为是封装,所以依赖rapidjson,请自行下载rapidjson源码,使用示例如下点击(此处)折叠或打开const char *JSON = "{" ""double":100.11," ""int":200," ""str":"Hello World"," ""bool":false" "}"; rapidjson::Document d;.........【阅读全文】

阅读(2254) | 评论(0) | 转发(0)

发布时间:2020-03-24 14:26:14

fcitx乱码问题,有两种,一种是中文乱码,需要安装中文字体并设置fcitx字体为此中文字体另一种是五笔大字集使用过程会有一部分文字为乱码,本文讨论的是这种解决方式,使用五笔大字集的目的是可五笔及拼音混编,在设置中文字体无效后,找到曲线解决方式,删除五笔大字集,安装fcitx-table-cn-wubi-pinyin这个字符表代.........【阅读全文】

阅读(956) | 评论(0) | 转发(0)

发布时间:2020-03-24 14:23:18

在linux下开发微信小程序,发现用虚拟机执行widnows然后运行微信开发者工具太难用了,每次改完js文件,需要先关闭掉开发者工具中的项目再重新打开并编译,才能正常编译,一次编译就要近1分钟,太痛苦了,网上有许多linux下安装此工具的文章,但是发现下载wechat_web_devtools及nwjs-sdk太难了,老是下载失败,此次终于安.........【阅读全文】

阅读(1589) | 评论(0) | 转发(0)

发布时间:2020-03-24 14:21:33

taro自己写的程序编译正常,但是从网上下载的taro项目却发现一个都编译不过。编译命令npm  run dev:weapp 错误如下:             > Miai@1.0.0 dev:weapp /opt/Miai> npm run build:weapp -- --watch> Miai@1.0.0 build:weapp /opt/Miai> taro build --type weapp ".........【阅读全文】

阅读(2777) | 评论(0) | 转发(0)

发布时间:2020-03-24 14:17:46

训练模型并生成ckpt保存到./test目录下ls ./test/checkpoint                                   events.out.tfevents.1565972704.103cfd64b10e  model.ckpt-170000.indexevents.out.tfevents.1565752875.246d2b4c0eaa &nbs.........【阅读全文】

阅读(2814) | 评论(0) | 转发(0)

发布时间:2020-03-24 11:11:03

ckpt转换成SavedModelconvert_ckpt_to_savermodel.pyimport tensorflow as tfimport systrained_checkpoint_prefix = sys.argv[1]export_dir = sys.argv[2]graph = tf.Graph()config=tf.ConfigProto(allow_soft_placement=True, log_device_placement=True)with tf.compat.v1.Session(graph=graph, config=.........【阅读全文】

阅读(1984) | 评论(0) | 转发(0)

发布时间:2019-08-08 09:22:59

......【阅读全文】

阅读(2280) | 评论(0) | 转发(0)

发布时间:2019-08-05 09:40:48

原生tensorflow模型点击(此处)折叠或打开import tensorflow as tfimport numpy as npx_data = np.random.rand(50)y_data = x_data * 0.6 + 0.8w = tf.Variable(0.)b = tf.Variable(0.).........【阅读全文】

阅读(1429) | 评论(0) | 转发(0)

发布时间:2019-08-02 20:48:06

......【阅读全文】

阅读(281262) | 评论(0) | 转发(0)

发布时间:2019-08-02 17:23:18

可批量对图片进行旋转,增大,缩小等操作,生成新的图片假设目录如下:├── train_gen└── train_org└── sheep└── 0.jpgtrain_org是原始数据,子目录sheep为标签(注意源目录下必须要有子目录做为标签,即y),0.jpg为输入数据(即train_x)。 批量生成图片到train_gen/下python代码点击(此处)折.........【阅读全文】

阅读(11205) | 评论(0) | 转发(0)

发布时间:2019-06-22 14:59:16

交叉编译mpg123下载源码https://sourceforge.net/projects/mpg123/files/解压后进入源码目录生成Makefile./configure CC=arm-openwrt-linux-gcc --host=arm-openwrt-linux --with-default-audio=alsa --enable-static --prefix=pwd/install/编译make安装make install拷贝install下的lib/libmpg123.so* lib/libmpg1.........【阅读全文】

阅读(2277) | 评论(0) | 转发(0)

发布时间:2019-05-23 10:59:07

std::list为empty时调用pop_front导致程序崩溃如果list中装的是指针,当其为empty时,再调用pop_front可能会返回一个非NULL的值,此时直接使用这个返回的指针会导致内存越界。 点击(此处)折叠或打开#include #include #include .........【阅读全文】

阅读(266697) | 评论(0) | 转发(0)

发布时间:2019-01-23 21:27:46

下载nghttp2代码https://github.com/nghttp2/nghttp2/releases解压代码, 比如解压到/home/zm/download/nghttp2-1.36.0,进入代码目录,进行编译./configure --enable-lib-only --host=arm-openwrt-linux --prefix=/opt/test/thirdparty/install/makemake install下载curl代码https://curl.haxx.se/download.htm.........【阅读全文】

阅读(3684) | 评论(0) | 转发(0)
给主人留下些什么吧!~~

chinaunix网友2011-02-15 16:05

看了你的博文,有这么多的体会,很佩服你的学习精神,总结出来写本书如何?我的联系方式:wuyi1352@gmail.com

回复 |  删除 |  举报

chinaunix网友2009-06-11 17:22

你好,问一下SendARP探测活动性的那是原原本本的程序吗,不缺什么吧?我运行之后SendARP的返回值总是31.不知道为什么,麻烦帮忙看看,谢谢了!

回复 |  删除 |  举报

chinaunix网友2009-05-14 17:00

文章都很好 收藏了

回复 |  删除 |  举报

wjksd2009-04-17 11:24

很厉害啊

回复  |  举报

chinaunix网友2008-11-09 16:44

师兄,我来像你学习来啦! 嘎嘎!

回复 |  删除 |  举报
留言热议
请登录后留言。

登录 注册