Add Chinese Modes and Tasks Docs (#6274)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
pull/6227/head^2
Glenn Jocher 1 year ago committed by GitHub
parent 795b95bdcb
commit e3a538bbde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      .github/workflows/publish.yml
  2. 26
      docs/README.md
  3. 26
      docs/SECURITY.md
  4. 7
      docs/build_reference.py
  5. 0
      docs/en/CNAME
  6. 0
      docs/en/datasets/classify/caltech101.md
  7. 0
      docs/en/datasets/classify/caltech256.md
  8. 0
      docs/en/datasets/classify/cifar10.md
  9. 0
      docs/en/datasets/classify/cifar100.md
  10. 0
      docs/en/datasets/classify/fashion-mnist.md
  11. 0
      docs/en/datasets/classify/imagenet.md
  12. 0
      docs/en/datasets/classify/imagenet10.md
  13. 0
      docs/en/datasets/classify/imagenette.md
  14. 0
      docs/en/datasets/classify/imagewoof.md
  15. 0
      docs/en/datasets/classify/index.md
  16. 0
      docs/en/datasets/classify/mnist.md
  17. 0
      docs/en/datasets/detect/argoverse.md
  18. 0
      docs/en/datasets/detect/coco.md
  19. 0
      docs/en/datasets/detect/coco8.md
  20. 0
      docs/en/datasets/detect/globalwheat2020.md
  21. 0
      docs/en/datasets/detect/index.md
  22. 0
      docs/en/datasets/detect/objects365.md
  23. 0
      docs/en/datasets/detect/open-images-v7.md
  24. 0
      docs/en/datasets/detect/sku-110k.md
  25. 0
      docs/en/datasets/detect/visdrone.md
  26. 0
      docs/en/datasets/detect/voc.md
  27. 0
      docs/en/datasets/detect/xview.md
  28. 0
      docs/en/datasets/index.md
  29. 0
      docs/en/datasets/obb/dota-v2.md
  30. 0
      docs/en/datasets/obb/index.md
  31. 0
      docs/en/datasets/pose/coco.md
  32. 0
      docs/en/datasets/pose/coco8-pose.md
  33. 0
      docs/en/datasets/pose/index.md
  34. 0
      docs/en/datasets/pose/tiger-pose.md
  35. 0
      docs/en/datasets/segment/coco.md
  36. 0
      docs/en/datasets/segment/coco8-seg.md
  37. 0
      docs/en/datasets/segment/index.md
  38. 0
      docs/en/datasets/track/index.md
  39. 0
      docs/en/guides/azureml-quickstart.md
  40. 0
      docs/en/guides/conda-quickstart.md
  41. 0
      docs/en/guides/docker-quickstart.md
  42. 0
      docs/en/guides/hyperparameter-tuning.md
  43. 0
      docs/en/guides/index.md
  44. 0
      docs/en/guides/kfold-cross-validation.md
  45. 0
      docs/en/guides/model-deployment-options.md
  46. 0
      docs/en/guides/raspberry-pi.md
  47. 0
      docs/en/guides/sahi-tiled-inference.md
  48. 0
      docs/en/guides/triton-inference-server.md
  49. 0
      docs/en/guides/yolo-common-issues.md
  50. 0
      docs/en/guides/yolo-performance-metrics.md
  51. 0
      docs/en/guides/yolo-thread-safe-inference.md
  52. 0
      docs/en/help/CI.md
  53. 0
      docs/en/help/CLA.md
  54. 0
      docs/en/help/FAQ.md
  55. 0
      docs/en/help/code_of_conduct.md
  56. 0
      docs/en/help/contributing.md
  57. 0
      docs/en/help/environmental-health-safety.md
  58. 2
      docs/en/help/index.md
  59. 0
      docs/en/help/minimum_reproducible_example.md
  60. 0
      docs/en/help/privacy.md
  61. 36
      docs/en/help/security.md
  62. 0
      docs/en/hub/app/android.md
  63. 0
      docs/en/hub/app/index.md
  64. 0
      docs/en/hub/app/ios.md
  65. 0
      docs/en/hub/datasets.md
  66. 0
      docs/en/hub/index.md
  67. 0
      docs/en/hub/inference_api.md
  68. 0
      docs/en/hub/integrations.md
  69. 0
      docs/en/hub/models.md
  70. 0
      docs/en/hub/projects.md
  71. 0
      docs/en/hub/quickstart.md
  72. 0
      docs/en/index.md
  73. 0
      docs/en/integrations/index.md
  74. 0
      docs/en/integrations/mlflow.md
  75. 0
      docs/en/integrations/openvino.md
  76. 0
      docs/en/integrations/ray-tune.md
  77. 0
      docs/en/integrations/roboflow.md
  78. 0
      docs/en/models/fast-sam.md
  79. 0
      docs/en/models/index.md
  80. 0
      docs/en/models/mobile-sam.md
  81. 0
      docs/en/models/rtdetr.md
  82. 0
      docs/en/models/sam.md
  83. 0
      docs/en/models/yolo-nas.md
  84. 0
      docs/en/models/yolov3.md
  85. 0
      docs/en/models/yolov4.md
  86. 0
      docs/en/models/yolov5.md
  87. 0
      docs/en/models/yolov6.md
  88. 0
      docs/en/models/yolov7.md
  89. 0
      docs/en/models/yolov8.md
  90. 0
      docs/en/modes/benchmark.md
  91. 0
      docs/en/modes/export.md
  92. 0
      docs/en/modes/index.md
  93. 0
      docs/en/modes/predict.md
  94. 0
      docs/en/modes/track.md
  95. 0
      docs/en/modes/train.md
  96. 0
      docs/en/modes/val.md
  97. 0
      docs/en/quickstart.md
  98. 2
      docs/en/reference/cfg/__init__.md
  99. 14
      docs/en/reference/data/annotator.md
  100. 2
      docs/en/reference/data/augment.md
  101. Some files were not shown because too many files have changed in this diff Show More

@ -66,7 +66,11 @@ jobs:
env:
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
run: |
mkdocs build
mkdocs build -f docs/mkdocs.yml
for file in docs/mkdocs_*.yml; do
echo "Building MkDocs site with configuration file: $file"
mkdocs build -f "$file"
done
git config --global user.name "Glenn Jocher"
git config --global user.email "glenn.jocher@ultralytics.com"
git clone https://github.com/ultralytics/docs.git docs-repo

@ -52,6 +52,32 @@ While the site is being served, you can make changes to the documentation files
To stop the serve command and terminate the local server, you can use the `CTRL+C` keyboard shortcut.
### Building and Serving Multi-Language
For multi-language MkDocs sites use the following additional steps:
1. Add all new language *.md files to git commit: `git add docs/**/*.md -f`
2. Build all languages to the `/site` directory. Verify that the top-level `/site` directory contains `CNAME`, `robots.txt` and `sitemap.xml` files, if applicable.
```bash
# Remove existing /site directory
rm -rf site
# Loop through all *.yml files in the docs directory
for file in docs/*.yml; do
echo "Building MkDocs site with configuration file: $file"
mkdocs build -f "$file"
done
```
3. Preview in web browser with:
```bash
cd site
python -m http.server
open http://localhost:8000 # on macOS
```
### Deploying Your Documentation Site
To deploy your MkDocs documentation site, you will need to choose a hosting provider and a deployment method. Some popular options include GitHub Pages, GitLab Pages, and Amazon S3.

@ -1,26 +0,0 @@
---
description: Discover how Ultralytics ensures the safety of user data and systems. Check out the measures we have implemented, including Snyk and GitHub CodeQL Scanning.
keywords: Ultralytics, Security Policy, data security, open-source projects, Snyk scanning, CodeQL scanning, vulnerability detection, threat prevention
---
# Security Policy
At [Ultralytics](https://ultralytics.com), the security of our users' data and systems is of utmost importance. To ensure the safety and security of our [open-source projects](https://github.com/ultralytics), we have implemented several measures to detect and prevent security vulnerabilities.
## Snyk Scanning
We use [Snyk](https://snyk.io/advisor/python/ultralytics) to regularly scan all Ultralytics repositories for vulnerabilities and security issues. Our goal is to identify and remediate any potential threats as soon as possible, to minimize any risks to our users.
[![ultralytics](https://snyk.io/advisor/python/ultralytics/badge.svg)](https://snyk.io/advisor/python/ultralytics)
## GitHub CodeQL Scanning
In addition to our Snyk scans, we also use GitHub's [CodeQL](https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/about-code-scanning-with-codeql) scans to proactively identify and address security vulnerabilities across all Ultralytics repositories.
[![CodeQL](https://github.com/ultralytics/ultralytics/actions/workflows/codeql.yaml/badge.svg)](https://github.com/ultralytics/ultralytics/actions/workflows/codeql.yaml)
## Reporting Security Issues
If you suspect or discover a security vulnerability in any of our repositories, please let us know immediately. You can reach out to us directly via our [contact form](https://ultralytics.com/contact) or via [security@ultralytics.com](mailto:security@ultralytics.com). Our security team will investigate and respond as soon as possible.
We appreciate your help in keeping all Ultralytics open-source projects secure and safe for everyone.

@ -14,7 +14,7 @@ from ultralytics.utils import ROOT
NEW_YAML_DIR = ROOT.parent
CODE_DIR = ROOT
REFERENCE_DIR = ROOT.parent / 'docs/reference'
REFERENCE_DIR = ROOT.parent / 'docs/en/reference'
def extract_classes_and_functions(filepath: Path) -> tuple:
@ -45,10 +45,11 @@ def create_markdown(py_filepath: Path, module_path: str, classes: list, function
module_name = module_path.replace('.__init__', '')
module_path = module_path.replace('.', '/')
url = f'https://github.com/ultralytics/ultralytics/blob/main/{module_path}.py'
edit = f'https://github.com/ultralytics/ultralytics/edit/main/{module_path}.py'
title_content = (
f'# Reference for `{module_path}.py`\n\n'
f'!!! note\n\n'
f' Full source code for this file is available at [{url}]({url}). Help us fix any issues you see by submitting a [Pull Request](https://docs.ultralytics.com/help/contributing/) 🛠. Thank you 🙏!\n\n'
f' This file is available at [{url}]({url}). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request]({edit}) 🛠. Thank you 🙏!\n\n'
)
md_content = [f'---\n## ::: {module_name}.{class_name}\n<br><br>\n' for class_name in classes]
md_content.extend(f'---\n## ::: {module_name}.{func_name}\n<br><br>\n' for func_name in functions)
@ -96,7 +97,7 @@ def create_nav_menu_yaml(nav_items: list):
if isinstance(v, dict):
yaml_str += f'{indent}- {k}:\n{_dict_to_yaml(v, level + 1)}'
else:
yaml_str += f"{indent}- {k}: {str(v).replace('docs/', '')}\n"
yaml_str += f"{indent}- {k}: {str(v).replace('docs/en/', '')}\n"
return yaml_str
# Print updated YAML reference section

@ -13,7 +13,7 @@ Welcome to the Ultralytics Help page! We are dedicated to providing you with det
- [Minimum Reproducible Example (MRE) Guide](minimum_reproducible_example.md): Learn the process for creating an MRE, which is crucial for the timely and effective resolution of bug reports.
- [Code of Conduct](code_of_conduct.md): Our community guidelines support a respectful and open atmosphere for all collaborators.
- [Environmental, Health and Safety (EHS) Policy](environmental-health-safety.md): Delve into our commitment to sustainability and the well-being of all our stakeholders.
- [Security Policy](../SECURITY.md): Familiarize yourself with our security protocols and the procedure for reporting vulnerabilities.
- [Security Policy](security.md): Familiarize yourself with our security protocols and the procedure for reporting vulnerabilities.
- [Privacy Policy](privacy.md): Read our privacy policy to understand how we protect your data and respect your privacy in all our services and operations.
We encourage you to review these resources for a seamless and productive experience. Our aim is to foster a helpful and friendly environment for everyone in the Ultralytics community. Should you require additional support, please feel free to reach out via GitHub Issues or our official discussion forums. Happy coding!

@ -0,0 +1,36 @@
---
description: Explore Ultralytics' comprehensive security strategies safeguarding user data and systems. Learn about our diverse security tools, including Snyk, GitHub CodeQL, and Dependabot Alerts.
keywords: Ultralytics, Comprehensive Security, user data protection, Snyk, GitHub CodeQL, Dependabot, vulnerability management, coding security practices
---
# Ultralytics Security Policy
At [Ultralytics](https://ultralytics.com), the security of our users' data and systems is of utmost importance. To ensure the safety and security of our [open-source projects](https://github.com/ultralytics), we have implemented several measures to detect and prevent security vulnerabilities.
## Snyk Scanning
We utilize [Snyk](https://snyk.io/advisor/python/ultralytics) to conduct comprehensive security scans on Ultralytics repositories. Snyk's robust scanning capabilities extend beyond dependency checks; it also examines our code and Dockerfiles for various vulnerabilities. By identifying and addressing these issues proactively, we ensure a higher level of security and reliability for our users.
[![ultralytics](https://snyk.io/advisor/python/ultralytics/badge.svg)](https://snyk.io/advisor/python/ultralytics)
## GitHub CodeQL Scanning
Our security strategy includes GitHub's [CodeQL](https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/about-code-scanning-with-codeql) scanning. CodeQL delves deep into our codebase, identifying complex vulnerabilities like SQL injection and XSS by analyzing the code's semantic structure. This advanced level of analysis ensures early detection and resolution of potential security risks.
[![CodeQL](https://github.com/ultralytics/ultralytics/actions/workflows/codeql.yaml/badge.svg)](https://github.com/ultralytics/ultralytics/actions/workflows/codeql.yaml)
## GitHub Dependabot Alerts
[Dependabot](https://docs.github.com/en/code-security/dependabot) is integrated into our workflow to monitor dependencies for known vulnerabilities. When a vulnerability is identified in one of our dependencies, Dependabot alerts us, allowing for swift and informed remediation actions.
## GitHub Secret Scanning Alerts
We employ GitHub [secret scanning](https://docs.github.com/en/code-security/secret-scanning/managing-alerts-from-secret-scanning) alerts to detect sensitive data, such as credentials and private keys, accidentally pushed to our repositories. This early detection mechanism helps prevent potential security breaches and data exposures.
## Private Vulnerability Reporting
We enable private vulnerability reporting, allowing users to discreetly report potential security issues. This approach facilitates responsible disclosure, ensuring vulnerabilities are handled securely and efficiently.
If you suspect or discover a security vulnerability in any of our repositories, please let us know immediately. You can reach out to us directly via our [contact form](https://ultralytics.com/contact) or via [security@ultralytics.com](mailto:security@ultralytics.com). Our security team will investigate and respond as soon as possible.
We appreciate your help in keeping all Ultralytics open-source projects secure and safe for everyone 🙏.

@ -7,7 +7,7 @@ keywords: Ultralytics, YOLO, Configuration, cfg2dict, handle_deprecation, merge_
!!! note
Full source code for this file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/__init__.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/__init__.py). Help us fix any issues you see by submitting a [Pull Request](https://docs.ultralytics.com/help/contributing/) 🛠. Thank you 🙏!
This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/__init__.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/__init__.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/cfg/__init__.py) 🛠. Thank you 🙏!
---
## ::: ultralytics.cfg.cfg2dict

@ -0,0 +1,14 @@
---
description: Enhance your machine learning model with Ultralytics’ auto_annotate function. Simplify data annotation for improved model training.
keywords: Ultralytics, Auto-Annotate, Machine Learning, AI, Annotation, Data Processing, Model Training
---
# Reference for `ultralytics/data/annotator.py`
!!! note
This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/annotator.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/annotator.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/data/annotator.py) 🛠. Thank you 🙏!
---
## ::: ultralytics.data.annotator.auto_annotate
<br><br>

@ -7,7 +7,7 @@ keywords: Ultralytics, Data Augmentation, BaseTransform, MixUp, RandomHSV, Lette
!!! note
Full source code for this file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/augment.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/augment.py). Help us fix any issues you see by submitting a [Pull Request](https://docs.ultralytics.com/help/contributing/) 🛠. Thank you 🙏!
This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/augment.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/augment.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/data/augment.py) 🛠. Thank you 🙏!
---
## ::: ultralytics.data.augment.BaseTransform

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save