擅长:python、mysql、java
<p>查看Anderskog发布的<a href="https://github.com/tensorflow/models/issues/2739" rel="nofollow noreferrer">here</a>解决方案。它对我有用。我做了个补丁<a href="https://gist.github.com/eranheres/5aa93df3eaae32c33b05d2d85befb90d" rel="nofollow noreferrer">here</a>。对于手动修复,请遵循以下说明:</p>
<p>确保你的yaml版本是1.4,例如:</p>
<pre><code>trainingInput:
runtimeVersion: "1.4"
scaleTier: CUSTOM
masterType: standard_gpu
workerCount: 5
workerType: standard_gpu
parameterServerCount: 3
parameterServerType: standard
</code></pre>
<p>改变设置.py至以下地址:</p>
^{pr2}$
<p>对象内探测/实用工具/可视化_实用工具.py,第24行(导入前matplotlib.pyplot作为plt)添加:</p>
<pre><code>import matplotlib
matplotlib.use('agg')
</code></pre>
<p>在目标探测的第184行/计算器.py,更改</p>
<pre><code>tf.train.get_or_create_global_step()
</code></pre>
<p>到</p>
<pre><code>tf.contrib.framework.get_or_create_global_step()
</code></pre>
<p>最后,在object_detection/builders/optimizer的第103行_生成器.py,更改</p>
<pre><code>tf.train.get_or_create_global_step()
</code></pre>
<p>到</p>
<pre><code>tf.contrib.framework.get_or_create_global_step()
</code></pre>
<p>希望这有帮助!在</p>