henry000 commited on
Commit
24095b3
Β·
1 Parent(s): 3eb85fd

πŸ“ [Add] Docs basic file and env

Browse files
Files changed (7) hide show
  1. .readthedocs.yaml +5 -29
  2. README.md +1 -0
  3. docs/Makefile +20 -0
  4. docs/conf.py +37 -0
  5. docs/index.rst +81 -0
  6. docs/make.bat +35 -0
  7. docs/requirements.txt +3 -0
.readthedocs.yaml CHANGED
@@ -1,32 +1,8 @@
1
- # .readthedocs.yaml
2
- # Read the Docs configuration file
3
- # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4
-
5
- # Required
6
  version: 2
7
 
8
- # Set the OS, Python version and other tools you might need
9
- build:
10
- os: ubuntu-22.04
11
- tools:
12
- python: "3.12"
13
- # You can also specify other tool versions:
14
- # nodejs: "19"
15
- # rust: "1.64"
16
- # golang: "1.19"
17
-
18
- # Build documentation in the "docs/" directory with Sphinx
19
- # sphinx:
20
- # configuration: docs/conf.py
21
-
22
- # Optionally build your docs in additional formats such as PDF and ePub
23
- # formats:
24
- # - pdf
25
- # - epub
26
 
27
- # Optional but recommended, declare the Python requirements required
28
- # to build your documentation
29
- # See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
30
- # python:
31
- # install:
32
- # - requirements: docs/requirements.txt
 
 
 
 
 
 
1
  version: 2
2
 
3
+ sphinx:
4
+ configuration: docs/conf.py
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
+ python:
7
+ install:
8
+ - requirements: docs/requirements.txt
 
 
 
