import{s as Bl,n as Fl,o as Rl}from"../chunks/scheduler.9cda857a.js";import{S as Zl,i as xl,e as i,s as a,c as p,h as _l,a as M,d as t,b as n,f as Nl,g as U,j as T,k as Dl,l as Gl,m as s,n as o,t as m,o as J,p as y}from"../chunks/index.f47f3121.js";import{C as El}from"../chunks/CopyLLMTxtMenu.676ed699.js";import{C as r}from"../chunks/CodeBlock.24d62f98.js";import{H as Ue,E as Hl}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.64d112fc.js";function Xl(pl){let d,Je,oe,ye,w,re,c,de,f,Ul="This guide will show you how to configure your dataset repository with video files.",we,u,ol='A dataset with a supported structure and <a href="./datasets-adding#file-formats">file formats</a> automatically has a Dataset Viewer on its page on the Hub.',ce,C,ml="Additional information about your videos - such as captions or bounding boxes for object detection - is automatically loaded as long as you include this information in a metadata file (<code>metadata.csv</code>/<code>metadata.jsonl</code>/<code>metadata.parquet</code>).",fe,h,Jl='Alternatively, videos can be in Parquet files or in TAR archives following the <a href="https://github.com/webdataset/webdataset" rel="nofollow">WebDataset</a> format.',ue,j,Ce,I,yl="If your dataset only consists of one column with videos, you can simply store your video files at the root:",he,b,je,$,rl="or in a subdirectory:",Ie,v,be,k,dl='Multiple <a href="./datasets-adding#file-formats">formats</a> are supported at the same time, including MP4, MOV and AVI.',$e,Q,ve,g,wl="If you have several splits, you can put your videos into directories named accordingly:",ke,A,Qe,O,cl='See <a href="./datasets-file-names-and-splits">File names and splits</a> for more information and other ways to organize data by splits.',ge,V,Ae,N,fl='If there is additional information you’d like to include about your dataset, like text captions or bounding boxes, add it as a <code>metadata.csv</code> file in your repository. This lets you quickly create datasets for different computer vision tasks like <a href="https://huggingface.co/tasks/text-to-video" rel="nofollow">video generation</a> or <a href="https://huggingface.co/tasks/object-detection" rel="nofollow">object detection</a>.',Oe,D,Ve,B,ul="Your <code>metadata.csv</code> file must have a <code>file_name</code> column which links video files with their metadata:",Ne,F,De,R,Cl='You can also use a <a href="https://jsonlines.org/" rel="nofollow">JSONL</a> file <code>metadata.jsonl</code>:',Be,Z,Fe,x,hl='And for bigger datasets or if you are interested in advanced data retrieval features, you can use a <a href="https://parquet.apache.org/" rel="nofollow">Parquet</a> file <code>metadata.parquet</code>.',Re,_,Ze,G,jl="Metadata file must be located either in the same directory with the videos it is linked to, or in any parent directory, like in this example:",xe,E,_e,H,Il="In this case, the <code>file_name</code> column must be a full relative path to the videos, not just the filename:",Ge,X,Ee,L,bl="Metadata files cannot be put in subdirectories of a directory with the videos.",He,S,$l="More generally, any column named <code>file_name</code> or <code>*_file_name</code> should contain the full relative path to the videos.",Xe,Y,Le,q,vl="For video classification datasets, you can also use a simple setup: use directories to name the video classes. Store your video files in a directory structure like:",Se,z,Ye,W,kl="The dataset created with this structure contains two columns: <code>video</code> and <code>label</code> (with values <code>green</code> and <code>red</code>).",qe,P,Ql='You can also provide multiple splits. To do so, your dataset directory should have the following structure (see <a href="./datasets-file-names-and-splits">File names and splits</a> for more information):',ze,K,We,ee,gl='You can disable this automatic addition of the <code>label</code> column in the <a href="./datasets-manual-configuration">YAML configuration</a>. If your directory names have no special meaning, set <code>drop_labels: true</code> in the README header:',Pe,le,Ke,te,el,se,ll,ae,Al=`The <a href="./datasets-webdataset">WebDataset</a> format is well suited for large scale video datasets.
It consists of TAR archives containing videos and their metadata and is optimized for streaming. It is useful if you have a large number of videos and to get streaming data loaders for large scale training.`,tl,ne,sl,ie,Ol=`To make a WebDataset TAR archive, create a directory containing the videos and metadata files to be archived and create the TAR archive using e.g. the <code>tar</code> command.
The usual size per archive is generally around 1GB.
Make sure each video and metadata pair share the same file prefix, for example:`,al,Me,nl,Te,Vl='Note that for user convenience and to enable the <a href="./datasets-viewer">Dataset Viewer</a>, every dataset hosted in the Hub is automatically converted to Parquet format up to 5GB. Since videos can be quite large, the URLs to the videos are stored in the converted Parquet data without the video bytes themselves. Read more about it in the <a href="./datasets-viewer#access-the-parquet-files">Parquet format</a> documentation.',il,pe,Ml,me,Tl;return w=new El({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),c=new Ue({props:{title:"Video Dataset",local:"video-dataset",headingTag:"h1"}}),j=new Ue({props:{title:"Only videos",local:"only-videos",headingTag:"h2"}}),b=new r({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwMS5tcDQlMEElRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAyLm1wNCUwQSVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDMubXA0JTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwNC5tcDQ=",highlighted:`my_dataset_repository/
├── 1.mp4
├── 2.mp4
├── 3.mp4
└── 4.mp4`,wrap:!1}}),v=new r({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwdmlkZW9zJTBBJTIwJTIwJTIwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwMS5tcDQlMEElMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAyLm1wNCUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDMubXA0JTBBJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwNC5tcDQ=",highlighted:`my_dataset_repository/
└── videos
    ├── 1.mp4
    ├── 2.mp4
    ├── 3.mp4
    └── 4.mp4`,wrap:!1}}),Q=new r({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwdmlkZW9zJTBBJTIwJTIwJTIwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwMS5tcDQlMEElMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAyLm1vdiUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMDMuYXZp",highlighted:`my_dataset_repository/
