Update docs (#73)
Co-authored-by: Laughing-q <1185102784@qq.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
681cfc1c35
commit
d198f3f9d1
3 changed files with 12 additions and 4 deletions
|
|
@ -24,11 +24,15 @@ CLI requires no customization or code. You can simply run all tasks from the ter
|
|||
classify val s-seg.pt
|
||||
```
|
||||
|
||||
=== "Example"
|
||||
=== "Example training"
|
||||
```bash
|
||||
yolo task=detect mode=val model=s.yaml
|
||||
yolo task=detect mode=train model=s.yaml
|
||||
```
|
||||
TODO: add terminal screen/gif
|
||||
=== "Example training DDP"
|
||||
```bash
|
||||
yolo task=detect mode=train model=s.yaml device=\'0,1,2,3\'
|
||||
```
|
||||
[CLI Guide](#){ .md-button .md-button--primary}
|
||||
|
||||
## Python API
|
||||
|
|
@ -42,5 +46,6 @@ Ultralytics YOLO comes with pythonic Model and Trainer interface.
|
|||
model.new("s-seg.yaml") # automatically detects task type
|
||||
model.load("s-seg.pt") # load checkpoint
|
||||
model.train(data="coco128-segments", epochs=1, lr0=0.01, ...)
|
||||
model.train(data="coco128-segments", epochs=1, lr0=0.01, device="0,1,2,3") # DDP mode
|
||||
```
|
||||
[API Guide](#){ .md-button .md-button--primary}
|
||||
[API Guide](#){ .md-button .md-button--primary}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue