Skip to content
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

Mosaic #13145

Open
1 task done
wyyt1202 opened this issue Jun 29, 2024 · 4 comments
Open
1 task done

Mosaic #13145

wyyt1202 opened this issue Jun 29, 2024 · 4 comments
Labels
question Further information is requested

Comments

@wyyt1202
Copy link

Search before asking

Question

if I set Mosaic=1, does it mean that Mosaic will be used throughout the entire training process, for example, if the training rounds are 300, will Mosaic be used in all these 300 rounds?

Additional

No response

@wyyt1202 wyyt1202 added the question Further information is requested label Jun 29, 2024
Copy link
Contributor

👋 Hello @wyyt1202, thank you for your interest in YOLOv5 🚀! Please visit our ⭐️ Tutorials to get started, where you can find quickstart guides for simple tasks like Custom Data Training all the way to advanced concepts like Hyperparameter Evolution.

If this is a 🐛 Bug Report, please provide a minimum reproducible example to help us debug it.

If this is a custom training ❓ Question, please provide as much information as possible, including dataset image examples and training logs, and verify you are following our Tips for Best Training Results.

Requirements

Python>=3.8.0 with all requirements.txt installed including PyTorch>=1.8. To get started:

git clone https://github.com/ultralytics/yolov5  # clone
cd yolov5
pip install -r requirements.txt  # install

Environments

YOLOv5 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):

Status

YOLOv5 CI

If this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are currently passing. CI tests verify correct operation of YOLOv5 training, validation, inference, export and benchmarks on macOS, Windows, and Ubuntu every 24 hours and on every commit.

Introducing YOLOv8 🚀

We're excited to announce the launch of our latest state-of-the-art (SOTA) object detection model for 2023 - YOLOv8 🚀!

Designed to be fast, accurate, and easy to use, YOLOv8 is an ideal choice for a wide range of object detection, image segmentation and image classification tasks. With YOLOv8, you'll be able to quickly and accurately detect objects in real-time, streamline your workflows, and achieve new levels of accuracy in your projects.

Check out our YOLOv8 Docs for details and get started with:

pip install ultralytics

@glenn-jocher
Copy link
Member

@wyyt1202 hello!

Thank you for your question and for checking the existing issues and discussions before posting. 😊

When you set mosaic=1 in your training configuration, it means that the Mosaic augmentation will be applied throughout the entire training process. So, if you have 300 epochs, Mosaic will be used in all of these epochs.

Mosaic augmentation is a powerful technique that helps improve the robustness of your model by combining four training images into one, which can enhance the model's ability to generalize. However, it's always a good idea to monitor your training process to ensure that the augmentation is benefiting your specific dataset and task.

If you have any further questions or need additional clarification, feel free to ask. We're here to help!

@wyyt1202
Copy link
Author

你好!

感谢您的提问,并在发布之前检查现有问题和讨论。😊

当您设置训练配置时,这意味着 Mosaic 增强将在整个训练过程中应用。因此,如果您有 300 个纪元,则马赛克将在所有这些纪元中使用。mosaic=1

马赛克增强是一种强大的技术,它通过将四个训练图像合并为一个图像来帮助提高模型的鲁棒性,从而增强模型的泛化能力。但是,监控您的训练过程始终是一个好主意,以确保增强有利于您的特定数据集和任务。

如果您有任何其他问题或需要进一步澄清,请随时提问。我们是来帮忙的!

thanks

@glenn-jocher
Copy link
Member

@wyyt1202 hello!

Thank you for your kind words and for your engagement with the YOLOv5 community. 😊

To address your question about Mosaic augmentation:

When you set mosaic=1 in your training configuration, it indeed means that Mosaic augmentation will be applied throughout the entire training process. This includes all epochs, so if you have 300 epochs, Mosaic will be used in each one of them.

Mosaic augmentation is a powerful technique that combines four training images into one, which can significantly enhance the model's ability to generalize by providing more diverse training samples. However, it's important to monitor your training process to ensure that this augmentation is beneficial for your specific dataset and task.

If you encounter any issues or have further questions, please provide a minimum reproducible code example so we can better assist you. You can find more information on how to create one here. Additionally, please ensure you are using the latest versions of torch and the YOLOv5 repository to rule out any issues that may have already been addressed.

Feel free to reach out if you need more assistance. We're here to help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants