Update readme & remove example 1 (#108)
Co-authored-by: Remi <re.cadene@gmail.com> - Update instructions for installing the library - Remove deprecated example 1 (as we are now only using `LeRobotDataset` since #91)
This commit is contained in:
@@ -16,24 +16,18 @@ def _run_script(path):
|
||||
|
||||
|
||||
def test_example_1():
|
||||
path = "examples/1_load_hugging_face_dataset.py"
|
||||
path = "examples/1_load_lerobot_dataset.py"
|
||||
_run_script(path)
|
||||
assert Path("outputs/examples/1_load_hugging_face_dataset/episode_5.mp4").exists()
|
||||
assert Path("outputs/examples/1_load_lerobot_dataset/episode_5.mp4").exists()
|
||||
|
||||
|
||||
def test_example_2():
|
||||
path = "examples/2_load_lerobot_dataset.py"
|
||||
_run_script(path)
|
||||
assert Path("outputs/examples/2_load_lerobot_dataset/episode_5.mp4").exists()
|
||||
|
||||
|
||||
def test_examples_4_and_3():
|
||||
def test_examples_3_and_2():
|
||||
"""
|
||||
Train a model with example 3, check the outputs.
|
||||
Evaluate the trained model with example 2, check the outputs.
|
||||
"""
|
||||
|
||||
path = "examples/4_train_policy.py"
|
||||
path = "examples/3_train_policy.py"
|
||||
|
||||
with open(path) as file:
|
||||
file_contents = file.read()
|
||||
@@ -55,7 +49,7 @@ def test_examples_4_and_3():
|
||||
for file_name in ["model.pt", "config.yaml"]:
|
||||
assert Path(f"outputs/train/example_pusht_diffusion/{file_name}").exists()
|
||||
|
||||
path = "examples/3_evaluate_pretrained_policy.py"
|
||||
path = "examples/2_evaluate_pretrained_policy.py"
|
||||
|
||||
with open(path) as file:
|
||||
file_contents = file.read()
|
||||
|
||||
Reference in New Issue
Block a user