Getting error while building custom model

This is what i have written:
detection_model = model_builder.build(model_config=model_config, is_training=True)

And I am getting this error
is not supported for tf version 2. See model_builder.py for features extractors compatible with different versions of Tensorflow

Can anyone please help me resolve it

Hello there,

If you have run every cell up to that point without any error then the problem is not that cell (because I just ran it myself).

I wonder if you have done something upwards that is causing this error​:thinking:

Which version of tensorflow are you using, I am using 2.8.

Use the version tha Coursera Labs provides.

from object_detection.builders import model_builder

Sir, while installing this I am getting this error can you please help me with this, yesterday it worked fine but today I am getting error…


RuntimeError Traceback (most recent call last)
RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf . Check the section C-API incompatibility at the Troubleshooting ImportError section at Troubleshooting — NumPy v2.0.dev0 Manual for indications on how to solve this problem .

RuntimeError Traceback (most recent call last)
RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf . Check the section C-API incompatibility at the Troubleshooting ImportError section at Troubleshooting — NumPy v2.0.dev0 Manual for indications on how to solve this problem .

ImportError Traceback (most recent call last)
in <cell line: 22>()
20 from object_detection.utils import visualization_utils as viz_utils
21 from object_detection.utils import colab_utils
—> 22 from object_detection.builders import model_builder
23
24 get_ipython().run_line_magic(‘matplotlib’, ‘inline’)

9 frames
/usr/local/lib/python3.10/dist-packages/numpy/testing/_private/utils.py in
21 from numpy.core import(
22 intp, float32, empty, arange, array_repr, ndarray, isnat, array)
—> 23 import numpy.linalg.lapack_lite
24
25 from io import StringIO

ImportError: numpy.core.multiarray failed to import


NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
“Open Examples” button below.

Sorry, I am not a mentor for that course.

Why dont you try reseting the assignment, might resolve your issue, because I told you I dont get any problems when I run that line myself.

https://www.coursera.support/s/article/360004995312-Solve-problems-with-Jupyter-Notebooks?language=en_US

Ok thank you, I’ll try