import{S as Ee,i as je,s as Qe,e as r,k as p,t as a,w as F,M as Ve,c as n,d as e,m as d,a as i,h as s,x as A,b as M,G as l,g as f,y as D,q as G,o as B,B as O,v as Ie}from"../../chunks/vendor-hf-doc-builder.js";import{T as Re}from"../../chunks/Tip-hf-doc-builder.js";import{I as we}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as Et}from"../../chunks/CodeBlock-hf-doc-builder.js";function ge(at){let U,_,c,y,m;return{c(){U=r("p"),_=a("\u{1F4A1} \uD559\uC2B5\uC5D0 \uC0AC\uC6A9\uD560 \uC774\uBBF8\uC9C0 \uB370\uC774\uD130\uC14B\uC744 \uB9CC\uB4DC\uB294 \uBC29\uBC95\uC5D0 \uB300\uD55C \uC790\uC138\uD55C \uB0B4\uC6A9\uC740 "),c=r("a"),y=a("\uC774\uBBF8\uC9C0 \uB370\uC774\uD130\uC14B \uB9CC\uB4E4\uAE30"),m=a(" \uAC00\uC774\uB4DC\uB97C \uCC38\uACE0\uD558\uC138\uC694."),this.h()},l(u){U=n(u,"P",{});var h=i(U);_=s(h,"\u{1F4A1} \uD559\uC2B5\uC5D0 \uC0AC\uC6A9\uD560 \uC774\uBBF8\uC9C0 \uB370\uC774\uD130\uC14B\uC744 \uB9CC\uB4DC\uB294 \uBC29\uBC95\uC5D0 \uB300\uD55C \uC790\uC138\uD55C \uB0B4\uC6A9\uC740 "),c=n(h,"A",{href:!0,rel:!0});var j=i(c);y=s(j,"\uC774\uBBF8\uC9C0 \uB370\uC774\uD130\uC14B \uB9CC\uB4E4\uAE30"),j.forEach(e),m=s(h," \uAC00\uC774\uB4DC\uB97C \uCC38\uACE0\uD558\uC138\uC694."),h.forEach(e),this.h()},h(){M(c,"href","https://huggingface.co/docs/datasets/image_dataset"),M(c,"rel","nofollow")},m(u,h){f(u,U,h),l(U,_),l(U,c),l(c,y),l(U,m)},d(u){u&&e(U)}}}function $e(at){let U,_,c,y,m;return{c(){U=r("p"),_=a("\u{1F4A1} \uB370\uC774\uD130\uC14B\uC744 \uB9CC\uB4E4\uACE0 Hub\uC5D0 \uC5C5\uB85C\uB4DC\uD558\uB294 \uAC83\uC5D0 \uB300\uD55C \uC790\uC138\uD55C \uB0B4\uC6A9\uC740 "),c=r("a"),y=a("\u{1F917} Datasets\uC744 \uC0AC\uC6A9\uD55C \uC774\uBBF8\uC9C0 \uAC80\uC0C9"),m=a(" \uAC8C\uC2DC\uBB3C\uC744 \uCC38\uACE0\uD558\uC138\uC694."),this.h()},l(u){U=n(u,"P",{});var h=i(U);_=s(h,"\u{1F4A1} \uB370\uC774\uD130\uC14B\uC744 \uB9CC\uB4E4\uACE0 Hub\uC5D0 \uC5C5\uB85C\uB4DC\uD558\uB294 \uAC83\uC5D0 \uB300\uD55C \uC790\uC138\uD55C \uB0B4\uC6A9\uC740 "),c=n(h,"A",{href:!0,rel:!0});var j=i(c);y=s(j,"\u{1F917} Datasets\uC744 \uC0AC\uC6A9\uD55C \uC774\uBBF8\uC9C0 \uAC80\uC0C9"),j.forEach(e),m=s(h," \uAC8C\uC2DC\uBB3C\uC744 \uCC38\uACE0\uD558\uC138\uC694."),h.forEach(e),this.h()},h(){M(c,"href","https://huggingface.co/blog/image-search-datasets"),M(c,"rel","nofollow")},m(u,h){f(u,U,h),l(U,_),l(U,c),l(c,y),l(U,m)},d(u){u&&e(U)}}}function ke(at){let U,_,c,y,m,u,h,j,tl,st,ll,el,jt,ot,al,Qt,V,W,sl,ft,ol,rl,nl,X,il,Ut,fl,Ul,Vt,I,It,z,Ml,wt,w,pl,N,dl,cl,gt,Y,$t,g,ul,Mt,hl,Jl,kt,q,Zt,Q,$,pt,H,_l,dt,ml,vt,k,bt,C,yl,ct,Tl,Cl,S,Rl,El,Ft,J,ut,jl,Ql,ht,Vl,Il,Jt,wl,gl,_t,$l,kl,mt,Zl,vl,At,x,Dt,Z,bl,L,Fl,Al,Gt,P,Bt,v,Dl,yt,Gl,Bl,Ot,K,Wt,tt,Ol,Xt,R,Wl,Tt,Xl,zl,Ct,Nl,Yl,zt,E,ql,lt,Hl,Sl,et,xl,Ll,Nt;return I=new Re({props:{$$slots:{default:[ge]},$$scope:{ctx:at}}}),Y=new Et({props:{code:"ZGF0YV9kaXIlMkZ4eHgucG5nJTBBZGF0YV9kaXIlMkZ4eHkucG5nJTBBZGF0YV9kaXIlMkYlNUIuLi4lNUQlMkZ4eHoucG5n",highlighted:`data_dir/xxx.png
data_dir/xxy.png
data_dir/[...]/xxz.png`}}),q=new Et({props:{code:"YWNjZWxlcmF0ZSUyMGxhdW5jaCUyMHRyYWluX3VuY29uZGl0aW9uYWwucHklMjAlNUMlMEElMjAlMjAlMjAlMjAlMjMlMjBhcmd1bWVudCVFQiVBMSU5QyUyMCVFRCU4RiVCNCVFQiU4RCU5NCUyMCVFQyVBNyU4MCVFQyVBMCU5NSVFRCU5NSU5OCVFQSVCOCVCMCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tdHJhaW5fZGF0YV9kaXIlMjAlM0NwYXRoLXRvLXRyYWluLWRpcmVjdG9yeSUzRSUyMCU1QyUwQSUyMCUyMCUyMCUyMCUzQ290aGVyLWFyZ3VtZW50cyUzRQ==",highlighted:`accelerate launch train_unconditional.py \\
    <span class="hljs-comment"># argument\uB85C \uD3F4\uB354 \uC9C0\uC815\uD558\uAE30 \\</span>
    --train_data_dir &lt;path-to-train-directory&gt; \\
    &lt;other-arguments&gt;`}}),H=new we({}),k=new Re({props:{$$slots:{default:[$e]},$$scope:{ctx:at}}}),x=new Et({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBJTIzJTIwJUVDJTk4JTg4JUVDJThCJTlDJTIwMSUzQSUyMCVFQiVBMSU5QyVFQyVCQiVBQyUyMCVFRCU4RiVCNCVFQiU4RCU5NCUwQWRhdGFzZXQlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyaW1hZ2Vmb2xkZXIlMjIlMkMlMjBkYXRhX2RpciUzRCUyMnBhdGhfdG9feW91cl9mb2xkZXIlMjIpJTBBJTBBJTIzJTIwJUVDJTk4JTg4JUVDJThCJTlDJTIwMiUzQSUyMCVFQiVBMSU5QyVFQyVCQiVBQyUyMCVFRCU4QyU4QyVFQyU5RCVCQyUyMCglRUMlQTclODAlRUMlOUIlOTAlMjAlRUQlOEYlQUMlRUIlQTclQjclMjAlM0ElMjB0YXIlMkMlMjBnemlwJTJDJTIwemlwJTJDJTIweHolMkMlMjByYXIlMkMlMjB6c3RkKSUwQWRhdGFzZXQlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyaW1hZ2Vmb2xkZXIlMjIlMkMlMjBkYXRhX2ZpbGVzJTNEJTIycGF0aF90b196aXBfZmlsZSUyMiklMEElMEElMjMlMjAlRUMlOTglODglRUMlOEIlOUMlMjAzJTNBJTIwJUVDJTlCJTkwJUVBJUIyJUE5JTIwJUVEJThDJThDJUVDJTlEJUJDJTIwKCVFQyVBNyU4MCVFQyU5QiU5MCUyMCVFRCU4RiVBQyVFQiVBNyVCNyUyMCUzQSUyMHRhciUyQyUyMGd6aXAlMkMlMjB6aXAlMkMlMjB4eiUyQyUyMHJhciUyQyUyMHpzdGQpJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMEElMjAlMjAlMjAlMjAlMjJpbWFnZWZvbGRlciUyMiUyQyUwQSUyMCUyMCUyMCUyMGRhdGFfZmlsZXMlM0QlMjJodHRwcyUzQSUyRiUyRmRvd25sb2FkLm1pY3Jvc29mdC5jb20lMkZkb3dubG9hZCUyRjMlMkZFJTJGMSUyRjNFMUMzRjIxLUVDREItNDg2OS04MzY4LTZERUJBNzdCOTE5RiUyRmthZ2dsZWNhdHNhbmRkb2dzXzMzNjdhLnppcCUyMiUyQyUwQSklMEElMEElMjMlMjAlRUMlOTglODglRUMlOEIlOUMlMjA0JTNBJTIwJUVDJTk3JUFDJUVCJTlGJUFDJUVBJUIwJTlDJUVCJUExJTlDJTIwJUVCJUI2JTg0JUVEJTk1JUEwJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMEElMjAlMjAlMjAlMjAlMjJpbWFnZWZvbGRlciUyMiUyQyUyMGRhdGFfZmlsZXMlM0QlN0IlMjJ0cmFpbiUyMiUzQSUyMCU1QiUyMnBhdGglMkZ0byUyRmZpbGUxJTIyJTJDJTIwJTIycGF0aCUyRnRvJTJGZmlsZTIlMjIlNUQlMkMlMjAlMjJ0ZXN0JTIyJTNBJTIwJTVCJTIycGF0aCUyRnRvJTJGZmlsZTMlMjIlMkMlMjAlMjJwYXRoJTJGdG8lMkZmaWxlNCUyMiU1RCU3RCUwQSk=",highlighted:`<span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset

<span class="hljs-comment"># \uC608\uC2DC 1: \uB85C\uCEEC \uD3F4\uB354</span>
dataset = load_dataset(<span class="hljs-string">&quot;imagefolder&quot;</span>, data_dir=<span class="hljs-string">&quot;path_to_your_folder&quot;</span>)

<span class="hljs-comment"># \uC608\uC2DC 2: \uB85C\uCEEC \uD30C\uC77C (\uC9C0\uC6D0 \uD3EC\uB9F7 : tar, gzip, zip, xz, rar, zstd)</span>
dataset = load_dataset(<span class="hljs-string">&quot;imagefolder&quot;</span>, data_files=<span class="hljs-string">&quot;path_to_zip_file&quot;</span>)

<span class="hljs-comment"># \uC608\uC2DC 3: \uC6D0\uACA9 \uD30C\uC77C (\uC9C0\uC6D0 \uD3EC\uB9F7 : tar, gzip, zip, xz, rar, zstd)</span>
dataset = load_dataset(
    <span class="hljs-string">&quot;imagefolder&quot;</span>,
    data_files=<span class="hljs-string">&quot;https://download.microsoft.com/download/3/E/1/3E1C3F21-ECDB-4869-8368-6DEBA77B919F/kagglecatsanddogs_3367a.zip&quot;</span>,
)

<span class="hljs-comment"># \uC608\uC2DC 4: \uC5EC\uB7EC\uAC1C\uB85C \uBD84\uD560</span>
dataset = load_dataset(
    <span class="hljs-string">&quot;imagefolder&quot;</span>, data_files={<span class="hljs-string">&quot;train&quot;</span>: [<span class="hljs-string">&quot;path/to/file1&quot;</span>, <span class="hljs-string">&quot;path/to/file2&quot;</span>], <span class="hljs-string">&quot;test&quot;</span>: [<span class="hljs-string">&quot;path/to/file3&quot;</span>, <span class="hljs-string">&quot;path/to/file4&quot;</span>]}
)`}}),P=new Et({props:{code:"JTIzJTIwJUVEJTg0JUIwJUVCJUFGJUI4JUVCJTg0JTkwJUVDJTk3JTkwJUVDJTg0JTlDJTIwaHVnZ2luZ2ZhY2UtY2xpJTIwbG9naW4lMjAlRUMlQkIlQTQlRUIlQTclQTglRUIlOTMlOUMlRUIlQTUlQkMlMjAlRUMlOUQlQjQlRUIlQUYlQjglMjAlRUMlOEIlQTQlRUQlOTYlODklRUQlOTYlODglRUIlOEIlQTQlRUElQjMlQTAlMjAlRUElQjAlODAlRUMlQTAlOTUlRUQlOTUlQTklRUIlOEIlODglRUIlOEIlQTQlMEFkYXRhc2V0LnB1c2hfdG9faHViKCUyMm5hbWVfb2ZfeW91cl9kYXRhc2V0JTIyKSUwQSUwQSUyMyUyMCVFQSVCMCU5QyVFQyU5RCVCOCUyMHJlcG8lRUIlQTElOUMlMjBwdXNoJTIwJUVEJTk1JTk4JUVBJUIzJUEwJTIwJUVDJThCJUI2JUVCJThCJUE0JUVCJUE5JUI0JTJDJTIwJTYwcHJpdmF0ZSUzRFRydWUlNjAlMjAlRUMlOUQlODQlMjAlRUMlQjYlOTQlRUElQjAlODAlRUQlOTUlOTglRUMlODQlQjglRUMlOUElOTQlM0ElMEFkYXRhc2V0LnB1c2hfdG9faHViKCUyMm5hbWVfb2ZfeW91cl9kYXRhc2V0JTIyJTJDJTIwcHJpdmF0ZSUzRFRydWUp",highlighted:`<span class="hljs-comment"># \uD130\uBBF8\uB110\uC5D0\uC11C huggingface-cli login \uCEE4\uB9E8\uB4DC\uB97C \uC774\uBBF8 \uC2E4\uD589\uD588\uB2E4\uACE0 \uAC00\uC815\uD569\uB2C8\uB2E4</span>
dataset.push_to_hub(<span class="hljs-string">&quot;name_of_your_dataset&quot;</span>)

<span class="hljs-comment"># \uAC1C\uC778 repo\uB85C push \uD558\uACE0 \uC2F6\uB2E4\uBA74, \`private=True\` \uC744 \uCD94\uAC00\uD558\uC138\uC694:</span>
dataset.push_to_hub(<span class="hljs-string">&quot;name_of_your_dataset&quot;</span>, private=<span class="hljs-literal">True</span>)`}}),K=new Et({props:{code:"YWNjZWxlcmF0ZSUyMGxhdW5jaCUyMC0tbWl4ZWRfcHJlY2lzaW9uJTNEJTIyZnAxNiUyMiUyMCUyMHRyYWluX3RleHRfdG9faW1hZ2UucHklMjAlNUMlMEElMjAlMjAtLXByZXRyYWluZWRfbW9kZWxfbmFtZV9vcl9wYXRoJTNEJTIycnVud2F5bWwlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjIlMjAlNUMlMEElMjAlMjAtLWRhdGFzZXRfbmFtZSUzRCUyMm5hbWVfb2ZfeW91cl9kYXRhc2V0JTIyJTIwJTVDJTBBJTIwJTIwJTNDb3RoZXItYXJndW1lbnRzJTNF",highlighted:`accelerate launch --mixed_precision=<span class="hljs-string">&quot;fp16&quot;</span>  train_text_to_image.py \\
  --pretrained_model_name_or_path=<span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span> \\
  --dataset_name=<span class="hljs-string">&quot;name_of_your_dataset&quot;</span> \\
  &lt;other-arguments&gt;`}}),{c(){U=r("meta"),_=p(),c=r("h1"),y=a("\uD559\uC2B5\uC744 \uC704\uD55C \uB370\uC774\uD130\uC14B \uB9CC\uB4E4\uAE30"),m=p(),u=r("p"),h=r("a"),j=a("Hub"),tl=a(` \uC5D0\uB294 \uBAA8\uB378 \uAD50\uC721\uC744 \uC704\uD55C \uB9CE\uC740 \uB370\uC774\uD130\uC14B\uC774 \uC788\uC9C0\uB9CC,
\uAD00\uC2EC\uC774 \uC788\uAC70\uB098 \uC0AC\uC6A9\uD558\uACE0 \uC2F6\uC740 \uB370\uC774\uD130\uC14B\uC744 \uCC3E\uC744 \uC218 \uC5C6\uB294 \uACBD\uC6B0 \u{1F917} `),st=r("a"),ll=a("Datasets"),el=a(` \uB77C\uC774\uBE0C\uB7EC\uB9AC\uB97C \uC0AC\uC6A9\uD558\uC5EC \uB370\uC774\uD130\uC14B\uC744 \uB9CC\uB4E4 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uB370\uC774\uD130\uC14B \uAD6C\uC870\uB294 \uBAA8\uB378\uC744 \uD559\uC2B5\uD558\uB824\uB294 \uC791\uC5C5\uC5D0 \uB530\uB77C \uB2EC\uB77C\uC9D1\uB2C8\uB2E4.
\uAC00\uC7A5 \uAE30\uBCF8\uC801\uC778 \uB370\uC774\uD130\uC14B \uAD6C\uC870\uB294 unconditional \uC774\uBBF8\uC9C0 \uC0DD\uC131\uACFC \uAC19\uC740 \uC791\uC5C5\uC744 \uC704\uD55C \uC774\uBBF8\uC9C0 \uB514\uB809\uD1A0\uB9AC\uC785\uB2C8\uB2E4.
\uB610 \uB2E4\uB978 \uB370\uC774\uD130\uC14B \uAD6C\uC870\uB294 \uC774\uBBF8\uC9C0 \uB514\uB809\uD1A0\uB9AC\uC640 text-to-image \uC0DD\uC131\uACFC \uAC19\uC740 \uC791\uC5C5\uC5D0 \uD574\uB2F9\uD558\uB294 \uD14D\uC2A4\uD2B8 \uCEA1\uC158\uC774 \uD3EC\uD568\uB41C \uD14D\uC2A4\uD2B8 \uD30C\uC77C\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4.`),jt=p(),ot=r("p"),al=a("\uC774 \uAC00\uC774\uB4DC\uC5D0\uB294 \uD30C\uC778 \uD29C\uB2DD\uD560 \uB370\uC774\uD130\uC14B\uC744 \uB9CC\uB4DC\uB294 \uB450 \uAC00\uC9C0 \uBC29\uBC95\uC744 \uC18C\uAC1C\uD569\uB2C8\uB2E4:"),Qt=p(),V=r("ul"),W=r("li"),sl=a("\uC774\uBBF8\uC9C0 \uD3F4\uB354\uB97C "),ft=r("code"),ol=a("--train_data_dir"),rl=a(" \uC778\uC218\uC5D0 \uC81C\uACF5\uD569\uB2C8\uB2E4."),nl=p(),X=r("li"),il=a("\uB370\uC774\uD130\uC14B\uC744 Hub\uC5D0 \uC5C5\uB85C\uB4DC\uD558\uACE0 \uB370\uC774\uD130\uC14B \uB9AC\uD3EC\uC9C0\uD1A0\uB9AC id\uB97C "),Ut=r("code"),fl=a("--dataset_name"),Ul=a(" \uC778\uC218\uC5D0 \uC804\uB2EC\uD569\uB2C8\uB2E4."),Vt=p(),F(I.$$.fragment),It=p(),z=r("h2"),Ml=a("\uD3F4\uB354 \uD615\uD0DC\uB85C \uB370\uC774\uD130\uC14B \uAD6C\uCD95\uD558\uAE30"),wt=p(),w=r("p"),pl=a(`Unconditional \uC0DD\uC131\uC744 \uC704\uD574 \uC774\uBBF8\uC9C0 \uD3F4\uB354\uB85C \uC790\uC2E0\uC758 \uB370\uC774\uD130\uC14B\uC744 \uAD6C\uCD95\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uD559\uC2B5 \uC2A4\uD06C\uB9BD\uD2B8\uB294 \u{1F917} Datasets\uC758 `),N=r("a"),dl=a("ImageFolder"),cl=a(` \uBE4C\uB354\uB97C \uC0AC\uC6A9\uD558\uC5EC
\uC790\uB3D9\uC73C\uB85C \uD3F4\uB354\uC5D0\uC11C \uB370\uC774\uD130\uC14B\uC744 \uAD6C\uCD95\uD569\uB2C8\uB2E4. \uB514\uB809\uD1A0\uB9AC \uAD6C\uC870\uB294 \uB2E4\uC74C\uACFC \uAC19\uC544\uC57C \uD569\uB2C8\uB2E4 :`),gt=p(),F(Y.$$.fragment),$t=p(),g=r("p"),ul=a("\uB370\uC774\uD130\uC14B \uB514\uB809\uD130\uB9AC\uC758 \uACBD\uB85C\uB97C "),Mt=r("code"),hl=a("--train_data_dir"),Jl=a(" \uC778\uC218\uB85C \uC804\uB2EC\uD55C \uB2E4\uC74C \uD559\uC2B5\uC744 \uC2DC\uC791\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4:"),kt=p(),F(q.$$.fragment),Zt=p(),Q=r("h2"),$=r("a"),pt=r("span"),F(H.$$.fragment),_l=p(),dt=r("span"),ml=a("Hub\uC5D0 \uB370\uC774\uD130 \uC62C\uB9AC\uAE30"),vt=p(),F(k.$$.fragment),bt=p(),C=r("p"),yl=a("PIL \uC778\uCF54\uB529\uB41C \uC774\uBBF8\uC9C0\uAC00 \uD3EC\uD568\uB41C "),ct=r("code"),Tl=a("\uC774\uBBF8\uC9C0"),Cl=a(" \uC5F4\uC744 \uC0DD\uC131\uD558\uB294 "),S=r("a"),Rl=a("\uC774\uBBF8\uC9C0 \uD3F4\uB354"),El=a(" \uAE30\uB2A5\uC744 \uC0AC\uC6A9\uD558\uC5EC \uB370\uC774\uD130\uC14B \uC0DD\uC131\uC744 \uC2DC\uC791\uD569\uB2C8\uB2E4."),Ft=p(),J=r("p"),ut=r("code"),jl=a("data_dir"),Ql=a(" \uB610\uB294 "),ht=r("code"),Vl=a("data_files"),Il=a(` \uB9E4\uAC1C \uBCC0\uC218\uB97C \uC0AC\uC6A9\uD558\uC5EC \uB370\uC774\uD130\uC14B\uC758 \uC704\uCE58\uB97C \uC9C0\uC815\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
`),Jt=r("code"),wl=a("data_files"),gl=a(" \uB9E4\uAC1C\uBCC0\uC218\uB294 \uD2B9\uC815 \uD30C\uC77C\uC744 "),_t=r("code"),$l=a("train"),kl=a(" \uC774\uB098 "),mt=r("code"),Zl=a("test"),vl=a(" \uB85C \uBD84\uB9AC\uD55C \uB370\uC774\uD130\uC14B\uC5D0 \uB9E4\uD551\uD558\uB294 \uAC83\uC744 \uC9C0\uC6D0\uD569\uB2C8\uB2E4:"),At=p(),F(x.$$.fragment),Dt=p(),Z=r("p"),bl=a("[push_to_hub("),L=r("a"),Fl=a("https://huggingface.co/docs/datasets/v2.13.1/en/package_reference/main_classes#datasets.Dataset.push_to_hub"),Al=a(") \uC744 \uC0AC\uC6A9\uD574\uC11C Hub\uC5D0 \uB370\uC774\uD130\uC14B\uC744 \uC5C5\uB85C\uB4DC \uD569\uB2C8\uB2E4:"),Gt=p(),F(P.$$.fragment),Bt=p(),v=r("p"),Dl=a("\uC774\uC81C \uB370\uC774\uD130\uC14B \uC774\uB984\uC744 "),yt=r("code"),Gl=a("--dataset_name"),Bl=a(" \uC778\uC218\uC5D0 \uC804\uB2EC\uD558\uC5EC \uB370\uC774\uD130\uC14B\uC744 \uD559\uC2B5\uC5D0 \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4:"),Ot=p(),F(K.$$.fragment),Wt=p(),tt=r("h2"),Ol=a("\uB2E4\uC74C \uB2E8\uACC4"),Xt=p(),R=r("p"),Wl=a("\uB370\uC774\uD130\uC14B\uC744 \uC0DD\uC131\uD588\uC73C\uB2C8 \uC774\uC81C \uD559\uC2B5 \uC2A4\uD06C\uB9BD\uD2B8\uC758 "),Tt=r("code"),Xl=a("train_data_dir"),zl=a(" (\uB370\uC774\uD130\uC14B\uC774 \uB85C\uCEEC\uC774\uBA74) \uD639\uC740 "),Ct=r("code"),Nl=a("dataset_name"),Yl=a(" (Hub\uC5D0 \uB370\uC774\uD130\uC14B\uC744 \uC62C\uB838\uC73C\uBA74) \uC778\uC218\uC5D0 \uC5F0\uACB0\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),zt=p(),E=r("p"),ql=a("\uB2E4\uC74C \uB2E8\uACC4\uC5D0\uC11C\uB294 \uB370\uC774\uD130\uC14B\uC744 \uC0AC\uC6A9\uD558\uC5EC "),lt=r("a"),Hl=a("unconditional \uC0DD\uC131"),Sl=a(" \uB610\uB294 "),et=r("a"),xl=a("\uD14D\uC2A4\uD2B8-\uC774\uBBF8\uC9C0 \uC0DD\uC131"),Ll=a("\uC744 \uC704\uD55C \uBAA8\uB378\uC744 \uD559\uC2B5\uC2DC\uCF1C\uBCF4\uC138\uC694!"),this.h()},l(t){const o=Ve('[data-svelte="svelte-1phssyn"]',document.head);U=n(o,"META",{name:!0,content:!0}),o.forEach(e),_=d(t),c=n(t,"H1",{id:!0});var Rt=i(c);y=s(Rt,"\uD559\uC2B5\uC744 \uC704\uD55C \uB370\uC774\uD130\uC14B \uB9CC\uB4E4\uAE30"),Rt.forEach(e),m=d(t),u=n(t,"P",{});var b=i(u);h=n(b,"A",{href:!0,rel:!0});var Pl=i(h);j=s(Pl,"Hub"),Pl.forEach(e),tl=s(b,` \uC5D0\uB294 \uBAA8\uB378 \uAD50\uC721\uC744 \uC704\uD55C \uB9CE\uC740 \uB370\uC774\uD130\uC14B\uC774 \uC788\uC9C0\uB9CC,
\uAD00\uC2EC\uC774 \uC788\uAC70\uB098 \uC0AC\uC6A9\uD558\uACE0 \uC2F6\uC740 \uB370\uC774\uD130\uC14B\uC744 \uCC3E\uC744 \uC218 \uC5C6\uB294 \uACBD\uC6B0 \u{1F917} `),st=n(b,"A",{href:!0});var Kl=i(st);ll=s(Kl,"Datasets"),Kl.forEach(e),el=s(b,` \uB77C\uC774\uBE0C\uB7EC\uB9AC\uB97C \uC0AC\uC6A9\uD558\uC5EC \uB370\uC774\uD130\uC14B\uC744 \uB9CC\uB4E4 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uB370\uC774\uD130\uC14B \uAD6C\uC870\uB294 \uBAA8\uB378\uC744 \uD559\uC2B5\uD558\uB824\uB294 \uC791\uC5C5\uC5D0 \uB530\uB77C \uB2EC\uB77C\uC9D1\uB2C8\uB2E4.
\uAC00\uC7A5 \uAE30\uBCF8\uC801\uC778 \uB370\uC774\uD130\uC14B \uAD6C\uC870\uB294 unconditional \uC774\uBBF8\uC9C0 \uC0DD\uC131\uACFC \uAC19\uC740 \uC791\uC5C5\uC744 \uC704\uD55C \uC774\uBBF8\uC9C0 \uB514\uB809\uD1A0\uB9AC\uC785\uB2C8\uB2E4.
\uB610 \uB2E4\uB978 \uB370\uC774\uD130\uC14B \uAD6C\uC870\uB294 \uC774\uBBF8\uC9C0 \uB514\uB809\uD1A0\uB9AC\uC640 text-to-image \uC0DD\uC131\uACFC \uAC19\uC740 \uC791\uC5C5\uC5D0 \uD574\uB2F9\uD558\uB294 \uD14D\uC2A4\uD2B8 \uCEA1\uC158\uC774 \uD3EC\uD568\uB41C \uD14D\uC2A4\uD2B8 \uD30C\uC77C\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4.`),b.forEach(e),jt=d(t),ot=n(t,"P",{});var te=i(ot);al=s(te,"\uC774 \uAC00\uC774\uB4DC\uC5D0\uB294 \uD30C\uC778 \uD29C\uB2DD\uD560 \uB370\uC774\uD130\uC14B\uC744 \uB9CC\uB4DC\uB294 \uB450 \uAC00\uC9C0 \uBC29\uBC95\uC744 \uC18C\uAC1C\uD569\uB2C8\uB2E4:"),te.forEach(e),Qt=d(t),V=n(t,"UL",{});var Yt=i(V);W=n(Yt,"LI",{});var qt=i(W);sl=s(qt,"\uC774\uBBF8\uC9C0 \uD3F4\uB354\uB97C "),ft=n(qt,"CODE",{});var le=i(ft);ol=s(le,"--train_data_dir"),le.forEach(e),rl=s(qt," \uC778\uC218\uC5D0 \uC81C\uACF5\uD569\uB2C8\uB2E4."),qt.forEach(e),nl=d(Yt),X=n(Yt,"LI",{});var Ht=i(X);il=s(Ht,"\uB370\uC774\uD130\uC14B\uC744 Hub\uC5D0 \uC5C5\uB85C\uB4DC\uD558\uACE0 \uB370\uC774\uD130\uC14B \uB9AC\uD3EC\uC9C0\uD1A0\uB9AC id\uB97C "),Ut=n(Ht,"CODE",{});var ee=i(Ut);fl=s(ee,"--dataset_name"),ee.forEach(e),Ul=s(Ht," \uC778\uC218\uC5D0 \uC804\uB2EC\uD569\uB2C8\uB2E4."),Ht.forEach(e),Yt.forEach(e),Vt=d(t),A(I.$$.fragment,t),It=d(t),z=n(t,"H2",{id:!0});var ae=i(z);Ml=s(ae,"\uD3F4\uB354 \uD615\uD0DC\uB85C \uB370\uC774\uD130\uC14B \uAD6C\uCD95\uD558\uAE30"),ae.forEach(e),wt=d(t),w=n(t,"P",{});var St=i(w);pl=s(St,`Unconditional \uC0DD\uC131\uC744 \uC704\uD574 \uC774\uBBF8\uC9C0 \uD3F4\uB354\uB85C \uC790\uC2E0\uC758 \uB370\uC774\uD130\uC14B\uC744 \uAD6C\uCD95\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uD559\uC2B5 \uC2A4\uD06C\uB9BD\uD2B8\uB294 \u{1F917} Datasets\uC758 `),N=n(St,"A",{href:!0,rel:!0});var se=i(N);dl=s(se,"ImageFolder"),se.forEach(e),cl=s(St,` \uBE4C\uB354\uB97C \uC0AC\uC6A9\uD558\uC5EC
\uC790\uB3D9\uC73C\uB85C \uD3F4\uB354\uC5D0\uC11C \uB370\uC774\uD130\uC14B\uC744 \uAD6C\uCD95\uD569\uB2C8\uB2E4. \uB514\uB809\uD1A0\uB9AC \uAD6C\uC870\uB294 \uB2E4\uC74C\uACFC \uAC19\uC544\uC57C \uD569\uB2C8\uB2E4 :`),St.forEach(e),gt=d(t),A(Y.$$.fragment,t),$t=d(t),g=n(t,"P",{});var xt=i(g);ul=s(xt,"\uB370\uC774\uD130\uC14B \uB514\uB809\uD130\uB9AC\uC758 \uACBD\uB85C\uB97C "),Mt=n(xt,"CODE",{});var oe=i(Mt);hl=s(oe,"--train_data_dir"),oe.forEach(e),Jl=s(xt," \uC778\uC218\uB85C \uC804\uB2EC\uD55C \uB2E4\uC74C \uD559\uC2B5\uC744 \uC2DC\uC791\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4:"),xt.forEach(e),kt=d(t),A(q.$$.fragment,t),Zt=d(t),Q=n(t,"H2",{class:!0});var Lt=i(Q);$=n(Lt,"A",{id:!0,class:!0,href:!0});var re=i($);pt=n(re,"SPAN",{});var ne=i(pt);A(H.$$.fragment,ne),ne.forEach(e),re.forEach(e),_l=d(Lt),dt=n(Lt,"SPAN",{});var ie=i(dt);ml=s(ie,"Hub\uC5D0 \uB370\uC774\uD130 \uC62C\uB9AC\uAE30"),ie.forEach(e),Lt.forEach(e),vt=d(t),A(k.$$.fragment,t),bt=d(t),C=n(t,"P",{});var rt=i(C);yl=s(rt,"PIL \uC778\uCF54\uB529\uB41C \uC774\uBBF8\uC9C0\uAC00 \uD3EC\uD568\uB41C "),ct=n(rt,"CODE",{});var fe=i(ct);Tl=s(fe,"\uC774\uBBF8\uC9C0"),fe.forEach(e),Cl=s(rt," \uC5F4\uC744 \uC0DD\uC131\uD558\uB294 "),S=n(rt,"A",{href:!0,rel:!0});var Ue=i(S);Rl=s(Ue,"\uC774\uBBF8\uC9C0 \uD3F4\uB354"),Ue.forEach(e),El=s(rt," \uAE30\uB2A5\uC744 \uC0AC\uC6A9\uD558\uC5EC \uB370\uC774\uD130\uC14B \uC0DD\uC131\uC744 \uC2DC\uC791\uD569\uB2C8\uB2E4."),rt.forEach(e),Ft=d(t),J=n(t,"P",{});var T=i(J);ut=n(T,"CODE",{});var Me=i(ut);jl=s(Me,"data_dir"),Me.forEach(e),Ql=s(T," \uB610\uB294 "),ht=n(T,"CODE",{});var pe=i(ht);Vl=s(pe,"data_files"),pe.forEach(e),Il=s(T,` \uB9E4\uAC1C \uBCC0\uC218\uB97C \uC0AC\uC6A9\uD558\uC5EC \uB370\uC774\uD130\uC14B\uC758 \uC704\uCE58\uB97C \uC9C0\uC815\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
`),Jt=n(T,"CODE",{});var de=i(Jt);wl=s(de,"data_files"),de.forEach(e),gl=s(T," \uB9E4\uAC1C\uBCC0\uC218\uB294 \uD2B9\uC815 \uD30C\uC77C\uC744 "),_t=n(T,"CODE",{});var ce=i(_t);$l=s(ce,"train"),ce.forEach(e),kl=s(T," \uC774\uB098 "),mt=n(T,"CODE",{});var ue=i(mt);Zl=s(ue,"test"),ue.forEach(e),vl=s(T," \uB85C \uBD84\uB9AC\uD55C \uB370\uC774\uD130\uC14B\uC5D0 \uB9E4\uD551\uD558\uB294 \uAC83\uC744 \uC9C0\uC6D0\uD569\uB2C8\uB2E4:"),T.forEach(e),At=d(t),A(x.$$.fragment,t),Dt=d(t),Z=n(t,"P",{});var Pt=i(Z);bl=s(Pt,"[push_to_hub("),L=n(Pt,"A",{href:!0,rel:!0});var he=i(L);Fl=s(he,"https://huggingface.co/docs/datasets/v2.13.1/en/package_reference/main_classes#datasets.Dataset.push_to_hub"),he.forEach(e),Al=s(Pt,") \uC744 \uC0AC\uC6A9\uD574\uC11C Hub\uC5D0 \uB370\uC774\uD130\uC14B\uC744 \uC5C5\uB85C\uB4DC \uD569\uB2C8\uB2E4:"),Pt.forEach(e),Gt=d(t),A(P.$$.fragment,t),Bt=d(t),v=n(t,"P",{});var Kt=i(v);Dl=s(Kt,"\uC774\uC81C \uB370\uC774\uD130\uC14B \uC774\uB984\uC744 "),yt=n(Kt,"CODE",{});var Je=i(yt);Gl=s(Je,"--dataset_name"),Je.forEach(e),Bl=s(Kt," \uC778\uC218\uC5D0 \uC804\uB2EC\uD558\uC5EC \uB370\uC774\uD130\uC14B\uC744 \uD559\uC2B5\uC5D0 \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4:"),Kt.forEach(e),Ot=d(t),A(K.$$.fragment,t),Wt=d(t),tt=n(t,"H2",{id:!0});var _e=i(tt);Ol=s(_e,"\uB2E4\uC74C \uB2E8\uACC4"),_e.forEach(e),Xt=d(t),R=n(t,"P",{});var nt=i(R);Wl=s(nt,"\uB370\uC774\uD130\uC14B\uC744 \uC0DD\uC131\uD588\uC73C\uB2C8 \uC774\uC81C \uD559\uC2B5 \uC2A4\uD06C\uB9BD\uD2B8\uC758 "),Tt=n(nt,"CODE",{});var me=i(Tt);Xl=s(me,"train_data_dir"),me.forEach(e),zl=s(nt," (\uB370\uC774\uD130\uC14B\uC774 \uB85C\uCEEC\uC774\uBA74) \uD639\uC740 "),Ct=n(nt,"CODE",{});var ye=i(Ct);Nl=s(ye,"dataset_name"),ye.forEach(e),Yl=s(nt," (Hub\uC5D0 \uB370\uC774\uD130\uC14B\uC744 \uC62C\uB838\uC73C\uBA74) \uC778\uC218\uC5D0 \uC5F0\uACB0\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),nt.forEach(e),zt=d(t),E=n(t,"P",{});var it=i(E);ql=s(it,"\uB2E4\uC74C \uB2E8\uACC4\uC5D0\uC11C\uB294 \uB370\uC774\uD130\uC14B\uC744 \uC0AC\uC6A9\uD558\uC5EC "),lt=n(it,"A",{href:!0,rel:!0});var Te=i(lt);Hl=s(Te,"unconditional \uC0DD\uC131"),Te.forEach(e),Sl=s(it," \uB610\uB294 "),et=n(it,"A",{href:!0,rel:!0});var Ce=i(et);xl=s(Ce,"\uD14D\uC2A4\uD2B8-\uC774\uBBF8\uC9C0 \uC0DD\uC131"),Ce.forEach(e),Ll=s(it,"\uC744 \uC704\uD55C \uBAA8\uB378\uC744 \uD559\uC2B5\uC2DC\uCF1C\uBCF4\uC138\uC694!"),it.forEach(e),this.h()},h(){M(U,"name","hf:doc:metadata"),M(U,"content",JSON.stringify(Ze)),M(c,"id",""),M(h,"href","https://huggingface.co/datasets?task_categories=task_categories:text-to-image&sort=downloads"),M(h,"rel","nofollow"),M(st,"href","hf.co/docs/datasets"),M(z,"id",""),M(N,"href","https://huggingface.co/docs/datasets/en/image_dataset#imagefolder"),M(N,"rel","nofollow"),M($,"id","hub"),M($,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),M($,"href","#hub"),M(Q,"class","relative group"),M(S,"href","https://huggingface.co/docs/datasets/image_load#imagefolder"),M(S,"rel","nofollow"),M(L,"href","https://huggingface.co/docs/datasets/v2.13.1/en/package_reference/main_classes#datasets.Dataset.push_to_hub"),M(L,"rel","nofollow"),M(tt,"id",""),M(lt,"href","https://huggingface.co/docs/diffusers/v0.18.2/en/training/unconditional_training"),M(lt,"rel","nofollow"),M(et,"href","https://huggingface.co/docs/diffusers/training/text2image"),M(et,"rel","nofollow")},m(t,o){l(document.head,U),f(t,_,o),f(t,c,o),l(c,y),f(t,m,o),f(t,u,o),l(u,h),l(h,j),l(u,tl),l(u,st),l(st,ll),l(u,el),f(t,jt,o),f(t,ot,o),l(ot,al),f(t,Qt,o),f(t,V,o),l(V,W),l(W,sl),l(W,ft),l(ft,ol),l(W,rl),l(V,nl),l(V,X),l(X,il),l(X,Ut),l(Ut,fl),l(X,Ul),f(t,Vt,o),D(I,t,o),f(t,It,o),f(t,z,o),l(z,Ml),f(t,wt,o),f(t,w,o),l(w,pl),l(w,N),l(N,dl),l(w,cl),f(t,gt,o),D(Y,t,o),f(t,$t,o),f(t,g,o),l(g,ul),l(g,Mt),l(Mt,hl),l(g,Jl),f(t,kt,o),D(q,t,o),f(t,Zt,o),f(t,Q,o),l(Q,$),l($,pt),D(H,pt,null),l(Q,_l),l(Q,dt),l(dt,ml),f(t,vt,o),D(k,t,o),f(t,bt,o),f(t,C,o),l(C,yl),l(C,ct),l(ct,Tl),l(C,Cl),l(C,S),l(S,Rl),l(C,El),f(t,Ft,o),f(t,J,o),l(J,ut),l(ut,jl),l(J,Ql),l(J,ht),l(ht,Vl),l(J,Il),l(J,Jt),l(Jt,wl),l(J,gl),l(J,_t),l(_t,$l),l(J,kl),l(J,mt),l(mt,Zl),l(J,vl),f(t,At,o),D(x,t,o),f(t,Dt,o),f(t,Z,o),l(Z,bl),l(Z,L),l(L,Fl),l(Z,Al),f(t,Gt,o),D(P,t,o),f(t,Bt,o),f(t,v,o),l(v,Dl),l(v,yt),l(yt,Gl),l(v,Bl),f(t,Ot,o),D(K,t,o),f(t,Wt,o),f(t,tt,o),l(tt,Ol),f(t,Xt,o),f(t,R,o),l(R,Wl),l(R,Tt),l(Tt,Xl),l(R,zl),l(R,Ct),l(Ct,Nl),l(R,Yl),f(t,zt,o),f(t,E,o),l(E,ql),l(E,lt),l(lt,Hl),l(E,Sl),l(E,et),l(et,xl),l(E,Ll),Nt=!0},p(t,[o]){const Rt={};o&2&&(Rt.$$scope={dirty:o,ctx:t}),I.$set(Rt);const b={};o&2&&(b.$$scope={dirty:o,ctx:t}),k.$set(b)},i(t){Nt||(G(I.$$.fragment,t),G(Y.$$.fragment,t),G(q.$$.fragment,t),G(H.$$.fragment,t),G(k.$$.fragment,t),G(x.$$.fragment,t),G(P.$$.fragment,t),G(K.$$.fragment,t),Nt=!0)},o(t){B(I.$$.fragment,t),B(Y.$$.fragment,t),B(q.$$.fragment,t),B(H.$$.fragment,t),B(k.$$.fragment,t),B(x.$$.fragment,t),B(P.$$.fragment,t),B(K.$$.fragment,t),Nt=!1},d(t){e(U),t&&e(_),t&&e(c),t&&e(m),t&&e(u),t&&e(jt),t&&e(ot),t&&e(Qt),t&&e(V),t&&e(Vt),O(I,t),t&&e(It),t&&e(z),t&&e(wt),t&&e(w),t&&e(gt),O(Y,t),t&&e($t),t&&e(g),t&&e(kt),O(q,t),t&&e(Zt),t&&e(Q),O(H),t&&e(vt),O(k,t),t&&e(bt),t&&e(C),t&&e(Ft),t&&e(J),t&&e(At),O(x,t),t&&e(Dt),t&&e(Z),t&&e(Gt),O(P,t),t&&e(Bt),t&&e(v),t&&e(Ot),O(K,t),t&&e(Wt),t&&e(tt),t&&e(Xt),t&&e(R),t&&e(zt),t&&e(E)}}}const Ze={local:"",sections:[{local:"",title:"\uD3F4\uB354 \uD615\uD0DC\uB85C \uB370\uC774\uD130\uC14B \uAD6C\uCD95\uD558\uAE30"},{local:"hub",title:"Hub\uC5D0 \uB370\uC774\uD130 \uC62C\uB9AC\uAE30"},{local:"",title:"\uB2E4\uC74C \uB2E8\uACC4"}],title:"\uD559\uC2B5\uC744 \uC704\uD55C \uB370\uC774\uD130\uC14B \uB9CC\uB4E4\uAE30"};function ve(at){return Ie(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ge extends Ee{constructor(U){super();je(this,U,ve,ke,Qe,{})}}export{Ge as default,Ze as metadata};
