|
25 | 25 | from PIL import Image |
26 | 26 | from tqdm import tqdm |
27 | 27 |
|
28 | | -from agentlab.agents.tapeagent import TapeAgent, save_tape |
| 28 | +# from agentlab.agents.tapeagent import TapeAgent, save_tape |
29 | 29 |
|
30 | 30 | logger = logging.getLogger(__name__) |
31 | 31 |
|
@@ -475,9 +475,9 @@ def run(self): |
475 | 475 | err_msg = f"Exception uncaught by agent or environment in task {self.env_args.task_name}.\n{type(e).__name__}:\n{e}" |
476 | 476 | logger.info("Saving experiment info.") |
477 | 477 | self.save_summary_info(episode_info, Path(self.exp_dir), err_msg, stack_trace) |
478 | | - if isinstance(agent, TapeAgent): |
479 | | - task = getattr(env, "task", {}) |
480 | | - save_tape(self.exp_dir, episode_info, task, agent.final_tape) |
| 478 | + # if isinstance(agent, TapeAgent): |
| 479 | + # task = getattr(env, "task", {}) |
| 480 | + # save_tape(self.exp_dir, episode_info, task, agent.final_tape) |
481 | 481 | except Exception as e: |
482 | 482 | logger.exception(f"Error while saving experiment info: {e}") |
483 | 483 | try: |
@@ -880,7 +880,7 @@ def _move_old_exp(exp_dir): |
880 | 880 | def _get_env_name(task_name: str): |
881 | 881 | """Register tasks if needed (lazy import) and return environment name.""" |
882 | 882 |
|
883 | | - # lazy benchmark import |
| 883 | + # lazy import |
884 | 884 | if task_name.startswith("miniwob"): |
885 | 885 | import browsergym.miniwob |
886 | 886 | elif task_name.startswith("workarena"): |
|
0 commit comments