jafermarq commited on
Commit
04d8443
·
verified ·
1 Parent(s): 1f85392

Show minimal how-to

Browse files
Files changed (1) hide show
  1. README.md +31 -1
README.md CHANGED
@@ -9,4 +9,34 @@ tags:
9
 
10
  This model has been pushed to the Hub using the [PytorchModelHubMixin](https://huggingface.co/docs/huggingface_hub/package_reference/mixins#huggingface_hub.PyTorchModelHubMixin) integration:
11
  - Library: https://github.com/huggingface/lerobot
12
- - Docs: [More Information Needed]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
 
10
  This model has been pushed to the Hub using the [PytorchModelHubMixin](https://huggingface.co/docs/huggingface_hub/package_reference/mixins#huggingface_hub.PyTorchModelHubMixin) integration:
11
  - Library: https://github.com/huggingface/lerobot
12
+ - Docs: [More Information Needed]
13
+
14
+
15
+ ## Quickstart
16
+
17
+ The checkpoint in this repository is obtained by running [the Flower x LeRobot quickstart-example](https://github.com/adap/flower/tree/main/examples/quickstart-lerobot). This is the global model at round 35 which seemed to give good results.
18
+
19
+ ### Install LeRobot
20
+
21
+ > [!NOTE]
22
+ > Install the version of LeRobot used by the example (the latest commit at the time the example was put together, mid Dec'24). You might want to try using a more recente version.
23
+
24
+ ```shell
25
+ pip install "lerobot[pusht] @ git+https://github.com/huggingface/lerobot.git@96c7052777aca85d4e55dfba8f81586103ba8f61"
26
+ ```
27
+
28
+ ### Load checkpoint
29
+
30
+ ```python
31
+ from lerobot.common.policies.diffusion.configuration_diffusion import DiffusionConfig
32
+ from lerobot.common.policies.diffusion.modeling_diffusion import DiffusionPolicy
33
+ from lerobot.common.datasets.lerobot_dataset import LeRobotDataset
34
+
35
+ dataset = LeRobotDataset("lerobot/pusht")
36
+
37
+ cfg = DiffusionConfig(down_dims=[256, 512, 1024])
38
+ policy = DiffusionPolicy(cfg, dataset_stats=dataset.stats)
39
+ policy.from_pretrained("jafermarq/lerobot123")
40
+
41
+ print(policy)
42
+ ```