zh/hub/inference-api/ #18075
Replies: 3 comments 2 replies
-
I have trained my model,but I can not deploy it in my app,why?100 epochs completed in 0.146 hours. Validating runs/detect/train/weights/best.pt...
|
Beta Was this translation helpful? Give feedback.
-
👋 Hello, thank you for your interest in Ultralytics 🚀! It seems like you're exploring the Ultralytics HUB Inference API, which is a great tool for integrating inference capabilities using Python or cURL 🌐. We recommend checking out the Docs for detailed usage instructions, examples, and guidelines. Many of the common queries are addressed there as well. If this is a 🐛 Bug Report, please include a minimum reproducible example to help us debug effectively. If you have ❓ Questions about custom implementations or API integrations, please share additional context, specific code snippets, or examples where you're facing challenges. This will help us understand your use case better and provide more accurate guidance. Need real-time community support? Jump into our Discord 🎧. Want long-form discussions or to share your experiences? Visit Discourse or engage with enthusiasts on our Subreddit. UpgradeFirst, ensure you have the latest pip install -U ultralytics This will help confirm if your issue persists in the latest version. EnvironmentsYOLO and Ultralytics tools can be run seamlessly in any of these verified environments with pre-installed dependencies:
StatusThe green badge above indicates that all Ultralytics CI tests are currently passing. These tests verify the correct operation of all YOLO Modes and Tasks on various platforms. This is an automated response 🤖. An Ultralytics engineer will review your discussion and assist you soon. Thank you for your patience and for being part of the Ultralytics community! 😊 |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for the reply. I think there may be a misunderstanding. I am training on Ultralytics Hub, not on my local machine.
My dataset path on the Hub is /datasets/a2O66UeTvAEqSUPPff6l/lane/.
The path to my validation data in my lane.yaml file is images/val, which is the correct relative path to the lane.yaml file itself. My lane.yaml is located within the lane dataset directory on the Hub.
The issue I'm experiencing is that after the model training completes, the Hub shows a "Disconnected" status and I cannot deploy the model. It's not a problem of the training process finding the dataset paths during training. The training itself completes without errors.
The path you provided /content/datasets/D:python新/建文件夹 (2)/hakusenninnshiki.v2i.yolov11/lane.yaml/images/val is incorrect, as it mixes the Hub path /content/datasets/ with my local Windows path D:python新/.... Local Windows paths are not accessible when training on the Hub.
I've attached screenshots of my training code, the model page on the Hub, and the complete training logs. Could you please take another look?
…---Original---
From: "Glenn ***@***.***>
Date: Sat, Dec 7, 2024 00:06 AM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [ultralytics/ultralytics] zh/hub/inference-api/ (Discussion#18075)
@sjocnjfjd the error indicates that the dataset path specified in your lane.yaml file is invalid or doesn't exist. Ensure the images/val folder is correctly located at /content/datasets/D:python新/建文件夹 (2)/hakusenninnshiki.v2i.yolov11/lane.yaml/images/val. Update the path in the lane.yaml file accordingly or modify your folder structure. For reference on dataset formatting, see Tips for Model Training.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
zh/hub/inference-api/
了解如何使用Ultralytics HUB Inference API 运行推理。包括Python 和 cURL 示例,以便快速集成。
https://docs.ultralytics.com/zh/hub/inference-api/
Beta Was this translation helpful? Give feedback.
All reactions