I'm attempting to train a model on TensorFlow, and I've used Nick's video as reference:
https://youtu.be/yqkISICHH-U?si=IYW6Jsqhs0gCwMyc&t=8267
I've experienced following error:
Traceback (most recent call last):
File "D:\Passion Project\TensorFlow OD\Tensorflow\models\research\Tensorflow\models\research\object_detection\model_main_tf2.py",
line 31, in <module> from object_detection import model_lib_v2
ImportError: cannot import name 'model_lib_v2' from 'object_detection'
(C:\Users\stanf\AppData\Local\Programs\Python\Python310\lib\site-packages\object_detection\__init__.py)
I've tried clean install my TensorFlow; tried adding FilePath by
My Computer > Properties > Advanced System Settings > Environment Variables
but both didn't work. I also looked up past posts but none worked out
Any help is appreciated

pip uninstall object-detectionto remove the conflicting package. 2) cd into your project's models\research directory. 3) Runprotoc object_detection/protos/*.proto --python_out=.to compile protobufs. 4) Runpython -m pip install .to install the correct local version.