Skip to content

Conversation

@kozlov721
Copy link
Collaborator

@kozlov721 kozlov721 commented Nov 13, 2025

Purpose

Makes it easier to upgrade from an older version of luxonis-train to the latest one.

Specification

  • Added new sub-command group upgrade that can be used to upgrade the installation and user files
    • Uses luxonis_train.upgrade module
    • luxonis_train upgrade config - Upgrades a config file in either YAML or JSON to the latest version
    • luxonis_train upgrade checkpoint - Upgrades a checkpoint file to the latest version
    • luxonis_train upgrade - Upgrades the installed luxonis-train and luxonis-ml packages
  • Automatic migration attempt when loading config from a checkpoint
  • Moved from_checkpoint from LuxonisModel to __main__
  • Added luxonis_train.upgrade module

Dependencies & Potential Impact

None / not applicable

Deployment Plan

None / not applicable

Testing & Validation

None / not applicable

@kozlov721 kozlov721 requested a review from a team as a code owner November 13, 2025 09:04
@kozlov721 kozlov721 requested review from conorsim, klemen1999 and tersekmatija and removed request for a team November 13, 2025 09:04
@github-actions github-actions bot added enhancement New feature or request CLI Changes affecting the CLI labels Nov 13, 2025
@kozlov721 kozlov721 changed the title Config migration CLI: upgrade support Nov 14, 2025
@kozlov721 kozlov721 force-pushed the feat/migration-script branch from 36dece0 to a0bdeb6 Compare November 14, 2025 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLI Changes affecting the CLI enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants