24 lines
610 B
PowerShell
24 lines
610 B
PowerShell
# 一键复现合成标定(Windows)
|
||||
|
|
# 用法:在仓库根目录执行
|
|||
|
|
# powershell -File tools\reproduce_synthetic.ps1
|
|||
|
|
# powershell -File tools\reproduce_synthetic.ps1 -SkipPytest
|
|||
|
|
# powershell -File tools\reproduce_synthetic.ps1 -Mode full_se3
|
|||
|
|
|
|||
|
|
param(
|
|||
|
|
[ValidateSet("rotation_only", "full_se3")]
|
|||
|
|
[string]$Mode = "rotation_only",
|
|||
|
|
[switch]$SkipPytest
|
|||
|
|
)
|
|||
|
|
|
|||
|
|
$ErrorActionPreference = "Stop"
|
|||
|
|
$Root = Split-Path -Parent $PSScriptRoot
|
|||
|
|
Set-Location $Root
|
|||
|
|
|
|||
|
|
$args = @("tools\reproduce_synthetic.py", "--mode", $Mode)
|
|||
|
|
if ($SkipPytest) {
|
|||
|
|
$args += "--skip-pytest"
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
python @args
|
|||
|
|
exit $LASTEXITCODE
|