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

YOLOv8 Conduct training,but labels.jpg not data #93

Open
xiaolieat opened this issue Mar 7, 2025 · 3 comments
Open

YOLOv8 Conduct training,but labels.jpg not data #93

xiaolieat opened this issue Mar 7, 2025 · 3 comments
Labels
bug Something isn't working question Further information is requested

Comments

@xiaolieat
Copy link

Hello, when I was training with YOLO, I used the following line of command for training, my dataset is a YOLO format dataset downloaded from kaggle, I don't know why after training, there is only the number of categories in the labels.jpg, and there is no data for the other three graphs

yolo train data=YOLO_format/data.yaml model=ultralytics/cfg/models/v8/yolov8n.yaml pretrained=yolov8n.pt epochs=100 batch=64 resume=True

Here's a picture from my labels.jpg
Image

Here's my version of YOLO
Image

Here's a configuration file for my dataset
Image

@UltralyticsAssistant UltralyticsAssistant added bug Something isn't working question Further information is requested labels Mar 7, 2025
@UltralyticsAssistant
Copy link
Member

👋 Hello @xiaolieat, thank you for submitting a ultralytics/assets 🚀 Issue. To help us address your concern efficiently, please ensure you've provided the following information:

  1. For bug reports:
    • A clear and concise description of the bug (which you’ve provided, great! 😊)
    • A minimum reproducible example (MRE) that demonstrates the issue. This could include the dataset or commands you're using. You can refer to our guide on creating an MRE for more details.
    • Your environment details (OS, Python version, package versions, etc.)
    • Expected behavior vs. actual behavior
    • Any error messages or logs—if applicable

It seems your description mentions the issue with labels.jpg during training, as well as related configuration details. Thank you for attaching images and providing some context! However, if possible, could you also share:

  • The content of your data.yaml file you’re using for training
  • Any logs/output shown during training, if errors or warnings are present
  1. For general questions or further clarifications:
    • Provide as much context as possible about what you're trying to achieve.
    • Include any research you've done on this so far.
    • Specify which parts of our documentation you’ve already referred to.

Additionally, please ensure that your dataset adheres to the YOLO format described in the documentation. If you haven't already, you might find our dataset preparation guide useful!

Lastly, if this issue relates to the functionality of the YOLOv8 model, remember that this repository is specifically dedicated to assets. 😄 For training and inference-related issues, you might want to refer to the ultralytics/ultralytics repository.

This is an automated response to guide you efficiently, but don’t worry—an Ultralytics engineer will assist you soon. 🚀 Thank you for helping us improve!

@xiaolieat
Copy link
Author

Here's a picture of my training,He can train normally, but there is only one image in the top left corner of labels.jpg, and the other three images are empty.Here's what I left to interrupt
Image

Image

Image

@pderrenger
Copy link
Member

@xiaolieat thanks for including details. The empty plots typically indicate missing or invalid labels in your validation set. Let's verify:

  1. Ensure your data.yaml correctly points to both train and val image directories with corresponding label files
  2. Confirm labels exist for all validation images (no empty .txt files needed for zero-label images)
  3. Try updating to the latest Ultralytics package: pip install -U ultralytics

For dataset verification, you can run:
yolo checks or yolo check data=YOLO_format/data.yaml

If issues persist, please share your dataset structure (number of images/labels in train/val) and consider testing with the standard COCO8 dataset from our Object Detection Datasets Guide to isolate the issue.

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

No branches or pull requests

3 participants