Skip to content

Commit

Permalink
setup to get results we missed
Browse files Browse the repository at this point in the history
  • Loading branch information
NishanthJKumar committed Oct 9, 2024
1 parent 2f49d79 commit 38226e0
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 33 deletions.
3 changes: 2 additions & 1 deletion predicators/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2485,7 +2485,8 @@ def query_vlm_for_atom_vals(
all_vlm_responses = vlm_output_str.strip().split("\n")
# NOTE: this assumption is likely too brittle; if this is breaking, feel
# free to remove/adjust this and change the below parsing loop accordingly!
assert len(atom_queries_list) == len(all_vlm_responses)
if len(atom_queries_list) != len(all_vlm_responses):
return set()
for i, (atom_query, curr_vlm_output_line) in enumerate(
zip(atom_queries_list, all_vlm_responses)):
assert atom_query + ":" in curr_vlm_output_line
Expand Down
65 changes: 33 additions & 32 deletions scripts/configs/pred_invention_vlm.yaml
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
# Experiments to test predicate invention with VLMs
---
APPROACHES:
ours:
NAME: "grammar_search_invention"
FLAGS:
grammar_search_vlm_atom_proposal_prompt_type: options_labels_whole_traj_diverse
offline_data_method: geo_and_demo_with_vlm_imgs
# ours:
# NAME: "grammar_search_invention"
# FLAGS:
# grammar_search_vlm_atom_proposal_prompt_type: options_labels_whole_traj_diverse
# offline_data_method: geo_and_demo_with_vlm_imgs
ours-no-subselection:
NAME: "grammar_search_invention"
FLAGS:
grammar_search_vlm_atom_proposal_prompt_type: options_labels_whole_traj_diverse
offline_data_method: geo_and_demo_with_vlm_imgs
grammar_search_pred_selection_approach: no_select
ours-no-invent:
NAME: "nsrt_learning"
FLAGS: {}
ours-no-visual:
NAME: "grammar_search_invention"
FLAGS:
offline_data_method: demo
ours-no-geo:
NAME: "grammar_search_invention"
FLAGS:
grammar_search_vlm_atom_proposal_prompt_type: demo_with_vlm_imgs
interpret:
NAME: "grammar_search_invention"
FLAGS:
offline_data_method: demo_with_vlm_imgs
vlm_predicate_vision_api_generate_ground_atoms: True
vila-with-fewshot:
NAME: "vlm_open_loop"
FLAGS:
vlm_open_loop_use_training_demos: True
vila-pure:
NAME: "vlm_open_loop"
FLAGS:
vlm_open_loop_use_training_demos: False
# ours-no-invent:
# NAME: "nsrt_learning"
# FLAGS: {}
# ours-no-visual:
# NAME: "grammar_search_invention"
# FLAGS:
# offline_data_method: demo
# ours-no-geo:
# NAME: "grammar_search_invention"
# FLAGS:
# grammar_search_vlm_atom_proposal_prompt_type: demo_with_vlm_imgs
# interpret:
# NAME: "grammar_search_invention"
# FLAGS:
# offline_data_method: demo_with_vlm_imgs
# vlm_predicate_vision_api_generate_ground_atoms: True
# vila-with-fewshot:
# NAME: "vlm_open_loop"
# FLAGS:
# vlm_open_loop_use_training_demos: True
# vila-pure:
# NAME: "vlm_open_loop"
# FLAGS:
# vlm_open_loop_use_training_demos: False

ENVS:
burger_no_move_more_stacks:
Expand Down Expand Up @@ -67,11 +67,12 @@ ENVS:
cluster_and_intersect_prune_low_data_pnads: True
cluster_and_intersect_min_datastore_fraction: 0.2

ARGS: []
ARGS:
- "load_data"
FLAGS:
vlm_model_name: gpt-4o
num_train_tasks: 8
num_test_tasks: 10
START_SEED: 0
NUM_SEEDS: 5
START_SEED: 3
NUM_SEEDS: 2
...

0 comments on commit 38226e0

Please sign in to comment.