---
description: Explore in-depth reference for utility functions in Ultralytics data module. Learn about image verification, dataset handling, and more.
keywords: Ultralytics, dataset utils, data handling, image verification, Python, data module
---

# Reference for `ultralytics/data/utils.py`

!!! success "Improvements"

    This page is sourced from [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/utils.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/utils.py). Have an improvement or example to add? Open a [Pull Request](https://docs.ultralytics.com/help/contributing/) — thank you! 🙏

<br>

## ::: ultralytics.data.utils.HUBDatasetStats

<br><br><hr><br>

## ::: ultralytics.data.utils.img2label_paths

<br><br><hr><br>

## ::: ultralytics.data.utils.check_file_speeds

<br><br><hr><br>

## ::: ultralytics.data.utils.get_hash

<br><br><hr><br>

## ::: ultralytics.data.utils.exif_size

<br><br><hr><br>

## ::: ultralytics.data.utils.verify_image

<br><br><hr><br>

## ::: ultralytics.data.utils.verify_image_label

<br><br><hr><br>

## ::: ultralytics.data.utils.visualize_image_annotations

<br><br><hr><br>

## ::: ultralytics.data.utils.polygon2mask

<br><br><hr><br>

## ::: ultralytics.data.utils.polygons2masks

<br><br><hr><br>

## ::: ultralytics.data.utils.polygons2masks_overlap

<br><br><hr><br>

## ::: ultralytics.data.utils.find_dataset_yaml

<br><br><hr><br>

## ::: ultralytics.data.utils.convert_ndjson_to_yolo_if_needed

<br><br><hr><br>

## ::: ultralytics.data.utils.check_det_dataset

<br><br><hr><br>

## ::: ultralytics.data.utils.check_cls_dataset

<br><br><hr><br>

## ::: ultralytics.data.utils.compress_one_image

<br><br><hr><br>

## ::: ultralytics.data.utils.load_dataset_cache_file

<br><br><hr><br>

## ::: ultralytics.data.utils.save_dataset_cache_file

<br><br>
