Try to search your question here, if you can't find : Ask Any Question Now ?

ImportError: cannot import name 'abs'

HomeCategory: stackoverflowImportError: cannot import name 'abs'
Avatarcraig asked 1 year ago

I got problem while doing object detection using tensorflow-gpu

I was follwing the youtube tutorials

I’m trying to detect object using tensorflow-gpu with virtual environment.

I added python, cuda, tensorflow to system environment variables, and also did
make training models with labels.

I converted xml labels to csv using

The problem is when I try to generate tfrecord using, that error appear. Please help

Here’s the code

(tensorflow) C:Usersice305tensorflowmodelsresearchobject_detection>python --csv_input=imagestrain_labels.csv --image_dir=imagestrain --output_path=train.record
Traceback (most recent call last):
  File "", line 17, in <module>
    import tensorflow as tf
  File "", line 22, in <module>
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
  File "", line 81, in <module>
    from tensorflow.python import keras
  File "", line 24, in <module>
    from tensorflow.python.keras import activations
  File "", line 22, in <module>
    from tensorflow.python.keras._impl.keras.activations import elu
  File "", line 21, in <module>
    from tensorflow.python.keras._impl.keras import activations
  File "", line 23, in <module>
from tensorflow.python.keras._impl.keras import backend as K
  File "", line 38, in <module>
    from tensorflow.python.layers import base as tf_base_layers
  File "", line 25, in <module>
    from tensorflow.python.keras.engine import base_layer
  File "", line 21, in <module>
    from tensorflow.python.keras.engine.base_layer import InputSpec
  File "", line 33, in <module>
    from tensorflow.python.keras import backend
  File "", line 22, in <module>
    from tensorflow.python.keras._impl.keras.backend import abs
ImportError: cannot import name 'abs'
(tensorflow) C:Usersice305tensorflowmodelsresearchobject_detection>

I don’t understand what ‘abs’ is. Please help

1 Answers
Best Answer
AvatarAmit answered 1 year ago
Your Answer

20 + 13 =

Popular Tags

WP Facebook Auto Publish Powered By :