Skip to content

Commit

Permalink
good to go!
Browse files Browse the repository at this point in the history
  • Loading branch information
NishanthJKumar committed Nov 29, 2024
1 parent 88c2d21 commit 42c2bad
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,7 @@ def _rename_predicates_to_remove_incompatible_chars(
return renamed_predicates

def learn_from_offline_dataset(self, dataset: Dataset) -> None:
import ipdb; ipdb.set_trace()
if CFG.offline_data_method in [
"geo_and_demo_with_vlm_imgs", "geo_and_demo+labelled_atoms",
"geo_and_saved_vlm_img_demos_folder"
Expand Down
79 changes: 40 additions & 39 deletions scripts/configs/pred_invention_vlm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,49 +2,50 @@
---
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
grammar_search_invent_geo_predicates_only: False
ours-vlm-subselection:
NAME: "grammar_search_invention"
FLAGS:
grammar_search_vlm_atom_proposal_prompt_type: options_labels_whole_traj_specific
offline_data_method: geo_and_demo_with_vlm_imgs
grammar_search_invent_geo_predicates_only: True
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
grammar_search_invent_geo_predicates_only: False
ours-no-invent:
NAME: "nsrt_learning"
FLAGS: {}
ours-no-visual:
NAME: "grammar_search_invention"
FLAGS:
offline_data_method: demo
# 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_invent_geo_predicates_only: False
# ours-vlm-subselection:
# NAME: "grammar_search_invention"
# FLAGS:
# grammar_search_vlm_atom_proposal_prompt_type: options_labels_whole_traj_specific
# offline_data_method: geo_and_demo_with_vlm_imgs
# grammar_search_invent_geo_predicates_only: True
# 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
# grammar_search_invent_geo_predicates_only: 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
grammar_search_invent_geo_predicates_only: False
interpret:
NAME: "grammar_search_invention"
FLAGS:
grammar_search_vlm_atom_proposal_prompt_type: options_labels_whole_traj_diverse
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
grammar_search_invent_geo_predicates_only: False
# 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

0 comments on commit 42c2bad

Please sign in to comment.