Fix mkdocs.yml raw image URLs (#14213)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: Burhan <62214284+Burhan-Q@users.noreply.github.com>
This commit is contained in:
parent
d5db9c916f
commit
5d479c73c2
69 changed files with 4767 additions and 223 deletions
|
|
@ -280,3 +280,33 @@ Finally, we implemented the actual model training using each split in a loop, sa
|
|||
This technique of K-Fold cross-validation is a robust way of making the most out of your available data, and it helps to ensure that your model performance is reliable and consistent across different data subsets. This results in a more generalizable and reliable model that is less likely to overfit to specific data patterns.
|
||||
|
||||
Remember that although we used YOLO in this guide, these steps are mostly transferable to other machine learning models. Understanding these steps allows you to apply cross-validation effectively in your own machine learning projects. Happy coding!
|
||||
|
||||
## FAQ
|
||||
|
||||
### What is K-Fold Cross Validation and why is it useful in object detection?
|
||||
|
||||
K-Fold Cross Validation is a technique where the dataset is divided into 'k' subsets (folds) to evaluate model performance more reliably. Each fold serves as both training and validation data. In the context of object detection, using K-Fold Cross Validation helps to ensure your Ultralytics YOLO model's performance is robust and generalizable across different data splits, enhancing its reliability. For detailed instructions on setting up K-Fold Cross Validation with Ultralytics YOLO, refer to [K-Fold Cross Validation with Ultralytics](#introduction).
|
||||
|
||||
### How do I implement K-Fold Cross Validation using Ultralytics YOLO?
|
||||
|
||||
To implement K-Fold Cross Validation with Ultralytics YOLO, you need to follow these steps:
|
||||
|
||||
1. Verify annotations are in the [YOLO detection format](../datasets/detect/index.md).
|
||||
2. Use Python libraries like `sklearn`, `pandas`, and `pyyaml`.
|
||||
3. Create feature vectors from your dataset.
|
||||
4. Split your dataset using `KFold` from `sklearn.model_selection`.
|
||||
5. Train the YOLO model on each split.
|
||||
|
||||
For a comprehensive guide, see the [K-Fold Dataset Split](#k-fold-dataset-split) section in our documentation.
|
||||
|
||||
### Why should I use Ultralytics YOLO for object detection?
|
||||
|
||||
Ultralytics YOLO offers state-of-the-art, real-time object detection with high accuracy and efficiency. It's versatile, supporting multiple computer vision tasks such as detection, segmentation, and classification. Additionally, it integrates seamlessly with tools like Ultralytics HUB for no-code model training and deployment. For more details, explore the benefits and features on our [Ultralytics YOLO page](https://www.ultralytics.com/yolo).
|
||||
|
||||
### How can I ensure my annotations are in the correct format for Ultralytics YOLO?
|
||||
|
||||
Your annotations should follow the YOLO detection format. Each annotation file must list the object class, alongside its bounding box coordinates in the image. The YOLO format ensures streamlined and standardized data processing for training object detection models. For more information on proper annotation formatting, visit the [YOLO detection format guide](../datasets/detect/index.md).
|
||||
|
||||
### Can I use K-Fold Cross Validation with custom datasets other than Fruit Detection?
|
||||
|
||||
Yes, you can use K-Fold Cross Validation with any custom dataset as long as the annotations are in the YOLO detection format. Replace the dataset paths and class labels with those specific to your custom dataset. This flexibility ensures that any object detection project can benefit from robust model evaluation using K-Fold Cross Validation. For a practical example, review our [Generating Feature Vectors](#generating-feature-vectors-for-object-detection-dataset) section.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue