import{s as Dt,n as Ft,o as Pt}from"../chunks/scheduler.eb244325.js";import{S as qt,i as Ot,e as i,s,c as d,h as Kt,a as n,d as l,b as o,f as Et,g as p,j as M,k as Nt,l as el,m as a,n as r,t as m,o as J,p as y}from"../chunks/index.3fe63ad3.js";import{C as tl}from"../chunks/CopyLLMTxtMenu.88bde5f2.js";import{C as w}from"../chunks/CodeBlock.934d290d.js";import{H as T,E as ll}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.341974a5.js";function al(ft){let u,ce,we,fe,c,be,f,Ue,b,bt="This guide covers the dataset tools utilities available in LeRobot for modifying and editing existing datasets.",ve,U,he,v,Ut="LeRobot provides several utilities for manipulating datasets:",Ie,h,vt="<li><strong>Delete Episodes</strong> - Remove specific episodes from a dataset</li> <li><strong>Split Dataset</strong> - Divide a dataset into multiple smaller datasets</li> <li><strong>Merge Datasets</strong> - Combine multiple datasets into one. The datasets must have identical features, and episodes are concatenated in the order specified in <code>repo_ids</code></li> <li><strong>Add Features</strong> - Add new features to a dataset</li> <li><strong>Remove Features</strong> - Remove features from a dataset</li> <li><strong>Convert to Video</strong> - Convert image-based datasets to video format for efficient storage</li> <li><strong>Show the Info of Datasets</strong> - Show the summary of datasets information such as number of episode etc.</li>",Ce,I,ht=`The core implementation is in <code>lerobot.datasets.dataset_tools</code>.
An example script detailing how to use the tools API is available in <code>examples/dataset/use_dataset_tools.py</code>.`,je,C,$e,j,It="<code>lerobot-edit-dataset</code> is a command-line script for editing datasets. It can be used to delete episodes, split datasets, merge datasets, add features, remove features, and convert image datasets to video format.",Ze,$,Ct="Run <code>lerobot-edit-dataset --help</code> for more information on the configuration of each operation.",ge,Z,Xe,g,Ge,X,jt="Remove specific episodes from a dataset. This is useful for filtering out undesired data.",Be,G,Ve,B,_e,V,$t="Divide a dataset into multiple subsets.",Ae,_,Re,A,Zt="There are no constraints on the split names, they can be determined by the user. Resulting datasets are saved under the repo id with the split name appended, e.g. <code>lerobot/pusht_train</code>, <code>lerobot/pusht_task1</code>, <code>lerobot/pusht_task2</code>.",We,R,Le,W,gt="Combine multiple datasets into a single dataset.",xe,L,Qe,x,He,Q,Xt="Remove features from a dataset.",Se,H,ke,S,ze,k,Gt="Convert an image-based dataset to video format, creating a new LeRobotDataset where images are stored as videos. This is useful for reducing storage requirements and improving data loading performance. The new dataset will have the exact same structure as the original, but with images encoded as MP4 videos in the proper LeRobot format.",Ye,z,Ee,Y,Bt="<strong>Parameters:</strong>",Ne,E,Vt="<li><code>output_dir</code>: Custom output directory (optional - by default uses <code>new_repo_id</code> or <code>{repo_id}_video</code>)</li> <li><code>vcodec</code>: Video codec to use - options: <code>h264</code>, <code>hevc</code>, <code>libsvtav1</code> (default: <code>libsvtav1</code>)</li> <li><code>pix_fmt</code>: Pixel format - options: <code>yuv420p</code>, <code>yuv444p</code> (default: <code>yuv420p</code>)</li> <li><code>g</code>: Group of pictures (GOP) size - lower values give better quality but larger files (default: 2)</li> <li><code>crf</code>: Constant rate factor - lower values give better quality but larger files, 0 is lossless (default: 30)</li> <li><code>fast_decode</code>: Fast decode tuning option (default: 0)</li> <li><code>episode_indices</code>: List of specific episodes to convert (default: all episodes)</li> <li><code>num_workers</code>: Number of parallel workers for processing (default: 4)</li>",De,N,_t="<strong>Note:</strong> The resulting dataset will be a proper LeRobotDataset with all cameras encoded as videos in the <code>videos/</code> directory, with parquet files containing only metadata (no raw image data). All episodes, stats, and tasks are preserved.",Fe,D,Pe,F,At=`Show the information of datasets such as number of episode, number of frame, File size and so on.
No change will be made to the dataset`,qe,P,Oe,q,Rt="<strong>Parameters:</strong>",Ke,O,Wt="<li><code>parameters</code>: The flag to control show or no show dataset information with feature details.(default=false)</li>",et,K,tt,ee,Lt="Add the <code>--push_to_hub true</code> flag to any command to automatically upload the resulting dataset to the Hugging Face Hub:",lt,te,at,le,xt="There is also a tool for adding features to a dataset that is not yet covered in <code>lerobot-edit-dataset</code>.",st,ae,ot,se,it,oe,Qt=`When you record a dataset using <code>lerobot</code>, it automatically uploads to the Hugging Face Hub unless you specify otherwise. To view the dataset online, use our <strong>LeRobot Dataset Visualizer</strong>, available at:
<a href="https://huggingface.co/spaces/lerobot/visualize_dataset" rel="nofollow">https://huggingface.co/spaces/lerobot/visualize_dataset</a>`,nt,ie,dt,ne,Ht="You can also visualize episodes from a dataset locally using our command-line tool.",pt,de,St="<strong>From the Hugging Face Hub:</strong>",Mt,pe,rt,Me,kt=`<strong>From a local folder:</strong>
Add the <code>--root</code> option and set <code>--mode local</code>. For example, to search in <code>./my_local_data_dir/lerobot/pusht</code>:`,mt,re,Jt,me,zt="Once executed, the tool opens <code>rerun.io</code> and displays the camera streams, robot states, and actions for the selected episode.",yt,Je,Yt="For advanced usage—including visualizing datasets stored on a remote server—run:",Tt,ye,wt,Te,ut,ue,ct;return c=new tl({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),f=new T({props:{title:"Using Dataset Tools",local:"using-dataset-tools",headingTag:"h1"}}),U=new T({props:{title:"Overview",local:"overview",headingTag:"h2"}}),C=new T({props:{title:"Command-Line Tool: lerobot-edit-dataset",local:"command-line-tool-lerobot-edit-dataset",headingTag:"h2"}}),Z=new T({props:{title:"Usage Examples",local:"usage-examples",headingTag:"h3"}}),g=new T({props:{title:"Delete Episodes",local:"delete-episodes",headingTag:"h4"}}),G=new w({props:{code:"JTIzJTIwRGVsZXRlJTIwZXBpc29kZXMlMjAwJTJDJTIwMiUyQyUyMGFuZCUyMDUlMjAobW9kaWZpZXMlMjBvcmlnaW5hbCUyMGRhdGFzZXQpJTBBbGVyb2JvdC1lZGl0LWRhdGFzZXQlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXJlcG9faWQlMjBsZXJvYm90JTJGcHVzaHQlMjAlNUMlMEElMjAlMjAlMjAlMjAtLW9wZXJhdGlvbi50eXBlJTIwZGVsZXRlX2VwaXNvZGVzJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1vcGVyYXRpb24uZXBpc29kZV9pbmRpY2VzJTIwJTIyJTVCMCUyQyUyMDIlMkMlMjA1JTVEJTIyJTBBJTBBJTIzJTIwRGVsZXRlJTIwZXBpc29kZXMlMjBhbmQlMjBzYXZlJTIwdG8lMjBhJTIwbmV3JTIwZGF0YXNldCUyMChwcmVzZXJ2ZXMlMjBvcmlnaW5hbCUyMGRhdGFzZXQpJTBBbGVyb2JvdC1lZGl0LWRhdGFzZXQlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXJlcG9faWQlMjBsZXJvYm90JTJGcHVzaHQlMjAlNUMlMEElMjAlMjAlMjAlMjAtLW5ld19yZXBvX2lkJTIwbGVyb2JvdCUyRnB1c2h0X2FmdGVyX2RlbGV0aW9uJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1vcGVyYXRpb24udHlwZSUyMGRlbGV0ZV9lcGlzb2RlcyUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tb3BlcmF0aW9uLmVwaXNvZGVfaW5kaWNlcyUyMCUyMiU1QjAlMkMlMjAyJTJDJTIwNSU1RCUyMg==",highlighted:`<span class="hljs-comment"># Delete episodes 0, 2, and 5 (modifies original dataset)</span>
lerobot-edit-dataset \\
    --repo_id lerobot/pusht \\
    --operation.type delete_episodes \\
    --operation.episode_indices <span class="hljs-string">&quot;[0, 2, 5]&quot;</span>

<span class="hljs-comment"># Delete episodes and save to a new dataset (preserves original dataset)</span>
lerobot-edit-dataset \\
    --repo_id lerobot/pusht \\
    --new_repo_id lerobot/pusht_after_deletion \\
    --operation.type delete_episodes \\
    --operation.episode_indices <span class="hljs-string">&quot;[0, 2, 5]&quot;</span>`,wrap:!1}}),B=new T({props:{title:"Split Dataset",local:"split-dataset",headingTag:"h4"}}),_=new w({props:{code:"JTIzJTIwU3BsaXQlMjBieSUyMGZyYWN0aW9ucyUyMChlLmcuJTIwODAlMjUlMjB0cmFpbiUyQyUyMDIwJTI1JTIwdGVzdCUyQyUyMDIwJTI1JTIwdmFsKSUwQWxlcm9ib3QtZWRpdC1kYXRhc2V0JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1yZXBvX2lkJTIwbGVyb2JvdCUyRnB1c2h0JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1vcGVyYXRpb24udHlwZSUyMHNwbGl0JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1vcGVyYXRpb24uc3BsaXRzJTIwJyU3QiUyMnRyYWluJTIyJTNBJTIwMC44JTJDJTIwJTIydGVzdCUyMiUzQSUyMDAuMiUyQyUyMCUyMnZhbCUyMiUzQSUyMDAuMiU3RCclMEElMEElMjMlMjBTcGxpdCUyMGJ5JTIwc3BlY2lmaWMlMjBlcGlzb2RlJTIwaW5kaWNlcyUwQWxlcm9ib3QtZWRpdC1kYXRhc2V0JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1yZXBvX2lkJTIwbGVyb2JvdCUyRnB1c2h0JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1vcGVyYXRpb24udHlwZSUyMHNwbGl0JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1vcGVyYXRpb24uc3BsaXRzJTIwJyU3QiUyMnRhc2sxJTIyJTNBJTIwJTVCMCUyQyUyMDElMkMlMjAyJTJDJTIwMyU1RCUyQyUyMCUyMnRhc2syJTIyJTNBJTIwJTVCNCUyQyUyMDUlNUQlN0Qn",highlighted:`<span class="hljs-comment"># Split by fractions (e.g. 80% train, 20% test, 20% val)</span>
lerobot-edit-dataset \\
    --repo_id lerobot/pusht \\
    --operation.type <span class="hljs-built_in">split</span> \\
    --operation.splits <span class="hljs-string">&#x27;{&quot;train&quot;: 0.8, &quot;test&quot;: 0.2, &quot;val&quot;: 0.2}&#x27;</span>

<span class="hljs-comment"># Split by specific episode indices</span>
lerobot-edit-dataset \\
    --repo_id lerobot/pusht \\
    --operation.type <span class="hljs-built_in">split</span> \\
    --operation.splits <span class="hljs-string">&#x27;{&quot;task1&quot;: [0, 1, 2, 3], &quot;task2&quot;: [4, 5]}&#x27;</span>`,wrap:!1}}),R=new T({props:{title:"Merge Datasets",local:"merge-datasets",headingTag:"h4"}}),L=new w({props:{code:"JTIzJTIwTWVyZ2UlMjB0cmFpbiUyMGFuZCUyMHZhbGlkYXRpb24lMjBzcGxpdHMlMjBiYWNrJTIwaW50byUyMG9uZSUyMGRhdGFzZXQlMEFsZXJvYm90LWVkaXQtZGF0YXNldCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcmVwb19pZCUyMGxlcm9ib3QlMkZwdXNodF9tZXJnZWQlMjAlNUMlMEElMjAlMjAlMjAlMjAtLW9wZXJhdGlvbi50eXBlJTIwbWVyZ2UlMjAlNUMlMEElMjAlMjAlMjAlMjAtLW9wZXJhdGlvbi5yZXBvX2lkcyUyMCUyMiU1QidsZXJvYm90JTJGcHVzaHRfdHJhaW4nJTJDJTIwJ2xlcm9ib3QlMkZwdXNodF92YWwnJTVEJTIy",highlighted:`<span class="hljs-comment"># Merge train and validation splits back into one dataset</span>