README.md CHANGED
@@ -4,6 +4,7 @@
4
  ![WIP](https://img.shields.io/badge/status-WIP-orange)
5
  ![](https://img.shields.io/github/actions/workflow/status/WongKinYiu/YOLO/deploy.yaml)
6
 
 
7
 
8
  [![PWC](https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/yolov9-learning-what-you-want-to-learn-using/real-time-object-detection-on-coco)](https://paperswithcode.com/sota/real-time-object-detection-on-coco)
9
 
 
4
  ![WIP](https://img.shields.io/badge/status-WIP-orange)
5
  ![](https://img.shields.io/github/actions/workflow/status/WongKinYiu/YOLO/deploy.yaml)
6
 
7
+ [![Documentation Status](https://readthedocs.org/projects/yolo-docs/badge/?version=latest)](https://yolo-docs.readthedocs.io/en/latest/?badge=latest)
8
 
9
  [![PWC](https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/yolov9-learning-what-you-want-to-learn-using/real-time-object-detection-on-coco)](https://paperswithcode.com/sota/real-time-object-detection-on-coco)
10
 
docs/Makefile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Minimal makefile for Sphinx documentation
2
+ #
3
+
4
+ # You can set these variables from the command line, and also
5
+ # from the environment for the first two.
6
+ SPHINXOPTS ?=
7
+ SPHINXBUILD ?= sphinx-build
8
+ SOURCEDIR = .
9
+ BUILDDIR = _build
10
+
11
+ # Put it first so that "make" without argument is like "make help".
12
+ help:
13
+ @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14
+
15
+ .PHONY: help Makefile
16
+
17
+ # Catch-all target: route all unknown targets to Sphinx using the new
18
+ # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19
+ %: Makefile
20
+ @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
docs/conf.py ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Configuration file for the Sphinx documentation builder.
2
+ #
3
+ # For the full list of built-in configuration values, see the documentation:
4
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html
5
+
6
+ # -- Project information -----------------------------------------------------
7
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
8
+
9
+ project = "YOLO-docs"
10
+ copyright = "2024, Kin-Yiu, Wong and Hao-Tang, Tsui"
11
+ author = "Kin-Yiu, Wong and Hao-Tang, Tsui"
12
+
13
+ # -- General configuration ---------------------------------------------------
14
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
15
+
16
+ extensions = [
17
+ "sphinx.ext.autodoc",
18
+ "sphinx_rtd_theme",
19
+ "myst_parser",
20
+ ]
21
+
22
+ myst_enable_extensions = [
23
+ "dollarmath",
24
+ "amsmath",
25
+ "deflist",
26
+ ]
27
+ html_theme = "sphinx_rtd_theme"
28
+
29
+
30
+ templates_path = ["_templates"]
31
+ exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
32
+
33
+
34
+ # -- Options for HTML output -------------------------------------------------
35
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
36
+
37
+ html_static_path = ["_static"]
docs/index.rst ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ YOLO documentation
2
+ =======================
3
+
4
+ Introduction
5
+ ------------
6
+
7
+ YOLO (You Only Look Once) is a state-of-the-art, real-time object detection system that is designed for both efficiency and accuracy. This documentation provides comprehensive guidance on how to set up, configure, and effectively use YOLO for object detection tasks.
8
+
9
+ **Note: This project and some sections of this documentation are currently a work in progress.**
10
+
11
+ Project Features
12
+ ----------------
13
+
14
+ - **Real-time Processing**: YOLO can process images in real-time with high accuracy, making it suitable for applications that require instant detection.
15
+ - **Multitasking Capabilities**: Our enhanced version of YOLO supports multitasking, allowing it to handle multiple object detection tasks simultaneously.
16
+ - **Open Source**: YOLO is open source, released under the MIT License, encouraging a broad community of developers to contribute and build upon the existing framework.
17
+
18
+ Documentation Contents
19
+ ----------------------
20
+
21
+ Explore our documentation:
22
+
23
+
24
+ .. toctree::
25
+ :maxdepth: 2
26
+ :caption: Get Started
27
+
28
+ 0_get_start/0_quick_start.md
29
+ 0_get_start/1_installations.md
30
+ 0_get_start/2_git.md
31
+ 0_get_start/3_pypi.md
32
+ 0_get_start/4_docker.md
33
+ 0_get_start/5_conda.md
34
+
35
+ .. toctree::
36
+ :maxdepth: 2
37
+ :caption: Tutorials
38
+
39
+ 1_tutorials/0_train.md
40
+ 1_tutorials/1_validation.md
41
+
42
+
43
+ .. toctree::
44
+ :maxdepth: 2
45
+ :caption: Model Zoo
46
+
47
+ 2_model_zoo/0_object_detection.md
48
+ 2_model_zoo/1_segmentation.md
49
+ 2_model_zoo/2_classification.md
50
+
51
+ .. toctree::
52
+ :maxdepth: 2
53
+ :caption: Custom YOLO
54
+
55
+ 3_custom/0_model.md
56
+ 3_custom/1_data_augment.md
57
+ 3_custom/2_loss.md
58
+ 3_custom/3_task.md
59
+
60
+
61
+ .. toctree::
62
+ :maxdepth: 2
63
+ :caption: Deploy
64
+
65
+ 4_deploy/1_deploy.md
66
+ 4_deploy/2_onnx.md
67
+ 4_deploy/3_tensorrt.md
68
+
69
+
70
+ .. toctree::
71
+ :maxdepth: 2
72
+ :caption: Deploy
73
+
74
+ 4_deploy/1_deploy.md
75
+ 4_deploy/2_onnx.md
76
+ 4_deploy/3_tensorrt.md
77
+
78
+ License
79
+ -------
80
+
81
+ YOLO is provided under the MIT License, which allows extensive freedom for reuse and distribution. See the LICENSE file for full license text.
docs/make.bat ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @ECHO OFF
2
+
3
+ pushd %~dp0
4
+
5
+ REM Command file for Sphinx documentation
6
+
7
+ if "%SPHINXBUILD%" == "" (
8
+ set SPHINXBUILD=sphinx-build
9
+ )
10
+ set SOURCEDIR=.
11
+ set BUILDDIR=_build
12
+
13
+ %SPHINXBUILD% >NUL 2>NUL
14
+ if errorlevel 9009 (
15
+ echo.
16
+ echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
17
+ echo.installed, then set the SPHINXBUILD environment variable to point
18
+ echo.to the full path of the 'sphinx-build' executable. Alternatively you
19
+ echo.may add the Sphinx directory to PATH.
20
+ echo.
21
+ echo.If you don't have Sphinx installed, grab it from
22
+ echo.https://www.sphinx-doc.org/
23
+ exit /b 1
24
+ )
25
+
26
+ if "%1" == "" goto help
27
+
28
+ %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29
+ goto end
30
+
31
+ :help
32
+ %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33
+
34
+ :end
35
+ popd
docs/requirements.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ sphinx
2
+ sphinx_rtd_theme
3
+ myst-parser