Skip to content

Commit fe1d5ec

Browse files
committed
fix
1 parent f78b5ca commit fe1d5ec

File tree

451 files changed

+89829
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

451 files changed

+89829
-0
lines changed

.dockerignore

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
# Copyright 2024 The HuggingFace Inc. team. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# Misc
16+
.git
17+
tmp
18+
wandb
19+
data
20+
outputs
21+
.vscode
22+
rl
23+
media
24+
25+
26+
# Logging
27+
logs
28+
29+
# HPC
30+
nautilus/*.yaml
31+
*.key
32+
33+
# Slurm
34+
sbatch*.sh
35+
36+
# Byte-compiled / optimized / DLL files
37+
__pycache__/
38+
*.py[cod]
39+
*$py.class
40+
41+
# C extensions
42+
*.so
43+
44+
# Distribution / packaging
45+
.Python
46+
build/
47+
develop-eggs/
48+
dist/
49+
downloads/
50+
eggs/
51+
.eggs/
52+
lib/
53+
lib64/
54+
parts/
55+
sdist/
56+
var/
57+
wheels/
58+
pip-wheel-metadata/
59+
share/python-wheels/
60+
*.egg-info/
61+
.installed.cfg
62+
*.egg
63+
MANIFEST
64+
65+
# PyInstaller
66+
# Usually these files are written by a python script from a template
67+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
68+
*.manifest
69+
*.spec
70+
71+
# Installer logs
72+
pip-log.txt
73+
pip-delete-this-directory.txt
74+
75+
# Unit test / coverage reports
76+
!tests/artifacts
77+
htmlcov/
78+
.tox/
79+
.nox/
80+
.coverage
81+
.coverage.*
82+
nosetests.xml
83+
coverage.xml
84+
*.cover
85+
*.py,cover
86+
.hypothesis/
87+
.pytest_cache/
88+
89+
# Ignore .cache except calibration
90+
.cache/*
91+
!.cache/calibration/
92+
!.cache/calibration/**
93+
94+
# Translations
95+
*.mo
96+
*.pot
97+
98+
# Django stuff:
99+
*.log
100+
local_settings.py
101+
db.sqlite3
102+
db.sqlite3-journal
103+
104+
# Flask stuff:
105+
instance/
106+
.webassets-cache
107+
108+
# Scrapy stuff:
109+
.scrapy
110+
111+
# Sphinx documentation
112+
docs/_build/
113+
114+
# PyBuilder
115+
target/
116+
117+
# Jupyter Notebook
118+
.ipynb_checkpoints
119+
120+
# IPython
121+
profile_default/
122+
ipython_config.py
123+
124+
# pyenv
125+
.python-version
126+
127+
# pipenv
128+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
129+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
130+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
131+
# install all needed dependencies.
132+
#Pipfile.lock
133+
134+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
135+
__pypackages__/
136+
137+
# Celery stuff
138+
celerybeat-schedule
139+
celerybeat.pid
140+
141+
# SageMath parsed files
142+
*.sage.py
143+
144+
# Spyder project settings
145+
.spyderproject
146+
.spyproject
147+
148+
# Rope project settings
149+
.ropeproject
150+
151+
# mkdocs documentation
152+
/site
153+
154+
# mypy
155+
.mypy_cache/
156+
.dmypy.json
157+
dmypy.json
158+
159+
# Pyre type checker
160+
.pyre/

.gitattributes

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright 2024 The HuggingFace Inc. team. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
*.memmap filter=lfs diff=lfs merge=lfs -text
15+
*.stl filter=lfs diff=lfs merge=lfs -text
16+
*.safetensors filter=lfs diff=lfs merge=lfs -text
17+
*.mp4 filter=lfs diff=lfs merge=lfs -text
18+
*.arrow filter=lfs diff=lfs merge=lfs -text
19+
*.json !text !filter !merge !diff
20+
tests/artifacts/cameras/*.png filter=lfs diff=lfs merge=lfs -text
21+
*.bag filter=lfs diff=lfs merge=lfs -text
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Copyright 2024 The HuggingFace Inc. team. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: "\U0001F41B Bug Report"
16+
description: Submit a bug report to help us improve LeRobot
17+
body:
18+
- type: markdown
19+
attributes:
20+
value: |
21+
Thanks for taking the time to submit a bug report! 🐛
22+
If this is not a bug related to the LeRobot library directly, but instead a general question about your code or the library specifically please use our [discord](https://discord.gg/s3KuuzsPFb).
23+
24+
- type: textarea
25+
id: system-info
26+
attributes:
27+
label: System Info
28+
description: If needed, you can share your lerobot configuration with us by running `python -m lerobot.scripts.display_sys_info` and copy-pasting its outputs below
29+
render: Shell
30+
placeholder: lerobot version, OS, python version, numpy version, torch version, and lerobot's configuration
31+
validations:
32+
required: true
33+
34+
- type: checkboxes
35+
id: information-scripts-examples
36+
attributes:
37+
label: Information
38+
description: 'The problem arises when using:'
39+
options:
40+
- label: "One of the scripts in the examples/ folder of LeRobot"
41+
- label: "My own task or dataset (give details below)"
42+
43+
- type: textarea
44+
id: reproduction
45+
validations:
46+
required: true
47+
attributes:
48+
label: Reproduction
49+
description: |
50+
If needed, provide a simple code sample that reproduces the problem you ran into. It can be a Colab link or just a code snippet.
51+
Sharing error messages or stack traces could be useful as well!
52+
Important! Use code tags to correctly format your code. See https://help.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks#syntax-highlighting
53+
Try to avoid screenshots, as they are hard to read and don't allow copy-and-pasting.
54+
55+
placeholder: |
56+
Steps to reproduce the behavior:
57+
58+
1.
59+
2.
60+
3.
61+
62+
- type: textarea
63+
id: expected-behavior
64+
validations:
65+
required: true
66+
attributes:
67+
label: Expected behavior
68+
description: "A clear and concise description of what you would expect to happen."

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## What this does
2+
3+
Explain what this PR does. Feel free to tag your PR with the appropriate label(s).
4+
5+
Examples:
6+
| Title | Label |
7+
|----------------------|-----------------|
8+
| Fixes #[issue] | (🐛 Bug) |
9+
| Adds new dataset | (🗃️ Dataset) |
10+
| Optimizes something | (⚡️ Performance) |
11+
12+
## How it was tested
13+
14+
Explain/show how you tested your changes.
15+
16+
Examples:
17+
18+
- Added `test_something` in `tests/test_stuff.py`.
19+
- Added `new_feature` and checked that training converges with policy X on dataset/environment Y.
20+
- Optimized `some_function`, it now runs X times faster than previously.
21+
22+
## How to checkout & try? (for the reviewer)
23+
24+
Provide a simple way for the reviewer to try out your changes.
25+
26+
Examples:
27+
28+
```bash
29+
pytest -sx tests/test_stuff.py::test_something
30+
```
31+
32+
```bash
33+
lerobot-train --some.option=true
34+
```
35+
36+
## SECTION TO REMOVE BEFORE SUBMITTING YOUR PR
37+
38+
**Note**: Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
39+
members/contributors who may be interested in your PR. Try to avoid tagging more than 3 people.
40+
41+
**Note**: Before submitting this PR, please read the [contributor guideline](https://github.com/huggingface/lerobot/blob/main/CONTRIBUTING.md#submitting-a-pull-request-pr).
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Copyright 2025 The HuggingFace Inc. team. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# This workflow uploads the documentation preview built for a PR and comments the link on the PR.
16+
name: Documentation PR Upload
17+
permissions:
18+
contents: read
19+
pull-requests: write
20+
21+
on:
22+
# Triggered by the completion of the main 'Documentation' workflow.
23+
workflow_run: # zizmor: ignore[dangerous-triggers] We follow the same pattern as in Transformers
24+
workflows: ["Documentation"]
25+
types:
26+
- completed
27+
28+
jobs:
29+
# This job uploads a preview of the documentation for a pull request.
30+
upload_and_comment:
31+
name: Upload Preview and Comment
32+
if: >
33+
github.event.workflow_run.event == 'pull_request' &&
34+
github.event.workflow_run.conclusion == 'success'
35+
uses: huggingface/doc-builder/.github/workflows/upload_pr_documentation.yml@main
36+
with:
37+
package_name: lerobot
38+
secrets:
39+
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
40+
comment_bot_token: ${{ secrets.COMMENT_BOT_TOKEN }}

0 commit comments

Comments
 (0)