__init__.py 828 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. """
  2. 工具模块包
  3. 包含CUDA环境检测、文件处理等实用工具函数
  4. """
  5. from .check_cuda_env import (
  6. check_nvidia_environment,
  7. )
  8. from .cuda_utils import (
  9. monitor_gpu_memory,
  10. detect_available_gpus
  11. )
  12. from .file_utils import (
  13. get_image_files_from_dir,
  14. get_image_files_from_list,
  15. get_image_files_from_csv,
  16. split_files,
  17. create_temp_file_list
  18. )
  19. __all__ = [
  20. # CUDA环境检测
  21. 'check_nvidia_environment',
  22. # CUDA工具
  23. 'monitor_gpu_memory',
  24. 'detect_available_gpus',
  25. # 文件工具
  26. 'get_image_files_from_dir',
  27. 'get_image_files_from_list',
  28. 'get_image_files_from_csv',
  29. 'split_files',
  30. 'create_temp_file_list'
  31. ]
  32. __version__ = "1.0.0"
  33. __author__ = "zhch158"
  34. __description__ = "PaddleX工具模块包,提供CUDA环境检测和文件处理功能"