garmentiq.utils

Shared helpers used across the GarmentIQ modules.

Small utilities that several modules depend on: archive handling and dataset validation, device resolution and accelerator cache management, checkpoint loading with a mismatch guard, measurement distance computation, and JSON export.

 1# garmentiq/utils/__init__.py
 2"""Shared helpers used across the GarmentIQ modules.
 3
 4Small utilities that several modules depend on: archive handling and dataset
 5validation, device resolution and accelerator cache management, checkpoint loading
 6with a mismatch guard, measurement distance computation, and JSON export.
 7"""
 8from .unzip import unzip
 9from .check_unzipped_dir import check_unzipped_dir
10from .check_filenames_metadata import check_filenames_metadata
11from .validate_garment_class_dict import validate_garment_class_dict
12from .compute_measurement_distances import compute_measurement_distances
13from .export_dict_to_json import export_dict_to_json
14from .clean_detection_dict import clean_detection_dict
15from .device import resolve_device, empty_cache, inputs_to_device
16from .checkpoint import load_state_dict_checked