import{s as Ee,a as Pe,n as qe,o as Ae}from"../chunks/scheduler.47c1f99a.js";import{S as Fe,i as Ze,e as o,s as l,c as h,h as Qe,a,d as n,b as s,f as je,g as f,j as r,k as z,l as De,m as i,n as c,t as p,o as g,p as m}from"../chunks/index.bcb71b6c.js";import{C as Ne,H as Q,E as ze}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.bdc5ce35.js";import{C as Re}from"../chunks/CodeBlock.95db705e.js";function We(we){let u,R,D,W,w,B,y,S,$,ye="In this free course, you will:",Y,T,$e="<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>",G,M,V,v,Te=`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:`,O,b,Me='<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>',X,C,ve='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>.',K,x,ee,H,be="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:",te,U,Ce=`<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>`,ne,_,ie,k,xe="About the authors:",le,L,He='<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>.',se,I,Ue='<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>.',oe,J,ae,j,_e="Here are some answers to frequently asked questions:",re,E,ke=`<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>`,ue,d,Le,he,P,Ie=`<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>`,fe,q,ce,A,pe,F,Je="Are you ready to get started? Then go to the first unit to start the course.",ge,Z,me,N,de;return w=new Ne({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),y=new Q({props:{title:"Hugging Face Diffusion Models Course",local:"hugging-face-diffusion-models-course",headingTag:"h1"}}),M=new Q({props:{title:"Prerequisites",local:"prerequisites",headingTag:"h2"}}),x=new Q({props:{title:"What is the syllabus?",local:"what-is-the-syllabus",headingTag:"h2"}}),_=new Q({props:{title:"Who are we?",local:"who-are-we",headingTag:"h2"}}),J=new Q({props:{title:"FAQ",local:"faq",headingTag:"h2"}}),q=new Re({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}}),A=new Q({props:{title:"Let’s get started!",local:"lets-get-started",headingTag:"h2"}}),Z=new ze({props:{source:"https://github.com/huggingface/diffusion-models-class/blob/main/unit0/README.md"}}),{c(){u=o("meta"),R=l(),D=o("p"),W=l(),h(w.$$.fragment),B=l(),h(y.$$.fragment),S=l(),$=o("p"),$.textContent=ye,Y=l(),T=o("ul"),T.innerHTML=$e,G=l(),h(M.$$.fragment),V=l(),v=o("p"),v.textContent=Te,O=l(),b=o("ul"),b.innerHTML=Me,X=l(),C=o("p"),C.innerHTML=ve,K=l(),h(x.$$.fragment),ee=l(),H=o("p"),H.innerHTML=be,te=l(),U=o("ul"),U.innerHTML=Ce,ne=l(),h(_.$$.fragment),ie=l(),k=o("p"),k.textContent=xe,le=l(),L=o("p"),L.innerHTML=He,se=l(),I=o("p"),I.innerHTML=Ue,oe=l(),h(J.$$.fragment),ae=l(),j=o("p"),j.textContent=_e,re=l(),E=o("ul"),E.innerHTML=ke,ue=l(),d=o("img"),he=l(),P=o("ul"),P.innerHTML=Ie,fe=l(),h(q.$$.fragment),ce=l(),h(A.$$.fragment),pe=l(),F=o("p"),F.textContent=Je,ge=l(),h(Z.$$.fragment),me=l(),N=o("p"),this.h()},l(e){const t=Qe("svelte-u9bgzb",document.head);u=a(t,"META",{name:!0,content:!0}),t.forEach(n),R=s(e),D=a(e,"P",{}),je(D).forEach(n),W=s(e),f(w.$$.fragment,e),B=s(e),f(y.$$.fragment,e),S=s(e),$=a(e,"P",{"data-svelte-h":!0}),r($)!=="svelte-6wur6d"&&($.textContent=ye),Y=s(e),T=a(e,"UL",{"data-svelte-h":!0}),r(T)!=="svelte-tnliz8"&&(T.innerHTML=$e),G=s(e),f(M.$$.fragment,e),V=s(e),v=a(e,"P",{"data-svelte-h":!0}),r(v)!=="svelte-wxxd2p"&&(v.textContent=Te),O=s(e),b=a(e,"UL",{"data-svelte-h":!0}),r(b)!=="svelte-r6rqzq"&&(b.innerHTML=Me),X=s(e),C=a(e,"P",{"data-svelte-h":!0}),r(C)!=="svelte-1catto6"&&(C.innerHTML=ve),K=s(e),f(x.$$.fragment,e),ee=s(e),H=a(e,"P",{"data-svelte-h":!0}),r(H)!=="svelte-16diclw"&&(H.innerHTML=be),te=s(e),U=a(e,"UL",{"data-svelte-h":!0}),r(U)!=="svelte-pg705y"&&(U.innerHTML=Ce),ne=s(e),f(_.$$.fragment,e),ie=s(e),k=a(e,"P",{"data-svelte-h":!0}),r(k)!=="svelte-1qyo5w8"&&(k.textContent=xe),le=s(e),L=a(e,"P",{"data-svelte-h":!0}),r(L)!=="svelte-19pntkp"&&(L.innerHTML=He),se=s(e),I=a(e,"P",{"data-svelte-h":!0}),r(I)!=="svelte-4oe7ka"&&(I.innerHTML=Ue),oe=s(e),f(J.$$.fragment,e),ae=s(e),j=a(e,"P",{"data-svelte-h":!0}),r(j)!=="svelte-1dwou0e"&&(j.textContent=_e),re=s(e),E=a(e,"UL",{"data-svelte-h":!0}),r(E)!=="svelte-153tm1g"&&(E.innerHTML=ke),ue=s(e),d=a(e,"IMG",{src:!0,alt:!0,width:!0}),he=s(e),P=a(e,"UL",{"data-svelte-h":!0}),r(P)!=="svelte-1a55hff"&&(P.innerHTML=Ie),fe=s(e),f(q.$$.fragment,e),ce=s(e),f(A.$$.fragment,e),pe=s(e),F=a(e,"P",{"data-svelte-h":!0}),r(F)!=="svelte-zce3cn"&&(F.textContent=Je),ge=s(e),f(Z.$$.fragment,e),me=s(e),N=a(e,"P",{}),je(N).forEach(n),this.h()},h(){z(u,"name","hf:doc:metadata"),z(u,"content",Be),Pe(d.src,Le="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter1/notebook-buttons.png")||z(d,"src",Le),z(d,"alt","Link to the Hugging Face course notebooks"),z(d,"width","75%")},m(e,t){De(document.head,u),i(e,R,t),i(e,D,t),i(e,W,t),c(w,e,t),i(e,B,t),c(y,e,t),i(e,S,t),i(e,$,t),i(e,Y,t),i(e,T,t),i(e,G,t),c(M,e,t),i(e,V,t),i(e,v,t),i(e,O,t),i(e,b,t),i(e,X,t),i(e,C,t),i(e,K,t),c(x,e,t),i(e,ee,t),i(e,H,t),i(e,te,t),i(e,U,t),i(e,ne,t),c(_,e,t),i(e,ie,t),i(e,k,t),i(e,le,t),i(e,L,t),i(e,se,t),i(e,I,t),i(e,oe,t),c(J,e,t),i(e,ae,t),i(e,j,t),i(e,re,t),i(e,E,t),i(e,ue,t),i(e,d,t),i(e,he,t),i(e,P,t),i(e,fe,t),c(q,e,t),i(e,ce,t),c(A,e,t),i(e,pe,t),i(e,F,t),i(e,ge,t),c(Z,e,t),i(e,me,t),i(e,N,t),de=!0},p:qe,i(e){de||(p(w.$$.fragment,e),p(y.$$.fragment,e),p(M.$$.fragment,e),p(x.$$.fragment,e),p(_.$$.fragment,e),p(J.$$.fragment,e),p(q.$$.fragment,e),p(A.$$.fragment,e),p(Z.$$.fragment,e),de=!0)},o(e){g(w.$$.fragment,e),g(y.$$.fragment,e),g(M.$$.fragment,e),g(x.$$.fragment,e),g(_.$$.fragment,e),g(J.$$.fragment,e),g(q.$$.fragment,e),g(A.$$.fragment,e),g(Z.$$.fragment,e),de=!1},d(e){e&&(n(R),n(D),n(W),n(B),n(S),n($),n(Y),n(T),n(G),n(V),n(v),n(O),n(b),n(X),n(C),n(K),n(ee),n(H),n(te),n(U),n(ne),n(ie),n(k),n(le),n(L),n(se),n(I),n(oe),n(ae),n(j),n(re),n(E),n(ue),n(d),n(he),n(P),n(fe),n(ce),n(pe),n(F),n(ge),n(me),n(N)),n(u),m(w,e),m(y,e),m(M,e),m(x,e),m(_,e),m(J,e),m(q,e),m(A,e),m(Z,e)}}}const Be='{"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 Se(we){return Ae(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Xe extends Fe{constructor(u){super(),Ze(this,u,Se,We,Ee,{})}}export{Xe as component};