└── videos
    ├── <span class="hljs-number">1</span><span class="hljs-selector-class">.mp4</span>
    ├── <span class="hljs-number">2</span><span class="hljs-selector-class">.mov</span>
    └── <span class="hljs-number">3</span>.avi`,wrap:!1}}),A=new r({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwdHJhaW4lMEElRTIlOTQlODIlQzIlQTAlQzIlQTAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAxLm1wNCUwQSVFMiU5NCU4MiVDMiVBMCVDMiVBMCUyMCVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMDIubXA0JTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwdGVzdCUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDMubXA0JTBBJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwNC5tcDQ=",highlighted:`my_dataset_repository/
├── train
│   ├── 1.mp4
│   └── 2.mp4
└── test
    ├── 3.mp4
    └── 4.mp4`,wrap:!1}}),V=new Ue({props:{title:"Additional columns",local:"additional-columns",headingTag:"h2"}}),D=new r({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwdHJhaW4lMEElMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAxLm1wNCUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDIubXA0JTBBJTIwJTIwJTIwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwMy5tcDQlMEElMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjA0Lm1wNCUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMG1ldGFkYXRhLmNzdg==",highlighted:`my_dataset_repository/
└── train
    ├── 1.mp4
    ├── 2.mp4
    ├── 3.mp4
    ├── 4.mp4
    └── metadata.csv`,wrap:!1}}),F=new r({props:{code:"ZmlsZV9uYW1lJTJDdGV4dCUwQTEubXA0JTJDYW4lMjBhbmltYXRpb24lMjBvZiUyMGElMjBncmVlbiUyMHBva2Vtb24lMjB3aXRoJTIwcmVkJTIwZXllcyUwQTIubXA0JTJDYSUyMHNob3J0JTIwdmlkZW8lMjBvZiUyMGElMjBncmVlbiUyMGFuZCUyMHllbGxvdyUyMHRveSUyMHdpdGglMjBhJTIwcmVkJTIwbm9zZSUwQTMubXA0JTJDYSUyMHJlZCUyMGFuZCUyMHdoaXRlJTIwYmFsbCUyMHNob3dzJTIwYW4lMjBhbmdyeSUyMGxvb2slMjBvbiUyMGl0cyUyMGZhY2UlMEE0Lm1wNCUyQ2ElMjBjYXJ0b29uJTIwYmFsbCUyMGlzJTIwc21pbGluZw==",highlighted:`file_name,<span class="hljs-keyword">text</span>
