|
|
|
|
|
|
移动端目标识别(1)——使用TensorFlow Lite将tensorflow模型部署到移动端(ssd)之TensorFlow Lite简介
摘要:平时工作就是做深度学习,但是深度学习没有落地就是比较虚,目前在移动端或嵌入式端应用的比较实际,也了解到目前主要有 caffe2,腾讯ncnn,tensorflow,因为工作用tensorflow比较多,所以也就从tensorflow上下手了。 下面内容主要参考&翻译: https://www.ten
阅读全文
crontab,定时任务执行找不到库or shell可执行,crontab 定时任务下就不能执行,tensorflow,ImportError: libcuda.so.1: cannot open shared object file: No such file or directory
摘要:在线上启动一个定时任务,但是起来查看,发现任务执行找不到库,报cuda错误: ImportError: libcuda.so.1: cannot open shared object file: No such file or directory 后面在/usr/local/nvidia/lib64
阅读全文
tensorflow,model,object_detection,训练loss先下降后递增,到几百万,解决tensorflow,model,object,detection,loss,incease
摘要:现象:训练loss一开始下降一部分,跌代到若干次(具体多少和你的learning rate大小有关,大就迭代小就发生,小就需要多几次迭代)日志如下(下面的日志来源于网络,我自己的日志已经clear掉了,不过不影响): INFO:tensorflow:global step 272: loss = 0
阅读全文
python,opencv,imread,imwrite,存储,读取图像像素不一致,这种情况是label使用jpg格式
摘要:最近在做图像分割,需要使用一些分割图片的label,但是发现存储的分割label感觉被平滑过了,即使使用 也没有作用,后面发现分割的label格式存储为png格式就可以了,猜测(没有深纠哈)是jpg压缩什么的导致的。
阅读全文
TypeError: Fetch argument None has invalid type <type 'NoneType'>
摘要:(fetch, type(fetch)))TypeError: Fetch argument None has invalid type <type 'NoneType'> 我的解决方案是:检查tensorflow 函数,某一个tensorflow函数没有返回值
阅读全文
tensorflow报错error,tf.concat Expected int32, got list containing Tensors of type '_Message' instead
摘要:参考:https://stackoverflow.com/questions/41813665/tensorflow-slim-typeerror-expected-int32-got-list-containing-tensors-of-type 我的代码是:
阅读全文
faster-RCNN框架之rpn 较小目标检测,如果只使用rpn,并减少多个候选框
摘要:通常faster-rcnn目标检测有两个步骤,一个是侯选框生成,一个是侯选框微调+目标区分,但是对于单目标识别, 我经常喜欢只使用rpn网络,效果还不错,不过仅仅的rpn使用参考的参数通常会造成一个目标很多个候选框,这时候 降低第一步骤的iou值就可以啦 first_stage_nms_iou_th
阅读全文
mobilenet之Depthwise +Pointwise
摘要:我们知道,mobilenet是适用于移动端的深度学习网络,主要优点是参数少、模型小、准确率相比一些传统卷积损失少等特点。 mobileNet之所以这么ok,是因为引入了Depthwise +Pointwise 的结构; 简而言之, Depthwise :就是在depth上面做文章,就是常说的chan
阅读全文
tensorflow-serving-gpu 本地编译并使用
摘要:因为要部署,模型比较大,所以通常官网的pip install 和bazel 教程编译的都是cpu版本的代码, 所以为了感受下gpu就尝试自己编译了,首先,下载源码: 这里有个坑,下载玩serving代码后还要在在子模块,但是子模块主要包含两个: tensorflow tf_models tensor
阅读全文
tensorflow 升级后报错:ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory
摘要:我的tensorflow之前的版本是1.2的所以支持cudnn5,但是tensorflow1.3及以上就是支持cudnn6。 查看: /usr/local/cuda/lib64$ ls libcudnn*libcudnn.so libcudnn.so.5 libcudnn.so.5.1.5 libc
阅读全文
Ubuntu中清理Network下Connect to Server的入口
摘要:转自:http://blog.csdn.net/maxilbert/article/details/51126467 connect to server入口列表文件以xml格式存放在 ~/.config/nautilus/servers 中 用gedit或vi打开~/.config/nautilus
阅读全文
tensorflow 之tensorboard 对比不同超参数训练结果
摘要:我们通常使用tensorboard 统计我们的accurate ,loss等,并绘制曲线,通常是使用一次训练中的, 但是,机器学习中通常要对比不同的 ‘超参数’给模型训练和预测能力的不同这时候如何整合多个训练模型的训练 等情况呢? 其实我们可以讲不同训练结果放在一个大文件夹中,比如训练不同learn
阅读全文
tensorflow 高级api使用分布式之配置
摘要:"""Constructor. Sets the properties `cluster_spec`, `is_chief`, `master` (if `None` in the args), `num_ps_replicas`, `task_id`, and `task_type` based
阅读全文
tf.pad(one_hot_encoding, [[0, 0], [1, 0]], mode='CONSTANT')
摘要:tf.pad(one_hot_encoding, [[0, 0], [1, 0]], mode='CONSTANT') tf.pad 是扩展的意思,其中[0, 0], [1, 0] 分别代表的是[上,下][左,右] 值为0代表相应边扩展0,比如上面代码中,左的位置的值为0,代表在左边增加一列,填充是
阅读全文
tf.identity 个人理解
摘要:tf.identity is useful when you want to explicitly transport tensor between devices (like, from GPU to a CPU). The op adds send/recv nodes to the graph
阅读全文
ValueError: too many values to unpack tensorflow
摘要:使用tensorflow 的时候报错: result ,_= sess.run(ops)ValueError: too many values to unpack 其实是ops里面不止一个,返回解压成2个(result ,_) 失败!!!! 正确的是: result = sess.run(ops)
阅读全文
|
|