Loading...
Loading...
Train a computer-vision model with the getitune library (the Geti training library) using its Python API or CLI. Use when a user wants to train, fine-tune, or evaluate a model with `create_engine(...)` and `engine.train()/engine.test()`, run `getitune train`/`getitune test`, pick or override a recipe under `getitune.recipe.<task>`, choose a device (cpu/gpu/xpu/cuda), warm-start from a checkpoint, or debug a training run. Covers classification, detection, instance/semantic segmentation, and keypoint detection.
npx skill4agent add open-edge-platform/geti getitune-training-a-modelgetituneEnginecreate_engine(...)library/src/getitune/recipe/<task>/from getitune.engine import create_engineengine.train()engine.test()library/README.mdlibrary/docs/source/guide/get_started/api_tutorial.rstgetitune train --data_root <path> --model <name|recipe.yaml>library/docs/source/guide/get_started/cli_commands.rstlibrary/uv syncuv sync --extra xpuuv sync --extra cudafrom getitune.engine import create_engine
engine = create_engine(
model="efficientnet_b0", # model name, recipe .yaml path, or model class
data="/path/to/dataset_root", # dataset root (COCO/YOLO/VOC/native), auto-detected
work_dir="./my_workspace", # checkpoints + logs; defaults to ./getitune-workspace
device="auto", # "auto", "cpu", "gpu", "xpu", "cuda", "0", ...
)
engine.train(max_epochs=50)
engine.test()"efficientnet_b0""src/getitune/recipe/detection/yolox_s.yaml"task=task="DETECTION"getitune-discovering-modelscreate_engine(...)ValueErrorFileNotFoundErrordata=getitune-preparing-datasetsengine.train(max_epochs=1)engine.train(max_epochs=50)work_direngine.test()work_dircreate_engine(..., checkpoint="/path/to/weights.pt")# from library/
# 1. Simplest: data only — getitune picks a default model for the task
getitune train --data_root /path/to/dataset
# 2. Choose a model or recipe
getitune train --data_root /path/to/dataset --model yolox_s
# 3. Override hyperparameters
getitune train --data_root /path/to/dataset --model yolox_s \
--max_epochs 200 --checkpoint /path/to/weights.pt
# 4. Run a full, resolved config file
getitune train --data_root /path/to/dataset --config src/getitune/recipe/detection/yolox_s.yamlgetitune testgetitune predict--model--data_rootgetitune <cmd> --help -v-vvdevice="auto""cpu""gpu""xpu""cuda""0"--extra xpu--extra cudatask=getitune-preparing-datasets# from library/
just lint
just test-unit -- -k engine # when you changed engine/training codecreate_engine(...)engine.train(max_epochs=1)getitune-discovering-modelsgetitune-preparing-datasetsdata=getitune-exporting-a-modelgetitune-running-inferencegeti-library-dev