TannerGilbert / Tensorflow-Object-Detection-API-Train-Model

Train a object detection model with the Tensorflow Object Detection API and Tensorflow 2.
https://gilberttanner.com/blog/creating-your-own-objectdetector
MIT License
192 stars 103 forks source link

ImportError: cannot import name 'abs' #25

Closed 4lparslan closed 3 years ago

4lparslan commented 3 years ago

When i execute this command "python object_detection/builders/model_builder_tf2_test.py" i get an error like this.

TannerGilbert commented 3 years ago

Take a look at the following related issues/questions:

4lparslan commented 3 years ago

Take a look at the following related issues/questions:

* [ImportError: cannot import name 'abs'](https://github.com/tensorflow/tensorflow/issues/20778)

* [ImportError: cannot import name 'abs'](https://stackoverflow.com/questions/51299194/importerror-cannot-import-name-abs/51771078)

I am using Windows and i can't solve the problem. On Stackoveflow this solution is for Linux systems:

pip uninstall tensorflow protobuf --yes find $CONDA_PREFIX -name "tensorflow" | xargs -Ipkg rm -rfv pkg pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.9.0-cp36-cp36m-linux_x86_64.whl --no-cache-dir

4lparslan commented 3 years ago

i also tried to reinstall tensorflow and protobuf but not changed

TannerGilbert commented 3 years ago

The following could work on Windows:

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days