DeepLens相关资料整理

DeepLens becomes an amazing playground to test how some of the emerging technologies such as IoT, edge computing, machine learning, and server-less computing come together to address powerful scenarios.

Configuration:

AWS IoT System


The following diagram illustrates how AWS DeepLens works.


1. When turned on, the AWS DeepLens captures a video stream.

2. AWS DeepLens produces two output streams:

      Device stream – the video stream is passed through with no processing.

      Project stream – the results of the model's processing video frames.

3. The Inference Lambda function receives unprocessed video frames.

4. The Inference Lambda function passes the unprocessed frames to the project's deep learning model where they are processed.

5. The Inference Lambda function receives the processed frames back from the model and then passes the processed frames on in the project stream.

Device Registration遇到的问题:

连接wifi后deeplens.config页面无法解析,可以用arp -a找到DeepLens的IP进入Setup页面

导入Customized Model

由于之前训练好的Fire Detection模型用的是ResNet,而DeepLens暂时不支持这种网络,目前尝试绕开AWS的GreenGrass+Lambda模式,直接接入视频流Device/Live Stream,运行python程序,导出到Project Stream。

实验结果:暂不可行

1.已训练好的模型使用的tensorflow版本为1.9.0,如果DeepLens不用同样版本,frozen_inference_graph无法导入,会报No op named NonMaxSuppressionV3错误

2. 而DeepLens使用pip安装tensorflow1.9.0版本,“import tensorflow as tf”时会直接报错“Illegal instruction (core dumped)”

3. 使用Bazel安装tensorflow来build from source, it may take hours to compile...(https://blog.csdn.net/MyArrow/article/details/79923600)成功安装了,可以运行

4. 现在tensorflow/core会报警告allocation exceed 10% of system,不确定是硬件问题还是程序问题,未完待续。。。

如果不成功,需要用SageMaker+S3重做整个训练。

import matplotlib.pyplot as plt会报错,让安装python-tk

原因应该是服务器没有TkAgg Backend导致。matplotlib.use('agg')  并在matplorlibrc文件中加入backend:agg

Useful Links:

Hacker’s Guide To The AWS DeepLens

A Deep Dive on AWS DeepLens

Deep Emotion Audience Rekognition Project

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 昨天,比特币一路狂跌,接近6000美元,港股、美股创下近年最大单日跌幅,股市币市一片哀嚎。但是,股市币市的交易量却...
    边海鱼阅读 505评论 5 1
  • 困在黑暗之中我的爱来了,我一眼就认出了她被模糊的轮廓,不,我的爱她为我浑身涂满了荧光,我爱就是我爱,那么熟悉和坚定...
    楼台花舍阅读 209评论 2 2
  • 凌晨12点的飞机,晚上九点我从Ⅹ骑着同事的摩托载着她一路夜行,向着Ⅹ搭高铁去海口机场。岛上的马路很平,只是在城...
    林文01阅读 162评论 0 0
  • 我爹的爹是一个攻城略地的将军,我爹是一个操奇计赢的商人。外人眼里,我的小日子过得很幸福。其实吧,他们不知道,有名又...
    半朽阅读 737评论 13 25

友情链接更多精彩内容