ultralytics / hub

Ultralytics HUB tutorials and support

Home Page:https://hub.ultralytics.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problems with the configuration of my .yaml file

Geointeligente opened this issue Β· comments

Search before asking

Question

Good morning. To start, thank you for having this space. Since I am new to this topic of loading data sets. I have the necessary information to upload my data set, but I am failing to configure my custom.yaml. Can you guide me on how to write this configuration, knowing that I have a data folder, within data are other folders images and labeling, but when loading the system tells me that the uploaded yaml is not correct. With Gratitude Omar

yaml_custom

Additional

images_and_labels
Please be very detailed in the explanation because I am not very knowledgeable in the matter, but I do understand the concept, but it is difficult for me to do what was mentioned above. My email is geomensurainnteligente@gmail.com

πŸ‘‹ Hello @Geointeligente, thank you for raising an issue about Ultralytics HUB πŸš€! Please visit our HUB Docs to learn more:

  • Quickstart. Start training and deploying YOLO models with HUB in seconds.
  • Datasets: Preparing and Uploading. Learn how to prepare and upload your datasets to HUB in YOLO format.
  • Projects: Creating and Managing. Group your models into projects for improved organization.
  • Models: Training and Exporting. Train YOLOv5 and YOLOv8 models on your custom datasets and export them to various formats for deployment.
  • Integrations. Explore different integration options for your trained models, such as TensorFlow, ONNX, OpenVINO, CoreML, and PaddlePaddle.
  • Ultralytics HUB App. Learn about the Ultralytics App for iOS and Android, which allows you to run models directly on your mobile device.
    • iOS. Learn about YOLO CoreML models accelerated on Apple's Neural Engine on iPhones and iPads.
    • Android. Explore TFLite acceleration on mobile devices.
  • Inference API. Understand how to use the Inference API for running your trained models in the cloud to generate predictions.

If this is a πŸ› Bug Report, please provide screenshots and steps to reproduce your problem to help us get started working on a fix.

If this is a ❓ Question, please provide as much information as possible, including dataset, model, environment details etc. so that we might provide the most helpful response.

We try to respond to all issues as promptly as possible. Thank you for your patience!

Good morning. Your answer is very global for what I need. Could you be more specific with an example of how the coco.yaml file should be written, since what you show me with videos is very general and assumes that you already know how to configure a coco file .yaml. You just want to explain this, so as not to waste my time and search elsewhere. Regards @github-actions

@Geointeligente Typically you will see that error when your YAML file can not be validated due to formatting issues. YAML is very sensitive to formatting.

You can test your YAML file online with the many available linters, here is an example:

https://www.yamllint.com/

If you are able to validate your YAML please reply with the YAML contents and the dataset tree so I can help you further.

Thanks for your help @kalenmike. I have pasted the custom.yaml, and it tells me that it is fine. I am trying to create a dataset of house roofs, in which there is only one category, but I don't know what could be wrong, if I have my images with their respective labels.
yaml Lint
custom.zip

@kalenmike While your YAML is valid syntax, it is not correct for YOLO. Your names key is creating a dictionary that contains an array.

You can see an example dataset here.

What you need to do is remove the array inside names, it should look like this:

names:
    0: techo

πŸ‘‹ 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 ⭐