Update YOLOv8n to YOLO11n in args (#16873)
Signed-off-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
60dbee2839
commit
a9d0cf66cb
15 changed files with 53 additions and 53 deletions
|
|
@ -47,7 +47,7 @@ from ultralytics.utils.torch_utils import get_cpu_info, select_device
|
|||
|
||||
|
||||
def benchmark(
|
||||
model=WEIGHTS_DIR / "yolov8n.pt",
|
||||
model=WEIGHTS_DIR / "yolo11n.pt",
|
||||
data=None,
|
||||
imgsz=160,
|
||||
half=False,
|
||||
|
|
@ -76,7 +76,7 @@ def benchmark(
|
|||
Examples:
|
||||
Benchmark a YOLO model with default settings:
|
||||
>>> from ultralytics.utils.benchmarks import benchmark
|
||||
>>> benchmark(model="yolov8n.pt", imgsz=640)
|
||||
>>> benchmark(model="yolo11n.pt", imgsz=640)
|
||||
"""
|
||||
import pandas as pd # scope for faster 'import ultralytics'
|
||||
|
||||
|
|
|
|||
|
|
@ -458,7 +458,7 @@ def check_torchvision():
|
|||
)
|
||||
|
||||
|
||||
def check_suffix(file="yolov8n.pt", suffix=".pt", msg=""):
|
||||
def check_suffix(file="yolo11n.pt", suffix=".pt", msg=""):
|
||||
"""Check file(s) for acceptable suffix."""
|
||||
if file and suffix:
|
||||
if isinstance(suffix, str):
|
||||
|
|
|
|||
|
|
@ -425,7 +425,7 @@ def attempt_download_asset(file, repo="ultralytics/assets", release="v8.3.0", **
|
|||
|
||||
Example:
|
||||
```python
|
||||
file_path = attempt_download_asset("yolov8n.pt", repo="ultralytics/assets", release="latest")
|
||||
file_path = attempt_download_asset("yolo11n.pt", repo="ultralytics/assets", release="latest")
|
||||
```
|
||||
"""
|
||||
from ultralytics.utils import SETTINGS # scoped for circular import
|
||||
|
|
|
|||
|
|
@ -183,7 +183,7 @@ def get_latest_run(search_dir="."):
|
|||
return max(last_list, key=os.path.getctime) if last_list else ""
|
||||
|
||||
|
||||
def update_models(model_names=("yolov8n.pt",), source_dir=Path("."), update_names=False):
|
||||
def update_models(model_names=("yolo11n.pt",), source_dir=Path("."), update_names=False):
|
||||
"""
|
||||
Updates and re-saves specified YOLO models in an 'updated_models' subdirectory.
|
||||
|
||||
|
|
@ -195,7 +195,7 @@ def update_models(model_names=("yolov8n.pt",), source_dir=Path("."), update_name
|
|||
Examples:
|
||||
Update specified YOLO models and save them in 'updated_models' subdirectory:
|
||||
>>> from ultralytics.utils.files import update_models
|
||||
>>> model_names = ("yolov8n.pt", "yolov8s.pt")
|
||||
>>> model_names = ("yolo11n.pt", "yolov8s.pt")
|
||||
>>> update_models(model_names, source_dir=Path("/models"), update_names=True)
|
||||
"""
|
||||
from ultralytics import YOLO
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ def run_ray_tune(
|
|||
from ultralytics import YOLO
|
||||
|
||||
# Load a YOLOv8n model
|
||||
model = YOLO("yolov8n.pt")
|
||||
model = YOLO("yolo11n.pt")
|
||||
|
||||
# Start tuning hyperparameters for YOLOv8n training on the COCO8 dataset
|
||||
result_grid = model.tune(data="coco8.yaml", use_ray=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue