From 3d5e9c880f5ea518d82138c771468c46e7a0faa9 Mon Sep 17 00:00:00 2001 From: pikaliov Date: Fri, 17 Apr 2026 17:21:01 +0300 Subject: [PATCH] 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) --- scripts/run_uav_visloc.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/run_uav_visloc.py b/scripts/run_uav_visloc.py index e7329ca..ebccaa8 100644 --- a/scripts/run_uav_visloc.py +++ b/scripts/run_uav_visloc.py @@ -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(