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

Problems with the configuration of my .yaml file #579

Closed
1 task done
Geointeligente opened this issue Feb 20, 2024 · 6 comments
Closed
1 task done

Problems with the configuration of my .yaml file #579

Geointeligente opened this issue Feb 20, 2024 · 6 comments
Assignees
Labels
question Further information is requested Stale Stale and schedule for closing soon

Comments

@Geointeligente
Copy link

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 [email protected]

@Geointeligente Geointeligente added the question Further information is requested label Feb 20, 2024
Copy link

👋 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!

@Geointeligente
Copy link
Author

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

@kalenmike
Copy link
Contributor

kalenmike commented Feb 20, 2024

@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.

@kalenmike kalenmike self-assigned this Feb 20, 2024
@Geointeligente
Copy link
Author

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
Copy link
Contributor

@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

Copy link

github-actions bot commented Apr 4, 2024

👋 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 ⭐

@github-actions github-actions bot added the Stale Stale and schedule for closing soon label Apr 4, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested Stale Stale and schedule for closing soon
Projects
None yet
Development

No branches or pull requests

2 participants