Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tf_slim error in Step 7 of loading trained model from checkpoint #22

Open
AmartyaCSB opened this issue Mar 9, 2022 · 0 comments
Open

Comments

@AmartyaCSB
Copy link

AmartyaCSB commented Mar 9, 2022

Hi, I am trying to run step 7 in the tutorial.
This line is giving me an error:
from object_detection.builders import model_builder

It throws an error:

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-067428168487> in <module>
      2 from object_detection.utils import label_map_util
      3 from object_detection.utils import visualization_utils as viz_utils
----> 4 from object_detection.builders import model_builder

~/RealTimeObjectDetection/object_detection/builders/model_builder.py in <module>
     21 from absl import logging
     22 
---> 23 from object_detection.builders import anchor_generator_builder
     24 from object_detection.builders import box_coder_builder
     25 from object_detection.builders import box_predictor_builder

~/RealTimeObjectDetection/object_detection/builders/anchor_generator_builder.py in <module>
     21 from __future__ import print_function
     22 from six.moves import zip
---> 23 from object_detection.anchor_generators import flexible_grid_anchor_generator
     24 from object_detection.anchor_generators import grid_anchor_generator
     25 from object_detection.anchor_generators import multiple_grid_anchor_generator

~/RealTimeObjectDetection/object_detection/anchor_generators/flexible_grid_anchor_generator.py in <module>
     17 import tensorflow.compat.v1 as tf
     18 
---> 19 from object_detection.anchor_generators import grid_anchor_generator
     20 from object_detection.core import anchor_generator
     21 from object_detection.core import box_list_ops

~/RealTimeObjectDetection/object_detection/anchor_generators/grid_anchor_generator.py in <module>
     25 from object_detection.core import anchor_generator
     26 from object_detection.core import box_list
---> 27 from object_detection.utils import ops
     28 
     29 

~/RealTimeObjectDetection/object_detection/utils/ops.py in <module>
     26 from six.moves import zip
     27 import tensorflow.compat.v1 as tf
---> 28 import tf_slim
     29 from object_detection.core import standard_fields as fields
     30 from object_detection.utils import shape_utils

**ModuleNotFoundError: No module named 'tf_slim'**

Upon Inspection, I found that tf slim has to be pip installed which I did. But it still throws an error. I am using Tensorflow 2.3 as required in this tutorial. Please help as I am stuck with the inference!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant