ultralytics / yolov5

YOLOv5 🚀 in PyTorch > ONNX > CoreML > TFLite
https://docs.ultralytics.com
GNU Affero General Public License v3.0
50.79k stars 16.36k forks source link

Hello author, can YOLOv5 be downloaded directly from third-party libraries like YOLOv5 and trained directly? I downloaded the yolov5 library and encountered an error when trying to run it #13187

Open yxl23 opened 4 months ago

yxl23 commented 4 months ago

Search before asking

Question

I am using Gradio to integrate YOLOv5 and YOLOv5. YOLOv5 can directly import YOLO from ultralytics by downloading an ultralytics library, but I encountered this error while using YOLOv5 image image

Additional

No response

glenn-jocher commented 4 months ago

@yxl23 yes absolutely! Use this code to load and run YOLOv5:

from ultralytics import YOLO  # pip install -U ultralytics

model = YOLO("yolov5n.pt")

results = model("path/to/image.jpg")
github-actions[bot] commented 3 months ago

👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.

For additional resources and information, please see the links below:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLO 🚀 and Vision AI ⭐