<span class="hljs-number">1.</span>mp4,<span class="hljs-keyword">an</span> animation <span class="hljs-keyword">of</span> <span class="hljs-keyword">a</span> green pokemon <span class="hljs-keyword">with</span> red eyes
<span class="hljs-number">2.</span>mp4,<span class="hljs-keyword">a</span> <span class="hljs-keyword">short</span> video <span class="hljs-keyword">of</span> <span class="hljs-keyword">a</span> green <span class="hljs-keyword">and</span> yellow toy <span class="hljs-keyword">with</span> <span class="hljs-keyword">a</span> red nose
<span class="hljs-number">3.</span>mp4,<span class="hljs-keyword">a</span> red <span class="hljs-keyword">and</span> white ball shows <span class="hljs-keyword">an</span> angry look <span class="hljs-keyword">on</span> <span class="hljs-title">its</span> <span class="hljs-title">face</span>
<span class="hljs-number">4.</span>mp4,<span class="hljs-keyword">a</span> cartoon ball is smiling`,wrap:!1}}),Z=new r({props:{code:"JTdCJTIyZmlsZV9uYW1lJTIyJTNBJTIwJTIyMS5tcDQlMjIlMkMlMjJ0ZXh0JTIyJTNBJTIwJTIyYW4lMjBhbmltYXRpb24lMjBvZiUyMGElMjBncmVlbiUyMHBva2Vtb24lMjB3aXRoJTIwcmVkJTIwZXllcyUyMiU3RCUwQSU3QiUyMmZpbGVfbmFtZSUyMiUzQSUyMCUyMjIubXA0JTIyJTJDJTIydGV4dCUyMiUzQSUyMCUyMmElMjBzaG9ydCUyMHZpZGVvJTIwb2YlMjBhJTIwZ3JlZW4lMjBhbmQlMjB5ZWxsb3clMjB0b3klMjB3aXRoJTIwYSUyMHJlZCUyMG5vc2UlMjIlN0QlMEElN0IlMjJmaWxlX25hbWUlMjIlM0ElMjAlMjIzLm1wNCUyMiUyQyUyMnRleHQlMjIlM0ElMjAlMjJhJTIwcmVkJTIwYW5kJTIwd2hpdGUlMjBiYWxsJTIwc2hvd3MlMjBhbiUyMGFuZ3J5JTIwbG9vayUyMG9uJTIwaXRzJTIwZmFjZSUyMiU3RCUwQSU3QiUyMmZpbGVfbmFtZSUyMiUzQSUyMCUyMjQubXA0JTIyJTJDJTIydGV4dCUyMiUzQSUyMCUyMmElMjBjYXJ0b29uJTIwYmFsbCUyMGlzJTIwc21pbGluZyUyMiU3RA==",highlighted:`{<span class="hljs-comment">&quot;file_name&quot;</span>: <span class="hljs-comment">&quot;1.mp4&quot;</span>,<span class="hljs-comment">&quot;text&quot;</span>: <span class="hljs-comment">&quot;an animation of a green pokemon with red eyes&quot;</span>}
{<span class="hljs-comment">&quot;file_name&quot;</span>: <span class="hljs-comment">&quot;2.mp4&quot;</span>,<span class="hljs-comment">&quot;text&quot;</span>: <span class="hljs-comment">&quot;a short video of a green and yellow toy with a red nose&quot;</span>}
{<span class="hljs-comment">&quot;file_name&quot;</span>: <span class="hljs-comment">&quot;3.mp4&quot;</span>,<span class="hljs-comment">&quot;text&quot;</span>: <span class="hljs-comment">&quot;a red and white ball shows an angry look on its face&quot;</span>}
{<span class="hljs-comment">&quot;file_name&quot;</span>: <span class="hljs-comment">&quot;4.mp4&quot;</span>,<span class="hljs-comment">&quot;text&quot;</span>: <span class="hljs-comment">&quot;a cartoon ball is smiling&quot;</span>}`,wrap:!1}}),_=new Ue({props:{title:"Relative paths",local:"relative-paths",headingTag:"h2"}}),E=new r({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwdHJhaW4lMEElMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjB2aWRlb3MlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlQzIlQTAlQzIlQTAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAxLm1wNCUwQSUyMCUyMCUyMCUyMCVFMiU5NCU4MiVDMiVBMCVDMiVBMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDIubXA0JTBBJTIwJTIwJTIwJTIwJUUyJTk0JTgyJUMyJUEwJUMyJUEwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwMy5tcDQlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlQzIlQTAlQzIlQTAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjA0Lm1wNCUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMG1ldGFkYXRhLmNzdg==",highlighted:`my_dataset_repository/
└── train
    ├── videos
    │   ├── 1.mp4
    │   ├── 2.mp4
    │   ├── 3.mp4
    │   └── 4.mp4
    └── metadata.csv`,wrap:!1}}),X=new r({props:{code:"ZmlsZV9uYW1lJTJDdGV4dCUwQXZpZGVvcyUyRjEubXA0JTJDYW4lMjBhbmltYXRpb24lMjBvZiUyMGElMjBncmVlbiUyMHBva2Vtb24lMjB3aXRoJTIwcmVkJTIwZXllcyUwQXZpZGVvcyUyRjIubXA0JTJDYSUyMHNob3J0JTIwdmlkZW8lMjBvZiUyMGElMjBncmVlbiUyMGFuZCUyMHllbGxvdyUyMHRveSUyMHdpdGglMjBhJTIwcmVkJTIwbm9zZSUwQXZpZGVvcyUyRjMubXA0JTJDYSUyMHJlZCUyMGFuZCUyMHdoaXRlJTIwYmFsbCUyMHNob3dzJTIwYW4lMjBhbmdyeSUyMGxvb2slMjBvbiUyMGl0cyUyMGZhY2UlMEF2aWRlb3MlMkY0Lm1wNCUyQ2ElMjBjYXJ0b29uJTIwYmFsbCUyMGlzJTIwc21pbGluZw==",highlighted:`file_name,<span class="hljs-keyword">text</span>
