From d39bdb54e653f629ad05e8a97eca850093136c77 Mon Sep 17 00:00:00 2001 From: Ting-Jun Wang Date: Sun, 12 Jan 2025 16:56:15 +0800 Subject: [PATCH] fix: use instruction instead of target obj(expr2) --- nav_src/agent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nav_src/agent.py b/nav_src/agent.py index d2e2e79..3eac2b0 100644 --- a/nav_src/agent.py +++ b/nav_src/agent.py @@ -874,7 +874,7 @@ class NavGPTAgent(BaseAgent): self.init_trajecotry(obs) # Load the instruction - # instructions = [ob['instruction'] for ob in obs] + instructions = [ob['instruction'] for ob in obs] targets = [ob['target'] for ob in obs] @@ -882,8 +882,8 @@ class NavGPTAgent(BaseAgent): print(self.config.load_action_plan) if self.config.load_instruction: - # action_plans = instructions - action_plans = targets + action_plans = instructions + # action_plans = targets elif self.config.load_action_plan: action_plans = [ob['action_plan'] for ob in obs] else: