<p dir="auto">I am trying to run <code class="notranslate">resnet_v2.py</code>  from provided modles but getting error <code class="notranslate">ImportError: No module named nets </code>.<br>
I have done following<br>
First installing slim<br>
<code class="notranslate">cd $HOME/tensorflow git clone https://github.com/tensorflow/models/</code></p>
<p dir="auto">To verify that this has worked, execute the following commands; it should run<br>
without raising any errors.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="`cd $HOME/tensorflow/models/slim
python3 -c &quot;from nets import cifarnet; mynet = cifarnet.cifarnet&quot;`"><pre class="notranslate"><code class="notranslate">`cd $HOME/tensorflow/models/slim
python3 -c "from nets import cifarnet; mynet = cifarnet.cifarnet"`
</code></pre></div>
<p dir="auto">I got no error.</p>
<p dir="auto">But when I run following gives error <strong>"ImportError: No module named nets"</strong>. I have also tried<br>
<code class="notranslate">cd $HOME/tensorflow/models/slim/ python3 -c "from nets import resnet_utils"</code></p>
<p dir="auto">Got not error.  Also build  using <code class="notranslate">bazel build nets</code> output<br>
<code class="notranslate">INFO: Found 1 target... Target //slim:nets up-to-date (nothing to build) INFO: Elapsed time: 0.096s, Critical Path: 0.00s </code></p>
<p dir="auto">I don't know why this is not working.</p>
<p dir="auto">I am trying to run <code class="notranslate">resnet_v2.py</code> from provided modles but getting error <code class="notranslate">ImportError: No module named nets.</code><br>
I have done following<br>
First installing slim<br>
<code class="notranslate">cd $HOME/tensorflow git clone https://github.com/tensorflow/models/</code></p>
<p dir="auto">To verify that this has worked, execute the following commands; it should run<br>
without raising any errors.</p>
<p dir="auto"><code class="notranslate">cd $HOME/tensorflow/models/slim python3 -c "from nets import cifarnet; mynet = cifarnet.cifarnet"</code><br>
I got no error.</p>
<p dir="auto">But when I run following gives error "ImportError: No module named nets". I have also tried<br>
<code class="notranslate">cd $HOME/tensorflow/models/slim/ python3 -c "from nets import resnet_utils"</code></p>
<p dir="auto"><code class="notranslate">Got not error. Also build using bazel build nets output INFO: Found 1 target... Target //slim:nets up-to-date (nothing to build) INFO: Elapsed time: 0.096s, Critical Path: 0.00s</code></p>
<p dir="auto">Same thing happen when try to run Inception with error <code class="notranslate">ImportError: No module named inception</code></p>
<p dir="auto">I don't know why this is not working.</p>