title: Tensorflow Object Detection: ImportError: cannot import name 'inception_resnet_v2'
body: <p>When I train to train my model with the following command:</p>
  
  <pre><code>python train.py -logtostderr --train_dir=training/ --pipeline_config_path=training/faster_
  rcnn_inception_v2_pets.config
  
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "train.py", line 52, in &lt;module&gt;
      from object_detection.builders import model_builder
    File "C:\Users\Admin\Anaconda3\envs\FrameCapture\lib\site-packages\object_detection-0.1-py3.6.egg\object_detection\builders\model_builder.py", line 35, in &lt;module&gt;
      from object_detection.models import faster_rcnn_inception_resnet_v2_feature_extractor as frcnn_inc_res
    File "C:\Users\Admin\Anaconda3\envs\FrameCapture\lib\site-packages\object_detection-0.1-py3.6.egg\object_detection\models\faster_rcnn_inception_resnet_v2_feature_extractor.py"
  , line 30, in &lt;module&gt;
      from nets import inception_resnet_v2
  ImportError: cannot import name 'inception_resnet_v2'
  </code></pre>
  
  <p>I have noticed that under the nets directory, there is no file named 'inception_resnet_v2'. Here are all the 
  <a href="https://i.stack.imgur.com/JPxHb.png" rel="nofollow noreferrer">files under the nets directory.</a></p>
  
  <p>I notice that if I change a file under the nets directory to have the name 'inception_resnet_v2', I am met with a new error about the nets directory:</p>
  
  <pre><code>  File "train.py", line 52, in &lt;module&gt;
      from object_detection.builders import model_builder
    File "C:\Users\Admin\Anaconda3\envs\FrameCapture\lib\site-packages\object_detection-0.1-py3.6.egg\object_detection\builders\model_builder.py", line 38, in &lt;module&gt;
      from object_detection.models import faster_rcnn_nas_feature_extractor as frcnn_nas
    File "C:\Users\Admin\Anaconda3\envs\FrameCapture\lib\site-packages\object_detection-0.1-py3.6.egg\object_detection\models\faster_rcnn_nas_feature_extractor.py", line 29, in &lt;m
  odule&gt;
      from nets.nasnet import nasnet
  ModuleNotFoundError: No module named 'nets.nasnet'
  </code></pre>
  
  <p>Because of this, I suspect the root of the problem comes from something to do with the nets directory. It might be worth noting that before this error, I was getting a ModuleNotFoundError because there was no nets directory under C:\Users\Admin\Desktop\ObjectDetection\models\research\object_detection. I solved this by copying the nets directory from C:\Users\Admin\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\object_detection-0.1-py3.8.egg\object_detection.</p>
  
  <p>I can't find anything that I've neglected during the installation process. Any help is much appreciated.</p>