Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to resolve an error #27

Open
Ishanahmed07 opened this issue Mar 29, 2022 · 1 comment
Open

Unable to resolve an error #27

Ishanahmed07 opened this issue Mar 29, 2022 · 1 comment

Comments

@Ishanahmed07
Copy link

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\object_detection_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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants