计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
ontologies-and-model-interfaces【效率与协作】Guides custom Autodistill ontologies, base/target model interfaces, composed detection, and embedding workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task asks how to design an ontology, implement a custom base or target model, check interface conformance, compose detection and classification models, or reason about embedding/text-classification surfaces.
Autodistill core classes define contracts; concrete model behavior normally lives in plugin packages. If the task is only to label a folder using an existing plugin, start with dataset labeling. If the task is to pick a CLI alias or inspect installed plugins, start with CLI and model registry.
A base model maps user data plus an ontology to predictions or labeled datasets:
from autodistill.detection import CaptionOntology, DetectionBaseModel
class MyDetector(DetectionBaseModel):
def __init__(self, ontology: CaptionOntology):
self.ontology = ontology
def predict(self, input):
# return supervision.Detections
...
The inherited DetectionBaseModel.label() method will call predict() for every selected image and write the detection dataset. Use dataset labeling to validate the output layout.
CaptionOntology rejects empty mappings and raises lookup errors for missing prompts/classes.CustomDetectionModel or CombinedDetectionModel in some composition examples. In this source snapshot, the available class is autodistill.core.composed_detection_model.ComposedDetectionModel.TextClassificationBaseModel.label(...) is a stub (pass) in this snapshot; do not claim it writes a dataset without a plugin override.