-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
cannot import name 'image_module_info_pb2' #167
Comments
If I may ask, what was the exact workflow that got you there? The source file image_module_info.proto was added by |
@arnoegw |
I hope that solves it for you. Please reopen if not. |
I am getting this error, while trying Bazel build command on a .proto file ERROR: Skipping 'tensorflow_hub/image_module_info.proto': error loading package 'tensorflow/examples/image_retraining/tensorflow_hub': Unable to load package for '//tensorflow_hub:protos.bzl': BUILD file not found on package path |
any progress? or how to solve it? I met the issue too: Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "/Users/sheldon/pythonProjects/hub/examples/image_retraining/retrain.py", line 132, in <module>
import tensorflow_hub as hub
File "/Users/sheldon/pythonProjects/hub/tensorflow_hub/__init__.py", line 32, in <module>
from tensorflow_hub.feature_column import image_embedding_column
File "/Users/sheldon/pythonProjects/hub/tensorflow_hub/feature_column.py", line 24, in <module>
from tensorflow_hub import image_util
File "/Users/sheldon/pythonProjects/hub/tensorflow_hub/image_util.py", line 21, in <module>
from tensorflow_hub import image_module_info_pb2
ImportError: cannot import name 'image_module_info_pb2' from 'tensorflow_hub' |
I am actually not sure how this is happening. If you have installed tensorflow_hub, the retrain script should be importing from there, so: Otherwise you have to make it to import from your working directory and the way to build the files is to use: (Not |
When i run : python retrain.py --image_dir='G:\work\Other\Band/Data', i got an error :
cannot import name 'image_module_info_pb2'
File 'image_module_info_pb2' was lost in the github.
The text was updated successfully, but these errors were encountered: