fix: use instruction instead of target obj(expr2)
This commit is contained in:
parent
edc6d6f198
commit
d39bdb54e6
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user