Windows上的Tensorflow Retrain [英] Tensorflow Retrain on Windows

查看:64
本文介绍了Windows上的Tensorflow Retrain的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我遵循"如何为新类别重新训练Inception的最终层"的教程时,我需要像这样构建固定器

bazel build tensorflow/examples/image_retraining:retrain

但是,我在Windows上的Tensorflow没有这样的目录.我想知道为什么以及如何解决这个问题?

提前谢谢

解决方案

从屏幕截图中可以看出,您已经安装了TensorFlow PIP软件包,而 Git存储库(并且可以使用bazel构建TensorFlow).

但是,幸运的是,用于图像再训练的脚本(retrain.py)是一个简单的Python脚本,您可以在不构建任何内容的情况下下载并运行该脚本.只需从TensorFlow存储库的分支中下载与您已安装的软件包匹配的retrain.py的副本即可(例如,如果您已安装TensorFlow 0.12,则可以下载How to Retrain Inception's Final Layer for New Categories", I need to build the retainer like this

bazel build tensorflow/examples/image_retraining:retrain

However, my tensorflow on windows does not have such directory. I am wondering why and how can I solve the problem?

Thank you in advance

解决方案

From the screenshot, it appears that you have installed the TensorFlow PIP package, whereas the instructions in the image retraining tutorial assume that you have cloned the Git repository (and can use bazel to build TensorFlow).

However, fortunately the script (retrain.py) for image retraining is a simple Python script, which you can download and run without building anything. Simply download the copy of retrain.py from the branch of the TensorFlow repository that matches your installed package (e.g. if you've installed TensorFlow 0.12, you can download this version), and you should be able to run it by typing python retrain.py at the Command Prompt.

这篇关于Windows上的Tensorflow Retrain的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