ybkscht / EfficientPose

Other
247 stars 68 forks source link

using your versions of packages -- File "/home/mona/anaconda3/envs/effpose/lib/python3.8/site-packages/numpy/__init__.py", line 305, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'object'. `np.object` was a deprecated alias for the builtin `object`. To avoid this error in existing code, use `object` by itself. Doing this will not modify any behavior and is safe. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations #74

Closed monajalal closed 10 months ago

monajalal commented 10 months ago
(effpose) mona@ada:~/effpose/EfficientPose$ python evaluate.py --phi 0 --weights weights/Weights/Linemod/object_8/phi_0_linemod_best_ADD.h5 --validation-image-save-path val_imgs linemod data/Linemod_preprocessed/ --object-id 8
2023-11-29 15:29:48.111785: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
WARNING:tensorflow:Deprecation warnings have been disabled. Set TF_ENABLE_DEPRECATION_WARNINGS=1 to re-enable them.
/home/mona/anaconda3/envs/effpose/lib/python3.8/site-packages/tensorflow_core/python/framework/dtypes.py:597: FutureWarning: In the future `np.object` will be defined as the corresponding NumPy scalar.
  np.object,
/home/mona/anaconda3/envs/effpose/lib/python3.8/site-packages/tensorflow_core/python/framework/dtypes.py:597: FutureWarning: In the future `np.object` will be defined as the corresponding NumPy scalar.
  np.object,
Traceback (most recent call last):
  File "evaluate.py", line 44, in <module>
    import tensorflow as tf
  File "/home/mona/anaconda3/envs/effpose/lib/python3.8/site-packages/tensorflow/__init__.py", line 101, in <module>
    from tensorflow_core import *
  File "/home/mona/anaconda3/envs/effpose/lib/python3.8/site-packages/tensorflow_core/__init__.py", line 33, in <module>
    from tensorflow._api.v1 import audio
  File "/home/mona/anaconda3/envs/effpose/lib/python3.8/site-packages/tensorflow_core/_api/v1/audio/__init__.py", line 10, in <module>
    from tensorflow.python.ops.gen_audio_ops import decode_wav
  File "/home/mona/anaconda3/envs/effpose/lib/python3.8/site-packages/tensorflow_core/python/ops/gen_audio_ops.py", line 13, in <module>
    from tensorflow.python.eager import execute as _execute
  File "/home/mona/anaconda3/envs/effpose/lib/python3.8/site-packages/tensorflow_core/python/eager/execute.py", line 27, in <module>
    from tensorflow.python.framework import dtypes
  File "/home/mona/anaconda3/envs/effpose/lib/python3.8/site-packages/tensorflow_core/python/framework/dtypes.py", line 597, in <module>
    np.object,
  File "/home/mona/anaconda3/envs/effpose/lib/python3.8/site-packages/numpy/__init__.py", line 305, in __getattr__
    raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'object'.
`np.object` was a deprecated alias for the builtin `object`. To avoid this error in existing code, use `object` by itself. Doing this will not modify any behavior and is safe. 
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations