mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-31 21:49:45 +00:00
docs: fix broken and placeholder links (#4097)
* docs: fix broken and placeholder links Fix the two links called out in #4094 plus one more found while scanning all docs: the NOTE:addlinktoLOC placeholder in async.mdx now points at _aggregate_action_queues in robot_client.py; the dead #mapping-videoencoderconfig--ffmpeg-options anchor in video_encoding_parameters.mdx now points at get_codec_options in video.py; and the stale ./cameras#setup-cameras fragment in il_robots.mdx is dropped to link the cameras guide page. Closes #4094. * docs: apply prettier formatting to the video-encoding parameter table Re-align the Markdown table columns with prettier (v3.6.2, --prose-wrap=preserve) so the pre-commit 'Format Markdown with Prettier' hook passes. Whitespace only.
This commit is contained in:
@@ -65,7 +65,7 @@ In summary, you need to specify instructions for:
|
|||||||
Importantly,
|
Importantly,
|
||||||
|
|
||||||
- `actions_per_chunk` and `chunk_size_threshold` are key parameters to tune for your setup.
|
- `actions_per_chunk` and `chunk_size_threshold` are key parameters to tune for your setup.
|
||||||
- `aggregate_fn_name` is the function to aggregate actions on overlapping portions. You can either add a new one to a registry of functions, or add your own in `robot_client.py` (see [here](NOTE:addlinktoLOC))
|
- `aggregate_fn_name` is the function to aggregate actions on overlapping portions. You can either add a new one to a registry of functions, or add your own in `robot_client.py` (see [here](https://github.com/huggingface/lerobot/blob/main/src/lerobot/async_inference/robot_client.py#L224))
|
||||||
- `debug_visualize_queue_size` is a useful tool to tune the `CLIENT` parameters.
|
- `debug_visualize_queue_size` is a useful tool to tune the `CLIENT` parameters.
|
||||||
|
|
||||||
## Done! You should see your robot moving around by now 😉
|
## Done! You should see your robot moving around by now 😉
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ The teleoperate command will automatically:
|
|||||||
|
|
||||||
## Cameras
|
## Cameras
|
||||||
|
|
||||||
To add cameras to your setup, follow this [Guide](./cameras#setup-cameras).
|
To add cameras to your setup, follow this [Guide](./cameras).
|
||||||
|
|
||||||
## Teleoperate with cameras
|
## Teleoperate with cameras
|
||||||
|
|
||||||
|
|||||||
@@ -50,11 +50,11 @@ lerobot-record \
|
|||||||
All flags below are prefixed with `--dataset.rgb_encoder.` on the CLI.
|
All flags below are prefixed with `--dataset.rgb_encoder.` on the CLI.
|
||||||
|
|
||||||
| Parameter | Type | Default | Description |
|
| Parameter | Type | Default | Description |
|
||||||
| --------------- | ---------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| --------------- | ---------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `vcodec` | `str` | `"libsvtav1"` | Video codec name. `"auto"` picks the first available hardware encoder from a fixed preference list, falling back to `libsvtav1`. |
|
| `vcodec` | `str` | `"libsvtav1"` | Video codec name. `"auto"` picks the first available hardware encoder from a fixed preference list, falling back to `libsvtav1`. |
|
||||||
| `pix_fmt` | `str` | `"yuv420p"` | Output pixel format. Must be supported by the chosen codec in your FFmpeg build. |
|
| `pix_fmt` | `str` | `"yuv420p"` | Output pixel format. Must be supported by the chosen codec in your FFmpeg build. |
|
||||||
| `g` | `int` | `2` | GOP size — a keyframe every `g` frames. Emitted as FFmpeg option `g`. |
|
| `g` | `int` | `2` | GOP size — a keyframe every `g` frames. Emitted as FFmpeg option `g`. |
|
||||||
| `crf` | `int` or `float` | `30` | Abstract quality value, mapped per codec (see the [mapping](#mapping-videoencoderconfig--ffmpeg-options) below). Lower → higher quality / larger output where the mapping is monotone. |
|
| `crf` | `int` or `float` | `30` | Abstract quality value, mapped per codec (see the [mapping](https://github.com/huggingface/lerobot/blob/main/src/lerobot/configs/video.py#L197)). Lower → higher quality / larger output where the mapping is monotone. |
|
||||||
| `preset` | `int` or `str` | `12` \* | Encoder speed preset; meaning depends on the codec. <br/>\* When unset and `vcodec=libsvtav1`, LeRobot defaults to `12`. |
|
| `preset` | `int` or `str` | `12` \* | Encoder speed preset; meaning depends on the codec. <br/>\* When unset and `vcodec=libsvtav1`, LeRobot defaults to `12`. |
|
||||||
| `fast_decode` | `int` | `0` | `libsvtav1`: `0–2`, passed via `svtav1-params`. <br/>`h264` / `hevc` (software): if `>0`, sets `tune=fastdecode`. <br/>Other codecs: usually unused. |
|
| `fast_decode` | `int` | `0` | `libsvtav1`: `0–2`, passed via `svtav1-params`. <br/>`h264` / `hevc` (software): if `>0`, sets `tune=fastdecode`. <br/>Other codecs: usually unused. |
|
||||||
| `video_backend` | `str` | `"pyav"` | Only `"pyav"` is currently implemented for video encoding. |
|
| `video_backend` | `str` | `"pyav"` | Only `"pyav"` is currently implemented for video encoding. |
|
||||||
|
|||||||
Reference in New Issue
Block a user