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

pytorch detector failing - No module named 'ultralytics' #85

Closed
rgogada opened this issue May 18, 2023 · 3 comments
Closed

pytorch detector failing - No module named 'ultralytics' #85

rgogada opened this issue May 18, 2023 · 3 comments

Comments

@rgogada
Copy link

rgogada commented May 18, 2023

ERROR - Could not create detector pytorch/pytorch: No module named 'ultralytics'

here is the full log:

2023-05-18 12:44:17,621 - doods.doods - INFO - Registered detector type:tflite name:default
2023-05-18 12:44:18,382 - doods.doods - INFO - Registered detector type:tensorflow name:tensorflow
/usr/local/lib/python3.8/dist-packages/torch/hub.py:267: UserWarning: You are about to download and run code from an untrusted repository. In a future release, this won't be allowed. To add the repository to your trusted list, change the command to {calling_fn}(..., trust_repo=False) and a command prompt will appear asking for an explicit confirmation of trust, or load(..., trust_repo=True), which will assume that the prompt is to be answered with 'yes'. You can also use load(..., trust_repo='check') which will only prompt for confirmation if the repo is not already trusted. This will eventually be the default behaviour
warnings.warn(
Downloading: "https://github.com/ultralytics/yolov5/zipball/master" to /root/.cache/torch/hub/master.zip
2023-05-18 12:44:20,221 - doods.doods - ERROR - Could not create detector pytorch/pytorch: No module named 'ultralytics'
2023-05-18 12:44:20,240 - uvicorn.error - INFO - Started server process [1]
2023-05-18 12:44:20,241 - uvicorn.error - INFO - Waiting for application startup.
2023-05-18 12:44:20,241 - uvicorn.error - INFO - Application startup complete.
2023-05-18 12:44:20,241 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)

@rgogada
Copy link
Author

rgogada commented May 18, 2023

issue seems to be upstream issue
looks like there is already a PR in the queue for the fix.

mean while we can run the below inside the container to fix this issue manually.
pip install the ultralytics

restart the container

@rgogada
Copy link
Author

rgogada commented May 18, 2023 via email

@snowzach
Copy link
Owner

Thanks for the PR. I missed it but made the same update. Give it a shot!

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