Buckets:
| import{s as ht,B as _t,o as wt,n as Tt}from"../chunks/scheduler.94020406.js";import{S as vt,i as Jt,g as s,s as l,r as g,E as xt,h as f,f as n,c as o,j as at,u as c,x as m,k as j,y as kt,a as i,v as b,d as $,t as d,w as h}from"../chunks/index.a08c8d92.js";import{T as yt}from"../chunks/Tip.3b0aeee8.js";import{C as ot}from"../chunks/CodeBlock.b23cf525.js";import{D as Ct}from"../chunks/DocNotebookDropdown.d8a25975.js";import{H as Pt,E as Mt}from"../chunks/EditOnGithub.b1bceb47.js";function Ft(q){let a,_="๐ก ๋๋ง์ unconditional ์ด๋ฏธ์ง ์์ฑ ๋ชจ๋ธ์ ํ์ต์ํค๊ณ ์ถ์ผ์ ๊ฐ์? ํ์ต ๊ฐ์ด๋๋ฅผ ์ดํด๋ณด๊ณ ๋๋ง์ ์ด๋ฏธ์ง๋ฅผ ์์ฑํ๋ ๋ฐฉ๋ฒ์ ์์๋ณด์ธ์.";return{c(){a=s("p"),a.textContent=_},l(r){a=f(r,"P",{"data-svelte-h":!0}),m(a)!=="svelte-1rcr7p4"&&(a.textContent=_)},m(r,G){i(r,a,G)},p:Tt,d(r){r&&n(a)}}}function Zt(q){let a,_,r,G,w,L,T,D,v,st="Unconditional ์ด๋ฏธ์ง ์์ฑ์ ๋น๊ต์ ๊ฐ๋จํ ์์ ์ ๋๋ค. ๋ชจ๋ธ์ด ํ ์คํธ๋ ์ด๋ฏธ์ง์ ๊ฐ์ ์ถ๊ฐ ์กฐ๊ฑด ์์ด ์ด๋ฏธ ํ์ต๋ ํ์ต ๋ฐ์ดํฐ์ ์ ์ฌํ ์ด๋ฏธ์ง๋ง ์์ฑํฉ๋๋ค.",H,J,ft="[โDiffusionPipelineโ]์ ์ถ๋ก ์ ์ํด ๋ฏธ๋ฆฌ ํ์ต๋ diffusion ์์คํ ์ ์ฌ์ฉํ๋ ๊ฐ์ฅ ์ฌ์ด ๋ฐฉ๋ฒ์ ๋๋ค.",V,x,rt='๋จผ์ [โDiffusionPipelineโ]์ ์ธ์คํด์ค๋ฅผ ์์ฑํ๊ณ ๋ค์ด๋ก๋ํ ํ์ดํ๋ผ์ธ์ <a href="https://huggingface.co/models?library=diffusers&sort=downloads" rel="nofollow">์ฒดํฌํฌ์ธํธ</a>๋ฅผ ์ง์ ํฉ๋๋ค. ํ๋ธ์ ๐งจ diffusion ์ฒดํฌํฌ์ธํธ ์ค ํ๋๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค(์ฌ์ฉํ ์ฒดํฌํฌ์ธํธ๋ ๋๋น ์ด๋ฏธ์ง๋ฅผ ์์ฑํฉ๋๋ค).',B,u,R,k,pt='์ด ๊ฐ์ด๋์์๋ unconditional ์ด๋ฏธ์ง ์์ฑ์ [โDiffusionPipelineโ]๊ณผ <a href="https://arxiv.org/abs/2006.11239" rel="nofollow">DDPM</a>์ ์ฌ์ฉํฉ๋๋ค:',S,y,z,C,mt="[diffusion ํ์ดํ๋ผ์ธ]์ ๋ชจ๋ ๋ชจ๋ธ๋ง, ํ ํฐํ, ์ค์ผ์ค๋ง ๊ตฌ์ฑ ์์๋ฅผ ๋ค์ด๋ก๋ํ๊ณ ์บ์ํฉ๋๋ค. ์ด ๋ชจ๋ธ์ ์ฝ 14์ต ๊ฐ์ ํ๋ผ๋ฏธํฐ๋ก ๊ตฌ์ฑ๋์ด ์๊ธฐ ๋๋ฌธ์ GPU์์ ์คํํ ๊ฒ์ ๊ฐ๋ ฅํ ๊ถ์ฅํฉ๋๋ค. PyTorch์์์ ๋ง์ฐฌ๊ฐ์ง๋ก ์ ๋๋ ์ดํฐ ๊ฐ์ฒด๋ฅผ GPU๋ก ์ฎ๊ธธ ์ ์์ต๋๋ค:",K,P,A,M,ut="์ด์ ์ ๋๋ ์ดํฐ๋ฅผ ์ฌ์ฉํ์ฌ ์ด๋ฏธ์ง๋ฅผ ์์ฑํ ์ ์์ต๋๋ค:",X,F,O,Z,gt='์ถ๋ ฅ์ ๊ธฐ๋ณธ์ ์ผ๋ก <a href="https://pillow.readthedocs.io/en/stable/reference/Image.html?highlight=image#the-image-class" rel="nofollow">PIL.Image</a> ๊ฐ์ฒด๋ก ๊ฐ์ธ์ง๋๋ค.',Q,I,ct="๋ค์์ ํธ์ถํ์ฌ ์ด๋ฏธ์ง๋ฅผ ์ ์ฅํ ์ ์์ต๋๋ค:",Y,N,tt,U,bt="์๋ ์คํ์ด์ค(๋ฐ๋ชจ ๋งํฌ)๋ฅผ ์ด์ฉํด ๋ณด๊ณ , ์ถ๋ก ๋จ๊ณ์ ๋งค๊ฐ๋ณ์๋ฅผ ์์ ๋กญ๊ฒ ์กฐ์ ํ์ฌ ์ด๋ฏธ์ง ํ์ง์ ์ด๋ค ์ํฅ์ ๋ฏธ์น๋์ง ํ์ธํด ๋ณด์ธ์!",et,p,$t,nt,E,it,W,lt;return w=new Pt({props:{title:"Unconditional ์ด๋ฏธ์ง ์์ฑ",local:"unconditional-์ด๋ฏธ์ง-์์ฑ",headingTag:"h1"}}),T=new Ct({props:{classNames:"absolute z-10 right-0 top-0",options:[{label:"Mixed",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers_doc/ko/unconditional_image_generation.ipynb"},{label:"PyTorch",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers_doc/ko/pytorch/unconditional_image_generation.ipynb"},{label:"TensorFlow",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers_doc/ko/tensorflow/unconditional_image_generation.ipynb"},{label:"Mixed",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/diffusers_doc/ko/unconditional_image_generation.ipynb"},{label:"PyTorch",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/diffusers_doc/ko/pytorch/unconditional_image_generation.ipynb"},{label:"TensorFlow",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/diffusers_doc/ko/tensorflow/unconditional_image_generation.ipynb"}]}}),u=new yt({props:{$$slots:{default:[Ft]},$$scope:{ctx:q}}}),y=new ot({props:{code:"JTIwJTNFJTNFJTNFJTIwZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMERpZmZ1c2lvblBpcGVsaW5lJTBBJTBBJTIwJTNFJTNFJTNFJTIwZ2VuZXJhdG9yJTIwJTNEJTIwRGlmZnVzaW9uUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUyMmFudG9uLWwlMkZkZHBtLWJ1dHRlcmZsaWVzLTEyOCUyMik=",highlighted:` >>> <span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiffusionPipeline | |
| >>> generator = DiffusionPipeline.from_pretrained(<span class="hljs-string">"anton-l/ddpm-butterflies-128"</span>)`,wrap:!1}}),P=new ot({props:{code:"JTIwJTNFJTNFJTNFJTIwZ2VuZXJhdG9yLnRvKCUyMmN1ZGElMjIp",highlighted:' >>> generator.to(<span class="hljs-string">"cuda"</span>)',wrap:!1}}),F=new ot({props:{code:"JTIwJTNFJTNFJTNFJTIwaW1hZ2UlMjAlM0QlMjBnZW5lcmF0b3IoKS5pbWFnZXMlNUIwJTVE",highlighted:' >>> image = generator().images[<span class="hljs-number">0</span>]',wrap:!1}}),N=new ot({props:{code:"JTIwJTNFJTNFJTNFJTIwaW1hZ2Uuc2F2ZSglMjJnZW5lcmF0ZWRfaW1hZ2UucG5nJTIyKQ==",highlighted:' >>> image.save(<span class="hljs-string">"generated_image.png"</span>)',wrap:!1}}),E=new Mt({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/ko/using-diffusers/unconditional_image_generation.md"}}),{c(){a=s("meta"),_=l(),r=s("p"),G=l(),g(w.$$.fragment),L=l(),g(T.$$.fragment),D=l(),v=s("p"),v.textContent=st,H=l(),J=s("p"),J.textContent=ft,V=l(),x=s("p"),x.innerHTML=rt,B=l(),g(u.$$.fragment),R=l(),k=s("p"),k.innerHTML=pt,S=l(),g(y.$$.fragment),z=l(),C=s("p"),C.textContent=mt,K=l(),g(P.$$.fragment),A=l(),M=s("p"),M.textContent=ut,X=l(),g(F.$$.fragment),O=l(),Z=s("p"),Z.innerHTML=gt,Q=l(),I=s("p"),I.textContent=ct,Y=l(),g(N.$$.fragment),tt=l(),U=s("p"),U.textContent=bt,et=l(),p=s("iframe"),nt=l(),g(E.$$.fragment),it=l(),W=s("p"),this.h()},l(t){const e=xt("svelte-u9bgzb",document.head);a=f(e,"META",{name:!0,content:!0}),e.forEach(n),_=o(t),r=f(t,"P",{}),at(r).forEach(n),G=o(t),c(w.$$.fragment,t),L=o(t),c(T.$$.fragment,t),D=o(t),v=f(t,"P",{"data-svelte-h":!0}),m(v)!=="svelte-tfszx0"&&(v.textContent=st),H=o(t),J=f(t,"P",{"data-svelte-h":!0}),m(J)!=="svelte-10qi7c6"&&(J.textContent=ft),V=o(t),x=f(t,"P",{"data-svelte-h":!0}),m(x)!=="svelte-gbmace"&&(x.innerHTML=rt),B=o(t),c(u.$$.fragment,t),R=o(t),k=f(t,"P",{"data-svelte-h":!0}),m(k)!=="svelte-1h0b378"&&(k.innerHTML=pt),S=o(t),c(y.$$.fragment,t),z=o(t),C=f(t,"P",{"data-svelte-h":!0}),m(C)!=="svelte-19iqs64"&&(C.textContent=mt),K=o(t),c(P.$$.fragment,t),A=o(t),M=f(t,"P",{"data-svelte-h":!0}),m(M)!=="svelte-1v4twko"&&(M.textContent=ut),X=o(t),c(F.$$.fragment,t),O=o(t),Z=f(t,"P",{"data-svelte-h":!0}),m(Z)!=="svelte-q9tjpq"&&(Z.innerHTML=gt),Q=o(t),I=f(t,"P",{"data-svelte-h":!0}),m(I)!=="svelte-t33pj2"&&(I.textContent=ct),Y=o(t),c(N.$$.fragment,t),tt=o(t),U=f(t,"P",{"data-svelte-h":!0}),m(U)!=="svelte-ymgaag"&&(U.textContent=bt),et=o(t),p=f(t,"IFRAME",{src:!0,frameborder:!0,width:!0,height:!0}),at(p).forEach(n),nt=o(t),c(E.$$.fragment,t),it=o(t),W=f(t,"P",{}),at(W).forEach(n),this.h()},h(){j(a,"name","hf:doc:metadata"),j(a,"content",It),_t(p.src,$t="https://stevhliu-ddpm-butterflies-128.hf.space")||j(p,"src",$t),j(p,"frameborder","0"),j(p,"width","850"),j(p,"height","500")},m(t,e){kt(document.head,a),i(t,_,e),i(t,r,e),i(t,G,e),b(w,t,e),i(t,L,e),b(T,t,e),i(t,D,e),i(t,v,e),i(t,H,e),i(t,J,e),i(t,V,e),i(t,x,e),i(t,B,e),b(u,t,e),i(t,R,e),i(t,k,e),i(t,S,e),b(y,t,e),i(t,z,e),i(t,C,e),i(t,K,e),b(P,t,e),i(t,A,e),i(t,M,e),i(t,X,e),b(F,t,e),i(t,O,e),i(t,Z,e),i(t,Q,e),i(t,I,e),i(t,Y,e),b(N,t,e),i(t,tt,e),i(t,U,e),i(t,et,e),i(t,p,e),i(t,nt,e),b(E,t,e),i(t,it,e),i(t,W,e),lt=!0},p(t,[e]){const dt={};e&2&&(dt.$$scope={dirty:e,ctx:t}),u.$set(dt)},i(t){lt||($(w.$$.fragment,t),$(T.$$.fragment,t),$(u.$$.fragment,t),$(y.$$.fragment,t),$(P.$$.fragment,t),$(F.$$.fragment,t),$(N.$$.fragment,t),$(E.$$.fragment,t),lt=!0)},o(t){d(w.$$.fragment,t),d(T.$$.fragment,t),d(u.$$.fragment,t),d(y.$$.fragment,t),d(P.$$.fragment,t),d(F.$$.fragment,t),d(N.$$.fragment,t),d(E.$$.fragment,t),lt=!1},d(t){t&&(n(_),n(r),n(G),n(L),n(D),n(v),n(H),n(J),n(V),n(x),n(B),n(R),n(k),n(S),n(z),n(C),n(K),n(A),n(M),n(X),n(O),n(Z),n(Q),n(I),n(Y),n(tt),n(U),n(et),n(p),n(nt),n(it),n(W)),n(a),h(w,t),h(T,t),h(u,t),h(y,t),h(P,t),h(F,t),h(N,t),h(E,t)}}}const It='{"title":"Unconditional ์ด๋ฏธ์ง ์์ฑ","local":"unconditional-์ด๋ฏธ์ง-์์ฑ","sections":[],"depth":1}';function Nt(q){return wt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Lt extends vt{constructor(a){super(),Jt(this,a,Nt,Zt,ht,{})}}export{Lt as component}; | |
Xet Storage Details
- Size:
- 8.55 kB
- Xet hash:
- a186555b97353ef92428daf7fe32816706d118f53533ed30de3241cfe0083efd
ยท
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.