docs: fix wrong weights in segment and obb .load() examples (#24180)
This commit is contained in:
parent
e5eee3e6a2
commit
b1821192eb
@ -66,7 +66,7 @@ Train YOLO26n-obb on the DOTA8 dataset for 100 [epochs](https://www.ultralytics.
|
||||
# Load a model
|
||||
model = YOLO("yolo26n-obb.yaml") # build a new model from YAML
|
||||
model = YOLO("yolo26n-obb.pt") # load a pretrained model (recommended for training)
|
||||
model = YOLO("yolo26n-obb.yaml").load("yolo26n.pt") # build from YAML and transfer weights
|
||||
model = YOLO("yolo26n-obb.yaml").load("yolo26n-obb.pt") # build from YAML and transfer weights
|
||||
|
||||
# Train the model
|
||||
results = model.train(data="dota8.yaml", epochs=100, imgsz=640)
|
||||
|
||||
@ -54,7 +54,7 @@ Train YOLO26n-seg on the COCO8-seg dataset for 100 [epochs](https://www.ultralyt
|
||||
# Load a model
|
||||
model = YOLO("yolo26n-seg.yaml") # build a new model from YAML
|
||||
model = YOLO("yolo26n-seg.pt") # load a pretrained model (recommended for training)
|
||||
model = YOLO("yolo26n-seg.yaml").load("yolo26n.pt") # build from YAML and transfer weights
|
||||
model = YOLO("yolo26n-seg.yaml").load("yolo26n-seg.pt") # build from YAML and transfer weights
|
||||
|
||||
# Train the model
|
||||
results = model.train(data="coco8-seg.yaml", epochs=100, imgsz=640)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user