ultralytics / yolov3

YOLOv3 in PyTorch > ONNX > CoreML > TFLite
https://docs.ultralytics.com
GNU Affero General Public License v3.0
10.16k stars 3.44k forks source link

Installation using requirements.txt bugs out with ModuleNotFoundError. #1431

Closed jkschin closed 4 years ago

jkschin commented 4 years ago

🐛 Bug

pip install -U -r requirements.txt bugs out with ModuleNotFoundError: No module named 'numpy' error.

To Reproduce (REQUIRED)

Clone the repository and run pip install -U -r requirements.txt.

Expected behavior

It's supposed to install successfully but didn't.

Environment

Mac OS Catalina 10.15.6

Additional context

To solve this:

  1. Comment out the cocoapi line in requirements.txt.
  2. pip install -U -r requirements.txt
  3. pip install git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI

I don't know a way to set the installation order in requirements.txt. I've seen some methods online where you can do this through setup.py. Filing this issue here and hoping someone with more expertise can fix this, or add a comment to the README.

github-actions[bot] commented 4 years ago

Hello @jkschin, thank you for your interest in our work! Ultralytics has open-sourced YOLOv5 at https://github.com/ultralytics/yolov5, featuring faster, lighter and more accurate object detection. YOLOv5 is recommended for all new projects.

To continue with this repo, please visit our Custom Training Tutorial to get started, and see our Google Colab Notebook, Docker Image, and GCP Quickstart Guide for example environments.

If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.

If this is a custom model or data training question, please note that Ultralytics does not provide free personal support. As a leader in vision ML and AI, we do offer professional consulting, from simple expert advice up to delivery of fully customized, end-to-end production solutions for our clients, such as:

For more information please visit https://www.ultralytics.com.

glenn-jocher commented 4 years ago

@jkschin thanks for the bug report! I'll update the requirements.txt from YOLOv5, which is better maintained and working properly.

glenn-jocher commented 4 years ago

@jkschin should be fixed now in https://github.com/ultralytics/yolov3/commit/ee82e3db5dfda38f7815071c24afd944b2301e02. Please git pull and try again, and let us know if you find any other issues.

ytfhgy commented 4 years ago

RuntimeError: cuDNN error: CUDNN_STATUS_INTERNAL_ERROR 你好,我想请问下我使用的是cuda10.1、cudnn7.6.5、python3.8、pytorch1.6 从而出现了上面这个问题,请问如何解决呢?

summeryumyee commented 4 years ago

@ytfhgy You should install CUDA10.2 instead of CUDA10.1

ytfhgy commented 4 years ago

@

@ytfhgy You should install CUDA10.2 instead of CUDA10.1

thank you

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

glenn-jocher commented 7 months ago

@ytfhgy you're welcome! If you encounter any more issues or have further questions, feel free to reach out. Happy coding! 😊👍