videos/<span class="hljs-number">1.</span>mp4,<span class="hljs-keyword">an</span> animation <span class="hljs-keyword">of</span> <span class="hljs-keyword">a</span> green pokemon <span class="hljs-keyword">with</span> red eyes
videos/<span class="hljs-number">2.</span>mp4,<span class="hljs-keyword">a</span> <span class="hljs-keyword">short</span> video <span class="hljs-keyword">of</span> <span class="hljs-keyword">a</span> green <span class="hljs-keyword">and</span> yellow toy <span class="hljs-keyword">with</span> <span class="hljs-keyword">a</span> red nose
videos/<span class="hljs-number">3.</span>mp4,<span class="hljs-keyword">a</span> red <span class="hljs-keyword">and</span> white ball shows <span class="hljs-keyword">an</span> angry look <span class="hljs-keyword">on</span> <span class="hljs-title">its</span> <span class="hljs-title">face</span>
videos/<span class="hljs-number">4.</span>mp4,<span class="hljs-keyword">a</span> cartoon ball is smiling`,wrap:!1}}),Y=new Ue({props:{title:"Video classification",local:"video-classification",headingTag:"h2"}}),z=new r({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwZ3JlZW4lMEElRTIlOTQlODIlQzIlQTAlQzIlQTAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAxLm1wNCUwQSVFMiU5NCU4MiVDMiVBMCVDMiVBMCUyMCVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMDIubXA0JTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwcmVkJTBBJTIwJTIwJTIwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwMy5tcDQlMEElMjAlMjAlMjAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjA0Lm1wNA==",highlighted:`my_dataset_repository/
├── green
│   ├── 1.mp4
│   └── 2.mp4
└── red
    ├── 3.mp4
    └── 4.mp4`,wrap:!1}}),K=new r({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwdGVzdCUwQSVFMiU5NCU4MiVDMiVBMCVDMiVBMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMGdyZWVuJTBBJUUyJTk0JTgyJUMyJUEwJUMyJUEwJTIwJUUyJTk0JTgyJUMyJUEwJUMyJUEwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwMi5tcDQlMEElRTIlOTQlODIlQzIlQTAlQzIlQTAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjByZWQlMEElRTIlOTQlODIlQzIlQTAlQzIlQTAlMjAlMjAlMjAlMjAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjA0Lm1wNCUwQSVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMHRyYWluJTBBJTIwJTIwJTIwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwZ3JlZW4lMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlQzIlQTAlQzIlQTAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjAxLm1wNCUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMHJlZCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMDMubXA0",highlighted:`my_dataset_repository/
