tensorflow / tensorflow/models
ImportError: cannot import name 'deepmac_meta_arch' from 'object_detection.meta_architectures'
@pkulzc is already working on this.
Since Sep 21, 2021.
- Dominant language
- Python
- Stars
- 77.7k
- Forks
- 44.8k
- PR merge metrics
- No merged PRs in 30d
Description
1. I try to run this file
2. Describe the bug
Bug Happens when I try to run the model builder tf2 test from an other environment.
I created my first environment called P0kerv2, on it model_builder_tf2_test.py run well.
But when I try to run model_builder_tf2_test.py on an other environment (ProjetsPython) it does not work.
On the error message it show the wrong path
ImportError: cannot import name 'deepmac_meta_arch' from 'object_detection.meta_architectures' (C:\P0kerV2\ models\research\object_detection\meta_architectures_init_.py).
P0kerV2 should be ProjetsPython so it seems to be stuck on the first env I created.
3. Steps to reproduce
run
python object_detection/builders/model_builder_tf2_test.py
##3.1 and then the prompt output is :
[2021-09-21 00:06:46.804203: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library cudart64_110.dll
Traceback (most recent call last):
File "C:\Users\Dorian\anaconda3\envs\ProjetsPython\models\research\object_detection\builders\model_builder_tf2_test.py", line 28, in <module>
from object_detection.meta_architectures import deepmac_meta_arch
ImportError: cannot import name 'deepmac_meta_arch' from 'object_detection.meta_architectures' (C:\P0kerV2\models\research\object_detection\meta_architectures\__init__.py)]
##4. What do I think
I think that it try to access to :
C:\P0kerV2\models\research\object_detection\meta_architectures\__init__.py
and not to :
C:\ProjetsPython\models\research\object_detection\meta_architectures\__init__.py
But I don't understand why...
5. System information
Tensorflow :
Name: tensorflow
Version: 2.5.0
Summary: TensorFlow is an open source machine learning framework for everyone.
Home-page: https://www.tensorflow.org/
Author: Google Inc.
Author-email: packages@tensorflow.org
License: Apache 2.0
Location: c:\users\dorian\anaconda3\envs\projetspython\lib\site-packages
Requires: numpy, gast, typing-extensions, astunparse, tensorflow-estimator, tensorboard, keras-nightly, absl-py, grpcio, wheel, wrapt, google-pasta, six, termcolor, opt-einsum, h5py, flatbuffers, keras-preprocessing, protobuf
Required-by:
Python Version : 3.9.7
Windows 10
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.