geoprior.cli.stage2#

CLI wrapper for Stage-2 training.

This module makes Stage-2 safe to dispatch from geoprior.cli. The original training script body lives in stage2_legacy.py and is executed only when run_stage2() is called.

Supported flows#

  • Use the existing nat.com/config.py as-is.

  • Install a user-supplied config file before running.

  • Apply one-off JSON-friendly overrides via --set KEY=VALUE.

  • Point Stage-2 at a specific Stage-1 manifest via --stage1-manifest.

Functions

main([argv])

run_stage2([overrides, config_root, ...])

Execute Stage-2 training pipeline.

stage2_main([argv])

geoprior.cli.stage2.run_stage2(overrides=None, *, config_root='nat.com', config_path=None, stage1_manifest=None)[source]#

Execute Stage-2 training pipeline.

Parameters:
  • overrides (dict[str, object] | None)

  • config_root (str)

  • config_path (str | None)

  • stage1_manifest (str | None)

Return type:

None

geoprior.cli.stage2.stage2_main(argv=None)[source]#
Parameters:

argv (list[str] | None)

Return type:

None

geoprior.cli.stage2.main(argv=None)[source]#
Parameters:

argv (list[str] | None)

Return type:

None