scripts.processing.detection

Functions

clear_model_cache()

Clear all cached models.

main()

Main execution function with performance optimizations.

parse_arguments()

Parse command-line arguments using argparse.

setup_device(device_arg)

Setup optimal device for inference.

Classes

OptimizedPredictLabel(path_to_model, classes)

Optimized version of PredictLabel with caching and streamlined loading.