-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
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
HUB dataset_stats() error reporting #8192
Conversation
@kalenmike how's this? |
@glenn-jocher It will work great to check for YAML parse errors, but can we handle for the other errors as well? Like the paths don't exist for example. |
@kalenmike hmm, most of the finer checks are run by the default YOLOv5 function here: Line 1031 in 6a67594
It looks like only the val path is specifically checked though. We could expand to all parts of the dataset: train, val, test: Lines 472 to 487 in 6a67594
|
@kalenmike PR merged to avoid letting it linger. Will update HUB tag to master and we can work on additional error reporting next week. |
* HUB dataset_stats() error reporting * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update dataloaders.py Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
I am currently getting the generic "Failed: Processing Error". Wondering if the more detailed error reporting has been finished. My data works fine with yolov5. |
@awetzel-lionpower glad your data works with YOLOv5! We've enhanced error reporting with the latest changes. Please update to the latest version and provide the specific error message if the issue persists. Always happy to help! |
π οΈ PR Summary
Made with β€οΈ by Ultralytics Actions
π Summary
Enhancing dataset yaml loading robustness in
dataloaders.py
.π Key Changes
try
block.except
block to raise a specific exception on yaml loading failure.π― Purpose & Impact