Reference for ultralytics/models/fastsam/model.py
Note
This file is available at https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/fastsam/model.py. If you spot a problem please help fix it by contributing a Pull Request 🛠️. Thank you 🙏!
ultralytics.models.fastsam.model.FastSAM
Bases: Model
FastSAM model interface.
Example
Source code in ultralytics/models/fastsam/model.py
task_map
property
Returns a dictionary mapping segment task to corresponding predictor and validator classes.
__init__(model='FastSAM-x.pt')
Call the init method of the parent class (YOLO) with the updated default model.