Fix Docs reference section __init__.py URLs (#4168)

This commit is contained in:
Glenn Jocher
2023-08-04 20:03:22 +02:00
committed by GitHub
parent 620b726fee
commit 4aa7969e15
100 changed files with 113 additions and 107 deletions

View File

@ -222,7 +222,7 @@ def handle_yolo_hub(args: List[str]) -> None:
args (List[str]): A list of command line arguments
Example:
```python
```bash
python my_script.py hub login your_api_key
```
"""
@ -248,7 +248,7 @@ def handle_yolo_settings(args: List[str]) -> None:
args (List[str]): A list of command line arguments for YOLO settings management.
Example:
```python
```bash
python my_script.py yolo settings reset
```
"""

View File

@ -18,6 +18,7 @@ def login(api_key=''):
Example:
```python
from ultralytics import hub
hub.login('API_KEY')
```
"""
@ -31,6 +32,7 @@ def logout():
Example:
```python
from ultralytics import hub
hub.logout()
```
"""

View File

@ -62,6 +62,8 @@ def coco80_to_coco91_class(): #
Example:
```python
import numpy as np
a = np.loadtxt('data/coco.names', dtype='str', delimiter='\n')
b = np.loadtxt('data/coco_paper.names', dtype='str', delimiter='\n')
x1 = [list(a[i] == b).index(True) + 1 for i in range(80)] # darknet to coco