erorr:
AttributeError: module 'keras._tf_keras.keras.layers' has no attribute 'experimental'
This happened when I was trying to verify if I had correctly downloaded tensorflow object detection.
This is the code I use for the verification process:
VERIFICATION_SCRIPT = os.path.join(paths['APIMODEL_PATH'], 'research', 'object_detection', 'builders', 'model_builder_tf2_test.py')# Verify Installation!python {VERIFICATION_SCRIPT}pip list shows me this:absl-py 1.4.0asttokens 2.4.1astunparse 1.6.3bleach 6.1.0cachetools 5.3.3certifi 2024.2.2charset-normalizer 3.3.2click 8.1.7colorama 0.4.6comm 0.2.2contourpy 1.2.1cycler 0.12.1Cython 0.29.37debugpy 1.8.1decorator 5.1.1dm-tree 0.1.8etils 1.8.0executing 2.0.1flatbuffers 24.3.25fonttools 4.50.0fsspec 2024.3.1gast 0.5.4gin-config 0.5.0google-api-core 2.18.0google-api-python-client 2.124.0google-auth 2.29.0google-auth-httplib2 0.2.0google-pasta 0.2.0googleapis-common-protos 1.63.0grpcio 1.62.1h5py 3.10.0httplib2 0.22.0idna 3.6importlib_resources 6.4.0ipykernel 6.29.4ipython 8.23.0jedi 0.19.1joblib 1.3.2jupyter_client 8.6.1jupyter_core 5.7.2kaggle 1.6.8keras 3.1.1kiwisolver 1.4.5libclang 18.1.1lxml 5.2.1Markdown 3.6markdown-it-py 3.0.0MarkupSafe 2.1.5matplotlib 3.8.3matplotlib-inline 0.1.6mdurl 0.1.2ml-dtypes 0.3.2namex 0.0.7nest-asyncio 1.6.0numpy 1.26.4oauth2client 4.1.3opencv-python 4.9.0.80opencv-python-headless 4.9.0.80opt-einsum 3.3.0optree 0.11.0packaging 24.0pandas 2.2.1parso 0.8.3pillow 10.3.0pip 24.0platformdirs 4.2.0portalocker 2.8.2promise 2.3prompt-toolkit 3.0.43proto-plus 1.23.0protobuf 3.20.3psutil 5.9.8pure-eval 0.2.2py-cpuinfo 9.0.0pyasn1 0.6.0pyasn1_modules 0.4.0pycocotools 2.0.7Pygments 2.17.2pyparsing 3.1.2python-dateutil 2.9.0.post0python-slugify 8.0.4pytz 2024.1pywin32 306PyYAML 5.4.1pyzmq 25.1.2regex 2023.12.25requests 2.31.0rich 13.7.1rsa 4.9sacrebleu 2.4.1scikit-learn 1.4.1.post1scipy 1.13.0sentencepiece 0.2.0seqeval 1.2.2setuptools 65.5.0six 1.16.0stack-data 0.6.3tabulate 0.9.0tensorboard 2.16.2tensorboard-data-server 0.7.2tensorflow 2.16.1tensorflow-addons 0.22.0tensorflow-datasets 4.9.4tensorflow-hub 0.16.1tensorflow-intel 2.16.1tensorflow-io-gcs-filesystem 0.31.0tensorflow-metadata 1.14.0tensorflow-model-optimization 0.8.0termcolor 2.4.0text-unidecode 1.3tf_keras 2.16.0tf-models-official 2.5.1tf-slim 1.1.0threadpoolctl 3.4.0toml 0.10.2tornado 6.4tqdm 4.66.2traitlets 5.14.2typeguard 2.13.3typing_extensions 4.10.0tzdata 2024.1uritemplate 4.1.1urllib3 2.2.1wcwidth 0.2.13webencodings 0.5.1Werkzeug 3.0.2wget 3.2wheel 0.43.0wrapt 1.16.0zipp 3.18.1