Buckets:

rtrm's picture
download
raw
23.1 kB
import{s as gt,o as Zt,n as Ke}from"../chunks/scheduler.bdbef820.js";import{S as vt,i as Ut,g as i,s as l,r,A as Gt,h as d,f as s,c as n,j as Tt,u as m,x as y,k as Jt,y as kt,a,v as c,d as f,t as u,w as h}from"../chunks/index.c0aea24a.js";import{T as Oe}from"../chunks/Tip.31005f7d.js";import{C as $}from"../chunks/CodeBlock.6ccca92e.js";import{H as de,E as Rt}from"../chunks/EditOnGithub.725ee0c1.js";function xt(w){let p,M='You can control access to your dataset by requiring users to share their contact information first. Check out the <a href="https://huggingface.co/docs/hub/datasets-gated" rel="nofollow">Gated datasets</a> guide for more information about how to enable this feature on the Hub.';return{c(){p=i("p"),p.innerHTML=M},l(o){p=d(o,"P",{"data-svelte-h":!0}),y(p)!=="svelte-ztusze"&&(p.innerHTML=M)},m(o,b){a(o,p,b)},p:Ke,d(o){o&&s(p)}}}function Wt(w){let p,M='💡 Take a look at the <a href="repository_structure#split-pattern-hierarchy">Split pattern hierarchy</a> to learn more about how <code>VideoFolder</code> creates dataset splits based on your dataset repository structure.';return{c(){p=i("p"),p.innerHTML=M},l(o){p=d(o,"P",{"data-svelte-h":!0}),y(p)!=="svelte-1iaaatg"&&(p.innerHTML=M)},m(o,b){a(o,p,b)},p:Ke,d(o){o&&s(p)}}}function _t(w){let p,M="If all video files are contained in a single directory or if they are not on the same level of directory structure, <code>label</code> column won’t be added automatically. If you need it, set <code>drop_labels=False</code> explicitly.";return{c(){p=i("p"),p.innerHTML=M},l(o){p=d(o,"P",{"data-svelte-h":!0}),y(p)!=="svelte-bgajrm"&&(p.innerHTML=M)},m(o,b){a(o,p,b)},p:Ke,d(o){o&&s(p)}}}function Ct(w){let p,M="If metadata files are present, the inferred labels based on the directory name are dropped by default. To include those labels, set <code>drop_labels=False</code> in <code>load_dataset</code>.";return{c(){p=i("p"),p.innerHTML=M},l(o){p=d(o,"P",{"data-svelte-h":!0}),y(p)!=="svelte-1vr6o4"&&(p.innerHTML=M)},m(o,b){a(o,p,b)},p:Ke,d(o){o&&s(p)}}}function It(w){let p,M,o,b,Z,re,v,et="This guide will show you how to create a video dataset with <code>VideoFolder</code> and some metadata. This is a no-code solution for quickly creating a video dataset with several thousand videos.",me,j,ce,U,fe,G,tt="The <code>VideoFolder</code> is a dataset builder designed to quickly load a video dataset with several thousand videos without requiring you to write any code.",ue,T,he,k,st="<code>VideoFolder</code> automatically infers the class labels of your dataset based on the directory name. Store your dataset in a directory structure like:",ye,R,Me,x,at='Then users can load your dataset by specifying <code>videofolder</code> in <a href="/docs/datasets/pr_7385/en/package_reference/loading_methods#datasets.load_dataset">load_dataset()</a> and the directory in <code>data_dir</code>:',$e,W,be,_,lt="You can also use <code>videofolder</code> to load datasets involving multiple splits. To do so, your dataset directory should have the following structure:",we,C,je,J,Te,I,nt="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 folder. This lets you quickly create datasets for different computer vision tasks like text captioning or object detection. You can also use a JSONL file <code>metadata.jsonl</code>.",Je,Y,ge,H,pt="You can also zip your videos:",Ze,B,ve,X,ot="Your <code>metadata.csv</code> file must have a <code>file_name</code> column which links video files with their metadata:",Ue,V,Ge,q,it="or using <code>metadata.jsonl</code>:",ke,Q,Re,g,xe,F,We,N,dt="Video captioning datasets have text describing a video. An example <code>metadata.csv</code> may look like:",_e,L,Ce,E,rt="Load the dataset with <code>VideoFolder</code>, and it will create a <code>text</code> column for the video captions:",Ie,D,Ye,A,He,z,mt='Once you’ve created a dataset, you can share it to the using <code>huggingface_hub</code> for example. Make sure you have the <a href="https://huggingface.co/docs/huggingface_hub/index" rel="nofollow">huggingface_hub</a> library installed and you’re logged in to your Hugging Face account (see the <a href="upload_dataset#upload-with-python">Upload with Python tutorial</a> for more details).',Be,S,ct="Upload your dataset with <code>huggingface_hub.HfApi.upload_folder</code>:",Xe,P,Ve,O,qe,K,ft=`The <a href="https://github.com/webdataset/webdataset" rel="nofollow">WebDataset</a> format is based on TAR archives and is suitable for big video datasets.
Indeed you can group your videos in TAR archives (e.g. 1GB of videos per TAR archive) and have thousands of TAR archives:`,Qe,ee,Fe,te,ut="In the archives, each example is made of files sharing the same prefix:",Ne,se,Le,ae,ht="You can put your videos labels/captions/features using JSON or text files for example.",Ee,le,yt='For more details on the WebDataset format and the python library, please check the <a href="https://webdataset.github.io/webdataset" rel="nofollow">WebDataset documentation</a>.',De,ne,Mt="Load your WebDataset and it will create on column per file suffix (here “mp4” and “json”):",Ae,pe,ze,oe,Se,ie,Pe;return Z=new de({props:{title:"Create a video dataset",local:"create-a-video-dataset",headingTag:"h1"}}),j=new Oe({props:{$$slots:{default:[xt]},$$scope:{ctx:w}}}),U=new de({props:{title:"VideoFolder",local:"videofolder",headingTag:"h2"}}),T=new Oe({props:{$$slots:{default:[Wt]},$$scope:{ctx:w}}}),R=new $({props:{code:"Zm9sZGVyJTJGdHJhaW4lMkZkb2clMkZnb2xkZW5fcmV0cmlldmVyLm1wNCUwQWZvbGRlciUyRnRyYWluJTJGZG9nJTJGZ2VybWFuX3NoZXBoZXJkLm1wNCUwQWZvbGRlciUyRnRyYWluJTJGZG9nJTJGY2hpaHVhaHVhLm1wNCUwQSUwQWZvbGRlciUyRnRyYWluJTJGY2F0JTJGbWFpbmVfY29vbi5tcDQlMEFmb2xkZXIlMkZ0cmFpbiUyRmNhdCUyRmJlbmdhbC5tcDQlMEFmb2xkZXIlMkZ0cmFpbiUyRmNhdCUyRmJpcm1hbi5tcDQ=",highlighted:`folder<span class="hljs-regexp">/train/</span>dog/golden_retriever.mp4
folder<span class="hljs-regexp">/train/</span>dog/german_shepherd.mp4
folder<span class="hljs-regexp">/train/</span>dog/chihuahua.mp4
folder<span class="hljs-regexp">/train/</span>cat/maine_coon.mp4
folder<span class="hljs-regexp">/train/</span>cat/bengal.mp4
folder<span class="hljs-regexp">/train/</span>cat/birman.mp4`,wrap:!1}}),W=new $({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJ2aWRlb2ZvbGRlciUyMiUyQyUyMGRhdGFfZGlyJTNEJTIyJTJGcGF0aCUyRnRvJTJGZm9sZGVyJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;videofolder&quot;</span>, data_dir=<span class="hljs-string">&quot;/path/to/folder&quot;</span>)`,wrap:!1}}),C=new $({props:{code:"Zm9sZGVyJTJGdHJhaW4lMkZkb2clMkZnb2xkZW5fcmV0cmlldmVyLm1wNCUwQWZvbGRlciUyRnRyYWluJTJGY2F0JTJGbWFpbmVfY29vbi5tcDQlMEFmb2xkZXIlMkZ0ZXN0JTJGZG9nJTJGZ2VybWFuX3NoZXBoZXJkLm1wNCUwQWZvbGRlciUyRnRlc3QlMkZjYXQlMkZiZW5nYWwubXA0",highlighted:`folder<span class="hljs-regexp">/train/</span>dog/golden_retriever.mp4
folder<span class="hljs-regexp">/train/</span>cat/maine_coon.mp4
folder<span class="hljs-regexp">/test/</span>dog/german_shepherd.mp4
folder<span class="hljs-regexp">/test/</span>cat/bengal.mp4`,wrap:!1}}),J=new Oe({props:{warning:!0,$$slots:{default:[_t]},$$scope:{ctx:w}}}),Y=new $({props:{code:"Zm9sZGVyJTJGdHJhaW4lMkZtZXRhZGF0YS5jc3YlMEFmb2xkZXIlMkZ0cmFpbiUyRjAwMDEubXA0JTBBZm9sZGVyJTJGdHJhaW4lMkYwMDAyLm1wNCUwQWZvbGRlciUyRnRyYWluJTJGMDAwMy5tcDQ=",highlighted:`folder<span class="hljs-regexp">/train/m</span>etadata.csv
folder<span class="hljs-regexp">/train/</span><span class="hljs-number">0001</span>.mp4
folder<span class="hljs-regexp">/train/</span><span class="hljs-number">0002</span>.mp4
folder<span class="hljs-regexp">/train/</span><span class="hljs-number">0003</span>.mp4`,wrap:!1}}),B=new $({props:{code:"Zm9sZGVyJTJGbWV0YWRhdGEuY3N2JTBBZm9sZGVyJTJGdHJhaW4uemlwJTBBZm9sZGVyJTJGdGVzdC56aXAlMEFmb2xkZXIlMkZ2YWxpZC56aXA=",highlighted:`folder/metadata.csv
folder/train.zip
folder/test.zip
folder/valid.zip`,wrap:!1}}),V=new $({props:{code:"ZmlsZV9uYW1lJTJDYWRkaXRpb25hbF9mZWF0dXJlJTBBMDAwMS5tcDQlMkNUaGlzJTIwaXMlMjBhJTIwZmlyc3QlMjB2YWx1ZSUyMG9mJTIwYSUyMHRleHQlMjBmZWF0dXJlJTIweW91JTIwYWRkZWQlMjB0byUyMHlvdXIlMjB2aWRlb3MlMEEwMDAyLm1wNCUyQ1RoaXMlMjBpcyUyMGElMjBzZWNvbmQlMjB2YWx1ZSUyMG9mJTIwYSUyMHRleHQlMjBmZWF0dXJlJTIweW91JTIwYWRkZWQlMjB0byUyMHlvdXIlMjB2aWRlb3MlMEEwMDAzLm1wNCUyQ1RoaXMlMjBpcyUyMGElMjB0aGlyZCUyMHZhbHVlJTIwb2YlMjBhJTIwdGV4dCUyMGZlYXR1cmUlMjB5b3UlMjBhZGRlZCUyMHRvJTIweW91ciUyMHZpZGVvcw==",highlighted:`file_name,additional_feature
<span class="hljs-number">0001.</span>mp4,This is <span class="hljs-keyword">a</span> <span class="hljs-keyword">first</span> <span class="hljs-built_in">value</span> <span class="hljs-keyword">of</span> <span class="hljs-keyword">a</span> <span class="hljs-keyword">text</span> feature you added <span class="hljs-built_in">to</span> your videos
<span class="hljs-number">0002.</span>mp4,This is <span class="hljs-keyword">a</span> <span class="hljs-keyword">second</span> <span class="hljs-built_in">value</span> <span class="hljs-keyword">of</span> <span class="hljs-keyword">a</span> <span class="hljs-keyword">text</span> feature you added <span class="hljs-built_in">to</span> your videos
<span class="hljs-number">0003.</span>mp4,This is <span class="hljs-keyword">a</span> <span class="hljs-keyword">third</span> <span class="hljs-built_in">value</span> <span class="hljs-keyword">of</span> <span class="hljs-keyword">a</span> <span class="hljs-keyword">text</span> feature you added <span class="hljs-built_in">to</span> your videos`,wrap:!1}}),Q=new $({props:{code:"JTdCJTIyZmlsZV9uYW1lJTIyJTNBJTIwJTIyMDAwMS5tcDQlMjIlMkMlMjAlMjJhZGRpdGlvbmFsX2ZlYXR1cmUlMjIlM0ElMjAlMjJUaGlzJTIwaXMlMjBhJTIwZmlyc3QlMjB2YWx1ZSUyMG9mJTIwYSUyMHRleHQlMjBmZWF0dXJlJTIweW91JTIwYWRkZWQlMjB0byUyMHlvdXIlMjB2aWRlb3MlMjIlN0QlMEElN0IlMjJmaWxlX25hbWUlMjIlM0ElMjAlMjIwMDAyLm1wNCUyMiUyQyUyMCUyMmFkZGl0aW9uYWxfZmVhdHVyZSUyMiUzQSUyMCUyMlRoaXMlMjBpcyUyMGElMjBzZWNvbmQlMjB2YWx1ZSUyMG9mJTIwYSUyMHRleHQlMjBmZWF0dXJlJTIweW91JTIwYWRkZWQlMjB0byUyMHlvdXIlMjB2aWRlb3MlMjIlN0QlMEElN0IlMjJmaWxlX25hbWUlMjIlM0ElMjAlMjIwMDAzLm1wNCUyMiUyQyUyMCUyMmFkZGl0aW9uYWxfZmVhdHVyZSUyMiUzQSUyMCUyMlRoaXMlMjBpcyUyMGElMjB0aGlyZCUyMHZhbHVlJTIwb2YlMjBhJTIwdGV4dCUyMGZlYXR1cmUlMjB5b3UlMjBhZGRlZCUyMHRvJTIweW91ciUyMHZpZGVvcyUyMiU3RA==",highlighted:`{<span class="hljs-comment">&quot;file_name&quot;</span>: <span class="hljs-comment">&quot;0001.mp4&quot;</span>, <span class="hljs-comment">&quot;additional_feature&quot;</span>: <span class="hljs-comment">&quot;This is a first value of a text feature you added to your videos&quot;</span>}
{<span class="hljs-comment">&quot;file_name&quot;</span>: <span class="hljs-comment">&quot;0002.mp4&quot;</span>, <span class="hljs-comment">&quot;additional_feature&quot;</span>: <span class="hljs-comment">&quot;This is a second value of a text feature you added to your videos&quot;</span>}
{<span class="hljs-comment">&quot;file_name&quot;</span>: <span class="hljs-comment">&quot;0003.mp4&quot;</span>, <span class="hljs-comment">&quot;additional_feature&quot;</span>: <span class="hljs-comment">&quot;This is a third value of a text feature you added to your videos&quot;</span>}`,wrap:!1}}),g=new Oe({props:{$$slots:{default:[Ct]},$$scope:{ctx:w}}}),F=new de({props:{title:"Video captioning",local:"video-captioning",headingTag:"h3"}}),L=new $({props:{code:"ZmlsZV9uYW1lJTJDdGV4dCUwQTAwMDEubXA0JTJDVGhpcyUyMGlzJTIwYSUyMGdvbGRlbiUyMHJldHJpZXZlciUyMHBsYXlpbmclMjB3aXRoJTIwYSUyMGJhbGwlMEEwMDAyLm1wNCUyQ0ElMjBnZXJtYW4lMjBzaGVwaGVyZCUwQTAwMDMubXA0JTJDT25lJTIwY2hpaHVhaHVh",highlighted:`file_name,text
<span class="hljs-number">0001</span><span class="hljs-selector-class">.mp4</span>,This is <span class="hljs-selector-tag">a</span> golden retriever playing with <span class="hljs-selector-tag">a</span> ball
<span class="hljs-number">0002</span><span class="hljs-selector-class">.mp4</span>,A german shepherd
<span class="hljs-number">0003</span><span class="hljs-selector-class">.mp4</span>,One chihuahua`,wrap:!1}}),D=new $({props:{code:"ZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJ2aWRlb2ZvbGRlciUyMiUyQyUyMGRhdGFfZGlyJTNEJTIyJTJGcGF0aCUyRnRvJTJGZm9sZGVyJTIyJTJDJTIwc3BsaXQlM0QlMjJ0cmFpbiUyMiklMEFkYXRhc2V0JTVCMCU1RCU1QiUyMnRleHQlMjIlNUQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;videofolder&quot;</span>, data_dir=<span class="hljs-string">&quot;/path/to/folder&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;text&quot;</span>]
<span class="hljs-string">&quot;This is a golden retriever playing with a ball&quot;</span>`,wrap:!1}}),A=new de({props:{title:"Upload dataset to the Hub",local:"upload-dataset-to-the-hub",headingTag:"h3"}}),P=new $({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQSUwQWFwaS51cGxvYWRfZm9sZGVyKCUwQSUyMCUyMCUyMCUyMGZvbGRlcl9wYXRoJTNEJTIyJTJGcGF0aCUyRnRvJTJGbG9jYWwlMkZkYXRhc2V0JTIyJTJDJTBBJTIwJTIwJTIwJTIwcmVwb19pZCUzRCUyMnVzZXJuYW1lJTJGbXktY29vbC1kYXRhc2V0JTIyJTJDJTBBJTIwJTIwJTIwJTIwcmVwb190eXBlJTNEJTIyZGF0YXNldCUyMiUyQyUwQSk=",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi
api = HfApi()
api.upload_folder(
folder_path=<span class="hljs-string">&quot;/path/to/local/dataset&quot;</span>,
repo_id=<span class="hljs-string">&quot;username/my-cool-dataset&quot;</span>,
repo_type=<span class="hljs-string">&quot;dataset&quot;</span>,
)`,wrap:!1}}),O=new de({props:{title:"WebDataset",local:"webdataset",headingTag:"h2"}}),ee=new $({props:{code:"Zm9sZGVyJTJGdHJhaW4lMkYwMDAwMC50YXIlMEFmb2xkZXIlMkZ0cmFpbiUyRjAwMDAxLnRhciUwQWZvbGRlciUyRnRyYWluJTJGMDAwMDIudGFyJTBBLi4u",highlighted:`folder<span class="hljs-regexp">/train/</span><span class="hljs-number">00000</span>.tar
folder<span class="hljs-regexp">/train/</span><span class="hljs-number">00001</span>.tar
folder<span class="hljs-regexp">/train/</span><span class="hljs-number">00002</span>.tar
...`,wrap:!1}}),se=new $({props:{code:"ZTM5ODcxZmQ5ZmQ3NGY1NS5tcDQlMEFlMzk4NzFmZDlmZDc0ZjU1Lmpzb24lMEFmMThiOTE1ODVjNGQzZjNlLm1wNCUwQWYxOGI5MTU4NWM0ZDNmM2UuanNvbiUwQWVkZTZlNjZiMmZiNTlhYWIubXA0JTBBZWRlNmU2NmIyZmI1OWFhYi5qc29uJTBBZWQ2MDBkNTdmY2VlNGY5NC5tcDQlMEFlZDYwMGQ1N2ZjZWU0Zjk0Lmpzb24lMEEuLi4=",highlighted:`e39871fd9fd74f55<span class="hljs-selector-class">.mp4</span>
e39871fd9fd74f55<span class="hljs-selector-class">.json</span>
f18b91585c4d3f3e<span class="hljs-selector-class">.mp4</span>
f18b91585c4d3f3e<span class="hljs-selector-class">.json</span>
ede6e66b2fb59aab<span class="hljs-selector-class">.mp4</span>
ede6e66b2fb59aab<span class="hljs-selector-class">.json</span>
ed600d57fcee4f94<span class="hljs-selector-class">.mp4</span>
ed600d57fcee4f94<span class="hljs-selector-class">.json</span>
...`,wrap:!1}}),pe=new $({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJ3ZWJkYXRhc2V0JTIyJTJDJTIwZGF0YV9kaXIlM0QlMjIlMkZwYXRoJTJGdG8lMkZmb2xkZXIlMjIlMkMlMjBzcGxpdCUzRCUyMnRyYWluJTIyKSUwQWRhdGFzZXQlNUIwJTVEJTVCJTIyanNvbiUyMiU1RA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;webdataset&quot;</span>, data_dir=<span class="hljs-string">&quot;/path/to/folder&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;json&quot;</span>]
{<span class="hljs-string">&quot;bbox&quot;</span>: [[<span class="hljs-number">302.0</span>, <span class="hljs-number">109.0</span>, <span class="hljs-number">73.0</span>, <span class="hljs-number">52.0</span>]], <span class="hljs-string">&quot;categories&quot;</span>: [<span class="hljs-number">0</span>]}`,wrap:!1}}),oe=new Rt({props:{source:"https://github.com/huggingface/datasets/blob/main/docs/source/video_dataset.mdx"}}),{c(){p=i("meta"),M=l(),o=i("p"),b=l(),r(Z.$$.fragment),re=l(),v=i("p"),v.innerHTML=et,me=l(),r(j.$$.fragment),ce=l(),r(U.$$.fragment),fe=l(),G=i("p"),G.innerHTML=tt,ue=l(),r(T.$$.fragment),he=l(),k=i("p"),k.innerHTML=st,ye=l(),r(R.$$.fragment),Me=l(),x=i("p"),x.innerHTML=at,$e=l(),r(W.$$.fragment),be=l(),_=i("p"),_.innerHTML=lt,we=l(),r(C.$$.fragment),je=l(),r(J.$$.fragment),Te=l(),I=i("p"),I.innerHTML=nt,Je=l(),r(Y.$$.fragment),ge=l(),H=i("p"),H.textContent=pt,Ze=l(),r(B.$$.fragment),ve=l(),X=i("p"),X.innerHTML=ot,Ue=l(),r(V.$$.fragment),Ge=l(),q=i("p"),q.innerHTML=it,ke=l(),r(Q.$$.fragment),Re=l(),r(g.$$.fragment),xe=l(),r(F.$$.fragment),We=l(),N=i("p"),N.innerHTML=dt,_e=l(),r(L.$$.fragment),Ce=l(),E=i("p"),E.innerHTML=rt,Ie=l(),r(D.$$.fragment),Ye=l(),r(A.$$.fragment),He=l(),z=i("p"),z.innerHTML=mt,Be=l(),S=i("p"),S.innerHTML=ct,Xe=l(),r(P.$$.fragment),Ve=l(),r(O.$$.fragment),qe=l(),K=i("p"),K.innerHTML=ft,Qe=l(),r(ee.$$.fragment),Fe=l(),te=i("p"),te.textContent=ut,Ne=l(),r(se.$$.fragment),Le=l(),ae=i("p"),ae.textContent=ht,Ee=l(),le=i("p"),le.innerHTML=yt,De=l(),ne=i("p"),ne.textContent=Mt,Ae=l(),r(pe.$$.fragment),ze=l(),r(oe.$$.fragment),Se=l(),ie=i("p"),this.h()},l(e){const t=Gt("svelte-u9bgzb",document.head);p=d(t,"META",{name:!0,content:!0}),t.forEach(s),M=n(e),o=d(e,"P",{}),Tt(o).forEach(s),b=n(e),m(Z.$$.fragment,e),re=n(e),v=d(e,"P",{"data-svelte-h":!0}),y(v)!=="svelte-1bv94t6"&&(v.innerHTML=et),me=n(e),m(j.$$.fragment,e),ce=n(e),m(U.$$.fragment,e),fe=n(e),G=d(e,"P",{"data-svelte-h":!0}),y(G)!=="svelte-1ycgm9f"&&(G.innerHTML=tt),ue=n(e),m(T.$$.fragment,e),he=n(e),k=d(e,"P",{"data-svelte-h":!0}),y(k)!=="svelte-17l0fb0"&&(k.innerHTML=st),ye=n(e),m(R.$$.fragment,e),Me=n(e),x=d(e,"P",{"data-svelte-h":!0}),y(x)!=="svelte-xltxpq"&&(x.innerHTML=at),$e=n(e),m(W.$$.fragment,e),be=n(e),_=d(e,"P",{"data-svelte-h":!0}),y(_)!=="svelte-hzh3ks"&&(_.innerHTML=lt),we=n(e),m(C.$$.fragment,e),je=n(e),m(J.$$.fragment,e),Te=n(e),I=d(e,"P",{"data-svelte-h":!0}),y(I)!=="svelte-vr9we4"&&(I.innerHTML=nt),Je=n(e),m(Y.$$.fragment,e),ge=n(e),H=d(e,"P",{"data-svelte-h":!0}),y(H)!=="svelte-1ftag94"&&(H.textContent=pt),Ze=n(e),m(B.$$.fragment,e),ve=n(e),X=d(e,"P",{"data-svelte-h":!0}),y(X)!=="svelte-d633kt"&&(X.innerHTML=ot),Ue=n(e),m(V.$$.fragment,e),Ge=n(e),q=d(e,"P",{"data-svelte-h":!0}),y(q)!=="svelte-16ywdcf"&&(q.innerHTML=it),ke=n(e),m(Q.$$.fragment,e),Re=n(e),m(g.$$.fragment,e),xe=n(e),m(F.$$.fragment,e),We=n(e),N=d(e,"P",{"data-svelte-h":!0}),y(N)!=="svelte-wjodyx"&&(N.innerHTML=dt),_e=n(e),m(L.$$.fragment,e),Ce=n(e),E=d(e,"P",{"data-svelte-h":!0}),y(E)!=="svelte-10mkyte"&&(E.innerHTML=rt),Ie=n(e),m(D.$$.fragment,e),Ye=n(e),m(A.$$.fragment,e),He=n(e),z=d(e,"P",{"data-svelte-h":!0}),y(z)!=="svelte-lvrx1l"&&(z.innerHTML=mt),Be=n(e),S=d(e,"P",{"data-svelte-h":!0}),y(S)!=="svelte-1y2guln"&&(S.innerHTML=ct),Xe=n(e),m(P.$$.fragment,e),Ve=n(e),m(O.$$.fragment,e),qe=n(e),K=d(e,"P",{"data-svelte-h":!0}),y(K)!=="svelte-vihcr3"&&(K.innerHTML=ft),Qe=n(e),m(ee.$$.fragment,e),Fe=n(e),te=d(e,"P",{"data-svelte-h":!0}),y(te)!=="svelte-69nbou"&&(te.textContent=ut),Ne=n(e),m(se.$$.fragment,e),Le=n(e),ae=d(e,"P",{"data-svelte-h":!0}),y(ae)!=="svelte-15hkn5q"&&(ae.textContent=ht),Ee=n(e),le=d(e,"P",{"data-svelte-h":!0}),y(le)!=="svelte-12q6x7f"&&(le.innerHTML=yt),De=n(e),ne=d(e,"P",{"data-svelte-h":!0}),y(ne)!=="svelte-1dk8isd"&&(ne.textContent=Mt),Ae=n(e),m(pe.$$.fragment,e),ze=n(e),m(oe.$$.fragment,e),Se=n(e),ie=d(e,"P",{}),Tt(ie).forEach(s),this.h()},h(){Jt(p,"name","hf:doc:metadata"),Jt(p,"content",Yt)},m(e,t){kt(document.head,p),a(e,M,t),a(e,o,t),a(e,b,t),c(Z,e,t),a(e,re,t),a(e,v,t),a(e,me,t),c(j,e,t),a(e,ce,t),c(U,e,t),a(e,fe,t),a(e,G,t),a(e,ue,t),c(T,e,t),a(e,he,t),a(e,k,t),a(e,ye,t),c(R,e,t),a(e,Me,t),a(e,x,t),a(e,$e,t),c(W,e,t),a(e,be,t),a(e,_,t),a(e,we,t),c(C,e,t),a(e,je,t),c(J,e,t),a(e,Te,t),a(e,I,t),a(e,Je,t),c(Y,e,t),a(e,ge,t),a(e,H,t),a(e,Ze,t),c(B,e,t),a(e,ve,t),a(e,X,t),a(e,Ue,t),c(V,e,t),a(e,Ge,t),a(e,q,t),a(e,ke,t),c(Q,e,t),a(e,Re,t),c(g,e,t),a(e,xe,t),c(F,e,t),a(e,We,t),a(e,N,t),a(e,_e,t),c(L,e,t),a(e,Ce,t),a(e,E,t),a(e,Ie,t),c(D,e,t),a(e,Ye,t),c(A,e,t),a(e,He,t),a(e,z,t),a(e,Be,t),a(e,S,t),a(e,Xe,t),c(P,e,t),a(e,Ve,t),c(O,e,t),a(e,qe,t),a(e,K,t),a(e,Qe,t),c(ee,e,t),a(e,Fe,t),a(e,te,t),a(e,Ne,t),c(se,e,t),a(e,Le,t),a(e,ae,t),a(e,Ee,t),a(e,le,t),a(e,De,t),a(e,ne,t),a(e,Ae,t),c(pe,e,t),a(e,ze,t),c(oe,e,t),a(e,Se,t),a(e,ie,t),Pe=!0},p(e,[t]){const $t={};t&2&&($t.$$scope={dirty:t,ctx:e}),j.$set($t);const bt={};t&2&&(bt.$$scope={dirty:t,ctx:e}),T.$set(bt);const wt={};t&2&&(wt.$$scope={dirty:t,ctx:e}),J.$set(wt);const jt={};t&2&&(jt.$$scope={dirty:t,ctx:e}),g.$set(jt)},i(e){Pe||(f(Z.$$.fragment,e),f(j.$$.fragment,e),f(U.$$.fragment,e),f(T.$$.fragment,e),f(R.$$.fragment,e),f(W.$$.fragment,e),f(C.$$.fragment,e),f(J.$$.fragment,e),f(Y.$$.fragment,e),f(B.$$.fragment,e),f(V.$$.fragment,e),f(Q.$$.fragment,e),f(g.$$.fragment,e),f(F.$$.fragment,e),f(L.$$.fragment,e),f(D.$$.fragment,e),f(A.$$.fragment,e),f(P.$$.fragment,e),f(O.$$.fragment,e),f(ee.$$.fragment,e),f(se.$$.fragment,e),f(pe.$$.fragment,e),f(oe.$$.fragment,e),Pe=!0)},o(e){u(Z.$$.fragment,e),u(j.$$.fragment,e),u(U.$$.fragment,e),u(T.$$.fragment,e),u(R.$$.fragment,e),u(W.$$.fragment,e),u(C.$$.fragment,e),u(J.$$.fragment,e),u(Y.$$.fragment,e),u(B.$$.fragment,e),u(V.$$.fragment,e),u(Q.$$.fragment,e),u(g.$$.fragment,e),u(F.$$.fragment,e),u(L.$$.fragment,e),u(D.$$.fragment,e),u(A.$$.fragment,e),u(P.$$.fragment,e),u(O.$$.fragment,e),u(ee.$$.fragment,e),u(se.$$.fragment,e),u(pe.$$.fragment,e),u(oe.$$.fragment,e),Pe=!1},d(e){e&&(s(M),s(o),s(b),s(re),s(v),s(me),s(ce),s(fe),s(G),s(ue),s(he),s(k),s(ye),s(Me),s(x),s($e),s(be),s(_),s(we),s(je),s(Te),s(I),s(Je),s(ge),s(H),s(Ze),s(ve),s(X),s(Ue),s(Ge),s(q),s(ke),s(Re),s(xe),s(We),s(N),s(_e),s(Ce),s(E),s(Ie),s(Ye),s(He),s(z),s(Be),s(S),s(Xe),s(Ve),s(qe),s(K),s(Qe),s(Fe),s(te),s(Ne),s(Le),s(ae),s(Ee),s(le),s(De),s(ne),s(Ae),s(ze),s(Se),s(ie)),s(p),h(Z,e),h(j,e),h(U,e),h(T,e),h(R,e),h(W,e),h(C,e),h(J,e),h(Y,e),h(B,e),h(V,e),h(Q,e),h(g,e),h(F,e),h(L,e),h(D,e),h(A,e),h(P,e),h(O,e),h(ee,e),h(se,e),h(pe,e),h(oe,e)}}}const Yt='{"title":"Create a video dataset","local":"create-a-video-dataset","sections":[{"title":"VideoFolder","local":"videofolder","sections":[{"title":"Video captioning","local":"video-captioning","sections":[],"depth":3},{"title":"Upload dataset to the Hub","local":"upload-dataset-to-the-hub","sections":[],"depth":3}],"depth":2},{"title":"WebDataset","local":"webdataset","sections":[],"depth":2}],"depth":1}';function Ht(w){return Zt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ft extends vt{constructor(p){super(),Ut(this,p,Ht,It,gt,{})}}export{Ft as component};

Xet Storage Details

Size:
23.1 kB
·
Xet hash:
67a1d25acbad45cfbef37c1718ef230e93e6f6322a574ab3344d8a0883f59538

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.