Fix: pass explicit prompts to SegConfig in UAV_VisLoc script

SegConfig(prompts=None) crashes on len(None) when gin config is not
loaded. Pass the 11-class prompt list directly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
pikaliov
2026-04-17 17:21:01 +03:00
parent 6f04856b6b
commit 3d5e9c880f

View File

@@ -73,7 +73,11 @@ def main() -> None:
)
input_conf = InputConfig(image_size=256)
seg_conf = SegConfig()
seg_conf = SegConfig(prompts=[
"background", "building", "road", "vegetation", "water",
"sand and gravel ground", "rocky terrain", "farmland",
"railway", "parking lot", "sidewalk",
])
models_conf = ModelsConfig()
setup_logging(