getitune-discovering-models
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDiscovering models and recipes in getitune
在getitune中探索模型和食谱
Every trainable model in is backed by a recipe YAML under
. Recipes are self-discovering, so listing
them is how you learn what you can train and what to pass to .
getitunelibrary/src/getitune/recipe/<task>/create_engineRun everything from .
library/getitunelibrary/src/getitune/recipe/<task>/create_engine所有操作都从目录下执行。
library/List models from Python
从Python中列出模型
python
from getitune.utils import list_models
list_models() # all model names
list_models(return_recipes=True) # full recipe YAML paths
list_models(task="DETECTION") # filter by task
list_models(pattern="*efficient*") # filter by name pattern
list_models(task="DETECTION", return_recipes=True) # recipe paths for one taskPass any returned name (or recipe path) to
— see .
create_engine(model="...", data="...")getitune-training-a-modelpython
from getitune.utils import list_models
list_models() # 所有模型名称
list_models(return_recipes=True) # 完整的食谱YAML路径
list_models(task="DETECTION") # 按任务过滤
list_models(pattern="*efficient*") # 按名称模式过滤
list_models(task="DETECTION", return_recipes=True) # 单个任务的食谱路径将返回的任意名称(或食谱路径)传入——详见。
create_engine(model="...", data="...")getitune-training-a-modelList models from the CLI
从CLI中列出模型
bash
undefinedbash
undefinedfrom library/
from library/
getitune find # lists available model recipes
undefinedgetitune find # 列出可用的模型食谱
undefinedTasks
任务类型
Task types live in () and organize both the model
implementations and the recipe folders:
getitune.typesTaskType- Classification: ,
MULTI_CLASS_CLS,MULTI_LABEL_CLSH_LABEL_CLS - Detection: ,
DETECTION,ROTATED_DETECTIONKEYPOINT_DETECTION - Segmentation: ,
INSTANCE_SEGMENTATIONSEMANTIC_SEGMENTATION
Recipes whose name ends in enable the tiling pipeline for large images.
Each task directory also ships an recipe for running
pre-exported OpenVINO IR models.
_tileopenvino_model.yaml任务类型位于()中,用于组织模型实现和食谱文件夹:
getitune.typesTaskType- 分类:、
MULTI_CLASS_CLS、MULTI_LABEL_CLSH_LABEL_CLS - 检测:、
DETECTION、ROTATED_DETECTIONKEYPOINT_DETECTION - 分割:、
INSTANCE_SEGMENTATIONSEMANTIC_SEGMENTATION
名称以结尾的食谱支持针对大图像的分块处理流程。每个任务目录还附带一个食谱,用于运行预导出的OpenVINO IR模型。
_tileopenvino_model.yamlResolving model-name ambiguity
解决模型名称歧义
- Passing a model name that matches recipes under multiple tasks raises a
listing the matches — pass
ValueErrorto disambiguate (e.g.task=).create_engine(model="dino_v2", task="DETECTION", ...) - Passing a recipe path (/
.yaml) that does not exist raises.yml.FileNotFoundError - Use to get unambiguous full recipe paths.
list_models(task="...", return_recipes=True)
- 传入的模型名称匹配多个任务下的食谱时,会抛出并列出匹配项——需传入
ValueError参数来明确(例如task=)。create_engine(model="dino_v2", task="DETECTION", ...) - 传入不存在的食谱路径(/
.yaml)会抛出.yml。FileNotFoundError - 使用获取明确的完整食谱路径。
list_models(task="...", return_recipes=True)
Workflow
工作流程
- List candidates, filtering by and/or
task=to narrow down.pattern=- Done when: you have a concrete model name or recipe path.
- Confirm the task matches your dataset (see ).
getitune-preparing-datasets- Done when: model task and dataset annotations agree.
- Hand the chosen model to in
create_engine.getitune-training-a-model
- 列出候选模型,通过和/或
task=过滤以缩小范围。pattern=- 完成标志:获得具体的模型名称或食谱路径。
- 确认任务与数据集匹配(详见)。
getitune-preparing-datasets- 完成标志:模型任务与数据集标注一致。
- 将选定的模型传入,详见
create_engine。getitune-training-a-model
Related skills
相关技能
- — train the model you selected.
getitune-training-a-model - — match the model's task to your data.
getitune-preparing-datasets - — when adding a new model/recipe to the library itself.
geti-library-dev
- —— 训练你选择的模型。
getitune-training-a-model - —— 使模型任务与你的数据匹配。
getitune-preparing-datasets - —— 向库中添加新模型/食谱时使用。
geti-library-dev