import{s as Le,f as je,n as Ee,o as Pe}from"../chunks/scheduler.048ce5c2.js";import{S as qe,i as Ae,g as o,s as l,r as c,A as Fe,h as a,f as n,c as s,j as Je,u as f,x as r,k as N,y as Ze,a as i,v as p,d as g,t as m,w as d}from"../chunks/index.2633050f.js";import{C as Qe}from"../chunks/CodeBlock.b34ffc90.js";import{H as Z,E as De}from"../chunks/EditOnGithub.336973dd.js";function Ne(me){let u,R,Q,W,w,z,y,de="In this free course, you will:",B,T,we="<li>👩‍🎓 Study the theory behind diffusion models</li> <li>🧨 Learn how to generate images and audio with the popular 🤗 Diffusers library</li> <li>🏋️‍♂️ Train your own diffusion models from scratch</li> <li>📻 Fine-tune existing diffusion models on new datasets</li> <li>🗺 Explore conditional generation and guidance</li> <li>🧑‍🔬 Create your own custom diffusion model pipelines</li>",Y,$,S,v,ye=`This course requires a good level in Python and a grounding in deep learning and Pytorch.
If it’s not the case yet, you can check these free resources:`,G,M,Te='<li>Python: <a href="https://www.udacity.com/course/introduction-to-python--ud1110" rel="nofollow">https://www.udacity.com/course/introduction-to-python—ud1110</a></li> <li>Intro to Deep Learning with PyTorch: <a href="https://www.udacity.com/course/deep-learning-pytorch--ud188" rel="nofollow">https://www.udacity.com/course/deep-learning-pytorch—ud188</a></li> <li>PyTorch in 60min: <a href="https://pytorch.org/tutorials/beginner/deep_learning_60min_blitz.html" rel="nofollow">https://pytorch.org/tutorials/beginner/deep_learning_60min_blitz.html</a></li>',V,b,$e='To upload your models to the Hugging Face Hub, you’ll need an account. You can create one for free at the following address: <a href="https://huggingface.co/join" rel="nofollow">https://huggingface.co/join</a>.',O,C,X,x,ve="The course consists in four units. Each unit is made up of a theory section, which also lists resources/papers, and two <em>notebooks</em>. More specifically, we have:",K,H,Me=`<li>Unit 1: Introduction to diffusion models<br/>
Introduction to 🤗 Diffusers and implementation from 0</li> <li>Unit 2: Finetuning and guidance<br/>
Finetuning a diffusion model on new data and adding guidance.</li> <li>Unit 3: Stable Diffusion<br/>
Exploring a powerful text-conditioned latent diffusion model</li> <li>Unit 4: Doing more with diffusion<br/>
Advanced techniques for going further with diffusion</li>`,ee,U,te,_,be="About the authors:",ne,k,Ce='<a href="https://huggingface.co/johnowhitaker" rel="nofollow"><strong>Jonathan Whitaker</strong></a> is a Data Scientist/AI Researcher doing R&amp;D with <a href="https://www.answer.ai/" rel="nofollow">answer.ai</a>. He likes teaching and making courses. His current focus is on generative AI, flitting between several modalities. You can find more info at: <a href="https://johnowhitaker.dev/" rel="nofollow">johnowhitaker.dev</a>.',ie,I,xe='<a href="https://huggingface.co/lewtun" rel="nofollow"><strong>Lewis Tunstall</strong></a> is a machine learning engineer at Hugging Face, focused on developing open-source tools and making them accessible to the wider community. He is also a co-author of the O’Reilly book <a href="https://www.oreilly.com/library/view/natural-language-processing/9781098136789/" rel="nofollow">Natural Language Processing with Transformers</a>.',le,J,se,L,He="Here are some answers to frequently asked questions:",oe,j,Ue=`<li><p><strong>Does taking this course lead to a certification?</strong>
Currently we do not have any certification for this course. However, we are working on a certification program for the Hugging Face ecosystem — stay tuned!</p></li> <li><p><strong>How much time should I spend on this course?</strong>
Each chapter in this course is designed to be completed in 1 week, with approximately 6-8 hours of work per week. However, you can take as much time as you need to complete the course.</p></li> <li><p><strong>Where can I ask a question if I have one?</strong>
If you have a question about any section of the course, just click on the ”<em>Ask a question</em>” banner at the top of the page to be automatically redirected to the right section of the <a href="https://discord.com/invite/JfAtkvEtRb" rel="nofollow">Hugging Face Discord</a> to ask your question in the channel <code>#diffusion-models-class</code>.</p></li> <li><p><strong>Where can I get the code for the course?</strong>
For each section, click on the banner at the top of the page to run the code:</p></li>`,ae,h,_e,re,E,ke=`<li><p><strong>How can I contribute to the course?</strong>
There are many ways to contribute to the course! If you find a typo or a bug, please open an issue on the <a href="https://github.com/huggingface/diffusion-models-class" rel="nofollow"><code>diffusion-models-class</code></a> repo.
If you would like to help translate the course into your native language, check out the instructions <a href="https://github.com/huggingface/diffusion-models-class#translating-the-course-into-your-language" rel="nofollow">here</a>.</p></li> <li><p><strong>Can I reuse this course?</strong>
Of course! The course is released under the permissive <a href="https://www.apache.org/licenses/LICENSE-2.0.html" rel="nofollow">Apache 2 license</a>. This means that you must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use. If you would like to cite the course, please use the following BibTeX:</p></li>`,ue,P,he,q,ce,A,Ie="Are you ready to get started? Then go to the first unit to start the course.",fe,F,pe,D,ge;return w=new Z({props:{title:"Hugging Face Diffusion Models Course",local:"hugging-face-diffusion-models-course",headingTag:"h1"}}),$=new Z({props:{title:"Prerequisites",local:"prerequisites",headingTag:"h2"}}),C=new Z({props:{title:"What is the syllabus?",local:"what-is-the-syllabus",headingTag:"h2"}}),U=new Z({props:{title:"Who are we?",local:"who-are-we",headingTag:"h2"}}),J=new Z({props:{title:"FAQ",local:"faq",headingTag:"h2"}}),P=new Qe({props:{code:"JTQwbWlzYyU3Qmh1Z2dpbmdmYWNlY291cnNlJTJDJTBBJTIwJTIwYXV0aG9yJTIwJTNEJTIwJTdCSHVnZ2luZyUyMEZhY2UlN0QlMkMlMEElMjAlMjB0aXRsZSUyMCUzRCUyMCU3QlRoZSUyMEh1Z2dpbmclMjBGYWNlJTIwRGlmZnVzaW9uJTIwTW9kZWxzJTIwQ291cnNlJTJDJTIwMjAyMiU3RCUyQyUwQSUyMCUyMGhvd3B1Ymxpc2hlZCUyMCUzRCUyMCUyMiU1Q3VybCU3Qmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZjb3Vyc2UlN0QlMjIlMkMlMEElMjAlMjB5ZWFyJTIwJTNEJTIwJTdCMjAyMiU3RCUyQyUwQSUyMCUyMG5vdGUlMjAlM0QlMjAlMjIlNUJPbmxpbmUlM0IlMjBhY2Nlc3NlZCUyMCUzQ3RvZGF5JTNFJTVEJTIyJTBBJTdE",highlighted:`<span class="language-xml">@misc</span><span class="hljs-template-variable">{huggingfacecourse,
  author = {Hugging Face}</span><span class="language-xml">,
  title = </span><span class="hljs-template-variable">{The Hugging Face Diffusion Models Course, 2022}</span><span class="language-xml">,
  howpublished = &quot;\\url</span><span class="hljs-template-variable">{https://huggingface.co/course}</span><span class="language-xml">&quot;,
  year = </span><span class="hljs-template-variable">{2022}</span><span class="language-xml">,
  note = &quot;[Online; accessed <span class="hljs-tag">&lt;<span class="hljs-name">today</span>&gt;</span>]&quot;
}</span>`,wrap:!1}}),q=new Z({props:{title:"Let’s get started!",local:"lets-get-started",headingTag:"h2"}}),F=new De({props:{source:"https://github.com/huggingface/diffusion-models-class/blob/main/unit0/README.md"}}),{c(){u=o("meta"),R=l(),Q=o("p"),W=l(),c(w.$$.fragment),z=l(),y=o("p"),y.textContent=de,B=l(),T=o("ul"),T.innerHTML=we,Y=l(),c($.$$.fragment),S=l(),v=o("p"),v.textContent=ye,G=l(),M=o("ul"),M.innerHTML=Te,V=l(),b=o("p"),b.innerHTML=$e,O=l(),c(C.$$.fragment),X=l(),x=o("p"),x.innerHTML=ve,K=l(),H=o("ul"),H.innerHTML=Me,ee=l(),c(U.$$.fragment),te=l(),_=o("p"),_.textContent=be,ne=l(),k=o("p"),k.innerHTML=Ce,ie=l(),I=o("p"),I.innerHTML=xe,le=l(),c(J.$$.fragment),se=l(),L=o("p"),L.textContent=He,oe=l(),j=o("ul"),j.innerHTML=Ue,ae=l(),h=o("img"),re=l(),E=o("ul"),E.innerHTML=ke,ue=l(),c(P.$$.fragment),he=l(),c(q.$$.fragment),ce=l(),A=o("p"),A.textContent=Ie,fe=l(),c(F.$$.fragment),pe=l(),D=o("p"),this.h()},l(e){const t=Fe("svelte-u9bgzb",document.head);u=a(t,"META",{name:!0,content:!0}),t.forEach(n),R=s(e),Q=a(e,"P",{}),Je(Q).forEach(n),W=s(e),f(w.$$.fragment,e),z=s(e),y=a(e,"P",{"data-svelte-h":!0}),r(y)!=="svelte-6wur6d"&&(y.textContent=de),B=s(e),T=a(e,"UL",{"data-svelte-h":!0}),r(T)!=="svelte-tnliz8"&&(T.innerHTML=we),Y=s(e),f($.$$.fragment,e),S=s(e),v=a(e,"P",{"data-svelte-h":!0}),r(v)!=="svelte-wxxd2p"&&(v.textContent=ye),G=s(e),M=a(e,"UL",{"data-svelte-h":!0}),r(M)!=="svelte-r6rqzq"&&(M.innerHTML=Te),V=s(e),b=a(e,"P",{"data-svelte-h":!0}),r(b)!=="svelte-1catto6"&&(b.innerHTML=$e),O=s(e),f(C.$$.fragment,e),X=s(e),x=a(e,"P",{"data-svelte-h":!0}),r(x)!=="svelte-16diclw"&&(x.innerHTML=ve),K=s(e),H=a(e,"UL",{"data-svelte-h":!0}),r(H)!=="svelte-pg705y"&&(H.innerHTML=Me),ee=s(e),f(U.$$.fragment,e),te=s(e),_=a(e,"P",{"data-svelte-h":!0}),r(_)!=="svelte-1qyo5w8"&&(_.textContent=be),ne=s(e),k=a(e,"P",{"data-svelte-h":!0}),r(k)!=="svelte-19pntkp"&&(k.innerHTML=Ce),ie=s(e),I=a(e,"P",{"data-svelte-h":!0}),r(I)!=="svelte-4oe7ka"&&(I.innerHTML=xe),le=s(e),f(J.$$.fragment,e),se=s(e),L=a(e,"P",{"data-svelte-h":!0}),r(L)!=="svelte-1dwou0e"&&(L.textContent=He),oe=s(e),j=a(e,"UL",{"data-svelte-h":!0}),r(j)!=="svelte-153tm1g"&&(j.innerHTML=Ue),ae=s(e),h=a(e,"IMG",{src:!0,alt:!0,width:!0}),re=s(e),E=a(e,"UL",{"data-svelte-h":!0}),r(E)!=="svelte-1a55hff"&&(E.innerHTML=ke),ue=s(e),f(P.$$.fragment,e),he=s(e),f(q.$$.fragment,e),ce=s(e),A=a(e,"P",{"data-svelte-h":!0}),r(A)!=="svelte-zce3cn"&&(A.textContent=Ie),fe=s(e),f(F.$$.fragment,e),pe=s(e),D=a(e,"P",{}),Je(D).forEach(n),this.h()},h(){N(u,"name","hf:doc:metadata"),N(u,"content",Re),je(h.src,_e="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter1/notebook-buttons.png")||N(h,"src",_e),N(h,"alt","Link to the Hugging Face course notebooks"),N(h,"width","75%")},m(e,t){Ze(document.head,u),i(e,R,t),i(e,Q,t),i(e,W,t),p(w,e,t),i(e,z,t),i(e,y,t),i(e,B,t),i(e,T,t),i(e,Y,t),p($,e,t),i(e,S,t),i(e,v,t),i(e,G,t),i(e,M,t),i(e,V,t),i(e,b,t),i(e,O,t),p(C,e,t),i(e,X,t),i(e,x,t),i(e,K,t),i(e,H,t),i(e,ee,t),p(U,e,t),i(e,te,t),i(e,_,t),i(e,ne,t),i(e,k,t),i(e,ie,t),i(e,I,t),i(e,le,t),p(J,e,t),i(e,se,t),i(e,L,t),i(e,oe,t),i(e,j,t),i(e,ae,t),i(e,h,t),i(e,re,t),i(e,E,t),i(e,ue,t),p(P,e,t),i(e,he,t),p(q,e,t),i(e,ce,t),i(e,A,t),i(e,fe,t),p(F,e,t),i(e,pe,t),i(e,D,t),ge=!0},p:Ee,i(e){ge||(g(w.$$.fragment,e),g($.$$.fragment,e),g(C.$$.fragment,e),g(U.$$.fragment,e),g(J.$$.fragment,e),g(P.$$.fragment,e),g(q.$$.fragment,e),g(F.$$.fragment,e),ge=!0)},o(e){m(w.$$.fragment,e),m($.$$.fragment,e),m(C.$$.fragment,e),m(U.$$.fragment,e),m(J.$$.fragment,e),m(P.$$.fragment,e),m(q.$$.fragment,e),m(F.$$.fragment,e),ge=!1},d(e){e&&(n(R),n(Q),n(W),n(z),n(y),n(B),n(T),n(Y),n(S),n(v),n(G),n(M),n(V),n(b),n(O),n(X),n(x),n(K),n(H),n(ee),n(te),n(_),n(ne),n(k),n(ie),n(I),n(le),n(se),n(L),n(oe),n(j),n(ae),n(h),n(re),n(E),n(ue),n(he),n(ce),n(A),n(fe),n(pe),n(D)),n(u),d(w,e),d($,e),d(C,e),d(U,e),d(J,e),d(P,e),d(q,e),d(F,e)}}}const Re='{"title":"Hugging Face Diffusion Models Course","local":"hugging-face-diffusion-models-course","sections":[{"title":"Prerequisites","local":"prerequisites","sections":[],"depth":2},{"title":"What is the syllabus?","local":"what-is-the-syllabus","sections":[],"depth":2},{"title":"Who are we?","local":"who-are-we","sections":[],"depth":2},{"title":"FAQ","local":"faq","sections":[],"depth":2},{"title":"Let’s get started!","local":"lets-get-started","sections":[],"depth":2}],"depth":1}';function We(me){return Pe(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ge extends qe{constructor(u){super(),Ae(this,u,We,Ne,Le,{})}}export{Ge as component};
