import{s as Y,a as X,n as Z,o as ee}from"../chunks/scheduler.ef843396.js";import{S as te,i as ie,e as s,s as a,c as A,h as ne,a as u,d as i,b as r,f as N,g as C,j as O,k as _,l as oe,m as n,n as R,t as S,o as U,p as z}from"../chunks/index.05ef1181.js";import{H as D,E as ae}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.ef6649bf.js";function re(V){let l,y,w,L,m,T,c,W,q,p,B="Welcome to this bonus unit, where you will <strong>train a robot agent to complete a mini-game level using imitation learning.</strong>",M,d,F="At the end of the unit, <strong>you will have a trained agent capable of solving the level as in the video</strong>:",x,o,J,E,g,H,h,K="<li>Learn how to use imitation learning with Godot RL Agents by training an agent to complete a mini-game environment using human-recorded expert demonstrations.</li>",P,f,G,v,Q='<li>It is recommended that you complete the previous chapter (<a href="https://huggingface.co/learn/deep-rl-course/unitbonus3/godotrl" rel="nofollow">Godot RL Agents</a>) before starting this tutorial,</li> <li>Some familiarity with Godot is recommended, although completing the tutorial does not require any gdscript coding knowledge,</li> <li>Godot with .NET support (tested to work with <a href="https://godotengine.org/article/dev-snapshot-godot-4-3-dev-5/" rel="nofollow">4.3.dev5 .NET</a>, may work with newer versions too),</li> <li>Godot RL Agents (you can use <code>pip install godot-rl</code> in the venv/conda env),</li> <li><a href="https://huggingface.co/learn/deep-rl-course/unitbonus5/train-our-robot" rel="nofollow">Imitation library</a>,</li> <li>Time: ~1-2 hours to complete the project and training. It can be outside of this range depending on the hardware used.</li>',I,$,j,b,k;return m=new D({props:{title:"Introduction:",local:"introduction",headingTag:"h1"}}),g=new D({props:{title:"Objectives:",local:"objectives",headingTag:"h2"}}),f=new D({props:{title:"Prerequisites and requirements:",local:"prerequisites-and-requirements",headingTag:"h2"}}),$=new ae({props:{source:"https://github.com/huggingface/deep-rl-class/blob/main/units/en/unitbonus5/introduction.mdx"}}),{c(){l=s("meta"),y=a(),w=s("p"),L=a(),A(m.$$.fragment),T=a(),c=s("img"),q=a(),p=s("p"),p.innerHTML=B,M=a(),d=s("p"),d.innerHTML=F,x=a(),o=s("video"),E=a(),A(g.$$.fragment),H=a(),h=s("ul"),h.innerHTML=K,P=a(),A(f.$$.fragment),G=a(),v=s("ul"),v.innerHTML=Q,I=a(),A($.$$.fragment),j=a(),b=s("p"),this.h()},l(e){const t=ne("svelte-u9bgzb",document.head);l=u(t,"META",{name:!0,content:!0}),t.forEach(i),y=r(e),w=u(e,"P",{}),N(w).forEach(i),L=r(e),C(m.$$.fragment,e),T=r(e),c=u(e,"IMG",{src:!0,alt:!0}),q=r(e),p=u(e,"P",{"data-svelte-h":!0}),O(p)!=="svelte-t17ioe"&&(p.innerHTML=B),M=r(e),d=u(e,"P",{"data-svelte-h":!0}),O(d)!=="svelte-iwu5wz"&&(d.innerHTML=F),x=r(e),o=u(e,"VIDEO",{src:!0,type:!0,mute:!0}),N(o).forEach(i),E=r(e),C(g.$$.fragment,e),H=r(e),h=u(e,"UL",{"data-svelte-h":!0}),O(h)!=="svelte-cmuz8r"&&(h.innerHTML=K),P=r(e),C(f.$$.fragment,e),G=r(e),v=u(e,"UL",{"data-svelte-h":!0}),O(v)!=="svelte-1hiekvo"&&(v.innerHTML=Q),I=r(e),C($.$$.fragment,e),j=r(e),b=u(e,"P",{}),N(b).forEach(i),this.h()},h(){_(l,"name","hf:doc:metadata"),_(l,"content",le),X(c.src,W="https://huggingface.co/datasets/huggingface-deep-rl-course/course-images/resolve/main/en/unit13/thumbnail.png")||_(c,"src",W),_(c,"alt","Unit bonus 4 thumbnail"),X(o.src,J="https://huggingface.co/datasets/huggingface-deep-rl-course/course-images/resolve/main/en/unit13/onnx_inference_test.mp4")||_(o,"src",J),_(o,"type","video/mp4"),o.controls=!0,o.autoplay=!0,o.loop=!0,_(o,"mute","")},m(e,t){oe(document.head,l),n(e,y,t),n(e,w,t),n(e,L,t),R(m,e,t),n(e,T,t),n(e,c,t),n(e,q,t),n(e,p,t),n(e,M,t),n(e,d,t),n(e,x,t),n(e,o,t),n(e,E,t),R(g,e,t),n(e,H,t),n(e,h,t),n(e,P,t),R(f,e,t),n(e,G,t),n(e,v,t),n(e,I,t),R($,e,t),n(e,j,t),n(e,b,t),k=!0},p:Z,i(e){k||(S(m.$$.fragment,e),S(g.$$.fragment,e),S(f.$$.fragment,e),S($.$$.fragment,e),k=!0)},o(e){U(m.$$.fragment,e),U(g.$$.fragment,e),U(f.$$.fragment,e),U($.$$.fragment,e),k=!1},d(e){e&&(i(y),i(w),i(L),i(T),i(c),i(q),i(p),i(M),i(d),i(x),i(o),i(E),i(H),i(h),i(P),i(G),i(v),i(I),i(j),i(b)),i(l),z(m,e),z(g,e),z(f,e),z($,e)}}}const le='{"title":"Introduction:","local":"introduction","sections":[{"title":"Objectives:","local":"objectives","sections":[],"depth":2},{"title":"Prerequisites and requirements:","local":"prerequisites-and-requirements","sections":[],"depth":2}],"depth":1}';function se(V){return ee(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class pe extends te{constructor(l){super(),ie(this,l,se,re,Y,{})}}export{pe as component};
