From 68153d0704b00d1e9fcad3a9d15a1dd408c55f53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Orbik?= Date: Tue, 20 Aug 2024 14:12:12 +0200 Subject: [PATCH 1/3] Fix to accomodate for preprocess_libero.py path This changes the download path to the location where preprocess_libero.py expects it --- scripts/download_libero_datasets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/download_libero_datasets.py b/scripts/download_libero_datasets.py index 6f87488..22e1864 100644 --- a/scripts/download_libero_datasets.py +++ b/scripts/download_libero_datasets.py @@ -10,7 +10,7 @@ def parse_args(): parser.add_argument( "--download-dir", type=str, - default="./data/", + default="./data/libero/", ) parser.add_argument( "--datasets", From d2167fee680c5546e0f0961a6552b8b4b051eb3e Mon Sep 17 00:00:00 2001 From: Jedrzej Orbik Date: Thu, 29 Aug 2024 17:51:26 +0200 Subject: [PATCH 2/3] Fix issue with DF_Store file --- scripts/preprocess_libero.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/preprocess_libero.py b/scripts/preprocess_libero.py index e817a74..7e7cfe3 100644 --- a/scripts/preprocess_libero.py +++ b/scripts/preprocess_libero.py @@ -271,8 +271,8 @@ def main(root, save, suite, skip_exist): # load task name embeddings task_bert_embs_dict = get_task_bert_embs(root) - for source_h5 in os.listdir(suite_dir): - source_h5_path = os.path.join(suite_dir, source_h5) + for source_h5_path in glob(os.path.join(suite_dir, "*.hdf5")): + source_h5 = os.path.basename(source_h5_path) file_name = source_h5.split('.')[0] task_name = get_task_name_from_file_name(file_name) From 095099e1398548e62f399072b37c6a6e5ecfeb22 Mon Sep 17 00:00:00 2001 From: Jedrzej Orbik Date: Thu, 29 Aug 2024 17:51:44 +0200 Subject: [PATCH 3/3] gym==0.21.0 is not installable --- environment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment.yml b/environment.yml index ddfa06e..acd3c9b 100644 --- a/environment.yml +++ b/environment.yml @@ -21,7 +21,7 @@ dependencies: - future==0.18.2 - gdown==4.7.1 - glfw==2.6.2 - - gym==0.21.0 + - gym - gymnasium==0.29.1 - h5py==3.9.0 - huggingface-hub==0.16.4