Fix Docs reference section __init__.py
URLs (#4168)
This commit is contained in:
@ -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
|
||||
```
|
||||
"""
|
||||
|
@ -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()
|
||||
```
|
||||
"""
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user