lerobot-edit-dataset \\
    --repo_id lerobot/pusht_merged \\
    --operation.type merge \\
    --operation.repo_ids <span class="hljs-string">&quot;[&#x27;lerobot/pusht_train&#x27;, &#x27;lerobot/pusht_val&#x27;]&quot;</span>`,wrap:!1}}),x=new T({props:{title:"Remove Features",local:"remove-features",headingTag:"h4"}}),H=new w({props:{code:"JTIzJTIwUmVtb3ZlJTIwYSUyMGNhbWVyYSUyMGZlYXR1cmUlMEFsZXJvYm90LWVkaXQtZGF0YXNldCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcmVwb19pZCUyMGxlcm9ib3QlMkZwdXNodCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tb3BlcmF0aW9uLnR5cGUlMjByZW1vdmVfZmVhdHVyZSUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tb3BlcmF0aW9uLmZlYXR1cmVfbmFtZXMlMjAlMjIlNUInb2JzZXJ2YXRpb24uaW1hZ2VzLnRvcCclNUQlMjI=",highlighted:`<span class="hljs-comment"># Remove a camera feature</span>
lerobot-edit-dataset \\
    --repo_id lerobot/pusht \\
    --operation.type remove_feature \\
    --operation.feature_names <span class="hljs-string">&quot;[&#x27;observation.images.top&#x27;]&quot;</span>`,wrap:!1}}),S=new T({props:{title:"Convert to Video",local:"convert-to-video",headingTag:"h4"}}),z=new w({props:{code:"JTIzJTIwTG9jYWwtb25seSUzQSUyMFNhdmUlMjB0byUyMGElMjBjdXN0b20lMjBvdXRwdXQlMjBkaXJlY3RvcnklMjAobm8lMjBodWIlMjBwdXNoKSUwQWxlcm9ib3QtZWRpdC1kYXRhc2V0JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1yZXBvX2lkJTIwbGVyb2JvdCUyRnB1c2h0X2ltYWdlJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1vcGVyYXRpb24udHlwZSUyMGNvbnZlcnRfaW1hZ2VfdG9fdmlkZW8lMjAlNUMlMEElMjAlMjAlMjAlMjAtLW9wZXJhdGlvbi5vdXRwdXRfZGlyJTIwJTJGcGF0aCUyRnRvJTJGb3V0cHV0JTJGcHVzaHRfdmlkZW8lMEElMEElMjMlMjBTYXZlJTIwd2l0aCUyMG5ldyUyMHJlcG9faWQlMjAobG9jYWwlMjBzdG9yYWdlKSUwQWxlcm9ib3QtZWRpdC1kYXRhc2V0JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1yZXBvX2lkJTIwbGVyb2JvdCUyRnB1c2h0X2ltYWdlJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1uZXdfcmVwb19pZCUyMGxlcm9ib3QlMkZwdXNodF92aWRlbyUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tb3BlcmF0aW9uLnR5cGUlMjBjb252ZXJ0X2ltYWdlX3RvX3ZpZGVvJTBBJTBBJTIzJTIwQ29udmVydCUyMGFuZCUyMHB1c2glMjB0byUyMEh1Z2dpbmclMjBGYWNlJTIwSHViJTBBbGVyb2JvdC1lZGl0LWRhdGFzZXQlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXJlcG9faWQlMjBsZXJvY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LW9wZXJhdGlvbi5tYXhfZXBpc29kZXNfcGVyX2JhdGNoJTIwNTAlMjAlNUMlMEElMjAlMjAlMjAlMjAtLW9wZXJhdGlvbi5tYXhfZnJhbWVzX3Blcl9iYXRjaCUyMDEwMDAw",highlighted:`<span class="hljs-comment"># Local-only: Save to a custom output directory (no hub push)</span>
lerobot-edit-dataset \\
    --repo_id lerobot/pusht_image \\
    --operation.type convert_image_to_video \\
    --operation.output_dir /path/to/output/pusht_video

<span class="hljs-comment"># Save with new repo_id (local storage)</span>
lerobot-edit-dataset \\
    --repo_id lerobot/pusht_image \\
    --new_repo_id lerobot/pusht_video \\
    --operation.type convert_image_to_video

<span class="hljs-comment"># Convert and push to Hugging Face Hub</span>
lerobot-edit-dataset \\
    --repo_id lerobot/pusht_image \\
    --new_repo_id lerobot/pusht_video \\
    --operation.type convert_image_to_video \\
    --push_to_hub <span class="hljs-literal">true</span>

<span class="hljs-comment"># Convert with custom video codec and quality settings</span>
lerobot-edit-dataset \\
    --repo_id lerobot/pusht_image \\
    --operation.type convert_image_to_video \\
    --operation.output_dir outputs/pusht_video \\
    --operation.vcodec libsvtav1 \\
    --operation.pix_fmt yuv420p \\
    --operation.g 2 \\
    --operation.crf 30

<span class="hljs-comment"># Convert only specific episodes</span>
lerobot-edit-dataset \\
    --repo_id lerobot/pusht_image \\
    --operation.type convert_image_to_video \\
    --operation.output_dir outputs/pusht_video \\
    --operation.episode_indices <span class="hljs-string">&quot;[0, 1, 2, 5, 10]&quot;</span>

<span class="hljs-comment"># Convert with multiple workers for parallel processing</span>
lerobot-edit-dataset \\
    --repo_id lerobot/pusht_image \\
    --operation.type convert_image_to_video \\
    --operation.output_dir outputs/pusht_video \\
    --operation.num_workers 8

<span class="hljs-comment"># For memory-constrained systems, users can now specify limits:</span>
lerobot-edit-dataset \\
    --repo_id lerobot/pusht_image \\
    --operation.type convert_to_video \\
    --operation.max_episodes_per_batch 50 \\
    --operation.max_frames_per_batch 10000`,wrap:!1}}),D=new T({props:{title:"Show the information of datasets",local:"show-the-information-of-datasets",headingTag:"h3"}}),P=new w({props:{code:"JTBBJTIzJTIwU2hvdyUyMGRhdGFzZXQlMjBpbmZvcm1hdGlvbiUyMHdpdGhvdXQlMjBmZWF0dXJlJTIwZGV0YWlscyUwQWxlcm9ib3QtZWRpdC1kYXRhc2V0JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1yZXBvX2lkJTIwbGVyb2JvdCUyRnB1c2h0X2ltYWdlJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1vcGVyYXRpb24udHlwZSUyMGluZm8lMjAlNUMlMEElMEElMjMlMjBTaG93JTIwZGF0YXNldCUyMGluZm9ybWF0aW9uJTIwd2l0aCUyMGZlYXR1cmUlMjBkZXRhaWxzJTBBbGVyb2JvdC1lZGl0LWRhdGFzZXQlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXJlcG9faWQlMjBsZXJvYm90JTJGcHVzaHRfaW1hZ2UlMjAlNUMlMEElMjAlMjAlMjAlMjAtLW9wZXJhdGlvbi50eXBlJTIwaW5mbyUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tb3BlcmF0aW9uLnNob3dfZmVhdHVyZXMlMjB0cnVlJTBB",highlighted:`
<span class="hljs-comment"># Show dataset information without feature details</span>
lerobot-edit-dataset \\
    --repo_id lerobot/pusht_image \\
    --operation.type info \\

<span class="hljs-comment"># Show dataset information with feature details</span>
lerobot-edit-dataset \\
    --repo_id lerobot/pusht_image \\
    --operation.type info \\
    --operation.show_features <span class="hljs-literal">true</span>
`,wrap:!1}}),K=new T({props:{title:"Push to Hub",local:"push-to-hub",headingTag:"h3"}}),te=new w({props:{code:"bGVyb2JvdC1lZGl0LWRhdGFzZXQlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXJlcG9faWQlMjBsZXJvYm90JTJGcHVzaHQlMjAlNUMlMEElMjAlMjAlMjAlMjAtLW5ld19yZXBvX2lkJTIwbGVyb2JvdCUyRnB1c2h0X2FmdGVyX2RlbGV0aW9uJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1vcGVyYXRpb24udHlwZSUyMGRlbGV0ZV9lcGlzb2RlcyUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tb3BlcmF0aW9uLmVwaXNvZGVfaW5kaWNlcyUyMCUyMiU1QjAlMkMlMjAyJTJDJTIwNSU1RCUyMiUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcHVzaF90b19odWIlMjB0cnVl",highlighted:`lerobot-edit-dataset \\
    --repo_id lerobot/pusht \\
    --new_repo_id lerobot/pusht_after_deletion \\
    --operation.type delete_episodes \\
    --operation.episode_indices <span class="hljs-string">&quot;[0, 2, 5]&quot;</span> \\
    --push_to_hub <span class="hljs-literal">true</span>`,wrap:!1}}),ae=new T({props:{title:"Dataset Visualization",local:"dataset-visualization",headingTag:"h1"}}),se=new T({props:{title:"Online Visualization",local:"online-visualization",headingTag:"h2"}}),ie=new T({props:{title:"Local Visualization",local:"local-visualization",headingTag:"h2"}}),pe=new w({props:{code:"bGVyb2JvdC1kYXRhc2V0LXZpeiUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcmVwby1pZCUyMGxlcm9ib3QlMkZwdXNodCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZXBpc29kZS1pbmRleCUyMDA=",highlighted:`lerobot-dataset-viz \\
    --repo-id lerobot/pusht \\
    --episode-index 0`,wrap:!1}}),re=new w({props:{code:"bGVyb2JvdC1kYXRhc2V0LXZpeiUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcmVwby1pZCUyMGxlcm9ib3QlMkZwdXNodCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcm9vdCUyMC4lMkZteV9sb2NhbF9kYXRhX2RpciUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tbW9kZSUyMGxvY2FsJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1lcGlzb2RlLWluZGV4JTIwMA==",highlighted:`lerobot-dataset-viz \\
    --repo-id lerobot/pusht \\
    --root ./my_local_data_dir \\
    --mode <span class="hljs-built_in">local</span> \\
    --episode-index 0`,wrap:!1}}),ye=new w({props:{code:"bGVyb2JvdC1kYXRhc2V0LXZpeiUyMC0taGVscA==",highlighted:'lerobot-dataset-viz --<span class="hljs-built_in">help</span>',wrap:!1}}),Te=new ll({props:{source:"https://github.com/huggingface/lerobot/blob/main/docs/source/using_dataset_tools.mdx"}}),{c(){u=i("meta"),ce=s(),we=i("p"),fe=s(),d(c.$$.fragment),be=s(),d(f.$$.fragment),Ue=s(),b=i("p"),b.textContent=bt,ve=s(),d(U.$$.fragment),he=s(),v=i("p"),v.textContent=Ut,Ie=s(),h=i("ol"),h.innerHTML=vt,Ce=s(),I=i("p"),I.innerHTML=ht,je=s(),d(C.$$.fragment),$e=s(),j=i("p"),j.innerHTML=It,Ze=s(),$=i("p"),$.innerHTML=Ct,ge=s(),d(Z.$$.fragment),Xe=s(),d(g.$$.fragment),Ge=s(),X=i("p"),X.textContent=jt,Be=s(),d(G.$$.fragment),Ve=s(),d(B.$$.fragment),_e=s(),V=i("p"),V.textContent=$t,Ae=s(),d(_.$$.fragment),Re=s(),A=i("p"),A.innerHTML=Zt,We=s(),d(R.$$.fragment),Le=s(),W=i("p"),W.textContent=gt,xe=s(),d(L.$$.fragment),Qe=s(),d(x.$$.fragment),He=s(),Q=i("p"),Q.textContent=Xt,Se=s(),d(H.$$.fragment),ke=s(),d(S.$$.fragment),ze=s(),k=i("p"),k.textContent=Gt,Ye=s(),d(z.$$.fragment),Ee=s(),Y=i("p"),Y.innerHTML=Bt,Ne=s(),E=i("ul"),E.innerHTML=Vt,De=s(),N=i("p"),N.innerHTML=_t,Fe=s(),d(D.$$.fragment),Pe=s(),F=i("p"),F.textContent=At,qe=s(),d(P.$$.fragment),Oe=s(),q=i("p"),q.innerHTML=Rt,Ke=s(),O=i("ul"),O.innerHTML=Wt,et=s(),d(K.$$.fragment),tt=s(),ee=i("p"),ee.innerHTML=Lt,lt=s(),d(te.$$.fragment),at=s(),le=i("p"),le.innerHTML=xt,st=s(),d(ae.$$.fragment),ot=s(),d(se.$$.fragment),it=s(),oe=i("p"),oe.innerHTML=Qt,nt=s(),d(ie.$$.fragment),dt=s(),ne=i("p"),ne.textContent=Ht,pt=s(),de=i("p"),de.innerHTML=St,Mt=s(),d(pe.$$.fragment),rt=s(),Me=i("p"),Me.innerHTML=kt,mt=s(),d(re.$$.fragment),Jt=s(),me=i("p"),me.innerHTML=zt,yt=s(),Je=i("p"),Je.textContent=Yt,Tt=s(),d(ye.$$.fragment),wt=s(),d(Te.$$.fragment),ut=s(),ue=i("p"),this.h()},l(e){const t=Kt("svelte-u9bgzb",document.head);u=n(t,"META",{name:!0,content:!0}),t.forEach(l),ce=o(e),we=n(e,"P",{}),Et(we).forEach(l),fe=o(e),p(c.$$.fragment,e),be=o(e),p(f.$$.fragment,e),Ue=o(e),b=n(e,"P",{"data-svelte-h":!0}),M(b)!=="svelte-5t28x9"&&(b.textContent=bt),ve=o(e),p(U.$$.fragment,e),he=o(e),v=n(e,"P",{"data-svelte-h":!0}),M(v)!=="svelte-hj7n0k"&&(v.textContent=Ut),Ie=o(e),h=n(e,"OL",{"data-svelte-h":!0}),M(h)!=="svelte-16n6p70"&&(h.innerHTML=vt),Ce=o(e),I=n(e,"P",{"data-svelte-h":!0}),M(I)!=="svelte-w34ggo"&&(I.innerHTML=ht),je=o(e),p(C.$$.fragment,e),$e=o(e),j=n(e,"P",{"data-svelte-h":!0}),M(j)!=="svelte-w4xn8v"&&(j.innerHTML=It),Ze=o(e),$=n(e,"P",{"data-svelte-h":!0}),M($)!=="svelte-1p3gisj"&&($.innerHTML=Ct),ge=o(e),p(Z.$$.fragment,e),Xe=o(e),p(g.$$.fragment,e),Ge=o(e),X=n(e,"P",{"data-svelte-h":!0}),M(X)!=="svelte-1cixye9"&&(X.textContent=jt),Be=o(e),p(G.$$.fragment,e),Ve=o(e),p(B.$$.fragment,e),_e=o(e),V=n(e,"P",{"data-svelte-h":!0}),M(V)!=="svelte-bhxspr"&&(V.textContent=$t),Ae=o(e),p(_.$$.fragment,e),Re=o(e),A=n(e,"P",{"data-svelte-h":!0}),M(A)!=="svelte-1dczp"&&(A.innerHTML=Zt),We=o(e),p(R.$$.fragment,e),Le=o(e),W=n(e,"P",{"data-svelte-h":!0}),M(W)!=="svelte-15p8tt9"&&(W.textContent=gt),xe=o(e),p(L.$$.fragment,e),Qe=o(e),p(x.$$.fragment,e),He=o(e),Q=n(e,"P",{"data-svelte-h":!0}),M(Q)!=="svelte-rft37k"&&(Q.textContent=Xt),Se=o(e),p(H.$$.fragment,e),ke=o(e),p(S.$$.fragment,e),ze=o(e),k=n(e,"P",{"data-svelte-h":!0}),M(k)!=="svelte-1l8af26"&&(k.textContent=Gt),Ye=o(e),p(z.$$.fragment,e),Ee=o(e),Y=n(e,"P",{"data-svelte-h":!0}),M(Y)!=="svelte-gyl88v"&&(Y.innerHTML=Bt),Ne=o(e),E=n(e,"UL",{"data-svelte-h":!0}),M(E)!=="svelte-wimvoh"&&(E.innerHTML=Vt),De=o(e),N=n(e,"P",{"data-svelte-h":!0}),M(N)!=="svelte-s79i4m"&&(N.innerHTML=_t),Fe=o(e),p(D.$$.fragment,e),Pe=o(e),F=n(e,"P",{"data-svelte-h":!0}),M(F)!=="svelte-5pgiyd"&&(F.textContent=At),qe=o(e),p(P.$$.fragment,e),Oe=o(e),q=n(e,"P",{"data-svelte-h":!0}),M(q)!=="svelte-gyl88v"&&(q.innerHTML=Rt),Ke=o(e),O=n(e,"UL",{"data-svelte-h":!0}),M(O)!=="svelte-1665ywp"&&(O.innerHTML=Wt),et=o(e),p(K.$$.fragment,e),tt=o(e),ee=n(e,"P",{"data-svelte-h":!0}),M(ee)!=="svelte-1vg0v5p"&&(ee.innerHTML=Lt),lt=o(e),p(te.$$.fragment,e),at=o(e),le=n(e,"P",{"data-svelte-h":!0}),M(le)!=="svelte-1ozpz6o"&&(le.innerHTML=xt),st=o(e),p(ae.$$.fragment,e),ot=o(e),p(se.$$.fragment,e),it=o(e),oe=n(e,"P",{"data-svelte-h":!0}),M(oe)!=="svelte-1dsef0a"&&(oe.innerHTML=Qt),nt=o(e),p(ie.$$.fragment,e),dt=o(e),ne=n(e,"P",{"data-svelte-h":!0}),M(ne)!=="svelte-1ootfzd"&&(ne.textContent=Ht),pt=o(e),de=n(e,"P",{"data-svelte-h":!0}),M(de)!=="svelte-1v764fx"&&(de.innerHTML=St),Mt=o(e),p(pe.$$.fragment,e),rt=o(e),Me=n(e,"P",{"data-svelte-h":!0}),M(Me)!=="svelte-1cf23ri"&&(Me.innerHTML=kt),mt=o(e),p(re.$$.fragment,e),Jt=o(e),me=n(e,"P",{"data-svelte-h":!0}),M(me)!=="svelte-395zwc"&&(me.innerHTML=zt),yt=o(e),Je=n(e,"P",{"data-svelte-h":!0}),M(Je)!=="svelte-k9m9kq"&&(Je.textContent=Yt),Tt=o(e),p(ye.$$.fragment,e),wt=o(e),p(Te.$$.fragment,e),ut=o(e),ue=n(e,"P",{}),Et(ue).forEach(l),this.h()},h(){Nt(u,"name","hf:doc:metadata"),Nt(u,"content",sl)},m(e,t){el(document.head,u),a(e,ce,t),a(e,we,t),a(e,fe,t),r(c,e,t),a(e,be,t),r(f,e,t),a(e,Ue,t),a(e,b,t),a(e,ve,t),r(U,e,t),a(e,he,t),a(e,v,t),a(e,Ie,t),a(e,h,t),a(e,Ce,t),a(e,I,t),a(e,je,t),r(C,e,t),a(e,$e,t),a(e,j,t),a(e,Ze,t),a(e,$,t),a(e,ge,t),r(Z,e,t),a(e,Xe,t),r(g,e,t),a(e,Ge,t),a(e,X,t),a(e,Be,t),r(G,e,t),a(e,Ve,t),r(B,e,t),a(e,_e,t),a(e,V,t),a(e,Ae,t),r(_,e,t),a(e,Re,t),a(e,A,t),a(e,We,t),r(R,e,t),a(e,Le,t),a(e,W,t),a(e,xe,t),r(L,e,t),a(e,Qe,t),r(x,e,t),a(e,He,t),a(e,Q,t),a(e,Se,t),r(H,e,t),a(e,ke,t),r(S,e,t),a(e,ze,t),a(e,k,t),a(e,Ye,t),r(z,e,t),a(e,Ee,t),a(e,Y,t),a(e,Ne,t),a(e,E,t),a(e,De,t),a(e,N,t),a(e,Fe,t),r(D,e,t),a(e,Pe,t),a(e,F,t),a(e,qe,t),r(P,e,t),a(e,Oe,t),a(e,q,t),a(e,Ke,t),a(e,O,t),a(e,et,t),r(K,e,t),a(e,tt,t),a(e,ee,t),a(e,lt,t),r(te,e,t),a(e,at,t),a(e,le,t),a(e,st,t),r(ae,e,t),a(e,ot,t),r(se,e,t),a(e,it,t),a(e,oe,t),a(e,nt,t),r(ie,e,t),a(e,dt,t),a(e,ne,t),a(e,pt,t),a(e,de,t),a(e,Mt,t),r(pe,e,t),a(e,rt,t),a(e,Me,t),a(e,mt,t),r(re,e,t),a(e,Jt,t),a(e,me,t),a(e,yt,t),a(e,Je,t),a(e,Tt,t),r(ye,e,t),a(e,wt,t),r(Te,e,t),a(e,ut,t),a(e,ue,t),ct=!0},p:Ft,i(e){ct||(m(c.$$.fragment,e),m(f.$$.fragment,e),m(U.$$.fragment,e),m(C.$$.fragment,e),m(Z.$$.fragment,e),m(g.$$.fragment,e),m(G.$$.fragment,e),m(B.$$.fragment,e),m(_.$$.fragment,e),m(R.$$.fragment,e),m(L.$$.fragment,e),m(x.$$.fragment,e),m(H.$$.fragment,e),m(S.$$.fragment,e),m(z.$$.fragment,e),m(D.$$.fragment,e),m(P.$$.fragment,e),m(K.$$.fragment,e),m(te.$$.fragment,e),m(ae.$$.fragment,e),m(se.$$.fragment,e),m(ie.$$.fragment,e),m(pe.$$.fragment,e),m(re.$$.fragment,e),m(ye.$$.fragment,e),m(Te.$$.fragment,e),ct=!0)},o(e){J(c.$$.fragment,e),J(f.$$.fragment,e),J(U.$$.fragment,e),J(C.$$.fragment,e),J(Z.$$.fragment,e),J(g.$$.fragment,e),J(G.$$.fragment,e),J(B.$$.fragment,e),J(_.$$.fragment,e),J(R.$$.fragment,e),J(L.$$.fragment,e),J(x.$$.fragment,e),J(H.$$.fragment,e),J(S.$$.fragment,e),J(z.$$.fragment,e),J(D.$$.fragment,e),J(P.$$.fragment,e),J(K.$$.fragment,e),J(te.$$.fragment,e),J(ae.$$.fragment,e),J(se.$$.fragment,e),J(ie.$$.fragment,e),J(pe.$$.fragment,e),J(re.$$.fragment,e),J(ye.$$.fragment,e),J(Te.$$.fragment,e),ct=!1},d(e){e&&(l(ce),l(we),l(fe),l(be),l(Ue),l(b),l(ve),l(he),l(v),l(Ie),l(h),l(Ce),l(I),l(je),l($e),l(j),l(Ze),l($),l(ge),l(Xe),l(Ge),l(X),l(Be),l(Ve),l(_e),l(V),l(Ae),l(Re),l(A),l(We),l(Le),l(W),l(xe),l(Qe),l(He),l(Q),l(Se),l(ke),l(ze),l(k),l(Ye),l(Ee),l(Y),l(Ne),l(E),l(De),l(N),l(Fe),l(Pe),l(F),l(qe),l(Oe),l(q),l(Ke),l(O),l(et),l(tt),l(ee),l(lt),l(at),l(le),l(st),l(ot),l(it),l(oe),l(nt),l(dt),l(ne),l(pt),l(de),l(Mt),l(rt),l(Me),l(mt),l(Jt),l(me),l(yt),l(Je),l(Tt),l(wt),l(ut),l(ue)),l(u),y(c,e),y(f,e),y(U,e),y(C,e),y(Z,e),y(g,e),y(G,e),y(B,e),y(_,e),y(R,e),y(L,e),y(x,e),y(H,e),y(S,e),y(z,e),y(D,e),y(P,e),y(K,e),y(te,e),y(ae,e),y(se,e),y(ie,e),y(pe,e),y(re,e),y(ye,e),y(Te,e)}}}const sl='{"title":"Using Dataset Tools","local":"using-dataset-tools","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"Command-Line Tool: lerobot-edit-dataset","local":"command-line-tool-lerobot-edit-dataset","sections":[{"title":"Usage Examples","local":"usage-examples","sections":[{"title":"Delete Episodes","local":"delete-episodes","sections":[],"depth":4},{"title":"Split Dataset","local":"split-dataset","sections":[],"depth":4},{"title":"Merge Datasets","local":"merge-datasets","sections":[],"depth":4},{"title":"Remove Features","local":"remove-features","sections":[],"depth":4},{"title":"Convert to Video","local":"convert-to-video","sections":[],"depth":4}],"depth":3},{"title":"Show the information of datasets","local":"show-the-information-of-datasets","sections":[],"depth":3},{"title":"Push to Hub","local":"push-to-hub","sections":[],"depth":3}],"depth":2}],"depth":1}';function ol(ft){return Pt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class rl extends qt{constructor(u){super(),Ot(this,u,ol,al,Dt,{})}}export{rl as component};
