Buckets:

HuggingFaceDocBuilder's picture
download
raw
26.2 kB
import{s as Xs,n as Rs,o as Bs}from"../chunks/scheduler.d75c11ed.js";import{S as Fs,i as Hs,e as p,s as l,c as d,h as Ws,a as o,d as e,b as n,f as xs,g as h,j as i,k as ut,l as Ns,m as a,n as r,t as u,o as c,p as m}from"../chunks/index.4ec9dfe9.js";import{C as Vs,H as ct,E as Ls}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.32426a19.js";import{C as f}from"../chunks/CodeBlock.e4ba000a.js";function Qs(hs){let y,mt,ht,ft,w,yt,g,Mt,j,rs="There are two methods for creating and sharing a mesh dataset. This guide will show you how to:",Jt,b,us='<li><p>Create a mesh dataset from local files in python with <a href="/docs/datasets/pr_8255/en/package_reference/main_classes#datasets.Dataset.push_to_hub">Dataset.push_to_hub()</a>. This is an easy way that requires only a few steps in python.</p></li> <li><p>Create a mesh dataset with <code>MeshFolder</code> and some metadata. This is a no-code solution for quickly creating a mesh dataset with several thousand 3D files.</p></li>',Tt,M,cs='<p>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.</p>',wt,$,gt,Z,ms='You can load your own dataset using the paths to your mesh files. Use the <a href="/docs/datasets/pr_8255/en/package_reference/main_classes#datasets.Dataset.cast_column">cast_column()</a> function to take a column of mesh file paths, and cast it to the <a href="/docs/datasets/pr_8255/en/package_reference/main_classes#datasets.Mesh">Mesh</a> feature:',jt,_,bt,G,fs='Then upload the dataset to the Hugging Face Hub using <a href="/docs/datasets/pr_8255/en/package_reference/main_classes#datasets.Dataset.push_to_hub">Dataset.push_to_hub()</a>:',$t,k,Zt,I,ys="This will create a dataset repository containing your mesh dataset:",_t,U,Gt,q,kt,C,Ms="The <code>MeshFolder</code> is a dataset builder designed to quickly load a mesh dataset with several thousand mesh files without requiring you to write any code.",It,J,Js='<p>Take a look at the <a href="repository_structure#split-pattern-hierarchy">Split pattern hierarchy</a> to learn more about how <code>MeshFolder</code> creates dataset splits based on your dataset repository structure.</p>',Ut,v,Ts="<code>MeshFolder</code> automatically infers the class labels of your dataset based on the directory name. Store your dataset in a directory structure like:",qt,Y,Ct,x,ws='If the dataset follows the <code>MeshFolder</code> structure, then you can load it directly with <a href="/docs/datasets/pr_8255/en/package_reference/loading_methods#datasets.load_dataset">load_dataset()</a>:',vt,X,Yt,R,gs='This is equivalent to passing <code>meshfolder</code> manually in <a href="/docs/datasets/pr_8255/en/package_reference/loading_methods#datasets.load_dataset">load_dataset()</a> and the directory in <code>data_dir</code>:',xt,B,Xt,F,js="You can also use <code>meshfolder</code> to load datasets involving multiple splits. To do so, your dataset directory should have the following structure:",Rt,H,Bt,T,bs="<p>If all mesh 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.</p>",Ft,W,$s="If there is additional information you’d like to include about your dataset, like text captions or 3D asset metadata, add it as a <code>metadata.csv</code> file in your folder. You can also use a JSONL file <code>metadata.jsonl</code> or a Parquet file <code>metadata.parquet</code>.",Ht,N,Wt,V,Zs="You can also zip your mesh files, and in this case each zip should contain both the mesh files and the metadata.",Nt,L,Vt,Q,_s="Your <code>metadata.csv</code> file must have a <code>file_name</code> or <code>*_file_name</code> field which links mesh files with their metadata:",Lt,z,Qt,D,Gs="or using <code>metadata.jsonl</code>:",zt,A,Dt,S,ks="Here the <code>file_name</code> must be the name of the mesh file next to the metadata file. More generally, it must be the relative path from the directory containing the metadata to the mesh file.",At,E,Is="It’s possible to point to more than one mesh in each row in your dataset, for example if both your input and output are mesh files:",St,P,Et,O,Us="You can also define lists of meshes. In that case you need to name the field <code>file_names</code> or <code>*_file_names</code>. Here is an example:",Pt,K,Ot,tt,Kt,st,qs="Mesh captioning datasets have text describing a 3D mesh. An example <code>metadata.csv</code> may look like:",ts,et,ss,at,Cs="Load the dataset with <code>MeshFolder</code>, and it will create a <code>text</code> column for the mesh captions:",es,lt,as,nt,ls,pt,vs='Once you’ve created a dataset, you can share it to the Hub with the <a href="/docs/datasets/pr_8255/en/package_reference/main_classes#datasets.DatasetDict.push_to_hub">push_to_hub()</a> method. 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).',ns,ot,Ys='Upload your dataset with <a href="/docs/datasets/pr_8255/en/package_reference/main_classes#datasets.DatasetDict.push_to_hub">push_to_hub()</a>:',ps,it,os,dt,is,rt,ds;return w=new Vs({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),g=new ct({props:{title:"Create a mesh dataset",local:"create-a-mesh-dataset",headingTag:"h1"}}),$=new ct({props:{title:"Local files",local:"local-files",headingTag:"h2"}}),_=new f({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwRGF0YXNldCUyQyUyME1lc2glMEElMEFtZXNoX2RhdGFzZXQlMjAlM0QlMjBEYXRhc2V0LmZyb21fZGljdCglN0IlMjJtZXNoJTIyJTNBJTIwJTVCJTIycGF0aCUyRnRvJTJGbW9kZWxfMS5nbGIlMjIlMkMlMjAlMjJwYXRoJTJGdG8lMkZtb2RlbF8yLnBseSUyMiUyQyUyMCUyMnBhdGglMkZ0byUyRm1vZGVsXzMuc3RsJTIyJTVEJTdEKS5jYXN0X2NvbHVtbiglMjJtZXNoJTIyJTJDJTIwTWVzaCgpKSUwQW1lc2hfZGF0YXNldCU1QjAlNUQlNUIlMjJtZXNoJTIyJTVE",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> Dataset, Mesh
<span class="hljs-meta">&gt;&gt;&gt; </span>mesh_dataset = Dataset.from_dict({<span class="hljs-string">&quot;mesh&quot;</span>: [<span class="hljs-string">&quot;path/to/model_1.glb&quot;</span>, <span class="hljs-string">&quot;path/to/model_2.ply&quot;</span>, <span class="hljs-string">&quot;path/to/model_3.stl&quot;</span>]}).cast_column(<span class="hljs-string">&quot;mesh&quot;</span>, Mesh())
<span class="hljs-meta">&gt;&gt;&gt; </span>mesh_dataset[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;mesh&quot;</span>]
&lt;trimesh.Scene(<span class="hljs-built_in">len</span>(geometry)=<span class="hljs-number">33</span>)&gt;`,lang:"py",wrap:!1}}),k=new f({props:{code:"bWVzaF9kYXRhc2V0LnB1c2hfdG9faHViKCUyMiUzQ3VzZXJuYW1lJTNFJTJGbXlfZGF0YXNldCUyMik=",highlighted:'mesh_dataset.push_to_hub(<span class="hljs-string">&quot;&lt;username&gt;/my_dataset&quot;</span>)',lang:"py",wrap:!1}}),U=new f({props:{code:"bXlfZGF0YXNldCUyRlJFQURNRS5tZCUwQW15X2RhdGFzZXQlMkZkYXRhJTJGdHJhaW4tMDAwMDAtb2YtMDAwMDEucGFycXVldA==",highlighted:`my_dataset/README.md
my_dataset/data/train-00000-of-00001.parquet`,lang:"text",wrap:!1}}),q=new ct({props:{title:"MeshFolder",local:"meshfolder",headingTag:"h2"}}),Y=new f({props:{code:"Zm9sZGVyJTJGdHJhaW4lMkZkaXlhJTJGYnJhc3NfZGl5YS5nbGIlMEFmb2xkZXIlMkZ0cmFpbiUyRmRpeWElMkZjbGF5X2RpeWEucGx5JTBBZm9sZGVyJTJGdHJhaW4lMkZkaXlhJTJGZmVzdGl2YWxfZGl5YS5zdGwlMEElMEFmb2xkZXIlMkZ0cmFpbiUyRmthbGFzaCUyRmNvcHBlcl9rYWxhc2guZ2xiJTBBZm9sZGVyJTJGdHJhaW4lMkZrYWxhc2glMkZwb29qYV9rYWxhc2gucGx5JTBBZm9sZGVyJTJGdHJhaW4lMkZrYWxhc2glMkZ0ZW1wbGVfa2FsYXNoLnN0bA==",highlighted:`folder/train/diya/brass_diya.glb
folder/train/diya/clay_diya.ply
folder/train/diya/festival_diya.stl
folder/train/kalash/copper_kalash.glb
folder/train/kalash/pooja_kalash.ply
folder/train/kalash/temple_kalash.stl`,lang:"text",wrap:!1}}),X=new f({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJwYXRoJTJGdG8lMkZmb2xkZXIlMjIp",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;path/to/folder&quot;</span>)`,lang:"py",wrap:!1}}),B=new f({props:{code:"ZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJtZXNoZm9sZGVyJTIyJTJDJTIwZGF0YV9kaXIlM0QlMjIlMkZwYXRoJTJGdG8lMkZmb2xkZXIlMjIp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;meshfolder&quot;</span>, data_dir=<span class="hljs-string">&quot;/path/to/folder&quot;</span>)',lang:"py",wrap:!1}}),H=new f({props:{code:"Zm9sZGVyJTJGdHJhaW4lMkZkaXlhJTJGYnJhc3NfZGl5YS5nbGIlMEFmb2xkZXIlMkZ0cmFpbiUyRmthbGFzaCUyRmNvcHBlcl9rYWxhc2guZ2xiJTBBZm9sZGVyJTJGdGVzdCUyRmRpeWElMkZjbGF5X2RpeWEucGx5JTBBZm9sZGVyJTJGdGVzdCUyRmthbGFzaCUyRnRlbXBsZV9rYWxhc2guc3Rs",highlighted:`folder/train/diya/brass_diya.glb
folder/train/kalash/copper_kalash.glb
folder/test/diya/clay_diya.ply
folder/test/kalash/temple_kalash.stl`,lang:"text",wrap:!1}}),N=new f({props:{code:"Zm9sZGVyJTJGdHJhaW4lMkZtZXRhZGF0YS5jc3YlMEFmb2xkZXIlMkZ0cmFpbiUyRjAwMDEuZ2xiJTBBZm9sZGVyJTJGdHJhaW4lMkYwMDAyLnBseSUwQWZvbGRlciUyRnRyYWluJTJGMDAwMy5zdGw=",highlighted:`folder/train/metadata.csv
folder/train/0001.glb
folder/train/0002.ply
folder/train/0003.stl`,lang:"text",wrap:!1}}),L=new f({props:{code:"Zm9sZGVyJTJGdHJhaW4uemlwJTBBZm9sZGVyJTJGdGVzdC56aXAlMEFmb2xkZXIlMkZ2YWxpZGF0aW9uLnppcA==",highlighted:`folder/train.zip
folder/test.zip
folder/validation.zip`,lang:"text",wrap:!1}}),z=new f({props:{code:"ZmlsZV9uYW1lJTJDY2FwdGlvbiUwQTAwMDEuZ2xiJTJDQSUyMGJyYXNzJTIwZGl5YSUyMHdpdGglMjBhJTIwc21hbGwlMjBib3dsJTIwYW5kJTIwcmFpc2VkJTIwd2ljayUyMGhvbGRlciUwQTAwMDIucGx5JTJDQSUyMGNvcHBlciUyMGthbGFzaCUyMHdpdGglMjBhJTIwcm91bmRlZCUyMGJvZHklMjBhbmQlMjBuYXJyb3clMjBuZWNrJTBBMDAwMy5zdGwlMkNBJTIwY2FydmVkJTIwamhhcm9raGElMjB3aW5kb3clMjB3aXRoJTIwYW4lMjBhcmNoZWQlMjBmcmFtZQ==",highlighted:`file_name,<span class="hljs-selector-tag">caption</span>
<span class="hljs-number">0001</span><span class="hljs-selector-class">.glb</span>,<span class="hljs-selector-tag">A</span> brass diya with <span class="hljs-selector-tag">a</span> small bowl and raised wick holder
<span class="hljs-number">0002</span><span class="hljs-selector-class">.ply</span>,<span class="hljs-selector-tag">A</span> copper kalash with <span class="hljs-selector-tag">a</span> rounded <span class="hljs-selector-tag">body</span> and narrow neck
<span class="hljs-number">0003</span><span class="hljs-selector-class">.stl</span>,<span class="hljs-selector-tag">A</span> carved jharokha window with an arched frame`,lang:"csv",wrap:!1}}),A=new f({props:{code:"JTdCJTIyZmlsZV9uYW1lJTIyJTNBJTIwJTIyMDAwMS5nbGIlMjIlMkMlMjAlMjJjYXB0aW9uJTIyJTNBJTIwJTIyQSUyMGJyYXNzJTIwZGl5YSUyMHdpdGglMjBhJTIwc21hbGwlMjBib3dsJTIwYW5kJTIwcmFpc2VkJTIwd2ljayUyMGhvbGRlciUyMiU3RCUwQSU3QiUyMmZpbGVfbmFtZSUyMiUzQSUyMCUyMjAwMDIucGx5JTIyJTJDJTIwJTIyY2FwdGlvbiUyMiUzQSUyMCUyMkElMjBjb3BwZXIlMjBrYWxhc2glMjB3aXRoJTIwYSUyMHJvdW5kZWQlMjBib2R5JTIwYW5kJTIwbmFycm93JTIwbmVjayUyMiU3RCUwQSU3QiUyMmZpbGVfbmFtZSUyMiUzQSUyMCUyMjAwMDMuc3RsJTIyJTJDJTIwJTIyY2FwdGlvbiUyMiUzQSUyMCUyMkElMjBjYXJ2ZWQlMjBqaGFyb2toYSUyMHdpbmRvdyUyMHdpdGglMjBhbiUyMGFyY2hlZCUyMGZyYW1lJTIyJTdE",highlighted:`{<span class="hljs-comment">&quot;file_name&quot;</span>: <span class="hljs-comment">&quot;0001.glb&quot;</span>, <span class="hljs-comment">&quot;caption&quot;</span>: <span class="hljs-comment">&quot;A brass diya with a small bowl and raised wick holder&quot;</span>}
{<span class="hljs-comment">&quot;file_name&quot;</span>: <span class="hljs-comment">&quot;0002.ply&quot;</span>, <span class="hljs-comment">&quot;caption&quot;</span>: <span class="hljs-comment">&quot;A copper kalash with a rounded body and narrow neck&quot;</span>}
{<span class="hljs-comment">&quot;file_name&quot;</span>: <span class="hljs-comment">&quot;0003.stl&quot;</span>, <span class="hljs-comment">&quot;caption&quot;</span>: <span class="hljs-comment">&quot;A carved jharokha window with an arched frame&quot;</span>}`,lang:"jsonl",wrap:!1}}),P=new f({props:{code:"JTdCJTIyaW5wdXRfZmlsZV9uYW1lJTIyJTNBJTIwJTIyMDAwMS5nbGIlMjIlMkMlMjAlMjJvdXRwdXRfZmlsZV9uYW1lJTIyJTNBJTIwJTIyMDAwMV9vdXRwdXQuZ2xiJTIyJTdEJTBBJTdCJTIyaW5wdXRfZmlsZV9uYW1lJTIyJTNBJTIwJTIyMDAwMi5wbHklMjIlMkMlMjAlMjJvdXRwdXRfZmlsZV9uYW1lJTIyJTNBJTIwJTIyMDAwMl9vdXRwdXQucGx5JTIyJTdEJTBBJTdCJTIyaW5wdXRfZmlsZV9uYW1lJTIyJTNBJTIwJTIyMDAwMy5zdGwlMjIlMkMlMjAlMjJvdXRwdXRfZmlsZV9uYW1lJTIyJTNBJTIwJTIyMDAwM19vdXRwdXQuc3RsJTIyJTdE",highlighted:`<span class="hljs-punctuation">{</span><span class="hljs-attr">&quot;input_file_name&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;0001.glb&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-attr">&quot;output_file_name&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;0001_output.glb&quot;</span><span class="hljs-punctuation">}</span>
<span class="hljs-punctuation">{</span><span class="hljs-attr">&quot;input_file_name&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;0002.ply&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-attr">&quot;output_file_name&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;0002_output.ply&quot;</span><span class="hljs-punctuation">}</span>
<span class="hljs-punctuation">{</span><span class="hljs-attr">&quot;input_file_name&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;0003.stl&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-attr">&quot;output_file_name&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;0003_output.stl&quot;</span><span class="hljs-punctuation">}</span>`,lang:"jsonl",wrap:!1}}),K=new f({props:{code:"JTdCJTIycGFydHNfZmlsZV9uYW1lcyUyMiUzQSUyMCU1QiUyMjAwMDFfYm93bC5nbGIlMjIlMkMlMjAlMjIwMDAxX3dpY2tfaG9sZGVyLmdsYiUyMiU1RCUyQyUyMCUyMmxhYmVsJTIyJTNBJTIwJTIyZGl5YSUyMiU3RCUwQSU3QiUyMnBhcnRzX2ZpbGVfbmFtZXMlMjIlM0ElMjAlNUIlMjIwMDAyX2JvZHkucGx5JTIyJTJDJTIwJTIyMDAwMl9uZWNrLnBseSUyMiU1RCUyQyUyMCUyMmxhYmVsJTIyJTNBJTIwJTIya2FsYXNoJTIyJTdEJTBBJTdCJTIycGFydHNfZmlsZV9uYW1lcyUyMiUzQSUyMCU1QiUyMjAwMDNfZnJhbWUuc3RsJTIyJTJDJTIwJTIyMDAwM19hcmNoLnN0bCUyMiU1RCUyQyUyMCUyMmxhYmVsJTIyJTNBJTIwJTIyamhhcm9raGElMjIlN0Q=",highlighted:`{<span class="hljs-string">&quot;parts_file_names&quot;</span>: [<span class="hljs-string">&quot;0001_bowl.glb&quot;</span>, <span class="hljs-string">&quot;0001_wick_holder.glb&quot;</span>], <span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;diya&quot;</span>}
{<span class="hljs-string">&quot;parts_file_names&quot;</span>: [<span class="hljs-string">&quot;0002_body.ply&quot;</span>, <span class="hljs-string">&quot;0002_neck.ply&quot;</span>], <span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;kalash&quot;</span>}
{<span class="hljs-string">&quot;parts_file_names&quot;</span>: [<span class="hljs-string">&quot;0003_frame.stl&quot;</span>, <span class="hljs-string">&quot;0003_arch.stl&quot;</span>], <span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;jharokha&quot;</span>}`,lang:"jsonl",wrap:!1}}),tt=new ct({props:{title:"Mesh captioning",local:"mesh-captioning",headingTag:"h3"}}),et=new f({props:{code:"ZmlsZV9uYW1lJTJDdGV4dCUwQTAwMDEuZ2xiJTJDQSUyMGJyYXNzJTIwZGl5YSUyMHdpdGglMjBhJTIwc21hbGwlMjBib3dsJTIwYW5kJTIwcmFpc2VkJTIwd2ljayUyMGhvbGRlciUwQTAwMDIucGx5JTJDQSUyMGNvcHBlciUyMGthbGFzaCUyMHdpdGglMjBhJTIwcm91bmRlZCUyMGJvZHklMjBhbmQlMjBuYXJyb3clMjBuZWNrJTBBMDAwMy5zdGwlMkNBJTIwY2FydmVkJTIwamhhcm9raGElMjB3aW5kb3clMjB3aXRoJTIwYW4lMjBhcmNoZWQlMjBmcmFtZQ==",highlighted:`file_name,<span class="hljs-keyword">text</span>
<span class="hljs-number">0001.</span>glb,A brass diya <span class="hljs-keyword">with</span> <span class="hljs-keyword">a</span> small bowl <span class="hljs-keyword">and</span> raised wick holder
<span class="hljs-number">0002.</span>ply,A copper kalash <span class="hljs-keyword">with</span> <span class="hljs-keyword">a</span> rounded body <span class="hljs-keyword">and</span> narrow neck
<span class="hljs-number">0003.</span>stl,A carved jharokha window <span class="hljs-keyword">with</span> <span class="hljs-keyword">an</span> arched frame`,lang:"csv",wrap:!1}}),lt=new f({props:{code:"ZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJtZXNoZm9sZGVyJTIyJTJDJTIwZGF0YV9kaXIlM0QlMjIlMkZwYXRoJTJGdG8lMkZmb2xkZXIlMjIlMkMlMjBzcGxpdCUzRCUyMnRyYWluJTIyKSUwQWRhdGFzZXQlNUIwJTVEJTVCJTIydGV4dCUyMiU1RA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;meshfolder&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;A brass diya with a small bowl and raised wick holder&quot;</span>`,lang:"py",wrap:!1}}),nt=new ct({props:{title:"Upload dataset to the Hub",local:"upload-dataset-to-the-hub",headingTag:"h3"}}),it=new f({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJtZXNoZm9sZGVyJTIyJTJDJTIwZGF0YV9kaXIlM0QlMjIlMkZwYXRoJTJGdG8lMkZmb2xkZXIlMjIlMkMlMjBzcGxpdCUzRCUyMnRyYWluJTIyKSUwQWRhdGFzZXQucHVzaF90b19odWIoJTIydXNlcm5hbWUlMkZteS1tZXNoLWNhcHRpb25pbmctZGF0YXNldCUyMik=",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;meshfolder&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.push_to_hub(<span class="hljs-string">&quot;username/my-mesh-captioning-dataset&quot;</span>)`,lang:"py",wrap:!1}}),dt=new Ls({props:{source:"https://github.com/huggingface/datasets/blob/main/docs/source/mesh_dataset.mdx"}}),{c(){y=p("meta"),mt=l(),ht=p("p"),ft=l(),d(w.$$.fragment),yt=l(),d(g.$$.fragment),Mt=l(),j=p("p"),j.textContent=rs,Jt=l(),b=p("ul"),b.innerHTML=us,Tt=l(),M=p("blockquote"),M.innerHTML=cs,wt=l(),d($.$$.fragment),gt=l(),Z=p("p"),Z.innerHTML=ms,jt=l(),d(_.$$.fragment),bt=l(),G=p("p"),G.innerHTML=fs,$t=l(),d(k.$$.fragment),Zt=l(),I=p("p"),I.textContent=ys,_t=l(),d(U.$$.fragment),Gt=l(),d(q.$$.fragment),kt=l(),C=p("p"),C.innerHTML=Ms,It=l(),J=p("blockquote"),J.innerHTML=Js,Ut=l(),v=p("p"),v.innerHTML=Ts,qt=l(),d(Y.$$.fragment),Ct=l(),x=p("p"),x.innerHTML=ws,vt=l(),d(X.$$.fragment),Yt=l(),R=p("p"),R.innerHTML=gs,xt=l(),d(B.$$.fragment),Xt=l(),F=p("p"),F.innerHTML=js,Rt=l(),d(H.$$.fragment),Bt=l(),T=p("blockquote"),T.innerHTML=bs,Ft=l(),W=p("p"),W.innerHTML=$s,Ht=l(),d(N.$$.fragment),Wt=l(),V=p("p"),V.textContent=Zs,Nt=l(),d(L.$$.fragment),Vt=l(),Q=p("p"),Q.innerHTML=_s,Lt=l(),d(z.$$.fragment),Qt=l(),D=p("p"),D.innerHTML=Gs,zt=l(),d(A.$$.fragment),Dt=l(),S=p("p"),S.innerHTML=ks,At=l(),E=p("p"),E.textContent=Is,St=l(),d(P.$$.fragment),Et=l(),O=p("p"),O.innerHTML=Us,Pt=l(),d(K.$$.fragment),Ot=l(),d(tt.$$.fragment),Kt=l(),st=p("p"),st.innerHTML=qs,ts=l(),d(et.$$.fragment),ss=l(),at=p("p"),at.innerHTML=Cs,es=l(),d(lt.$$.fragment),as=l(),d(nt.$$.fragment),ls=l(),pt=p("p"),pt.innerHTML=vs,ns=l(),ot=p("p"),ot.innerHTML=Ys,ps=l(),d(it.$$.fragment),os=l(),d(dt.$$.fragment),is=l(),rt=p("p"),this.h()},l(t){const s=Ws("svelte-u9bgzb",document.head);y=o(s,"META",{name:!0,content:!0}),s.forEach(e),mt=n(t),ht=o(t,"P",{}),xs(ht).forEach(e),ft=n(t),h(w.$$.fragment,t),yt=n(t),h(g.$$.fragment,t),Mt=n(t),j=o(t,"P",{"data-svelte-h":!0}),i(j)!=="svelte-1naa23u"&&(j.textContent=rs),Jt=n(t),b=o(t,"UL",{"data-svelte-h":!0}),i(b)!=="svelte-1v97o12"&&(b.innerHTML=us),Tt=n(t),M=o(t,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),i(M)!=="svelte-diqosn"&&(M.innerHTML=cs),wt=n(t),h($.$$.fragment,t),gt=n(t),Z=o(t,"P",{"data-svelte-h":!0}),i(Z)!=="svelte-je0jgg"&&(Z.innerHTML=ms),jt=n(t),h(_.$$.fragment,t),bt=n(t),G=o(t,"P",{"data-svelte-h":!0}),i(G)!=="svelte-lr4kh2"&&(G.innerHTML=fs),$t=n(t),h(k.$$.fragment,t),Zt=n(t),I=o(t,"P",{"data-svelte-h":!0}),i(I)!=="svelte-73qpor"&&(I.textContent=ys),_t=n(t),h(U.$$.fragment,t),Gt=n(t),h(q.$$.fragment,t),kt=n(t),C=o(t,"P",{"data-svelte-h":!0}),i(C)!=="svelte-o0ad9h"&&(C.innerHTML=Ms),It=n(t),J=o(t,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),i(J)!=="svelte-12xfbpf"&&(J.innerHTML=Js),Ut=n(t),v=o(t,"P",{"data-svelte-h":!0}),i(v)!=="svelte-1pqdwdc"&&(v.innerHTML=Ts),qt=n(t),h(Y.$$.fragment,t),Ct=n(t),x=o(t,"P",{"data-svelte-h":!0}),i(x)!=="svelte-3v52ly"&&(x.innerHTML=ws),vt=n(t),h(X.$$.fragment,t),Yt=n(t),R=o(t,"P",{"data-svelte-h":!0}),i(R)!=="svelte-16qt716"&&(R.innerHTML=gs),xt=n(t),h(B.$$.fragment,t),Xt=n(t),F=o(t,"P",{"data-svelte-h":!0}),i(F)!=="svelte-19006ba"&&(F.innerHTML=js),Rt=n(t),h(H.$$.fragment,t),Bt=n(t),T=o(t,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),i(T)!=="svelte-lhsf9w"&&(T.innerHTML=bs),Ft=n(t),W=o(t,"P",{"data-svelte-h":!0}),i(W)!=="svelte-1qnxnmf"&&(W.innerHTML=$s),Ht=n(t),h(N.$$.fragment,t),Wt=n(t),V=o(t,"P",{"data-svelte-h":!0}),i(V)!=="svelte-cwzuqc"&&(V.textContent=Zs),Nt=n(t),h(L.$$.fragment,t),Vt=n(t),Q=o(t,"P",{"data-svelte-h":!0}),i(Q)!=="svelte-hzsin8"&&(Q.innerHTML=_s),Lt=n(t),h(z.$$.fragment,t),Qt=n(t),D=o(t,"P",{"data-svelte-h":!0}),i(D)!=="svelte-16ywdcf"&&(D.innerHTML=Gs),zt=n(t),h(A.$$.fragment,t),Dt=n(t),S=o(t,"P",{"data-svelte-h":!0}),i(S)!=="svelte-1j1n7s9"&&(S.innerHTML=ks),At=n(t),E=o(t,"P",{"data-svelte-h":!0}),i(E)!=="svelte-1l4ujtz"&&(E.textContent=Is),St=n(t),h(P.$$.fragment,t),Et=n(t),O=o(t,"P",{"data-svelte-h":!0}),i(O)!=="svelte-19co13r"&&(O.innerHTML=Us),Pt=n(t),h(K.$$.fragment,t),Ot=n(t),h(tt.$$.fragment,t),Kt=n(t),st=o(t,"P",{"data-svelte-h":!0}),i(st)!=="svelte-7tr2vq"&&(st.innerHTML=qs),ts=n(t),h(et.$$.fragment,t),ss=n(t),at=o(t,"P",{"data-svelte-h":!0}),i(at)!=="svelte-r7nqlq"&&(at.innerHTML=Cs),es=n(t),h(lt.$$.fragment,t),as=n(t),h(nt.$$.fragment,t),ls=n(t),pt=o(t,"P",{"data-svelte-h":!0}),i(pt)!=="svelte-1j2xtca"&&(pt.innerHTML=vs),ns=n(t),ot=o(t,"P",{"data-svelte-h":!0}),i(ot)!=="svelte-1m5yvsu"&&(ot.innerHTML=Ys),ps=n(t),h(it.$$.fragment,t),os=n(t),h(dt.$$.fragment,t),is=n(t),rt=o(t,"P",{}),xs(rt).forEach(e),this.h()},h(){ut(y,"name","hf:doc:metadata"),ut(y,"content",zs),ut(M,"class","tip"),ut(J,"class","tip"),ut(T,"class","warning")},m(t,s){Ns(document.head,y),a(t,mt,s),a(t,ht,s),a(t,ft,s),r(w,t,s),a(t,yt,s),r(g,t,s),a(t,Mt,s),a(t,j,s),a(t,Jt,s),a(t,b,s),a(t,Tt,s),a(t,M,s),a(t,wt,s),r($,t,s),a(t,gt,s),a(t,Z,s),a(t,jt,s),r(_,t,s),a(t,bt,s),a(t,G,s),a(t,$t,s),r(k,t,s),a(t,Zt,s),a(t,I,s),a(t,_t,s),r(U,t,s),a(t,Gt,s),r(q,t,s),a(t,kt,s),a(t,C,s),a(t,It,s),a(t,J,s),a(t,Ut,s),a(t,v,s),a(t,qt,s),r(Y,t,s),a(t,Ct,s),a(t,x,s),a(t,vt,s),r(X,t,s),a(t,Yt,s),a(t,R,s),a(t,xt,s),r(B,t,s),a(t,Xt,s),a(t,F,s),a(t,Rt,s),r(H,t,s),a(t,Bt,s),a(t,T,s),a(t,Ft,s),a(t,W,s),a(t,Ht,s),r(N,t,s),a(t,Wt,s),a(t,V,s),a(t,Nt,s),r(L,t,s),a(t,Vt,s),a(t,Q,s),a(t,Lt,s),r(z,t,s),a(t,Qt,s),a(t,D,s),a(t,zt,s),r(A,t,s),a(t,Dt,s),a(t,S,s),a(t,At,s),a(t,E,s),a(t,St,s),r(P,t,s),a(t,Et,s),a(t,O,s),a(t,Pt,s),r(K,t,s),a(t,Ot,s),r(tt,t,s),a(t,Kt,s),a(t,st,s),a(t,ts,s),r(et,t,s),a(t,ss,s),a(t,at,s),a(t,es,s),r(lt,t,s),a(t,as,s),r(nt,t,s),a(t,ls,s),a(t,pt,s),a(t,ns,s),a(t,ot,s),a(t,ps,s),r(it,t,s),a(t,os,s),r(dt,t,s),a(t,is,s),a(t,rt,s),ds=!0},p:Rs,i(t){ds||(u(w.$$.fragment,t),u(g.$$.fragment,t),u($.$$.fragment,t),u(_.$$.fragment,t),u(k.$$.fragment,t),u(U.$$.fragment,t),u(q.$$.fragment,t),u(Y.$$.fragment,t),u(X.$$.fragment,t),u(B.$$.fragment,t),u(H.$$.fragment,t),u(N.$$.fragment,t),u(L.$$.fragment,t),u(z.$$.fragment,t),u(A.$$.fragment,t),u(P.$$.fragment,t),u(K.$$.fragment,t),u(tt.$$.fragment,t),u(et.$$.fragment,t),u(lt.$$.fragment,t),u(nt.$$.fragment,t),u(it.$$.fragment,t),u(dt.$$.fragment,t),ds=!0)},o(t){c(w.$$.fragment,t),c(g.$$.fragment,t),c($.$$.fragment,t),c(_.$$.fragment,t),c(k.$$.fragment,t),c(U.$$.fragment,t),c(q.$$.fragment,t),c(Y.$$.fragment,t),c(X.$$.fragment,t),c(B.$$.fragment,t),c(H.$$.fragment,t),c(N.$$.fragment,t),c(L.$$.fragment,t),c(z.$$.fragment,t),c(A.$$.fragment,t),c(P.$$.fragment,t),c(K.$$.fragment,t),c(tt.$$.fragment,t),c(et.$$.fragment,t),c(lt.$$.fragment,t),c(nt.$$.fragment,t),c(it.$$.fragment,t),c(dt.$$.fragment,t),ds=!1},d(t){t&&(e(mt),e(ht),e(ft),e(yt),e(Mt),e(j),e(Jt),e(b),e(Tt),e(M),e(wt),e(gt),e(Z),e(jt),e(bt),e(G),e($t),e(Zt),e(I),e(_t),e(Gt),e(kt),e(C),e(It),e(J),e(Ut),e(v),e(qt),e(Ct),e(x),e(vt),e(Yt),e(R),e(xt),e(Xt),e(F),e(Rt),e(Bt),e(T),e(Ft),e(W),e(Ht),e(Wt),e(V),e(Nt),e(Vt),e(Q),e(Lt),e(Qt),e(D),e(zt),e(Dt),e(S),e(At),e(E),e(St),e(Et),e(O),e(Pt),e(Ot),e(Kt),e(st),e(ts),e(ss),e(at),e(es),e(as),e(ls),e(pt),e(ns),e(ot),e(ps),e(os),e(is),e(rt)),e(y),m(w,t),m(g,t),m($,t),m(_,t),m(k,t),m(U,t),m(q,t),m(Y,t),m(X,t),m(B,t),m(H,t),m(N,t),m(L,t),m(z,t),m(A,t),m(P,t),m(K,t),m(tt,t),m(et,t),m(lt,t),m(nt,t),m(it,t),m(dt,t)}}}const zs='{"title":"Create a mesh dataset","local":"create-a-mesh-dataset","sections":[{"title":"Local files","local":"local-files","sections":[],"depth":2},{"title":"MeshFolder","local":"meshfolder","sections":[{"title":"Mesh captioning","local":"mesh-captioning","sections":[],"depth":3},{"title":"Upload dataset to the Hub","local":"upload-dataset-to-the-hub","sections":[],"depth":3}],"depth":2}],"depth":1}';function Ds(hs){return Bs(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Os extends Fs{constructor(y){super(),Hs(this,y,Ds,Qs,Xs,{})}}export{Os as component};

Xet Storage Details

Size:
26.2 kB
·
Xet hash:
1ed3653e05dba9d679cbbc642ca1bea4c7c9f96907ab4587293b6598a128d3dd

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