Tensorflow transfer learning fine tunning 改进图像训练结果实践
2017-03-14 15:09
429 查看
改进图像训练结果的常用方法是通过随机方式变形,裁剪或增亮训练输入
–random_crop
–random_scale
–random_brightness
–flip_left_right将水平随机地镜像一半的图像,只要那些颠倒可能发生在你的应用程序。
–random_brightness 5
/media/haijunz/27a263b4-e313-4b58-a422-0201e4cb11ed/tensorflow/tensorflow/tensorflow/examples/image_retraining$ python retrain.py –image_dir /media/haijunz/27a263b4-e313-4b58-a422-0201e4cb11ed/tensorflow/models/flower_photos/data –random_brightness 5
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn’t compiled to use SSE3 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn’t compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn’t compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
Looking for images in ‘roses’
Looking for images in ‘sunflowers’
Looking for images in ‘tulips’
Looking for images in ‘dandelion’
Looking for images in ‘daisy’
W tensorflow/core/framework/op_def_util.cc:332] Op BatchNormWithGlobalNormalization is deprecated. It will cease to work in GraphDef version 9. Use tf.nn.batch_normalization().
2017-03-14 15:08:42.443384: Step 0: Train accuracy = 69.0%
2017-03-14 15:08:42.443478: Step 0: Cross entropy = 1.527363
2017-03-14 15:08:42.596276: Step 0: Validation accuracy = 60.0% (N=100)
……
–random_crop
–random_scale
–random_brightness
传递给脚本来启用这些失真。这些都是控制每个图像应用多少失真的百分比值。对于每个值开始使用5或10的值是合理的,然后通过实验看看哪些值有助于的应用程序。
–flip_left_right将水平随机地镜像一半的图像,只要那些颠倒可能发生在你的应用程序。
–random_brightness 5
/media/haijunz/27a263b4-e313-4b58-a422-0201e4cb11ed/tensorflow/tensorflow/tensorflow/examples/image_retraining$ python retrain.py –image_dir /media/haijunz/27a263b4-e313-4b58-a422-0201e4cb11ed/tensorflow/models/flower_photos/data –random_brightness 5
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn’t compiled to use SSE3 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn’t compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn’t compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
Looking for images in ‘roses’
Looking for images in ‘sunflowers’
Looking for images in ‘tulips’
Looking for images in ‘dandelion’
Looking for images in ‘daisy’
W tensorflow/core/framework/op_def_util.cc:332] Op BatchNormWithGlobalNormalization is deprecated. It will cease to work in GraphDef version 9. Use tf.nn.batch_normalization().
2017-03-14 15:08:42.443384: Step 0: Train accuracy = 69.0%
2017-03-14 15:08:42.443478: Step 0: Cross entropy = 1.527363
2017-03-14 15:08:42.596276: Step 0: Validation accuracy = 60.0% (N=100)
……
相关文章推荐
- jupyter+tensorflow实现图像的风格转移(style-transfer)
- Image Completion with Deep Learning in TensorFlow【DCGAN,图像补全】
- tensorflow MNIST数据集的训练(线性模型)及tensorboard计算结果可视化
- tensorflow tensorboard可视化并保存训练结果
- <TensorFlow Machine Learning Cookbook>学习笔记(1.3)
- Machine Learning with Scikit-Learn and Tensorflow 6.5 计算复杂度
- deep learning on tensorflow
- TensotFlow 应用实例:08-使用tensorboard可视化神经网络结构和训练结果
- learning tensorflow
- [note] deep learning tensorflow lecture 2 notes 深度学习笔记 (2) 解决过拟合
- tensorflow mnist 示例运行结果
- tensorflow object_detection 用自己的数据训练目标检测模型Mobilenet
- transfer learning and fine-tuning
- Deep learning系列(十三)Transfer learning 和 caffe Fine-tuning
- 使用keras+tensorflow训练CNN的记录(CentOS7)
- tensorflow mnist 结果验证
- Deep Learning for Chatbots, Part 2 – Implementing a Retrieval-Based Model in Tensorflow
- 利用tensorflow object detection训练ssd_mobilenets
- tensorflow & keras fine tune
- Machine Learning with Scikit-Learn and Tensorflow 7.5 随机森林