Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4474342
  • 博文数量: 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-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: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-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-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 17:23:18

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

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

发布时间:2018-07-17 15:45:06

VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCVUnable to stop the stream: Device or resource busyOpenCV(3.4.1) Error: Assertion failed (scn == 3 || scn == 4) in cvtColor, file /io/opencv/modules/imgproc/src/color.cpp, line 11115打开代码发现cap = cv2.VideoCapture(.........【阅读全文】

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

发布时间:2018-07-05 10:31:51

参考https://www.tensorflow.org/tutorials/image_retraining......【阅读全文】

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

发布时间:2018-07-04 21:57:45

第一步,训练并保存模型:saver_hello.py内容如下import tensorflow as tfdef helloFunc():    print("hellFunc")if __name__ == '__main__':    hello = tf.Variable(tf.constant('Hello World', name = "hello"))    #init = tf.initialize_all_variables() #deprecated&nbs.........【阅读全文】

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

发布时间:2018-07-03 20:44:48

Compile OK.......【阅读全文】

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

发布时间:2018-07-03 11:49:37

在orb的基础上,通过一个具体的示例得出如下数据://cv::BFMatcher matcher(cv::NORM_HAMMING, false); // 632ms//cv::BFMatcher matcher(cv::NORM_L2, false); //324ms.........【阅读全文】

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

发布时间:2018-06-07 20:12:21

作者:帅得不敢出门......【阅读全文】

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

发布时间:2018-06-07 16:43:59

DELF全称是DEep Local Features以python2为例,如果针对python3请自行修改pip为pip3安装tensorflow,以下二者选一# 纯CPU:pip install tensorflow# 或者开GPU:pip install tensorflow-gpu安装google的protoc工具wget https://github.com/google/protobuf/releases/download/v3.3.0/protoc-3.3.0-linux-x86_64.zip.........【阅读全文】

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

发布时间:2018-05-09 12:20:32

系统opensuse  作者:帅得不敢出门参照官方文档https://www.tensorflow.org/get_started/os_setup.html我们可以使用pip来安装tensorflow因为依赖python,且有python2与python3之分,所以先安装virtualenv可方便得在python2.7与python3之前动态切换sudo pip install virtualenv激活环境virtualenv --system-sit.........【阅读全文】

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

发布时间:2018-04-25 14:36:11

ubuntu 16.04sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compilersudo apt-get install --no-install-recommends libboost-all-devsudo apt-get install libatlas-base-devsudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-devgi.........【阅读全文】

阅读(3447) | 评论(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

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

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

登录 注册