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 670 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 🚀 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. )
Tip!

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

Comments

Loading...