You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
143 lines
2.2 KiB
143 lines
2.2 KiB
---
|
|
description: Explore the Ultralytics Utils package, with handy functions like colorstr, yaml_save, set_logging & more, designed to enhance your coding experience.
|
|
keywords: Ultralytics, Utils, utilitarian functions, colorstr, yaml_save, set_logging, is_kaggle, is_docker, clean_url
|
|
---
|
|
|
|
# Reference for `ultralytics/utils.py`
|
|
|
|
!!! note
|
|
|
|
Full source code for this file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils.py).
|
|
|
|
---
|
|
## ::: ultralytics.utils.SimpleClass
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.IterableSimpleNamespace
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.EmojiFilter
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.ThreadingLocked
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.TryExcept
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.SettingsManager
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.plt_settings
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.set_logging
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.emojis
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.yaml_save
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.yaml_load
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.yaml_print
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.is_colab
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.is_kaggle
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.is_jupyter
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.is_docker
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.is_online
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.is_pip_package
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.is_dir_writeable
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.is_pytest_running
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.is_github_actions_ci
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.is_git_dir
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.get_git_dir
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.get_git_origin_url
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.get_git_branch
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.get_default_args
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.get_user_config_dir
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.colorstr
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.threaded
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.set_sentry
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.deprecation_warn
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.clean_url
|
|
<br><br>
|
|
|
|
---
|
|
## ::: ultralytics.utils.url2file
|
|
<br><br>
|