From be5d55a3f8144a0e7eb224cefdf30157708852b7 Mon Sep 17 00:00:00 2001 From: David Chang Date: Thu, 1 Feb 2024 14:22:34 +0800 Subject: [PATCH] ver Feb1stv2 failed to start up experiments of multi_apps --- branch_flag | 2 +- experiment_screenshot_som.py | 27 ++++++++++++++++++++++++--- mm_agents/gpt_4v_agent.py | 3 ++- 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/branch_flag b/branch_flag index 9daeafb..760637d 100644 --- a/branch_flag +++ b/branch_flag @@ -1 +1 @@ -test +exp_som diff --git a/experiment_screenshot_som.py b/experiment_screenshot_som.py index 5cddff7..0fbe534 100644 --- a/experiment_screenshot_som.py +++ b/experiment_screenshot_som.py @@ -133,7 +133,7 @@ def main(example_class, example_id): example = json.load(f) #example["snapshot"] = "exp_v1" # example["snapshot"] = "exp_setup4" - example["snapshot"] = "Snapshot 30" + example["snapshot"] = "Snapshot 34" logger.info("TASK: %s/%s", example_class, example_id) @@ -214,6 +214,27 @@ if __name__ == '__main__': , "94760984-3ff5-41ee-8347-cf1af709fea0" , "99146c54-4f37-4ab8-9327-5f3291665e1e" , "c9e7eaf2-b1a1-4efc-a982-721972fa9f02" + # 57, ^ thunderbird, v multi_apps + , "f8cfa149-d1c1-4215-8dac-4a0932bad3c2" + , "897e3b53-5d4d-444b-85cb-2cdc8a97d903" + , "4e9f0faf-2ecc-4ae8-a804-28c9a75d1ddc" + , "b52b40a5-ad70-4c53-b5b0-5650a8387052" + , "46407397-a7d5-4c6b-92c6-dbe038b1457b" + , "2b9493d7-49b8-493a-a71b-56cd1f4d6908" + , "51f5801c-18b3-4f25-b0c3-02f85507a078" + , "2c9fc0de-3ee7-45e1-a5df-c86206ad78b5" + , "510f64c8-9bcc-4be1-8d30-638705850618" + , "937087b6-f668-4ba6-9110-60682ee33441" + , "ee9a3c83-f437-4879-8918-be5efbb9fac7" + , "3680a5ee-6870-426a-a997-eba929a0d25c" + , "d9b7c649-c975-4f53-88f5-940b29c47247" + , "f7dfbef3-7697-431c-883a-db8583a4e4f9" + , "a0b9dc9c-fc07-4a88-8c5d-5e3ecad91bcb" + , "78aed49a-a710-4321-a793-b611a7c5b56b" + , "c867c42d-a52d-4a24-8ae3-f75d256b5618" + , "e135df7c-7687-4ac0-a5f0-76b74438b53e" + , "58565672-7bfe-48ab-b828-db349231de6b" + , "2fe4b718-3bd7-46ec-bdce-b184f5653624" ] - for example_id in xx_list[42:]: - main("thunderbird", example_id) + for example_id in xx_list[57:]: + main("multi_apps", example_id) diff --git a/mm_agents/gpt_4v_agent.py b/mm_agents/gpt_4v_agent.py index 9810eff..7278c98 100644 --- a/mm_agents/gpt_4v_agent.py +++ b/mm_agents/gpt_4v_agent.py @@ -466,7 +466,8 @@ class GPT4v_Agent: "messages": messages, "max_tokens": self.max_tokens }) - except: + except Exception as e: + logger.warning("LLM INVOCATION ERROR: %s", str(e)) response = "" logger.debug("RESPONSE: %s", response)