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 894 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
23
24
25
  1. # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
  2. from ultralytics.cfg import TASK2DATA, TASK2MODEL, TASKS
  3. from ultralytics.utils import ASSETS, ROOT, WEIGHTS_DIR, checks
  4. # Constants used in tests
  5. MODEL = WEIGHTS_DIR / "path with spaces" / "yolo11n.pt" # test spaces in path
  6. CFG = "yolo11n.yaml"
  7. SOURCE = ASSETS / "bus.jpg"
  8. SOURCES_LIST = [ASSETS / "bus.jpg", ASSETS, ASSETS / "*", ASSETS / "**/*.jpg"]
  9. TMP = (ROOT / "../tests/tmp").resolve() # temp directory for test files
  10. CUDA_IS_AVAILABLE = checks.cuda_is_available()
  11. CUDA_DEVICE_COUNT = checks.cuda_device_count()
  12. TASK_MODEL_DATA = [(task, WEIGHTS_DIR / TASK2MODEL[task], TASK2DATA[task]) for task in TASKS]
  13. MODELS = frozenset(list(TASK2MODEL.values()) + ["yolo11n-grayscale.pt"])
  14. __all__ = (
  15. "MODEL",
  16. "CFG",
  17. "SOURCE",
  18. "SOURCES_LIST",
  19. "TMP",
  20. "CUDA_IS_AVAILABLE",
  21. "CUDA_DEVICE_COUNT",
  22. )
Tip!

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

Comments

Loading...