ultralytics / ultralytics

Ultralytics YOLO11 🚀
https://docs.ultralytics.com
GNU Affero General Public License v3.0
31.53k stars 6.06k forks source link

error when custom data train #4412

Closed hanjoonwon closed 1 year ago

hanjoonwon commented 1 year ago

Search before asking

Question

스크린샷 2023-08-17 122135 my data.yaml location is C:\Git_deep\ultralytics\custom there is custom image folder "train" too and my data.yaml text is train:custom/train/images

nc: 7 names: ['D00', 'D10', 'D20', 'D40', 'D43', 'D44', 'D50']

roboflow: workspace: project-i19oj project: road_japan-7moph version: 1 license: CC BY 4.0 url: https://universe.roboflow.com/project-i19oj/road_japan-7moph/dataset/1

how can i solve this error?

Additional

No response

github-actions[bot] commented 1 year ago

👋 Hello @hanjoonwon, thank you for your interest in YOLOv8 🚀! We recommend a visit to the YOLOv8 Docs for new users where you can find many Python and CLI usage examples and where many of the most common questions may already be answered.

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.

Join the vibrant Ultralytics Discord 🎧 community for real-time conversations and collaborations. This platform offers a perfect space to inquire, showcase your work, and connect with fellow Ultralytics users.

Install

Pip install the ultralytics package including all requirements in a Python>=3.8 environment with PyTorch>=1.8.

pip install ultralytics

Environments

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

Status

Ultralytics CI

If this badge is green, all Ultralytics CI tests are currently passing. CI tests verify correct operation of all YOLOv8 Modes and Tasks on macOS, Windows, and Ubuntu every 24 hours and on every commit.

hannaliavoshka commented 1 year ago

Try to rewrite 'names' like in this example: https://docs.ultralytics.com/datasets/detect/

github-actions[bot] commented 1 year ago

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

pderrenger commented 11 months ago

@hannaliavoshka to resolve the error, try rewriting the names field in your data.yaml file as demonstrated in the example provided in the YOLOv8 documentation under the "datasets/detect" section. This method may help in addressing the issue you encountered.