├── test
│   ├── <span class="hljs-built_in">green</span>
│   │   └── <span class="hljs-number">2.</span>mp4
│   └── <span class="hljs-built_in">red</span>
│       └── <span class="hljs-number">4.</span>mp4
└── train
    ├── <span class="hljs-built_in">green</span>
    │   └── <span class="hljs-number">1.</span>mp4
    └── <span class="hljs-built_in">red</span>
        └── <span class="hljs-number">3.</span>mp4`,wrap:!1}}),le=new r({props:{code:"Y29uZmlncyUzQSUwQSUyMCUyMC0lMjBjb25maWdfbmFtZSUzQSUyMGRlZmF1bHQlMjAlMjAlMjMlMjBOYW1lJTIwb2YlMjB0aGUlMjBkYXRhc2V0JTIwc3Vic2V0JTJDJTIwaWYlMjBhcHBsaWNhYmxlLiUwQSUyMCUyMCUyMCUyMGRyb3BfbGFiZWxzJTNBJTIwdHJ1ZQ==",highlighted:`<span class="hljs-attr">configs:</span>
  <span class="hljs-bullet">-</span> <span class="hljs-attr">config_name:</span> <span class="hljs-string">default</span>  <span class="hljs-comment"># Name of the dataset subset, if applicable.</span>
    <span class="hljs-attr">drop_labels:</span> <span class="hljs-literal">true</span>`,wrap:!1}}),te=new Ue({props:{title:"Large scale datasets",local:"large-scale-datasets",headingTag:"h2"}}),se=new Ue({props:{title:"WebDataset format",local:"webdataset-format",headingTag:"h3"}}),ne=new r({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwdHJhaW4tMDAwMC50YXIlMEElRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjB0cmFpbi0wMDAxLnRhciUwQSVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMC4uLiUwQSVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMHRyYWluLTEwMjMudGFy",highlighted:`my_dataset_repository/
├── train<span class="hljs-string">-0000</span>.tar
├── train<span class="hljs-string">-0001</span>.tar
├── ...
└── train<span class="hljs-string">-1023</span>.tar`,wrap:!1}}),Me=new r({props:{code:"dHJhaW4tMDAwMCUyRiUwQSVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDAwMC5tcDQlMEElRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAwMDAuanNvbiUwQSVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDAwMS5tcDQlMEElRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAwMDEuanNvbiUwQSVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMC4uLiUwQSVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDk5OS5tcDQlMEElRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjA5OTkuanNvbg==",highlighted:`train-<span class="hljs-number">0000</span>/
├── <span class="hljs-number">000</span><span class="hljs-selector-class">.mp4</span>
├── <span class="hljs-number">000</span><span class="hljs-selector-class">.json</span>
├── <span class="hljs-number">001</span><span class="hljs-selector-class">.mp4</span>
├── <span class="hljs-number">001</span><span class="hljs-selector-class">.json</span>
├── ...
├── <span class="hljs-number">999</span><span class="hljs-selector-class">.mp4</span>
└── <span class="hljs-number">999</span>.json`,wrap:!1}}),pe=new Hl({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/datasets-video.md"}}),{c(){d=i("meta"),Je=a(),oe=i("p"),ye=a(),p(w.$$.fragment),re=a(),p(c.$$.fragment),de=a(),f=i("p"),f.textContent=Ul,we=a(),u=i("p"),u.innerHTML=ol,ce=a(),C=i("p"),C.innerHTML=ml,fe=a(),h=i("p"),h.innerHTML=Jl,ue=a(),p(j.$$.fragment),Ce=a(),I=i("p"),I.textContent=yl,he=a(),p(b.$$.fragment),je=a(),$=i("p"),$.textContent=rl,Ie=a(),p(v.$$.fragment),be=a(),k=i("p"),k.innerHTML=dl,$e=a(),p(Q.$$.fragment),ve=a(),g=i("p"),g.textContent=wl,ke=a(),p(A.$$.fragment),Qe=a(),O=i("p"),O.innerHTML=cl,ge=a(),p(V.$$.fragment),Ae=a(),N=i("p"),N.innerHTML=fl,Oe=a(),p(D.$$.fragment),Ve=a(),B=i("p"),B.innerHTML=ul,Ne=a(),p(F.$$.fragment),De=a(),R=i("p"),R.innerHTML=Cl,Be=a(),p(Z.$$.fragment),Fe=a(),x=i("p"),x.innerHTML=hl,Re=a(),p(_.$$.fragment),Ze=a(),G=i("p"),G.textContent=jl,xe=a(),p(E.$$.fragment),_e=a(),H=i("p"),H.innerHTML=Il,Ge=a(),p(X.$$.fragment),Ee=a(),L=i("p"),L.textContent=bl,He=a(),S=i("p"),S.innerHTML=$l,Xe=a(),p(Y.$$.fragment),Le=a(),q=i("p"),q.textContent=vl,Se=a(),p(z.$$.fragment),Ye=a(),W=i("p"),W.innerHTML=kl,qe=a(),P=i("p"),P.innerHTML=Ql,ze=a(),p(K.$$.fragment),We=a(),ee=i("p"),ee.innerHTML=gl,Pe=a(),p(le.$$.fragment),Ke=a(),p(te.$$.fragment),el=a(),p(se.$$.fragment),ll=a(),ae=i("p"),ae.innerHTML=Al,tl=a(),p(ne.$$.fragment),sl=a(),ie=i("p"),ie.innerHTML=Ol,al=a(),p(Me.$$.fragment),nl=a(),Te=i("p"),Te.innerHTML=Vl,il=a(),p(pe.$$.fragment),Ml=a(),me=i("p"),this.h()},l(e){const l=_l("svelte-u9bgzb",document.head);d=M(l,"META",{name:!0,content:!0}),l.forEach(t),Je=n(e),oe=M(e,"P",{}),Nl(oe).forEach(t),ye=n(e),U(w.$$.fragment,e),re=n(e),U(c.$$.fragment,e),de=n(e),f=M(e,"P",{"data-svelte-h":!0}),T(f)!=="svelte-ruyvs2"&&(f.textContent=Ul),we=n(e),u=M(e,"P",{"data-svelte-h":!0}),T(u)!=="svelte-u1gdfq"&&(u.innerHTML=ol),ce=n(e),C=M(e,"P",{"data-svelte-h":!0}),T(C)!=="svelte-gs67nj"&&(C.innerHTML=ml),fe=n(e),h=M(e,"P",{"data-svelte-h":!0}),T(h)!=="svelte-1ctzmqu"&&(h.innerHTML=Jl),ue=n(e),U(j.$$.fragment,e),Ce=n(e),I=M(e,"P",{"data-svelte-h":!0}),T(I)!=="svelte-a55o50"&&(I.textContent=yl),he=n(e),U(b.$$.fragment,e),je=n(e),$=M(e,"P",{"data-svelte-h":!0}),T($)!=="svelte-19pjkki"&&($.textContent=rl),Ie=n(e),U(v.$$.fragment,e),be=n(e),k=M(e,"P",{"data-svelte-h":!0}),T(k)!=="svelte-ppx257"&&(k.innerHTML=dl),$e=n(e),U(Q.$$.fragment,e),ve=n(e),g=M(e,"P",{"data-svelte-h":!0}),T(g)!=="svelte-1wi2jdv"&&(g.textContent=wl),ke=n(e),U(A.$$.fragment,e),Qe=n(e),O=M(e,"P",{"data-svelte-h":!0}),T(O)!=="svelte-kefeul"&&(O.innerHTML=cl),ge=n(e),U(V.$$.fragment,e),Ae=n(e),N=M(e,"P",{"data-svelte-h":!0}),T(N)!=="svelte-1pmu5k4"&&(N.innerHTML=fl),Oe=n(e),U(D.$$.fragment,e),Ve=n(e),B=M(e,"P",{"data-svelte-h":!0}),T(B)!=="svelte-d633kt"&&(B.innerHTML=ul),Ne=n(e),U(F.$$.fragment,e),De=n(e),R=M(e,"P",{"data-svelte-h":!0}),T(R)!=="svelte-1md2l6g"&&(R.innerHTML=Cl),Be=n(e),U(Z.$$.fragment,e),Fe=n(e),x=M(e,"P",{"data-svelte-h":!0}),T(x)!=="svelte-17vzj19"&&(x.innerHTML=hl),Re=n(e),U(_.$$.fragment,e),Ze=n(e),G=M(e,"P",{"data-svelte-h":!0}),T(G)!=="svelte-xowpes"&&(G.textContent=jl),xe=n(e),U(E.$$.fragment,e),_e=n(e),H=M(e,"P",{"data-svelte-h":!0}),T(H)!=="svelte-18wqlz9"&&(H.innerHTML=Il),Ge=n(e),U(X.$$.fragment,e),Ee=n(e),L=M(e,"P",{"data-svelte-h":!0}),T(L)!=="svelte-qenyy7"&&(L.textContent=bl),He=n(e),S=M(e,"P",{"data-svelte-h":!0}),T(S)!=="svelte-19dvg1v"&&(S.innerHTML=$l),Xe=n(e),U(Y.$$.fragment,e),Le=n(e),q=M(e,"P",{"data-svelte-h":!0}),T(q)!=="svelte-1u3l8ib"&&(q.textContent=vl),Se=n(e),U(z.$$.fragment,e),Ye=n(e),W=M(e,"P",{"data-svelte-h":!0}),T(W)!=="svelte-jgm2yq"&&(W.innerHTML=kl),qe=n(e),P=M(e,"P",{"data-svelte-h":!0}),T(P)!=="svelte-jxxgnh"&&(P.innerHTML=Ql),ze=n(e),U(K.$$.fragment,e),We=n(e),ee=M(e,"P",{"data-svelte-h":!0}),T(ee)!=="svelte-op9ivs"&&(ee.innerHTML=gl),Pe=n(e),U(le.$$.fragment,e),Ke=n(e),U(te.$$.fragment,e),el=n(e),U(se.$$.fragment,e),ll=n(e),ae=M(e,"P",{"data-svelte-h":!0}),T(ae)!=="svelte-zm55y0"&&(ae.innerHTML=Al),tl=n(e),U(ne.$$.fragment,e),sl=n(e),ie=M(e,"P",{"data-svelte-h":!0}),T(ie)!=="svelte-1d0rexv"&&(ie.innerHTML=Ol),al=n(e),U(Me.$$.fragment,e),nl=n(e),Te=M(e,"P",{"data-svelte-h":!0}),T(Te)!=="svelte-7b2m4z"&&(Te.innerHTML=Vl),il=n(e),U(pe.$$.fragment,e),Ml=n(e),me=M(e,"P",{}),Nl(me).forEach(t),this.h()},h(){Dl(d,"name","hf:doc:metadata"),Dl(d,"content",Ll)},m(e,l){Gl(document.head,d),s(e,Je,l),s(e,oe,l),s(e,ye,l),o(w,e,l),s(e,re,l),o(c,e,l),s(e,de,l),s(e,f,l),s(e,we,l),s(e,u,l),s(e,ce,l),s(e,C,l),s(e,fe,l),s(e,h,l),s(e,ue,l),o(j,e,l),s(e,Ce,l),s(e,I,l),s(e,he,l),o(b,e,l),s(e,je,l),s(e,$,l),s(e,Ie,l),o(v,e,l),s(e,be,l),s(e,k,l),s(e,$e,l),o(Q,e,l),s(e,ve,l),s(e,g,l),s(e,ke,l),o(A,e,l),s(e,Qe,l),s(e,O,l),s(e,ge,l),o(V,e,l),s(e,Ae,l),s(e,N,l),s(e,Oe,l),o(D,e,l),s(e,Ve,l),s(e,B,l),s(e,Ne,l),o(F,e,l),s(e,De,l),s(e,R,l),s(e,Be,l),o(Z,e,l),s(e,Fe,l),s(e,x,l),s(e,Re,l),o(_,e,l),s(e,Ze,l),s(e,G,l),s(e,xe,l),o(E,e,l),s(e,_e,l),s(e,H,l),s(e,Ge,l),o(X,e,l),s(e,Ee,l),s(e,L,l),s(e,He,l),s(e,S,l),s(e,Xe,l),o(Y,e,l),s(e,Le,l),s(e,q,l),s(e,Se,l),o(z,e,l),s(e,Ye,l),s(e,W,l),s(e,qe,l),s(e,P,l),s(e,ze,l),o(K,e,l),s(e,We,l),s(e,ee,l),s(e,Pe,l),o(le,e,l),s(e,Ke,l),o(te,e,l),s(e,el,l),o(se,e,l),s(e,ll,l),s(e,ae,l),s(e,tl,l),o(ne,e,l),s(e,sl,l),s(e,ie,l),s(e,al,l),o(Me,e,l),s(e,nl,l),s(e,Te,l),s(e,il,l),o(pe,e,l),s(e,Ml,l),s(e,me,l),Tl=!0},p:Fl,i(e){Tl||(m(w.$$.fragment,e),m(c.$$.fragment,e),m(j.$$.fragment,e),m(b.$$.fragment,e),m(v.$$.fragment,e),m(Q.$$.fragment,e),m(A.$$.fragment,e),m(V.$$.fragment,e),m(D.$$.fragment,e),m(F.$$.fragment,e),m(Z.$$.fragment,e),m(_.$$.fragment,e),m(E.$$.fragment,e),m(X.$$.fragment,e),m(Y.$$.fragment,e),m(z.$$.fragment,e),m(K.$$.fragment,e),m(le.$$.fragment,e),m(te.$$.fragment,e),m(se.$$.fragment,e),m(ne.$$.fragment,e),m(Me.$$.fragment,e),m(pe.$$.fragment,e),Tl=!0)},o(e){J(w.$$.fragment,e),J(c.$$.fragment,e),J(j.$$.fragment,e),J(b.$$.fragment,e),J(v.$$.fragment,e),J(Q.$$.fragment,e),J(A.$$.fragment,e),J(V.$$.fragment,e),J(D.$$.fragment,e),J(F.$$.fragment,e),J(Z.$$.fragment,e),J(_.$$.fragment,e),J(E.$$.fragment,e),J(X.$$.fragment,e),J(Y.$$.fragment,e),J(z.$$.fragment,e),J(K.$$.fragment,e),J(le.$$.fragment,e),J(te.$$.fragment,e),J(se.$$.fragment,e),J(ne.$$.fragment,e),J(Me.$$.fragment,e),J(pe.$$.fragment,e),Tl=!1},d(e){e&&(t(Je),t(oe),t(ye),t(re),t(de),t(f),t(we),t(u),t(ce),t(C),t(fe),t(h),t(ue),t(Ce),t(I),t(he),t(je),t($),t(Ie),t(be),t(k),t($e),t(ve),t(g),t(ke),t(Qe),t(O),t(ge),t(Ae),t(N),t(Oe),t(Ve),t(B),t(Ne),t(De),t(R),t(Be),t(Fe),t(x),t(Re),t(Ze),t(G),t(xe),t(_e),t(H),t(Ge),t(Ee),t(L),t(He),t(S),t(Xe),t(Le),t(q),t(Se),t(Ye),t(W),t(qe),t(P),t(ze),t(We),t(ee),t(Pe),t(Ke),t(el),t(ll),t(ae),t(tl),t(sl),t(ie),t(al),t(nl),t(Te),t(il),t(Ml),t(me)),t(d),y(w,e),y(c,e),y(j,e),y(b,e),y(v,e),y(Q,e),y(A,e),y(V,e),y(D,e),y(F,e),y(Z,e),y(_,e),y(E,e),y(X,e),y(Y,e),y(z,e),y(K,e),y(le,e),y(te,e),y(se,e),y(ne,e),y(Me,e),y(pe,e)}}}const Ll='{"title":"Video Dataset","local":"video-dataset","sections":[{"title":"Only videos","local":"only-videos","sections":[],"depth":2},{"title":"Additional columns","local":"additional-columns","sections":[],"depth":2},{"title":"Relative paths","local":"relative-paths","sections":[],"depth":2},{"title":"Video classification","local":"video-classification","sections":[],"depth":2},{"title":"Large scale datasets","local":"large-scale-datasets","sections":[{"title":"WebDataset format","local":"webdataset-format","sections":[],"depth":3}],"depth":2}],"depth":1}';function Sl(pl){return Rl(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Kl extends Zl{constructor(d){super(),xl(this,d,Sl,Xl,Bl,{})}}export{Kl as component};
