Reference for ultralytics/models/nas/model.py
Note
This file is available at https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/nas/model.py. If you spot a problem please help fix it by contributing a Pull Request 🛠️. Thank you 🙏!
ultralytics.models.nas.model.NAS
Bases: Model
YOLO NAS model for object detection.
This class provides an interface for the YOLO-NAS models and extends the Model
class from Ultralytics engine. It is designed to facilitate the task of object detection using pre-trained or custom-trained YOLO-NAS models.
Example
Attributes:
Name | Type | Description |
---|---|---|
model | str | Path to the pre-trained model or model name. Defaults to 'yolo_nas_s.pt'. |
Note
YOLO-NAS models only support pre-trained models. Do not provide YAML configuration files.
Source code in ultralytics/models/nas/model.py
task_map property
Returns a dictionary mapping tasks to respective predictor and validator classes.
info
Logs model info.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
detailed | bool | Show detailed information about model. | False |
verbose | bool | Controls verbosity. | True |