【问题标题】:How to retrain image on Windows如何在 Windows 上重新训练图像
【发布时间】:2017-03-11 08:39:18
【问题描述】:

我是一名大一新生,刚刚开始我的机器学习之旅。我关注了 Josh Gordon (https://www.youtube.com/watch?v=cSKfRcEDGUs) 的一本书和视频教程,但在“诗人的 TensorFlow”中停了下来,其中说:

# In Docker
python tensorflow/examples/image_retraining/retrain.py \
--bottleneck_dir=/tf_files/bottlenecks \
--how_many_training_steps 500 \
--model_dir=/tf_files/inception \
--output_graph=/tf_files/retrained_graph.pb \
--output_labels=/tf_files/retrained_labels.txt \
--image_dir /tf_files/flower_photos

我在这里遇到了 2 个问题:

  1. 没有名为“image_retraining”的目录,也没有名为 retrain.py 的文件;
  2. docker 无法打开。

第一个问题似乎很容易解决,因为我找到了Tensorflow Retrain on Windows, 但第二个仍未解决。每次我启动“Boot2DockerStart”时,它都会闪烁一条错误消息“运行中的错误:无法启动机器“boot2docker-vm”:退出状态1',然后退出。所以我搜索了,大多数答案都说虚拟化被禁用,但我检查了任务管理器,虚拟化状态为“启用”,这真的让我很困惑...... 所以我想知道:如何解决 docker 问题?有没有办法可以在没有 docker 的情况下运行 Retrain?而且,如果这两个问题都很难解决,我是不是应该安装一个linux?

附:我用的是Win10,python版本是3.5,使用Anaconda安装,VS2015编码,tensorflow版本是gpu-0.12.1

【问题讨论】:

    标签: python windows docker machine-learning tensorflow


    【解决方案1】:

    您可以在“TensorFlow For Poets - Setting up”中看到更完整的指令集(适用于 Linux 和 Mac)

    在 Windows 上,确保您的 Docker Toolbox (the one using Boot2docker) 设置正确。
    确保在 Windows 10 上没有 Hyper-V Windows already activated,因为 Hyper-V 和 VirtualBox 一起运行时会出现一些问题。

    【讨论】:

    • 非常感谢!我根本没有安装 Docker Toolbox,只安装了一个 docker-install,因为我不知道需要 Docker Toolbox:没有教程提到过。现在我可以正常运行 tensorflow retrain 了!
    猜你喜欢
    • 2015-11-11
    • 2013-10-09
    • 2017-11-26
    • 2015-09-09
    • 2019-09-14
    • 2019-07-11
    • 2019-02-02
    • 2023-01-03
    • 1970-01-01
    相关资源
    最近更新 更多