__init__.py 670 B

12345678910111213141516171819202122
  1. # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
  2. from ultralytics.utils import ASSETS, ROOT, WEIGHTS_DIR, checks
  3. # Constants used in tests
  4. MODEL = WEIGHTS_DIR / "path with spaces" / "yolo11n.pt" # test spaces in path
  5. CFG = "yolo11n.yaml"
  6. SOURCE = ASSETS / "bus.jpg"
  7. SOURCES_LIST = [ASSETS / "bus.jpg", ASSETS, ASSETS / "*", ASSETS / "**/*.jpg"]
  8. TMP = (ROOT / "../tests/tmp").resolve() # temp directory for test files
  9. CUDA_IS_AVAILABLE = checks.cuda_is_available()
  10. CUDA_DEVICE_COUNT = checks.cuda_device_count()
  11. __all__ = (
  12. "MODEL",
  13. "CFG",
  14. "SOURCE",
  15. "SOURCES_LIST",
  16. "TMP",
  17. "CUDA_IS_AVAILABLE",
  18. "CUDA_DEVICE_COUNT",
  19. )