fix: use instruction instead of target obj(expr2)

This commit is contained in:
Ting-Jun Wang 2025-01-12 16:56:15 +08:00
parent edc6d6f198
commit d39bdb54e6
Signed by: snsd0805
GPG Key ID: 48D331A3D6160354

View File

@ -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: