nicknochnack / TFODCourse

944 stars 919 forks source link

ImportError: cannot import name 'eval_pb2' from 'object_detection.protos' #145

Open stnridy opened 1 year ago

stnridy commented 1 year ago

Hi. May I know if there is any WA to bypass this ImportError?

image
MuhammadSaad-ml commented 1 year ago

well the issue can be due to few reasons

  1. Make sure you have all the required dependencies installed and also double check the packages so that there are no conflicts between the packages
  2. Check the eval_pb2 file in the folder for e.g mine is here /Users/muhammadsaad/opt/anaconda3/envs/tensor/lib/python3.7/site-packages/object_detection/protos if it didn't exist then you haven't install the right version
  3. check the version compatibility of tf,object detection and the related libraries so that it don't have any conflicting issues I hope it helps . let me know if you need further assistance
stnridy commented 1 year ago

Hi. I am able to fix this. Thanks for your help!

manan-bedi2908 commented 9 months ago

Hi @stnridy, Can you please tell what did you do to resolve this issue

Irboen commented 2 months ago

Hi, I am also having the same exact issue as @stnridy. I have checked whether eval_pb2 actually existed on my object_detection/protos file or not, and yes it is there. I am stuck and not sure on what to do. Can someone please help me, Thank you!