nicknochnack / RealTimeObjectDetection

370 stars 587 forks source link

Unable to resolve an error #27

Open Ishanahmed07 opened 2 years ago

Ishanahmed07 commented 2 years ago

We are facing this issue : ( from object_detection import model lib_v2 ImportError: cannot import name 'model_lib_v2' from 'object_detection' (C:\Users\darsh\AppData\Local\Programs\Python\Python37\lib\sie-packages\objectdetection_init.py) ) In order to resolve this issue we manually moved the model_lib_v2 in object detection folder.

The issue gets resolved but another error pops out that goes like " no module named pycocotools " , to rectify this erro we tried cloning the git repo of pycocotools but during cloning it throws an error " failed building wheel for pycocotools ".

We tried approximately every solution available on internet to rectify this error and still not able to resolve this issue please help us out.

kumarpriyanshu2k2 commented 2 years ago

pycocotools requires c++ build tool version >=14.0 install visual studio build tools: https://visualstudio.microsoft.com/downloads/?q=build+tools select the desktop C++ development checkbox (the first one) and install the build tools,(restart your PC) while installing the object detection API cd Tensorflow/models/research python -m pip install --user . don't forget '--user 'or it will give an error