Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

__init__.py 626 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  1. # Ultralytics YOLO 🚀, AGPL-3.0 license
  2. from ultralytics.utils import ASSETS, ROOT, WEIGHTS_DIR, checks, is_dir_writeable
  3. # Constants used in tests
  4. MODEL = WEIGHTS_DIR / "path with spaces" / "yolov8n.pt" # test spaces in path
  5. CFG = "yolov8n.yaml"
  6. SOURCE = ASSETS / "bus.jpg"
  7. TMP = (ROOT / "../tests/tmp").resolve() # temp directory for test files
  8. IS_TMP_WRITEABLE = is_dir_writeable(TMP)
  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. "TMP",
  16. "IS_TMP_WRITEABLE",
  17. "CUDA_IS_AVAILABLE",
  18. "CUDA_DEVICE_COUNT",
  19. )
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...