Yolov5: Training images without objects

Created on 14 Sep 2020  路  7Comments  路  Source: ultralytics/yolov5

鉂擰uestion

hi, in my custom dataset, i have some images without objects, thus there are no annotations relate to those images. should i need to make an empty '.txt' label file to refer to it?

Additional context

Stale question

Most helpful comment

@ZhengfengLee background images do not require label files.

All 7 comments

Hello @ZhengfengLee, thank you for your interest in our work! Please visit our Custom Training Tutorial to get started, and see our Jupyter Notebook Open In Colab, Docker Image, and Google Cloud Quickstart Guide for example environments.

If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.

If this is a custom model or data training question, please note Ultralytics does not provide free personal support. As a leader in vision ML and AI, we do offer professional consulting, from simple expert advice up to delivery of fully customized, end-to-end production solutions for our clients, such as:

  • Cloud-based AI systems operating on hundreds of HD video streams in realtime.
  • Edge AI integrated into custom iOS and Android apps for realtime 30 FPS video inference.
  • Custom data training, hyperparameter evolution, and model exportation to any destination.

For more information please visit https://www.ultralytics.com.

@ZhengfengLee background images do not require label files.

@ZhengfengLee background images do not require label files.

I see. Thank you for your answer

@ZhengfengLee background images do not require label files.

I still have a question: background images dont compute any loss, right?

@glenn-jocher all images are treated equally in the loss function. If they have no objects, they have no objects, but they are still processed as any other image and evaluate objectness loss at each anchor.

@glenn-jocher all images are treated equally in the loss function. If they have no objects, they have no objects, but they are still processed as any other image and evaluate objectness loss at each anchor.

thanks

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings