import{s as Nl,n as Dl,o as Bl}from"../chunks/scheduler.12fdeddc.js";import{S as Fl,i as Rl,g as i,s as a,r as U,A as Zl,h as M,f as t,c as n,j as Ol,u as p,x as T,k as Vl,y as _l,a as s,v as o,d as J,t as m,w as y}from"../chunks/index.88dae322.js";import{C as r}from"../chunks/CodeBlock.8e54a086.js";import{H as Ue,E as xl}from"../chunks/getInferenceSnippets.00466244.js";function Gl(Ml){let d,Je,pe,me,w,ye,c,Tl="This guide will show you how to configure your dataset repository with video files.",re,f,Ul='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.',de,u,pl="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>).",we,C,ol='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.',ce,h,fe,j,Jl="If your dataset only consists of one column with videos, you can simply store your video files at the root:",ue,I,Ce,b,ml="or in a subdirectory:",he,$,je,v,yl='Multiple <a href="./datasets-adding#file-formats">formats</a> are supported at the same time, including MP4, MOV and AVI.',Ie,k,be,Q,rl="If you have several splits, you can put your videos into directories named accordingly:",$e,g,ve,A,dl='See <a href="./datasets-file-names-and-splits">File names and splits</a> for more information and other ways to organize data by splits.',ke,O,Qe,V,wl='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>.',ge,N,Ae,D,cl="Your <code>metadata.csv</code> file must have a <code>file_name</code> column which links video files with their metadata:",Oe,B,Ve,F,fl='You can also use a <a href="https://jsonlines.org/" rel="nofollow">JSONL</a> file <code>metadata.jsonl</code>:',Ne,R,De,Z,ul='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>.',Be,_,Fe,x,Cl="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:",Re,G,Ze,E,hl="In this case, the <code>file_name</code> column must be a full relative path to the videos, not just the filename:",_e,H,xe,X,jl="Metadata files cannot be put in subdirectories of a directory with the videos.",Ge,L,Il="More generally, any column named <code>file_name</code> or <code>*_file_name</code> should contain the full relative path to the videos.",Ee,S,He,Y,bl="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:",Xe,q,Le,z,$l="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>).",Se,W,vl='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):',Ye,P,qe,K,kl='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:',ze,ee,We,le,Pe,te,Ke,se,Ql=`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.`,el,ae,ll,ne,gl=`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:`,tl,ie,sl,Me,Al='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.',al,Te,nl,oe,il;return w=new Ue({props:{title:"Video Dataset",local:"video-dataset",headingTag:"h1"}}),h=new Ue({props:{title:"Only videos",local:"only-videos",headingTag:"h2"}}),I=new r({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwMS5tcDQlMEElRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAyLm1wNCUwQSVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDMubXA0JTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwNC5tcDQ=",highlighted:`my_dataset_repository/
├── 1.mp4
├── 2.mp4
├── 3.mp4
└── 4.mp4`,wrap:!1}}),$=new r({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwdmlkZW9zJTBBJTIwJTIwJTIwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwMS5tcDQlMEElMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAyLm1wNCUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDMubXA0JTBBJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwNC5tcDQ=",highlighted:`my_dataset_repository/
└── videos
    ├── 1.mp4
    ├── 2.mp4
    ├── 3.mp4
    └── 4.mp4`,wrap:!1}}),k=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}}),g=new r({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwdHJhaW4lMEElRTIlOTQlODIlQzIlQTAlQzIlQTAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAxLm1wNCUwQSVFMiU5NCU4MiVDMiVBMCVDMiVBMCUyMCVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMDIubXA0JTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwdGVzdCUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDMubXA0JTBBJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwNC5tcDQ=",highlighted:`my_dataset_repository/
├── train
│   ├── 1.mp4
│   └── 2.mp4
└── test
    ├── 3.mp4
    └── 4.mp4`,wrap:!1}}),O=new Ue({props:{title:"Additional columns",local:"additional-columns",headingTag:"h2"}}),N=new r({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwdHJhaW4lMEElMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAxLm1wNCUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDIubXA0JTBBJTIwJTIwJTIwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwMy5tcDQlMEElMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjA0Lm1wNCUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMG1ldGFkYXRhLmNzdg==",highlighted:`my_dataset_repository/
└── train
    ├── 1.mp4
    ├── 2.mp4
    ├── 3.mp4
    ├── 4.mp4
    └── metadata.csv`,wrap:!1}}),B=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}}),R=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"}}),G=new r({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwdHJhaW4lMEElMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjB2aWRlb3MlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlQzIlQTAlQzIlQTAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAxLm1wNCUwQSUyMCUyMCUyMCUyMCVFMiU5NCU4MiVDMiVBMCVDMiVBMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDIubXA0JTBBJTIwJTIwJTIwJTIwJUUyJTk0JTgyJUMyJUEwJUMyJUEwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwMy5tcDQlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlQzIlQTAlQzIlQTAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjA0Lm1wNCUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMG1ldGFkYXRhLmNzdg==",highlighted:`my_dataset_repository/
└── train
    ├── videos
    │   ├── 1.mp4
    │   ├── 2.mp4
    │   ├── 3.mp4
    │   └── 4.mp4
    └── metadata.csv`,wrap:!1}}),H=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}}),S=new Ue({props:{title:"Video classification",local:"video-classification",headingTag:"h2"}}),q=new r({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwZ3JlZW4lMEElRTIlOTQlODIlQzIlQTAlQzIlQTAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAxLm1wNCUwQSVFMiU5NCU4MiVDMiVBMCVDMiVBMCUyMCVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMDIubXA0JTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwcmVkJTBBJTIwJTIwJTIwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwMy5tcDQlMEElMjAlMjAlMjAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjA0Lm1wNA==",highlighted:`my_dataset_repository/
├── green
│   ├── 1.mp4
│   └── 2.mp4
└── red
    ├── 3.mp4
    └── 4.mp4`,wrap:!1}}),P=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}}),ee=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}}),le=new Ue({props:{title:"Large scale datasets",local:"large-scale-datasets",headingTag:"h2"}}),te=new Ue({props:{title:"WebDataset format",local:"webdataset-format",headingTag:"h3"}}),ae=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}}),ie=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}}),Te=new xl({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/datasets-video.md"}}),{c(){d=i("meta"),Je=a(),pe=i("p"),me=a(),U(w.$$.fragment),ye=a(),c=i("p"),c.textContent=Tl,re=a(),f=i("p"),f.innerHTML=Ul,de=a(),u=i("p"),u.innerHTML=pl,we=a(),C=i("p"),C.innerHTML=ol,ce=a(),U(h.$$.fragment),fe=a(),j=i("p"),j.textContent=Jl,ue=a(),U(I.$$.fragment),Ce=a(),b=i("p"),b.textContent=ml,he=a(),U($.$$.fragment),je=a(),v=i("p"),v.innerHTML=yl,Ie=a(),U(k.$$.fragment),be=a(),Q=i("p"),Q.textContent=rl,$e=a(),U(g.$$.fragment),ve=a(),A=i("p"),A.innerHTML=dl,ke=a(),U(O.$$.fragment),Qe=a(),V=i("p"),V.innerHTML=wl,ge=a(),U(N.$$.fragment),Ae=a(),D=i("p"),D.innerHTML=cl,Oe=a(),U(B.$$.fragment),Ve=a(),F=i("p"),F.innerHTML=fl,Ne=a(),U(R.$$.fragment),De=a(),Z=i("p"),Z.innerHTML=ul,Be=a(),U(_.$$.fragment),Fe=a(),x=i("p"),x.textContent=Cl,Re=a(),U(G.$$.fragment),Ze=a(),E=i("p"),E.innerHTML=hl,_e=a(),U(H.$$.fragment),xe=a(),X=i("p"),X.textContent=jl,Ge=a(),L=i("p"),L.innerHTML=Il,Ee=a(),U(S.$$.fragment),He=a(),Y=i("p"),Y.textContent=bl,Xe=a(),U(q.$$.fragment),Le=a(),z=i("p"),z.innerHTML=$l,Se=a(),W=i("p"),W.innerHTML=vl,Ye=a(),U(P.$$.fragment),qe=a(),K=i("p"),K.innerHTML=kl,ze=a(),U(ee.$$.fragment),We=a(),U(le.$$.fragment),Pe=a(),U(te.$$.fragment),Ke=a(),se=i("p"),se.innerHTML=Ql,el=a(),U(ae.$$.fragment),ll=a(),ne=i("p"),ne.innerHTML=gl,tl=a(),U(ie.$$.fragment),sl=a(),Me=i("p"),Me.innerHTML=Al,al=a(),U(Te.$$.fragment),nl=a(),oe=i("p"),this.h()},l(e){const l=Zl("svelte-u9bgzb",document.head);d=M(l,"META",{name:!0,content:!0}),l.forEach(t),Je=n(e),pe=M(e,"P",{}),Ol(pe).forEach(t),me=n(e),p(w.$$.fragment,e),ye=n(e),c=M(e,"P",{"data-svelte-h":!0}),T(c)!=="svelte-ruyvs2"&&(c.textContent=Tl),re=n(e),f=M(e,"P",{"data-svelte-h":!0}),T(f)!=="svelte-u1gdfq"&&(f.innerHTML=Ul),de=n(e),u=M(e,"P",{"data-svelte-h":!0}),T(u)!=="svelte-gs67nj"&&(u.innerHTML=pl),we=n(e),C=M(e,"P",{"data-svelte-h":!0}),T(C)!=="svelte-1ctzmqu"&&(C.innerHTML=ol),ce=n(e),p(h.$$.fragment,e),fe=n(e),j=M(e,"P",{"data-svelte-h":!0}),T(j)!=="svelte-a55o50"&&(j.textContent=Jl),ue=n(e),p(I.$$.fragment,e),Ce=n(e),b=M(e,"P",{"data-svelte-h":!0}),T(b)!=="svelte-19pjkki"&&(b.textContent=ml),he=n(e),p($.$$.fragment,e),je=n(e),v=M(e,"P",{"data-svelte-h":!0}),T(v)!=="svelte-ppx257"&&(v.innerHTML=yl),Ie=n(e),p(k.$$.fragment,e),be=n(e),Q=M(e,"P",{"data-svelte-h":!0}),T(Q)!=="svelte-1wi2jdv"&&(Q.textContent=rl),$e=n(e),p(g.$$.fragment,e),ve=n(e),A=M(e,"P",{"data-svelte-h":!0}),T(A)!=="svelte-kefeul"&&(A.innerHTML=dl),ke=n(e),p(O.$$.fragment,e),Qe=n(e),V=M(e,"P",{"data-svelte-h":!0}),T(V)!=="svelte-1pmu5k4"&&(V.innerHTML=wl),ge=n(e),p(N.$$.fragment,e),Ae=n(e),D=M(e,"P",{"data-svelte-h":!0}),T(D)!=="svelte-d633kt"&&(D.innerHTML=cl),Oe=n(e),p(B.$$.fragment,e),Ve=n(e),F=M(e,"P",{"data-svelte-h":!0}),T(F)!=="svelte-1md2l6g"&&(F.innerHTML=fl),Ne=n(e),p(R.$$.fragment,e),De=n(e),Z=M(e,"P",{"data-svelte-h":!0}),T(Z)!=="svelte-17vzj19"&&(Z.innerHTML=ul),Be=n(e),p(_.$$.fragment,e),Fe=n(e),x=M(e,"P",{"data-svelte-h":!0}),T(x)!=="svelte-xowpes"&&(x.textContent=Cl),Re=n(e),p(G.$$.fragment,e),Ze=n(e),E=M(e,"P",{"data-svelte-h":!0}),T(E)!=="svelte-18wqlz9"&&(E.innerHTML=hl),_e=n(e),p(H.$$.fragment,e),xe=n(e),X=M(e,"P",{"data-svelte-h":!0}),T(X)!=="svelte-qenyy7"&&(X.textContent=jl),Ge=n(e),L=M(e,"P",{"data-svelte-h":!0}),T(L)!=="svelte-19dvg1v"&&(L.innerHTML=Il),Ee=n(e),p(S.$$.fragment,e),He=n(e),Y=M(e,"P",{"data-svelte-h":!0}),T(Y)!=="svelte-1u3l8ib"&&(Y.textContent=bl),Xe=n(e),p(q.$$.fragment,e),Le=n(e),z=M(e,"P",{"data-svelte-h":!0}),T(z)!=="svelte-jgm2yq"&&(z.innerHTML=$l),Se=n(e),W=M(e,"P",{"data-svelte-h":!0}),T(W)!=="svelte-jxxgnh"&&(W.innerHTML=vl),Ye=n(e),p(P.$$.fragment,e),qe=n(e),K=M(e,"P",{"data-svelte-h":!0}),T(K)!=="svelte-op9ivs"&&(K.innerHTML=kl),ze=n(e),p(ee.$$.fragment,e),We=n(e),p(le.$$.fragment,e),Pe=n(e),p(te.$$.fragment,e),Ke=n(e),se=M(e,"P",{"data-svelte-h":!0}),T(se)!=="svelte-zm55y0"&&(se.innerHTML=Ql),el=n(e),p(ae.$$.fragment,e),ll=n(e),ne=M(e,"P",{"data-svelte-h":!0}),T(ne)!=="svelte-1d0rexv"&&(ne.innerHTML=gl),tl=n(e),p(ie.$$.fragment,e),sl=n(e),Me=M(e,"P",{"data-svelte-h":!0}),T(Me)!=="svelte-7b2m4z"&&(Me.innerHTML=Al),al=n(e),p(Te.$$.fragment,e),nl=n(e),oe=M(e,"P",{}),Ol(oe).forEach(t),this.h()},h(){Vl(d,"name","hf:doc:metadata"),Vl(d,"content",El)},m(e,l){_l(document.head,d),s(e,Je,l),s(e,pe,l),s(e,me,l),o(w,e,l),s(e,ye,l),s(e,c,l),s(e,re,l),s(e,f,l),s(e,de,l),s(e,u,l),s(e,we,l),s(e,C,l),s(e,ce,l),o(h,e,l),s(e,fe,l),s(e,j,l),s(e,ue,l),o(I,e,l),s(e,Ce,l),s(e,b,l),s(e,he,l),o($,e,l),s(e,je,l),s(e,v,l),s(e,Ie,l),o(k,e,l),s(e,be,l),s(e,Q,l),s(e,$e,l),o(g,e,l),s(e,ve,l),s(e,A,l),s(e,ke,l),o(O,e,l),s(e,Qe,l),s(e,V,l),s(e,ge,l),o(N,e,l),s(e,Ae,l),s(e,D,l),s(e,Oe,l),o(B,e,l),s(e,Ve,l),s(e,F,l),s(e,Ne,l),o(R,e,l),s(e,De,l),s(e,Z,l),s(e,Be,l),o(_,e,l),s(e,Fe,l),s(e,x,l),s(e,Re,l),o(G,e,l),s(e,Ze,l),s(e,E,l),s(e,_e,l),o(H,e,l),s(e,xe,l),s(e,X,l),s(e,Ge,l),s(e,L,l),s(e,Ee,l),o(S,e,l),s(e,He,l),s(e,Y,l),s(e,Xe,l),o(q,e,l),s(e,Le,l),s(e,z,l),s(e,Se,l),s(e,W,l),s(e,Ye,l),o(P,e,l),s(e,qe,l),s(e,K,l),s(e,ze,l),o(ee,e,l),s(e,We,l),o(le,e,l),s(e,Pe,l),o(te,e,l),s(e,Ke,l),s(e,se,l),s(e,el,l),o(ae,e,l),s(e,ll,l),s(e,ne,l),s(e,tl,l),o(ie,e,l),s(e,sl,l),s(e,Me,l),s(e,al,l),o(Te,e,l),s(e,nl,l),s(e,oe,l),il=!0},p:Dl,i(e){il||(J(w.$$.fragment,e),J(h.$$.fragment,e),J(I.$$.fragment,e),J($.$$.fragment,e),J(k.$$.fragment,e),J(g.$$.fragment,e),J(O.$$.fragment,e),J(N.$$.fragment,e),J(B.$$.fragment,e),J(R.$$.fragment,e),J(_.$$.fragment,e),J(G.$$.fragment,e),J(H.$$.fragment,e),J(S.$$.fragment,e),J(q.$$.fragment,e),J(P.$$.fragment,e),J(ee.$$.fragment,e),J(le.$$.fragment,e),J(te.$$.fragment,e),J(ae.$$.fragment,e),J(ie.$$.fragment,e),J(Te.$$.fragment,e),il=!0)},o(e){m(w.$$.fragment,e),m(h.$$.fragment,e),m(I.$$.fragment,e),m($.$$.fragment,e),m(k.$$.fragment,e),m(g.$$.fragment,e),m(O.$$.fragment,e),m(N.$$.fragment,e),m(B.$$.fragment,e),m(R.$$.fragment,e),m(_.$$.fragment,e),m(G.$$.fragment,e),m(H.$$.fragment,e),m(S.$$.fragment,e),m(q.$$.fragment,e),m(P.$$.fragment,e),m(ee.$$.fragment,e),m(le.$$.fragment,e),m(te.$$.fragment,e),m(ae.$$.fragment,e),m(ie.$$.fragment,e),m(Te.$$.fragment,e),il=!1},d(e){e&&(t(Je),t(pe),t(me),t(ye),t(c),t(re),t(f),t(de),t(u),t(we),t(C),t(ce),t(fe),t(j),t(ue),t(Ce),t(b),t(he),t(je),t(v),t(Ie),t(be),t(Q),t($e),t(ve),t(A),t(ke),t(Qe),t(V),t(ge),t(Ae),t(D),t(Oe),t(Ve),t(F),t(Ne),t(De),t(Z),t(Be),t(Fe),t(x),t(Re),t(Ze),t(E),t(_e),t(xe),t(X),t(Ge),t(L),t(Ee),t(He),t(Y),t(Xe),t(Le),t(z),t(Se),t(W),t(Ye),t(qe),t(K),t(ze),t(We),t(Pe),t(Ke),t(se),t(el),t(ll),t(ne),t(tl),t(sl),t(Me),t(al),t(nl),t(oe)),t(d),y(w,e),y(h,e),y(I,e),y($,e),y(k,e),y(g,e),y(O,e),y(N,e),y(B,e),y(R,e),y(_,e),y(G,e),y(H,e),y(S,e),y(q,e),y(P,e),y(ee,e),y(le,e),y(te,e),y(ae,e),y(ie,e),y(Te,e)}}}const El='{"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 Hl(Ml){return Bl(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ql extends Fl{constructor(d){super(),Rl(this,d,Hl,Gl,Nl,{})}}export{ql as component};
