import{S as JM,i as wM,s as uM,e as n,k as i,w as m,t,M as jM,c as r,d as s,m as c,a as p,x as J,h as o,b as f,G as e,g as M,y as w,q as u,o as j,B as T,v as TM}from"../chunks/vendor-hf-doc-builder.js";import{T as Zr}from"../chunks/Tip-hf-doc-builder.js";import{I as he}from"../chunks/IconCopyLink-hf-doc-builder.js";import{C}from"../chunks/CodeBlock-hf-doc-builder.js";function UM(tl){let d,b;return{c(){d=n("p"),b=t("\uB77C\uC774\uBE0C\uB7EC\uB9AC\uC5D0 \uC874\uC7AC\uD558\uB294 \uBAA8\uB378\uACFC \uAD49\uC7A5\uD788 \uC720\uC0AC\uD558\uB2E4\uBA74, \uBAA8\uB378\uC744 \uC0DD\uC131\uD560 \uB54C \uAD6C\uC131\uC744 \uCC38\uC870\uD574 \uC7AC\uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.")},l(y){d=r(y,"P",{});var U=p(d);b=o(U,"\uB77C\uC774\uBE0C\uB7EC\uB9AC\uC5D0 \uC874\uC7AC\uD558\uB294 \uBAA8\uB378\uACFC \uAD49\uC7A5\uD788 \uC720\uC0AC\uD558\uB2E4\uBA74, \uBAA8\uB378\uC744 \uC0DD\uC131\uD560 \uB54C \uAD6C\uC131\uC744 \uCC38\uC870\uD574 \uC7AC\uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),U.forEach(s)},m(y,U){M(y,d,U),e(d,b)},d(y){y&&s(d)}}}function _M(tl){let d,b;return{c(){d=n("p"),b=t("\uC774 API\uB294 \uC2E4\uD5D8\uC801\uC774\uBA70 \uB2E4\uC74C \uB9B4\uB9AC\uC2A4\uC5D0\uC11C \uC57D\uAC04\uC758 \uBCC0\uACBD \uC0AC\uD56D\uC774 \uC788\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4.")},l(y){d=r(y,"P",{});var U=p(d);b=o(U,"\uC774 API\uB294 \uC2E4\uD5D8\uC801\uC774\uBA70 \uB2E4\uC74C \uB9B4\uB9AC\uC2A4\uC5D0\uC11C \uC57D\uAC04\uC758 \uBCC0\uACBD \uC0AC\uD56D\uC774 \uC788\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),U.forEach(s)},m(y,U){M(y,d,U),e(d,b)},d(y){y&&s(d)}}}function hM(tl){let d,b,y,U,S;return{c(){d=n("p"),b=t(`\uB77C\uC774\uBE0C\uB7EC\uB9AC\uC5D0\uC11C \uBAA8\uB378\uB9C1 \uD30C\uC77C\uC744 \uBCF5\uC0AC\uD558\uB294 \uACBD\uC6B0,
\uBAA8\uB4E0 \uD30C\uC77C \uC0C1\uB2E8\uC5D0 \uC788\uB294 \uC0C1\uB300 \uACBD\uB85C \uC784\uD3EC\uD2B8(relative import) \uBD80\uBD84\uC744 `),y=n("code"),U=t("transformers"),S=t(" \uD328\uD0A4\uC9C0\uC5D0\uC11C \uC784\uD3EC\uD2B8 \uD558\uB3C4\uB85D \uBCC0\uACBD\uD574\uC57C \uD569\uB2C8\uB2E4.")},l(v){d=r(v,"P",{});var B=p(d);b=o(B,`\uB77C\uC774\uBE0C\uB7EC\uB9AC\uC5D0\uC11C \uBAA8\uB378\uB9C1 \uD30C\uC77C\uC744 \uBCF5\uC0AC\uD558\uB294 \uACBD\uC6B0,
\uBAA8\uB4E0 \uD30C\uC77C \uC0C1\uB2E8\uC5D0 \uC788\uB294 \uC0C1\uB300 \uACBD\uB85C \uC784\uD3EC\uD2B8(relative import) \uBD80\uBD84\uC744 `),y=r(B,"CODE",{});var ol=p(y);U=o(ol,"transformers"),ol.forEach(s),S=o(B," \uD328\uD0A4\uC9C0\uC5D0\uC11C \uC784\uD3EC\uD2B8 \uD558\uB3C4\uB85D \uBCC0\uACBD\uD574\uC57C \uD569\uB2C8\uB2E4."),B.forEach(s)},m(v,B){M(v,d,B),e(d,b),e(d,y),e(y,U),e(d,S)},d(v){v&&s(d)}}}function CM(tl){let d,b,y,U,S,v,B,ol,io,Ds,Ol,co,Hs,xl,fo,Ss,P,_l,yo,mo,Ce,Jo,wo,Ps,O,al,be,hl,uo,Ie,jo,Os,W,To,Ee,Uo,_o,Ze,ho,Co,xs,ql,bo,qs,Cl,Ls,nl,Io,ve,Eo,Zo,Ks,X,Ll,Ae,vo,Ao,$o,rl,$e,ko,No,ke,Ro,Bo,Wo,x,Xo,Ne,go,Go,Re,Yo,Vo,lt,g,Qo,Be,Fo,zo,We,Do,Ho,et,A,So,Xe,Po,Oo,ge,xo,qo,Ge,Lo,Ko,st,Kl,la,tt,bl,ot,$,ea,Ye,sa,ta,Ve,oa,aa,Qe,na,ra,at,Il,nt,G,pa,Fe,Ma,ia,ze,ca,fa,rt,q,pl,De,El,da,He,ya,pt,Y,ma,Se,Ja,wa,Pe,ua,ja,Mt,V,Ta,Oe,Ua,_a,xe,ha,Ca,it,Zl,ct,le,ba,ft,vl,dt,E,Ia,qe,Ea,Za,Le,va,Aa,Ke,$a,ka,ls,Na,Ra,yt,Ml,mt,Q,Ba,es,Wa,Xa,ss,ga,Ga,Jt,ee,Ya,wt,Al,ut,k,Va,ts,Qa,Fa,os,za,Da,as,Ha,Sa,jt,se,Pa,Tt,$l,Ut,F,Oa,ns,xa,qa,rs,La,Ka,_t,L,il,ps,kl,ln,Ms,en,ht,cl,Ct,_,sn,is,tn,on,cs,an,nn,fs,rn,pn,ds,Mn,cn,ys,fn,dn,ms,yn,mn,Js,Jn,wn,bt,Nl,It,z,un,ws,jn,Tn,us,Un,_n,Et,fl,Zt,te,hn,vt,oe,Cn,At,Rl,$t,dl,bn,js,In,En,kt,Bl,Nt,K,Ts,Zn,vn,Us,An,$n,Rt,ae,kn,Bt,Wl,Wt,ne,Nn,Xt,Xl,gt,re,Rn,Gt,gl,Yt,pe,Bn,Vt,Gl,Qt,h,Wn,_s,Xn,gn,hs,Gn,Yn,Yl,Vn,Qn,Cs,Fn,zn,bs,Dn,Hn,Vl,Sn,Pn,Ft,ll,Me,On,xn,Is,qn,Ln,zt,el,yl,Es,Ql,Kn,Zs,lr,Dt,N,er,vs,sr,tr,Fl,or,ar,As,nr,rr,Ht,zl,St,ml,pr,$s,Mr,ir,Pt,Dl,Ot,ie,cr,xt,sl,Jl,ks,Hl,fr,Ns,dr,qt,ce,yr,Lt,D,mr,Rs,Jr,wr,Bs,ur,jr,Kt,Sl,lo,R,Tr,Ws,Ur,_r,Xs,hr,Cr,gs,br,Ir,eo;return v=new he({}),hl=new he({}),Cl=new C({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFByZXRyYWluZWRDb25maWclMEFmcm9tJTIwdHlwaW5nJTIwaW1wb3J0JTIwTGlzdCUwQSUwQSUwQWNsYXNzJTIwUmVzbmV0Q29uZmlnKFByZXRyYWluZWRDb25maWcpJTNBJTBBJTIwJTIwJTIwJTIwbW9kZWxfdHlwZSUyMCUzRCUyMCUyMnJlc25ldCUyMiUwQSUwQSUyMCUyMCUyMCUyMGRlZiUyMF9faW5pdF9fKCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHNlbGYlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBibG9ja190eXBlJTNEJTIyYm90dGxlbmVjayUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGxheWVycyUzQSUyMExpc3QlNUJpbnQlNUQlMjAlM0QlMjAlNUIzJTJDJTIwNCUyQyUyMDYlMkMlMjAzJTVEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwbnVtX2NsYXNzZXMlM0ElMjBpbnQlMjAlM0QlMjAxMDAwJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwaW5wdXRfY2hhbm5lbHMlM0ElMjBpbnQlMjAlM0QlMjAzJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwY2FyZGluYWxpdHklM0ElMjBpbnQlMjAlM0QlMjAxJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwYmFzZV93aWR0aCUzQSUyMGludCUyMCUzRCUyMDY0JTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwc3RlbV93aWR0aCUzQSUyMGludCUyMCUzRCUyMDY0JTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwc3RlbV90eXBlJTNBJTIwc3RyJTIwJTNEJTIwJTIyJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwYXZnX2Rvd24lM0ElMjBib29sJTIwJTNEJTIwRmFsc2UlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAqKmt3YXJncyUyQyUwQSUyMCUyMCUyMCUyMCklM0ElMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBpZiUyMGJsb2NrX3R5cGUlMjBub3QlMjBpbiUyMCU1QiUyMmJhc2ljJTIyJTJDJTIwJTIyYm90dGxlbmVjayUyMiU1RCUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHJhaXNlJTIwVmFsdWVFcnJvcihmJTIyJTYwYmxvY2tfdHlwZSU2MCUyMG11c3QlMjBiZSUyMCdiYXNpYyclMjBvciUyMGJvdHRsZW5lY2snJTJDJTIwZ290JTIwJTdCYmxvY2tfdHlwZSU3RC4lMjIpJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwaWYlMjBzdGVtX3R5cGUlMjBub3QlMjBpbiUyMCU1QiUyMiUyMiUyQyUyMCUyMmRlZXAlMjIlMkMlMjAlMjJkZWVwLXRpZXJlZCUyMiU1RCUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHJhaXNlJTIwVmFsdWVFcnJvcihmJTIyJTYwc3RlbV90eXBlJTYwJTIwbXVzdCUyMGJlJTIwJyclMkMlMjAnZGVlcCclMjBvciUyMCdkZWVwLXRpZXJlZCclMkMlMjBnb3QlMjAlN0JzdGVtX3R5cGUlN0QuJTIyKSUwQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHNlbGYuYmxvY2tfdHlwZSUyMCUzRCUyMGJsb2NrX3R5cGUlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBzZWxmLmxheWVycyUyMCUzRCUyMGxheWVycyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHNlbGYubnVtX2NsYXNzZXMlMjAlM0QlMjBudW1fY2xhc3NlcyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHNlbGYuaW5wdXRfY2hhbm5lbHMlMjAlM0QlMjBpbnB1dF9jaGFubmVscyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHNlbGYuY2FyZGluYWxpdHklMjAlM0QlMjBjYXJkaW5hbGl0eSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHNlbGYuYmFzZV93aWR0aCUyMCUzRCUyMGJhc2Vfd2lkdGglMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBzZWxmLnN0ZW1fd2lkdGglMjAlM0QlMjBzdGVtX3dpZHRoJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwc2VsZi5zdGVtX3R5cGUlMjAlM0QlMjBzdGVtX3R5cGUlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBzZWxmLmF2Z19kb3duJTIwJTNEJTIwYXZnX2Rvd24lMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBzdXBlcigpLl9faW5pdF9fKCoqa3dhcmdzKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> PretrainedConfig
<span class="hljs-keyword">from</span> typing <span class="hljs-keyword">import</span> <span class="hljs-type">List</span>


<span class="hljs-keyword">class</span> <span class="hljs-title class_">ResnetConfig</span>(<span class="hljs-title class_ inherited__">PretrainedConfig</span>):
    model_type = <span class="hljs-string">&quot;resnet&quot;</span>

    <span class="hljs-keyword">def</span> <span class="hljs-title function_">__init__</span>(<span class="hljs-params">
        self,
        block_type=<span class="hljs-string">&quot;bottleneck&quot;</span>,
        layers: <span class="hljs-type">List</span>[<span class="hljs-built_in">int</span>] = [<span class="hljs-number">3</span>, <span class="hljs-number">4</span>, <span class="hljs-number">6</span>, <span class="hljs-number">3</span>],
        num_classes: <span class="hljs-built_in">int</span> = <span class="hljs-number">1000</span>,
        input_channels: <span class="hljs-built_in">int</span> = <span class="hljs-number">3</span>,
        cardinality: <span class="hljs-built_in">int</span> = <span class="hljs-number">1</span>,
        base_width: <span class="hljs-built_in">int</span> = <span class="hljs-number">64</span>,
        stem_width: <span class="hljs-built_in">int</span> = <span class="hljs-number">64</span>,
        stem_type: <span class="hljs-built_in">str</span> = <span class="hljs-string">&quot;&quot;</span>,
        avg_down: <span class="hljs-built_in">bool</span> = <span class="hljs-literal">False</span>,
        **kwargs,
    </span>):
        <span class="hljs-keyword">if</span> block_type <span class="hljs-keyword">not</span> <span class="hljs-keyword">in</span> [<span class="hljs-string">&quot;basic&quot;</span>, <span class="hljs-string">&quot;bottleneck&quot;</span>]:
            <span class="hljs-keyword">raise</span> ValueError(<span class="hljs-string">f&quot;\`block_type\` must be &#x27;basic&#x27; or bottleneck&#x27;, got <span class="hljs-subst">{block_type}</span>.&quot;</span>)
        <span class="hljs-keyword">if</span> stem_type <span class="hljs-keyword">not</span> <span class="hljs-keyword">in</span> [<span class="hljs-string">&quot;&quot;</span>, <span class="hljs-string">&quot;deep&quot;</span>, <span class="hljs-string">&quot;deep-tiered&quot;</span>]:
            <span class="hljs-keyword">raise</span> ValueError(<span class="hljs-string">f&quot;\`stem_type\` must be &#x27;&#x27;, &#x27;deep&#x27; or &#x27;deep-tiered&#x27;, got <span class="hljs-subst">{stem_type}</span>.&quot;</span>)

        self.block_type = block_type
        self.layers = layers
        self.num_classes = num_classes
        self.input_channels = input_channels
        self.cardinality = cardinality
        self.base_width = base_width
        self.stem_width = stem_width
        self.stem_type = stem_type
        self.avg_down = avg_down
        <span class="hljs-built_in">super</span>().__init__(**kwargs)`}}),bl=new C({props:{code:"cmVzbmV0NTBkX2NvbmZpZyUyMCUzRCUyMFJlc25ldENvbmZpZyhibG9ja190eXBlJTNEJTIyYm90dGxlbmVjayUyMiUyQyUyMHN0ZW1fd2lkdGglM0QzMiUyQyUyMHN0ZW1fdHlwZSUzRCUyMmRlZXAlMjIlMkMlMjBhdmdfZG93biUzRFRydWUpJTBBcmVzbmV0NTBkX2NvbmZpZy5zYXZlX3ByZXRyYWluZWQoJTIyY3VzdG9tLXJlc25ldCUyMik=",highlighted:`resnet50d_config = ResnetConfig(block_type=<span class="hljs-string">&quot;bottleneck&quot;</span>, stem_width=<span class="hljs-number">32</span>, stem_type=<span class="hljs-string">&quot;deep&quot;</span>, avg_down=<span class="hljs-literal">True</span>)
resnet50d_config.save_pretrained(<span class="hljs-string">&quot;custom-resnet&quot;</span>)`}}),Il=new C({props:{code:"cmVzbmV0NTBkX2NvbmZpZyUyMCUzRCUyMFJlc25ldENvbmZpZy5mcm9tX3ByZXRyYWluZWQoJTIyY3VzdG9tLXJlc25ldCUyMik=",highlighted:'resnet50d_config = ResnetConfig.from_pretrained(<span class="hljs-string">&quot;custom-resnet&quot;</span>)'}}),El=new he({}),Zl=new C({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFByZVRyYWluZWRNb2RlbCUwQWZyb20lMjB0aW1tLm1vZGVscy5yZXNuZXQlMjBpbXBvcnQlMjBCYXNpY0Jsb2NrJTJDJTIwQm90dGxlbmVjayUyQyUyMFJlc05ldCUwQWZyb20lMjAuY29uZmlndXJhdGlvbl9yZXNuZXQlMjBpbXBvcnQlMjBSZXNuZXRDb25maWclMEElMEElMEFCTE9DS19NQVBQSU5HJTIwJTNEJTIwJTdCJTIyYmFzaWMlMjIlM0ElMjBCYXNpY0Jsb2NrJTJDJTIwJTIyYm90dGxlbmVjayUyMiUzQSUyMEJvdHRsZW5lY2slN0QlMEElMEElMEFjbGFzcyUyMFJlc25ldE1vZGVsKFByZVRyYWluZWRNb2RlbCklM0ElMEElMjAlMjAlMjAlMjBjb25maWdfY2xhc3MlMjAlM0QlMjBSZXNuZXRDb25maWclMEElMEElMjAlMjAlMjAlMjBkZWYlMjBfX2luaXRfXyhzZWxmJTJDJTIwY29uZmlnKSUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHN1cGVyKCkuX19pbml0X18oY29uZmlnKSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGJsb2NrX2xheWVyJTIwJTNEJTIwQkxPQ0tfTUFQUElORyU1QmNvbmZpZy5ibG9ja190eXBlJTVEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwc2VsZi5tb2RlbCUyMCUzRCUyMFJlc05ldCglMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBibG9ja19sYXllciUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGNvbmZpZy5sYXllcnMlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBudW1fY2xhc3NlcyUzRGNvbmZpZy5udW1fY2xhc3NlcyUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGluX2NoYW5zJTNEY29uZmlnLmlucHV0X2NoYW5uZWxzJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwY2FyZGluYWxpdHklM0Rjb25maWcuY2FyZGluYWxpdHklMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBiYXNlX3dpZHRoJTNEY29uZmlnLmJhc2Vfd2lkdGglMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBzdGVtX3dpZHRoJTNEY29uZmlnLnN0ZW1fd2lkdGglMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBzdGVtX3R5cGUlM0Rjb25maWcuc3RlbV90eXBlJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwYXZnX2Rvd24lM0Rjb25maWcuYXZnX2Rvd24lMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjApJTBBJTBBJTIwJTIwJTIwJTIwZGVmJTIwZm9yd2FyZChzZWxmJTJDJTIwdGVuc29yKSUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHJldHVybiUyMHNlbGYubW9kZWwuZm9yd2FyZF9mZWF0dXJlcyh0ZW5zb3Ip",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> PreTrainedModel
<span class="hljs-keyword">from</span> timm.models.resnet <span class="hljs-keyword">import</span> BasicBlock, Bottleneck, ResNet
<span class="hljs-keyword">from</span> .configuration_resnet <span class="hljs-keyword">import</span> ResnetConfig


BLOCK_MAPPING = {<span class="hljs-string">&quot;basic&quot;</span>: BasicBlock, <span class="hljs-string">&quot;bottleneck&quot;</span>: Bottleneck}


<span class="hljs-keyword">class</span> <span class="hljs-title class_">ResnetModel</span>(<span class="hljs-title class_ inherited__">PreTrainedModel</span>):
    config_class = ResnetConfig

    <span class="hljs-keyword">def</span> <span class="hljs-title function_">__init__</span>(<span class="hljs-params">self, config</span>):
        <span class="hljs-built_in">super</span>().__init__(config)
        block_layer = BLOCK_MAPPING[config.block_type]
        self.model = ResNet(
            block_layer,
            config.layers,
            num_classes=config.num_classes,
            in_chans=config.input_channels,
            cardinality=config.cardinality,
            base_width=config.base_width,
            stem_width=config.stem_width,
            stem_type=config.stem_type,
            avg_down=config.avg_down,
        )

    <span class="hljs-keyword">def</span> <span class="hljs-title function_">forward</span>(<span class="hljs-params">self, tensor</span>):
        <span class="hljs-keyword">return</span> self.model.forward_features(tensor)`}}),vl=new C({props:{code:"aW1wb3J0JTIwdG9yY2glMEElMEElMEFjbGFzcyUyMFJlc25ldE1vZGVsRm9ySW1hZ2VDbGFzc2lmaWNhdGlvbihQcmVUcmFpbmVkTW9kZWwpJTNBJTBBJTIwJTIwJTIwJTIwY29uZmlnX2NsYXNzJTIwJTNEJTIwUmVzbmV0Q29uZmlnJTBBJTBBJTIwJTIwJTIwJTIwZGVmJTIwX19pbml0X18oc2VsZiUyQyUyMGNvbmZpZyklM0ElMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBzdXBlcigpLl9faW5pdF9fKGNvbmZpZyklMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBibG9ja19sYXllciUyMCUzRCUyMEJMT0NLX01BUFBJTkclNUJjb25maWcuYmxvY2tfdHlwZSU1RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHNlbGYubW9kZWwlMjAlM0QlMjBSZXNOZXQoJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwYmxvY2tfbGF5ZXIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBjb25maWcubGF5ZXJzJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwbnVtX2NsYXNzZXMlM0Rjb25maWcubnVtX2NsYXNzZXMlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBpbl9jaGFucyUzRGNvbmZpZy5pbnB1dF9jaGFubmVscyUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGNhcmRpbmFsaXR5JTNEY29uZmlnLmNhcmRpbmFsaXR5JTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwYmFzZV93aWR0aCUzRGNvbmZpZy5iYXNlX3dpZHRoJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwc3RlbV93aWR0aCUzRGNvbmZpZy5zdGVtX3dpZHRoJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwc3RlbV90eXBlJTNEY29uZmlnLnN0ZW1fdHlwZSUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGF2Z19kb3duJTNEY29uZmlnLmF2Z19kb3duJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwKSUwQSUwQSUyMCUyMCUyMCUyMGRlZiUyMGZvcndhcmQoc2VsZiUyQyUyMHRlbnNvciUyQyUyMGxhYmVscyUzRE5vbmUpJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwbG9naXRzJTIwJTNEJTIwc2VsZi5tb2RlbCh0ZW5zb3IpJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwaWYlMjBsYWJlbHMlMjBpcyUyMG5vdCUyME5vbmUlM0ElMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBsb3NzJTIwJTNEJTIwdG9yY2gubm4uY3Jvc3NfZW50cm9weShsb2dpdHMlMkMlMjBsYWJlbHMpJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwcmV0dXJuJTIwJTdCJTIybG9zcyUyMiUzQSUyMGxvc3MlMkMlMjAlMjJsb2dpdHMlMjIlM0ElMjBsb2dpdHMlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjByZXR1cm4lMjAlN0IlMjJsb2dpdHMlMjIlM0ElMjBsb2dpdHMlN0Q=",highlighted:`<span class="hljs-keyword">import</span> torch


<span class="hljs-keyword">class</span> <span class="hljs-title class_">ResnetModelForImageClassification</span>(<span class="hljs-title class_ inherited__">PreTrainedModel</span>):
    config_class = ResnetConfig

    <span class="hljs-keyword">def</span> <span class="hljs-title function_">__init__</span>(<span class="hljs-params">self, config</span>):
        <span class="hljs-built_in">super</span>().__init__(config)
        block_layer = BLOCK_MAPPING[config.block_type]
        self.model = ResNet(
            block_layer,
            config.layers,
            num_classes=config.num_classes,
            in_chans=config.input_channels,
            cardinality=config.cardinality,
            base_width=config.base_width,
            stem_width=config.stem_width,
            stem_type=config.stem_type,
            avg_down=config.avg_down,
        )

    <span class="hljs-keyword">def</span> <span class="hljs-title function_">forward</span>(<span class="hljs-params">self, tensor, labels=<span class="hljs-literal">None</span></span>):
        logits = self.model(tensor)
        <span class="hljs-keyword">if</span> labels <span class="hljs-keyword">is</span> <span class="hljs-keyword">not</span> <span class="hljs-literal">None</span>:
            loss = torch.nn.cross_entropy(logits, labels)
            <span class="hljs-keyword">return</span> {<span class="hljs-string">&quot;loss&quot;</span>: loss, <span class="hljs-string">&quot;logits&quot;</span>: logits}
        <span class="hljs-keyword">return</span> {<span class="hljs-string">&quot;logits&quot;</span>: logits}`}}),Ml=new Zr({props:{$$slots:{default:[UM]},$$scope:{ctx:tl}}}),Al=new C({props:{code:"cmVzbmV0NTBkJTIwJTNEJTIwUmVzbmV0TW9kZWxGb3JJbWFnZUNsYXNzaWZpY2F0aW9uKHJlc25ldDUwZF9jb25maWcp",highlighted:"resnet50d = ResnetModelForImageClassification(resnet50d_config)"}}),$l=new C({props:{code:"aW1wb3J0JTIwdGltbSUwQSUwQXByZXRyYWluZWRfbW9kZWwlMjAlM0QlMjB0aW1tLmNyZWF0ZV9tb2RlbCglMjJyZXNuZXQ1MGQlMjIlMkMlMjBwcmV0cmFpbmVkJTNEVHJ1ZSklMEFyZXNuZXQ1MGQubW9kZWwubG9hZF9zdGF0ZV9kaWN0KHByZXRyYWluZWRfbW9kZWwuc3RhdGVfZGljdCgpKQ==",highlighted:`<span class="hljs-keyword">import</span> timm

pretrained_model = timm.create_model(<span class="hljs-string">&quot;resnet50d&quot;</span>, pretrained=<span class="hljs-literal">True</span>)
resnet50d.model.load_state_dict(pretrained_model.state_dict())`}}),kl=new he({}),cl=new Zr({props:{warning:!0,$$slots:{default:[_M]},$$scope:{ctx:tl}}}),Nl=new C({props:{code:"LiUwQSVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMHJlc25ldF9tb2RlbCUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMF9faW5pdF9fLnB5JTBBJTIwJTIwJTIwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwY29uZmlndXJhdGlvbl9yZXNuZXQucHklMEElMjAlMjAlMjAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjBtb2RlbGluZ19yZXNuZXQucHk=",highlighted:`.
\u2514\u2500\u2500 resnet_model
    \u251C\u2500\u2500 __init__.<span class="hljs-keyword">py</span>
    \u251C\u2500\u2500 configuration_resnet.<span class="hljs-keyword">py</span>
    \u2514\u2500\u2500 modeling_resnet.<span class="hljs-keyword">py</span>`}}),fl=new Zr({props:{warning:!0,$$slots:{default:[hM]},$$scope:{ctx:tl}}}),Rl=new C({props:{code:"ZnJvbSUyMHJlc25ldF9tb2RlbC5jb25maWd1cmF0aW9uX3Jlc25ldCUyMGltcG9ydCUyMFJlc25ldENvbmZpZyUwQWZyb20lMjByZXNuZXRfbW9kZWwubW9kZWxpbmdfcmVzbmV0JTIwaW1wb3J0JTIwUmVzbmV0TW9kZWwlMkMlMjBSZXNuZXRNb2RlbEZvckltYWdlQ2xhc3NpZmljYXRpb24=",highlighted:`<span class="hljs-keyword">from</span> resnet_model.configuration_resnet <span class="hljs-keyword">import</span> ResnetConfig
<span class="hljs-keyword">from</span> resnet_model.modeling_resnet <span class="hljs-keyword">import</span> ResnetModel, ResnetModelForImageClassification`}}),Bl=new C({props:{code:"UmVzbmV0Q29uZmlnLnJlZ2lzdGVyX2Zvcl9hdXRvX2NsYXNzKCklMEFSZXNuZXRNb2RlbC5yZWdpc3Rlcl9mb3JfYXV0b19jbGFzcyglMjJBdXRvTW9kZWwlMjIpJTBBUmVzbmV0TW9kZWxGb3JJbWFnZUNsYXNzaWZpY2F0aW9uLnJlZ2lzdGVyX2Zvcl9hdXRvX2NsYXNzKCUyMkF1dG9Nb2RlbEZvckltYWdlQ2xhc3NpZmljYXRpb24lMjIp",highlighted:`ResnetConfig.register_for_auto_class()
ResnetModel.register_for_auto_class(<span class="hljs-string">&quot;AutoModel&quot;</span>)
ResnetModelForImageClassification.register_for_auto_class(<span class="hljs-string">&quot;AutoModelForImageClassification&quot;</span>)`}}),Wl=new C({props:{code:"cmVzbmV0NTBkX2NvbmZpZyUyMCUzRCUyMFJlc25ldENvbmZpZyhibG9ja190eXBlJTNEJTIyYm90dGxlbmVjayUyMiUyQyUyMHN0ZW1fd2lkdGglM0QzMiUyQyUyMHN0ZW1fdHlwZSUzRCUyMmRlZXAlMjIlMkMlMjBhdmdfZG93biUzRFRydWUpJTBBcmVzbmV0NTBkJTIwJTNEJTIwUmVzbmV0TW9kZWxGb3JJbWFnZUNsYXNzaWZpY2F0aW9uKHJlc25ldDUwZF9jb25maWcpJTBBJTBBcHJldHJhaW5lZF9tb2RlbCUyMCUzRCUyMHRpbW0uY3JlYXRlX21vZGVsKCUyMnJlc25ldDUwZCUyMiUyQyUyMHByZXRyYWluZWQlM0RUcnVlKSUwQXJlc25ldDUwZC5tb2RlbC5sb2FkX3N0YXRlX2RpY3QocHJldHJhaW5lZF9tb2RlbC5zdGF0ZV9kaWN0KCkp",highlighted:`resnet50d_config = ResnetConfig(block_type=<span class="hljs-string">&quot;bottleneck&quot;</span>, stem_width=<span class="hljs-number">32</span>, stem_type=<span class="hljs-string">&quot;deep&quot;</span>, avg_down=<span class="hljs-literal">True</span>)
resnet50d = ResnetModelForImageClassification(resnet50d_config)

pretrained_model = timm.create_model(<span class="hljs-string">&quot;resnet50d&quot;</span>, pretrained=<span class="hljs-literal">True</span>)
resnet50d.model.load_state_dict(pretrained_model.state_dict())`}}),Xl=new C({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwbG9naW4=",highlighted:"huggingface-cli login"}}),gl=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMG5vdGVib29rX2xvZ2luJTBBJTBBbm90ZWJvb2tfbG9naW4oKQ==",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> notebook_login

notebook_login()`}}),Gl=new C({props:{code:"cmVzbmV0NTBkLnB1c2hfdG9faHViKCUyMmN1c3RvbS1yZXNuZXQ1MGQlMjIp",highlighted:'resnet50d.push_to_hub(<span class="hljs-string">&quot;custom-resnet50d&quot;</span>)'}}),Ql=new he({}),zl=new C({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvckltYWdlQ2xhc3NpZmljYXRpb24lMEElMEFtb2RlbCUyMCUzRCUyMEF1dG9Nb2RlbEZvckltYWdlQ2xhc3NpZmljYXRpb24uZnJvbV9wcmV0cmFpbmVkKCUyMnNndWdnZXIlMkZjdXN0b20tcmVzbmV0NTBkJTIyJTJDJTIwdHJ1c3RfcmVtb3RlX2NvZGUlM0RUcnVlKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModelForImageClassification

model = AutoModelForImageClassification.from_pretrained(<span class="hljs-string">&quot;sgugger/custom-resnet50d&quot;</span>, trust_remote_code=<span class="hljs-literal">True</span>)`}}),Dl=new C({props:{code:"Y29tbWl0X2hhc2glMjAlM0QlMjAlMjJlZDk0YTdjNjI0N2Q4YWVkY2U0NjQ3ZjAwZjIwZGU2ODc1YjViMjkyJTIyJTBBbW9kZWwlMjAlM0QlMjBBdXRvTW9kZWxGb3JJbWFnZUNsYXNzaWZpY2F0aW9uLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJzZ3VnZ2VyJTJGY3VzdG9tLXJlc25ldDUwZCUyMiUyQyUyMHRydXN0X3JlbW90ZV9jb2RlJTNEVHJ1ZSUyQyUyMHJldmlzaW9uJTNEY29tbWl0X2hhc2glMEEp",highlighted:`commit_hash = <span class="hljs-string">&quot;ed94a7c6247d8aedce4647f00f20de6875b5b292&quot;</span>
model = AutoModelForImageClassification.from_pretrained(
    <span class="hljs-string">&quot;sgugger/custom-resnet50d&quot;</span>, trust_remote_code=<span class="hljs-literal">True</span>, revision=commit_hash
)`}}),Hl=new he({}),Sl=new C({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Db25maWclMkMlMjBBdXRvTW9kZWwlMkMlMjBBdXRvTW9kZWxGb3JJbWFnZUNsYXNzaWZpY2F0aW9uJTBBJTBBQXV0b0NvbmZpZy5yZWdpc3RlciglMjJyZXNuZXQlMjIlMkMlMjBSZXNuZXRDb25maWcpJTBBQXV0b01vZGVsLnJlZ2lzdGVyKFJlc25ldENvbmZpZyUyQyUyMFJlc25ldE1vZGVsKSUwQUF1dG9Nb2RlbEZvckltYWdlQ2xhc3NpZmljYXRpb24ucmVnaXN0ZXIoUmVzbmV0Q29uZmlnJTJDJTIwUmVzbmV0TW9kZWxGb3JJbWFnZUNsYXNzaWZpY2F0aW9uKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoConfig, AutoModel, AutoModelForImageClassification

AutoConfig.register(<span class="hljs-string">&quot;resnet&quot;</span>, ResnetConfig)
AutoModel.register(ResnetConfig, ResnetModel)
AutoModelForImageClassification.register(ResnetConfig, ResnetModelForImageClassification)`}}),{c(){d=n("meta"),b=i(),y=n("h1"),U=n("a"),S=n("span"),m(v.$$.fragment),B=i(),ol=n("span"),io=t("\uC0AC\uC6A9\uC790 \uC815\uC758 \uBAA8\uB378 \uACF5\uC720\uD558\uAE30"),Ds=i(),Ol=n("p"),co=t(`\u{1F917} Transformers \uB77C\uC774\uBE0C\uB7EC\uB9AC\uB294 \uC27D\uAC8C \uD655\uC7A5\uD560 \uC218 \uC788\uB3C4\uB85D \uC124\uACC4\uB418\uC5C8\uC2B5\uB2C8\uB2E4.
\uBAA8\uB4E0 \uBAA8\uB378\uC740 \uCD94\uC0C1\uD654 \uC5C6\uC774 \uC800\uC7A5\uC18C\uC758 \uC9C0\uC815\uB41C \uD558\uC704 \uD3F4\uB354\uC5D0 \uC644\uC804\uD788 \uCF54\uB529\uB418\uC5B4 \uC788\uC73C\uBBC0\uB85C, \uC190\uC27D\uAC8C \uBAA8\uB378\uB9C1 \uD30C\uC77C\uC744 \uBCF5\uC0AC\uD558\uACE0 \uD544\uC694\uC5D0 \uB530\uB77C \uC870\uC815\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`),Hs=i(),xl=n("p"),fo=t(`\uC644\uC804\uD788 \uC0C8\uB85C\uC6B4 \uBAA8\uB378\uC744 \uB9CC\uB4DC\uB294 \uACBD\uC6B0\uC5D0\uB294 \uCC98\uC74C\uBD80\uD130 \uC2DC\uC791\uD558\uB294 \uAC83\uC774 \uB354 \uC26C\uC6B8 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uC774 \uD29C\uD1A0\uB9AC\uC5BC\uC5D0\uC11C\uB294 Transformers \uB0B4\uC5D0\uC11C \uC0AC\uC6A9\uD560 \uC218 \uC788\uB3C4\uB85D \uC0AC\uC6A9\uC790 \uC815\uC758 \uBAA8\uB378\uACFC \uAD6C\uC131\uC744 \uC791\uC131\uD558\uB294 \uBC29\uBC95\uACFC
\u{1F917} Transformers \uB77C\uC774\uBE0C\uB7EC\uB9AC\uC5D0 \uC5C6\uB294 \uACBD\uC6B0\uC5D0\uB3C4 \uB204\uAD6C\uB098 \uC0AC\uC6A9\uD560 \uC218 \uC788\uB3C4\uB85D (\uC758\uC874\uC131\uACFC \uD568\uAED8) \uCEE4\uBBA4\uB2C8\uD2F0\uC5D0 \uACF5\uC720\uD558\uB294 \uBC29\uBC95\uC744 \uBC30\uC6B8 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`),Ss=i(),P=n("p"),_l=n("a"),yo=t("timm \uB77C\uC774\uBE0C\uB7EC\uB9AC"),mo=t("\uC758 ResNet \uD074\uB798\uC2A4\uB97C "),Ce=n("code"),Jo=t("PreTrainedModel"),wo=t("\uB85C \uB798\uD551\uD55C ResNet \uBAA8\uB378\uC744 \uC608\uB85C \uBAA8\uB4E0 \uAC83\uC744 \uC124\uBA85\uD569\uB2C8\uB2E4."),Ps=i(),O=n("h2"),al=n("a"),be=n("span"),m(hl.$$.fragment),uo=i(),Ie=n("span"),jo=t("\uC0AC\uC6A9\uC790 \uC815\uC758 \uAD6C\uC131 \uC791\uC131\uD558\uAE30"),Os=i(),W=n("p"),To=t(`\uBAA8\uB378\uC5D0 \uB4E4\uC5B4\uAC00\uAE30 \uC804\uC5D0 \uBA3C\uC800 \uAD6C\uC131\uC744 \uC791\uC131\uD574\uBCF4\uB3C4\uB85D \uD558\uACA0\uC2B5\uB2C8\uB2E4.
\uBAA8\uB378\uC758 `),Ee=n("code"),Uo=t("configuration"),_o=t(`\uC740 \uBAA8\uB378\uC744 \uB9CC\uB4E4\uAE30 \uC704\uD574 \uD544\uC694\uD55C \uBAA8\uB4E0 \uC911\uC694\uD55C \uAC83\uB4E4\uC744 \uD3EC\uD568\uD558\uACE0 \uC788\uB294 \uAC1D\uCCB4\uC785\uB2C8\uB2E4.
\uB2E4\uC74C \uC139\uC158\uC5D0\uC11C \uBCFC \uC218 \uC788\uB4EF\uC774, \uBAA8\uB378\uC740 `),Ze=n("code"),ho=t("config"),Co=t("\uB97C \uC0AC\uC6A9\uD574\uC11C\uB9CC \uCD08\uAE30\uD654\uD560 \uC218 \uC788\uAE30 \uB54C\uBB38\uC5D0 \uC644\uBCBD\uD55C \uAD6C\uC131\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."),xs=i(),ql=n("p"),bo=t(`\uC544\uB798 \uC608\uC2DC\uC5D0\uC11C\uB294 ResNet \uD074\uB798\uC2A4\uC758 \uC778\uC218(argument)\uB97C \uC870\uC815\uD574\uBCF4\uACA0\uC2B5\uB2C8\uB2E4.
\uB2E4\uB978 \uAD6C\uC131\uC740 \uAC00\uB2A5\uD55C ResNet \uC911 \uB2E4\uB978 \uC720\uD615\uC744 \uC81C\uACF5\uD569\uB2C8\uB2E4.
\uADF8\uB7F0 \uB2E4\uC74C \uBA87 \uAC00\uC9C0 \uC720\uD6A8\uC131\uC744 \uD655\uC778\uD55C \uD6C4 \uD574\uB2F9 \uC778\uC218\uB97C \uC800\uC7A5\uD569\uB2C8\uB2E4.`),qs=i(),m(Cl.$$.fragment),Ls=i(),nl=n("p"),Io=t("\uC0AC\uC6A9\uC790 \uC815\uC758 "),ve=n("code"),Eo=t("configuration"),Zo=t("\uC744 \uC791\uC131\uD560 \uB54C \uAE30\uC5B5\uD574\uC57C \uD560 \uC138 \uAC00\uC9C0 \uC911\uC694\uD55C \uC0AC\uD56D\uC740 \uB2E4\uC74C\uACFC \uAC19\uC2B5\uB2C8\uB2E4:"),Ks=i(),X=n("ul"),Ll=n("li"),Ae=n("code"),vo=t("PretrainedConfig"),Ao=t("\uC744 \uC0C1\uC18D\uD574\uC57C \uD569\uB2C8\uB2E4."),$o=i(),rl=n("li"),$e=n("code"),ko=t("PretrainedConfig"),No=t("\uC758 "),ke=n("code"),Ro=t("__init__"),Bo=t("\uC740 \uBAA8\uB4E0 kwargs\uB97C \uD5C8\uC6A9\uD574\uC57C \uD558\uACE0,"),Wo=i(),x=n("li"),Xo=t("\uC774\uB7EC\uD55C "),Ne=n("code"),go=t("kwargs"),Go=t("\uB294 \uC0C1\uC704 \uD074\uB798\uC2A4 "),Re=n("code"),Yo=t("__init__"),Vo=t("\uC5D0 \uC804\uB2EC\uB418\uC5B4\uC57C \uD569\uB2C8\uB2E4."),lt=i(),g=n("p"),Qo=t(`\uC0C1\uC18D\uC740 \u{1F917} Transformers \uB77C\uC774\uBE0C\uB7EC\uB9AC\uC5D0\uC11C \uBAA8\uB4E0 \uAE30\uB2A5\uC744 \uAC00\uC838\uC624\uB294 \uAC83\uC785\uB2C8\uB2E4.
\uC774\uB7EC\uD55C \uC810\uC73C\uB85C\uBD80\uD130 \uBE44\uB86F\uB418\uB294 \uB450 \uAC00\uC9C0 \uC81C\uC57D \uC870\uAC74\uC740 `),Be=n("code"),Fo=t("PretrainedConfig"),zo=t(`\uC5D0 \uC124\uC815\uD558\uB294 \uAC83\uBCF4\uB2E4 \uB354 \uB9CE\uC740 \uD544\uB4DC\uAC00 \uC788\uC2B5\uB2C8\uB2E4.
`),We=n("code"),Do=t("from_pretrained"),Ho=t(" \uBA54\uC11C\uB4DC\uB85C \uAD6C\uC131\uC744 \uB2E4\uC2DC \uB85C\uB4DC\uD560 \uB54C \uD574\uB2F9 \uD544\uB4DC\uB294 \uAD6C\uC131\uC5D0\uC11C \uC218\uB77D\uD55C \uD6C4 \uC0C1\uC704 \uD074\uB798\uC2A4\uB85C \uBCF4\uB0B4\uC57C \uD569\uB2C8\uB2E4."),et=i(),A=n("p"),So=t("\uBAA8\uB378\uC744 auto \uD074\uB798\uC2A4\uC5D0 \uB4F1\uB85D\uD558\uC9C0 \uC54A\uB294 \uD55C, "),Xe=n("code"),Po=t("configuration"),Oo=t("\uC5D0\uC11C "),ge=n("code"),xo=t("model_type"),qo=t("\uC744 \uC815\uC758(\uC5EC\uAE30\uC11C "),Ge=n("code"),Lo=t('model_type="resnet"'),Ko=t(")\uD558\uB294 \uAC83\uC740 \uD544\uC218 \uC0AC\uD56D\uC774 \uC544\uB2D9\uB2C8\uB2E4 (\uB9C8\uC9C0\uB9C9 \uC139\uC158 \uCC38\uC870)."),st=i(),Kl=n("p"),la=t(`\uC774\uB807\uAC8C \uD558\uBA74 \uB77C\uC774\uBE0C\uB7EC\uB9AC\uC758 \uB2E4\uB978 \uBAA8\uB378 \uAD6C\uC131\uACFC \uB9C8\uCC2C\uAC00\uC9C0\uB85C \uAD6C\uC131\uC744 \uC27D\uAC8C \uB9CC\uB4E4\uACE0 \uC800\uC7A5\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uB2E4\uC74C\uC740 resnet50d \uAD6C\uC131\uC744 \uC0DD\uC131\uD558\uACE0 \uC800\uC7A5\uD558\uB294 \uBC29\uBC95\uC785\uB2C8\uB2E4:`),tt=i(),m(bl.$$.fragment),ot=i(),$=n("p"),ea=t("\uC774\uB807\uAC8C \uD558\uBA74 "),Ye=n("code"),sa=t("custom-resnet"),ta=t(" \uD3F4\uB354 \uC548\uC5D0 "),Ve=n("code"),oa=t("config.json"),aa=t(`\uC774\uB77C\uB294 \uD30C\uC77C\uC774 \uC800\uC7A5\uB429\uB2C8\uB2E4.
\uADF8\uB7F0 \uB2E4\uC74C `),Qe=n("code"),na=t("from_pretrained"),ra=t(" \uBA54\uC11C\uB4DC\uB97C \uC0AC\uC6A9\uD558\uC5EC \uAD6C\uC131\uC744 \uB2E4\uC2DC \uB85C\uB4DC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),at=i(),m(Il.$$.fragment),nt=i(),G=n("p"),pa=t("\uAD6C\uC131\uC744 Hub\uC5D0 \uC9C1\uC811 \uC5C5\uB85C\uB4DC\uD558\uAE30 \uC704\uD574 "),Fe=n("code"),Ma=t("PretrainedConfig"),ia=t(" \uD074\uB798\uC2A4\uC758 "),ze=n("code"),ca=t("push_to_hub()"),fa=t("\uC640 \uAC19\uC740 \uB2E4\uB978 \uBA54\uC11C\uB4DC\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),rt=i(),q=n("h2"),pl=n("a"),De=n("span"),m(El.$$.fragment),da=i(),He=n("span"),ya=t("\uC0AC\uC6A9\uC790 \uC815\uC758 \uBAA8\uB378 \uC791\uC131\uD558\uAE30"),pt=i(),Y=n("p"),ma=t(`\uC774\uC81C ResNet \uAD6C\uC131\uC774 \uC788\uC73C\uBBC0\uB85C \uBAA8\uB378\uC744 \uC791\uC131\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uC2E4\uC81C\uB85C\uB294 \uB450 \uAC1C\uB97C \uC791\uC131\uD560 \uAC83\uC785\uB2C8\uB2E4. \uD558\uB098\uB294 \uC774\uBBF8\uC9C0 \uBC30\uCE58\uC5D0\uC11C hidden features\uB97C \uCD94\uCD9C\uD558\uB294 \uAC83(`),Se=n("code"),Ja=t("BertModel"),wa=t("\uACFC \uAC19\uC774), \uB2E4\uB978 \uD558\uB098\uB294 \uC774\uBBF8\uC9C0 \uBD84\uB958\uC5D0 \uC801\uD569\uD55C \uAC83\uC785\uB2C8\uB2E4("),Pe=n("code"),ua=t("BertForSequenceClassification"),ja=t("\uACFC \uAC19\uC774)."),Mt=i(),V=n("p"),Ta=t(`\uC774\uC804\uC5D0 \uC5B8\uAE09\uD588\uB4EF\uC774 \uC774 \uC608\uC81C\uC5D0\uC11C\uB294 \uB2E8\uC21C\uD558\uAC8C \uD558\uAE30 \uC704\uD574 \uBAA8\uB378\uC758 \uB290\uC2A8\uD55C \uB798\uD37C(loose wrapper)\uB9CC \uC791\uC131\uD560 \uAC83\uC785\uB2C8\uB2E4.
\uC774 \uD074\uB798\uC2A4\uB97C \uC791\uC131\uD558\uAE30 \uC804\uC5D0 \uBE14\uB85D \uC720\uD615\uACFC \uC2E4\uC81C \uBE14\uB85D \uD074\uB798\uC2A4 \uAC04\uC758 \uB9E4\uD551 \uC791\uC5C5\uB9CC \uD558\uBA74 \uB429\uB2C8\uB2E4.
\uADF8\uB7F0 \uB2E4\uC74C `),Oe=n("code"),Ua=t("ResNet"),_a=t(" \uD074\uB798\uC2A4\uB85C \uC804\uB2EC\uB418\uC5B4 "),xe=n("code"),ha=t("configuration"),Ca=t("\uC744 \uD1B5\uD574 \uBAA8\uB378\uC774 \uC120\uC5B8\uB429\uB2C8\uB2E4:"),it=i(),m(Zl.$$.fragment),ct=i(),le=n("p"),ba=t("\uC774\uBBF8\uC9C0 \uBD84\uB958 \uBAA8\uB378\uC744 \uB9CC\uB4E4\uAE30 \uC704\uD574\uC11C\uB294 forward \uBA54\uC18C\uB4DC\uB9CC \uBCC0\uACBD\uD558\uBA74 \uB429\uB2C8\uB2E4:"),ft=i(),m(vl.$$.fragment),dt=i(),E=n("p"),Ia=t("\uB450 \uACBD\uC6B0 \uBAA8\uB450 "),qe=n("code"),Ea=t("PreTrainedModel"),Za=t("\uB97C \uC0C1\uC18D\uBC1B\uACE0, "),Le=n("code"),va=t("config"),Aa=t("\uB97C \uD1B5\uD574 \uC0C1\uC704 \uD074\uB798\uC2A4 \uCD08\uAE30\uD654\uB97C \uD638\uCD9C\uD558\uB2E4\uB294 \uC810\uC744 \uAE30\uC5B5\uD558\uC138\uC694 (\uC77C\uBC18\uC801\uC778 "),Ke=n("code"),$a=t("torch.nn.Module"),ka=t(`\uC744 \uC791\uC131\uD560 \uB54C\uC640 \uBE44\uC2B7\uD568).
\uBAA8\uB378\uC744 auto \uD074\uB798\uC2A4\uC5D0 \uB4F1\uB85D\uD558\uACE0 \uC2F6\uC740 \uACBD\uC6B0\uC5D0\uB294 `),ls=n("code"),Na=t("config_class"),Ra=t("\uB97C \uC124\uC815\uD558\uB294 \uBD80\uBD84\uC774 \uD544\uC218\uC785\uB2C8\uB2E4 (\uB9C8\uC9C0\uB9C9 \uC139\uC158 \uCC38\uC870)."),yt=i(),m(Ml.$$.fragment),mt=i(),Q=n("p"),Ba=t("\uC6D0\uD558\uB294 \uAC83\uC744 \uBAA8\uB378\uC774 \uBC18\uD658\uD558\uB3C4\uB85D \uD560 \uC218 \uC788\uC9C0\uB9CC, "),es=n("code"),Wa=t("ResnetModelForImageClassification"),Xa=t(`\uC5D0\uC11C \uD588\uB358 \uAC83 \uCC98\uB7FC
\uB808\uC774\uBE14\uC744 \uD1B5\uACFC\uC2DC\uCF30\uC744 \uB54C \uC190\uC2E4\uACFC \uD568\uAED8 \uC0AC\uC804 \uD615\uD0DC\uB85C \uBC18\uD658\uD558\uB294 \uAC83\uC774 `),ss=n("code"),ga=t("Trainer"),Ga=t(` \uD074\uB798\uC2A4 \uB0B4\uC5D0\uC11C \uC9C1\uC811 \uBAA8\uB378\uC744 \uC0AC\uC6A9\uD558\uAE30\uC5D0 \uC720\uC6A9\uD569\uB2C8\uB2E4.
\uC790\uC2E0\uB9CC\uC758 \uD559\uC2B5 \uB8E8\uD504 \uB610\uB294 \uB2E4\uB978 \uD559\uC2B5 \uB77C\uC774\uBE0C\uB7EC\uB9AC\uB97C \uC0AC\uC6A9\uD560 \uACC4\uD68D\uC774\uB77C\uBA74 \uB2E4\uB978 \uCD9C\uB825 \uD615\uC2DD\uC744 \uC0AC\uC6A9\uD574\uB3C4 \uC88B\uC2B5\uB2C8\uB2E4.`),Jt=i(),ee=n("p"),Ya=t("\uC774\uC81C \uBAA8\uB378 \uD074\uB798\uC2A4\uAC00 \uC788\uC73C\uBBC0\uB85C \uD558\uB098 \uC0DD\uC131\uD574 \uBCF4\uACA0\uC2B5\uB2C8\uB2E4:"),wt=i(),m(Al.$$.fragment),ut=i(),k=n("p"),Va=t("\uB2E4\uC2DC \uB9D0\uD558\uC9C0\uB9CC, "),ts=n("code"),Qa=t("save_pretrained()"),Fa=t("\uB610\uB294 "),os=n("code"),za=t("push_to_hub()"),Da=t("\uCC98\uB7FC "),as=n("code"),Ha=t("PreTrainedModel"),Sa=t(`\uC5D0 \uC18D\uD558\uB294 \uBAA8\uB4E0 \uBA54\uC18C\uB4DC\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uB2E4\uC74C \uC139\uC158\uC5D0\uC11C \uB450 \uBC88\uC9F8 \uBA54\uC18C\uB4DC\uB97C \uC0AC\uC6A9\uD574 \uBAA8\uB378 \uCF54\uB4DC\uC640 \uBAA8\uB378 \uAC00\uC911\uCE58\uB97C \uC5C5\uB85C\uB4DC\uD558\uB294 \uBC29\uBC95\uC744 \uC0B4\uD3B4\uBCF4\uACA0\uC2B5\uB2C8\uB2E4.
\uBA3C\uC800, \uBAA8\uB378 \uB0B4\uBD80\uC5D0 \uC0AC\uC804 \uD6C8\uB828\uB41C \uAC00\uC911\uCE58\uB97C \uB85C\uB4DC\uD574 \uBCF4\uACA0\uC2B5\uB2C8\uB2E4.`),jt=i(),se=n("p"),Pa=t(`\uC774 \uC608\uC81C\uB97C \uD65C\uC6A9\uD560 \uB54C\uB294, \uC0AC\uC6A9\uC790 \uC815\uC758 \uBAA8\uB378\uC744 \uC790\uC2E0\uB9CC\uC758 \uB370\uC774\uD130\uB85C \uD559\uC2B5\uC2DC\uD0AC \uAC83\uC785\uB2C8\uB2E4.
\uC774 \uD29C\uD1A0\uB9AC\uC5BC\uC5D0\uC11C\uB294 \uBE60\uB974\uAC8C \uC9C4\uD589\uD558\uAE30 \uC704\uD574 \uC0AC\uC804 \uD6C8\uB828\uB41C resnet50d\uB97C \uC0AC\uC6A9\uD558\uACA0\uC2B5\uB2C8\uB2E4.
\uC544\uB798 \uBAA8\uB378\uC740 resnet50d\uC758 \uB798\uD37C\uC774\uAE30 \uB54C\uBB38\uC5D0, \uAC00\uC911\uCE58\uB97C \uC27D\uAC8C \uB85C\uB4DC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`),Tt=i(),m($l.$$.fragment),Ut=i(),F=n("p"),Oa=t("\uC774\uC81C "),ns=n("code"),xa=t("save_pretrained()"),qa=t(" \uB610\uB294 "),rs=n("code"),La=t("push_to_hub()"),Ka=t("\uB97C \uC0AC\uC6A9\uD560 \uB54C \uBAA8\uB378 \uCF54\uB4DC\uAC00 \uC800\uC7A5\uB418\uB294\uC9C0 \uD655\uC778\uD574\uBD05\uC2DC\uB2E4."),_t=i(),L=n("h2"),il=n("a"),ps=n("span"),m(kl.$$.fragment),ln=i(),Ms=n("span"),en=t("Hub\uB85C \uCF54\uB4DC \uC5C5\uB85C\uB4DC\uD558\uAE30"),ht=i(),m(cl.$$.fragment),Ct=i(),_=n("p"),sn=t("\uBA3C\uC800 \uBAA8\uB378\uC774 "),is=n("code"),tn=t(".py"),on=t(` \uD30C\uC77C\uC5D0 \uC644\uC804\uD788 \uC815\uC758\uB418\uC5B4 \uC788\uB294\uC9C0 \uD655\uC778\uD558\uC138\uC694.
\uBAA8\uB4E0 \uD30C\uC77C\uC774 \uB3D9\uC77C\uD55C \uC791\uC5C5 \uACBD\uB85C\uC5D0 \uC788\uAE30 \uB54C\uBB38\uC5D0 \uC0C1\uB300\uACBD\uB85C \uC784\uD3EC\uD2B8(relative import)\uC5D0 \uC758\uC874\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4 (transformers\uC5D0\uC11C\uB294 \uC774 \uAE30\uB2A5\uC5D0 \uB300\uD55C \uD558\uC704 \uBAA8\uB4C8\uC744 \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4).
\uC774 \uC608\uC2DC\uC5D0\uC11C\uB294 \uC791\uC5C5 \uACBD\uB85C \uC548\uC758 `),cs=n("code"),an=t("resnet_model"),nn=t("\uC5D0\uC11C "),fs=n("code"),rn=t("modeling_resnet.py"),pn=t(" \uD30C\uC77C\uACFC "),ds=n("code"),Mn=t("configuration_resnet.py"),cn=t(` \uD30C\uC77C\uC744 \uC815\uC758\uD569\uB2C8\uB2E4.
\uAD6C\uC131 \uD30C\uC77C\uC5D0\uB294 `),ys=n("code"),fn=t("ResnetConfig"),dn=t("\uC5D0 \uB300\uD55C \uCF54\uB4DC\uAC00 \uC788\uACE0 \uBAA8\uB378\uB9C1 \uD30C\uC77C\uC5D0\uB294 "),ms=n("code"),yn=t("ResnetModel"),mn=t(" \uBC0F "),Js=n("code"),Jn=t("ResnetModelForImageClassification"),wn=t("\uC5D0 \uB300\uD55C \uCF54\uB4DC\uAC00 \uC788\uC2B5\uB2C8\uB2E4."),bt=i(),m(Nl.$$.fragment),It=i(),z=n("p"),un=t("Python\uC774 "),ws=n("code"),jn=t("resnet_model"),Tn=t("\uC744 \uBAA8\uB4C8\uB85C \uC0AC\uC6A9\uD560 \uC218 \uC788\uB3C4\uB85D \uAC10\uC9C0\uD558\uB294 \uBAA9\uC801\uC774\uAE30 \uB54C\uBB38\uC5D0 "),us=n("code"),Un=t("__init__.py"),_n=t("\uB294 \uBE44\uC5B4 \uC788\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),Et=i(),m(fl.$$.fragment),Zt=i(),te=n("p"),hn=t("\uAE30\uC874 \uAD6C\uC131\uC774\uB098 \uBAA8\uB378\uC744 \uC7AC\uC0AC\uC6A9(\uB610\uB294 \uC11C\uBE0C \uD074\uB798\uC2A4\uD654)\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),vt=i(),oe=n("p"),Cn=t(`\uCEE4\uBBA4\uB2C8\uD2F0\uC5D0 \uBAA8\uB378\uC744 \uACF5\uC720\uD558\uAE30 \uC704\uD574\uC11C\uB294 \uB2E4\uC74C \uB2E8\uACC4\uB97C \uB530\uB77C\uC57C \uD569\uB2C8\uB2E4:
\uBA3C\uC800, \uC0C8\uB85C \uB9CC\uB4E0 \uD30C\uC77C\uC5D0 ResNet \uBAA8\uB378\uACFC \uAD6C\uC131\uC744 \uC784\uD3EC\uD2B8\uD569\uB2C8\uB2E4:`),At=i(),m(Rl.$$.fragment),$t=i(),dl=n("p"),bn=t("\uB2E4\uC74C\uC73C\uB85C "),js=n("code"),In=t("save_pretrained"),En=t(` \uBA54\uC18C\uB4DC\uB97C \uC0AC\uC6A9\uD574 \uD574\uB2F9 \uAC1D\uCCB4\uC758 \uCF54\uB4DC \uD30C\uC77C\uC744 \uBCF5\uC0AC\uD558\uACE0,
\uBCF5\uC0AC\uD55C \uD30C\uC77C\uC744 Auto \uD074\uB798\uC2A4\uB85C \uB4F1\uB85D\uD558\uACE0(\uBAA8\uB378\uC778 \uACBD\uC6B0) \uC2E4\uD589\uD569\uB2C8\uB2E4:`),kt=i(),m(Bl.$$.fragment),Nt=i(),K=n("p"),Ts=n("code"),Zn=t("configuration"),vn=t("\uC5D0 \uB300\uD55C auto \uD074\uB798\uC2A4\uB97C \uC9C0\uC815\uD560 \uD544\uC694\uB294 \uC5C6\uC9C0\uB9CC("),Us=n("code"),An=t("configuration"),$n=t(` \uAD00\uB828 auto \uD074\uB798\uC2A4\uB294 AutoConfig \uD074\uB798\uC2A4 \uD558\uB098\uB9CC \uC788\uC74C), \uBAA8\uB378\uC758 \uACBD\uC6B0\uC5D0\uB294 \uC9C0\uC815\uD574\uC57C \uD569\uB2C8\uB2E4.
\uC0AC\uC6A9\uC790 \uC9C0\uC815 \uBAA8\uB378\uC740 \uB2E4\uC591\uD55C \uC791\uC5C5\uC5D0 \uC801\uD569\uD560 \uC218 \uC788\uC73C\uBBC0\uB85C, \uBAA8\uB378\uC5D0 \uB9DE\uB294 auto \uD074\uB798\uC2A4\uB97C \uC9C0\uC815\uD574\uC57C \uD569\uB2C8\uB2E4.`),Rt=i(),ae=n("p"),kn=t("\uB2E4\uC74C\uC73C\uB85C, \uC774\uC804\uC5D0 \uC791\uC5C5\uD588\uB358 \uAC83\uACFC \uB9C8\uCC2C\uAC00\uC9C0\uB85C \uAD6C\uC131\uACFC \uBAA8\uB378\uC744 \uC791\uC131\uD569\uB2C8\uB2E4:"),Bt=i(),m(Wl.$$.fragment),Wt=i(),ne=n("p"),Nn=t(`\uC774\uC81C \uBAA8\uB378\uC744 Hub\uB85C \uC5C5\uB85C\uB4DC\uD558\uAE30 \uC704\uD574 \uB85C\uADF8\uC778 \uC0C1\uD0DC\uC778\uC9C0 \uD655\uC778\uD558\uC138\uC694.
\uD130\uBBF8\uB110\uC5D0\uC11C \uB2E4\uC74C \uCF54\uB4DC\uB97C \uC2E4\uD589\uD574 \uD655\uC778\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4:`),Xt=i(),m(Xl.$$.fragment),gt=i(),re=n("p"),Rn=t("\uC8FC\uD53C\uD130 \uB178\uD2B8\uBD81\uC758 \uACBD\uC6B0\uC5D0\uB294 \uB2E4\uC74C\uACFC \uAC19\uC2B5\uB2C8\uB2E4:"),Gt=i(),m(gl.$$.fragment),Yt=i(),pe=n("p"),Bn=t("\uADF8\uB7F0 \uB2E4\uC74C \uC774\uB807\uAC8C \uC790\uC2E0\uC758 \uB124\uC784\uC2A4\uD398\uC774\uC2A4(\uB610\uB294 \uC790\uC2E0\uC774 \uC18D\uD55C \uC870\uC9C1)\uC5D0 \uC5C5\uB85C\uB4DC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4:"),Vt=i(),m(Gl.$$.fragment),Qt=i(),h=n("p"),Wn=t(`On top of the modeling weights and the configuration in json format, this also copied the modeling and
configuration `),_s=n("code"),Xn=t(".py"),gn=t(" files in the folder "),hs=n("code"),Gn=t("custom-resnet50d"),Yn=t(` and uploaded the result to the Hub. You can check the result
in this `),Yl=n("a"),Vn=t("model repo"),Qn=t(`.
json \uD615\uC2DD\uC758 \uBAA8\uB378\uB9C1 \uAC00\uC911\uCE58\uC640 \uAD6C\uC131 \uC678\uC5D0\uB3C4 `),Cs=n("code"),Fn=t("custom-resnet50d"),zn=t(" \uD3F4\uB354 \uC548\uC758 \uBAA8\uB378\uB9C1\uACFC \uAD6C\uC131 "),bs=n("code"),Dn=t(".py"),Hn=t(` \uD30C\uC77C\uC744 \uBCF5\uC0AC\uD558\uD574 Hub\uC5D0 \uC5C5\uB85C\uB4DC\uD569\uB2C8\uB2E4.
`),Vl=n("a"),Sn=t("\uBAA8\uB378 \uC800\uC7A5\uC18C"),Pn=t("\uC5D0\uC11C \uACB0\uACFC\uB97C \uD655\uC778\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),Ft=i(),ll=n("p"),Me=n("a"),On=t("sharing tutorial"),xn=t(" \uBB38\uC11C\uC758 "),Is=n("code"),qn=t("push_to_hub"),Ln=t(" \uBA54\uC18C\uB4DC\uC5D0\uC11C \uC790\uC138\uD55C \uB0B4\uC6A9\uC744 \uD655\uC778\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),zt=i(),el=n("h2"),yl=n("a"),Es=n("span"),m(Ql.$$.fragment),Kn=i(),Zs=n("span"),lr=t("\uC0AC\uC6A9\uC790 \uC815\uC758 \uCF54\uB4DC\uB85C \uBAA8\uB378 \uC0AC\uC6A9\uD558\uAE30"),Dt=i(),N=n("p"),er=t("auto \uD074\uB798\uC2A4\uC640 "),vs=n("code"),sr=t("from_pretrained"),tr=t(` \uBA54\uC18C\uB4DC\uB97C \uC0AC\uC6A9\uD558\uC5EC \uC0AC\uC6A9\uC790 \uC9C0\uC815 \uCF54\uB4DC \uD30C\uC77C\uACFC \uD568\uAED8 \uBAA8\uB4E0 \uAD6C\uC131, \uBAA8\uB378, \uD1A0\uD06C\uB098\uC774\uC800\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
Hub\uC5D0 \uC5C5\uB85C\uB4DC\uB41C \uBAA8\uB4E0 \uD30C\uC77C \uBC0F \uCF54\uB4DC\uB294 \uBA5C\uC6E8\uC5B4\uAC00 \uC788\uB294\uC9C0 \uAC80\uC0AC\uB418\uC9C0\uB9CC (\uC790\uC138\uD55C \uB0B4\uC6A9\uC740 `),Fl=n("a"),or=t("Hub \uBCF4\uC548"),ar=t(` \uC124\uBA85 \uCC38\uC870),
\uC790\uC2E0\uC758 \uCEF4\uD4E8\uD130\uC5D0\uC11C \uBAA8\uB378 \uCF54\uB4DC\uC640 \uC791\uC131\uC790\uAC00 \uC545\uC131 \uCF54\uB4DC\uB97C \uC2E4\uD589\uD558\uC9C0 \uC54A\uB294\uC9C0 \uD655\uC778\uD574\uC57C \uD569\uB2C8\uB2E4.
\uC0AC\uC6A9\uC790 \uC815\uC758 \uCF54\uB4DC\uB85C \uBAA8\uB378\uC744 \uC0AC\uC6A9\uD558\uB824\uBA74 `),As=n("code"),nr=t("trust_remote_code=True"),rr=t("\uB85C \uC124\uC815\uD558\uC138\uC694:"),Ht=i(),m(zl.$$.fragment),St=i(),ml=n("p"),pr=t("\uBAA8\uB378 \uC791\uC131\uC790\uAC00 \uC545\uC758\uC801\uC73C\uB85C \uCF54\uB4DC\uB97C \uC5C5\uB370\uC774\uD2B8\uD558\uC9C0 \uC54A\uC558\uB2E4\uB294 \uC810\uC744 \uD655\uC778\uD558\uAE30 \uC704\uD574, \uCEE4\uBC0B \uD574\uC2DC(commit hash)\uB97C "),$s=n("code"),Mr=t("revision"),ir=t("\uC73C\uB85C \uC804\uB2EC\uD558\uB294 \uAC83\uB3C4 \uAC15\uB825\uD788 \uAD8C\uC7A5\uB429\uB2C8\uB2E4 (\uBAA8\uB378 \uC791\uC131\uC790\uB97C \uC644\uC804\uD788 \uC2E0\uB8B0\uD558\uC9C0 \uC54A\uB294 \uACBD\uC6B0)."),Pt=i(),m(Dl.$$.fragment),Ot=i(),ie=n("p"),cr=t("Hub\uC5D0\uC11C \uBAA8\uB378 \uC800\uC7A5\uC18C\uC758 \uCEE4\uBC0B \uAE30\uB85D\uC744 \uCC3E\uC544\uBCFC \uB54C, \uBAA8\uB4E0 \uCEE4\uBC0B\uC758 \uCEE4\uBC0B \uD574\uC2DC\uB97C \uC27D\uAC8C \uBCF5\uC0AC\uD560 \uC218 \uC788\uB294 \uBC84\uD2BC\uC774 \uC788\uC2B5\uB2C8\uB2E4."),xt=i(),sl=n("h2"),Jl=n("a"),ks=n("span"),m(Hl.$$.fragment),fr=i(),Ns=n("span"),dr=t("\uC0AC\uC6A9\uC790 \uC815\uC758 \uCF54\uB4DC\uB85C \uB9CC\uB4E0 \uBAA8\uB378\uC744 auto \uD074\uB798\uC2A4\uB85C \uB4F1\uB85D\uD558\uAE30"),qt=i(),ce=n("p"),yr=t(`\u{1F917} Transformers\uB97C \uC0C1\uC18D\uD558\uB294 \uB77C\uC774\uBE0C\uB7EC\uB9AC\uB97C \uC791\uC131\uD558\uB294 \uACBD\uC6B0 \uC0AC\uC6A9\uC790 \uC815\uC758 \uBAA8\uB378\uC744 auto \uD074\uB798\uC2A4\uC5D0 \uCD94\uAC00\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uC0AC\uC6A9\uC790 \uC815\uC758 \uBAA8\uB378\uC744 \uC0AC\uC6A9\uD558\uAE30 \uC704\uD574 \uD574\uB2F9 \uB77C\uC774\uBE0C\uB7EC\uB9AC\uB97C \uC784\uD3EC\uD2B8\uD574\uC57C \uD558\uAE30 \uB54C\uBB38\uC5D0, \uC774\uB294 Hub\uB85C \uCF54\uB4DC\uB97C \uC5C5\uB85C\uB4DC\uD558\uB294 \uAC83\uACFC \uB2E4\uB985\uB2C8\uB2E4 (Hub\uC5D0\uC11C \uC790\uB3D9\uC801\uC73C\uB85C \uBAA8\uB378 \uCF54\uB4DC\uB97C \uB2E4\uC6B4\uB85C\uB4DC \uD558\uB294 \uAC83\uACFC \uBC18\uB300).`),Lt=i(),D=n("p"),mr=t("\uAD6C\uC131\uC5D0 \uAE30\uC874 \uBAA8\uB378 \uC720\uD615\uACFC \uB2E4\uB978 "),Rs=n("code"),Jr=t("model_type"),wr=t(" \uC18D\uC131\uC774 \uC788\uACE0 \uBAA8\uB378 \uD074\uB798\uC2A4\uC5D0 \uC62C\uBC14\uB978 "),Bs=n("code"),ur=t("config_class"),jr=t(` \uC18D\uC131\uC774 \uC788\uB294 \uD55C,
\uB2E4\uC74C\uACFC \uAC19\uC774 auto \uD074\uB798\uC2A4\uC5D0 \uCD94\uAC00\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4:`),Kt=i(),m(Sl.$$.fragment),lo=i(),R=n("p"),Tr=t("\uC0AC\uC6A9\uC790 \uC815\uC758 \uAD6C\uC131\uC744 "),Ws=n("code"),Ur=t("AutoConfig"),_r=t("\uC5D0 \uB4F1\uB85D\uD560 \uB54C \uC0AC\uC6A9\uB418\uB294 \uCCAB \uBC88\uC9F8 \uC778\uC218\uB294 \uC0AC\uC6A9\uC790 \uC815\uC758 \uAD6C\uC131\uC758 "),Xs=n("code"),hr=t("model_type"),Cr=t(`\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4.
\uB610\uD55C, \uC0AC\uC6A9\uC790 \uC815\uC758 \uBAA8\uB378\uC744 auto \uD074\uB798\uC2A4\uC5D0 \uB4F1\uB85D\uD560 \uB54C \uC0AC\uC6A9\uB418\uB294 \uCCAB \uBC88\uC9F8 \uC778\uC218\uB294 \uD574\uB2F9 \uBAA8\uB378\uC758 `),gs=n("code"),br=t("config_class"),Ir=t("\uC640 \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4."),this.h()},l(l){const a=jM('[data-svelte="svelte-1phssyn"]',document.head);d=r(a,"META",{name:!0,content:!0}),a.forEach(s),b=c(l),y=r(l,"H1",{class:!0});var Pl=p(y);U=r(Pl,"A",{id:!0,class:!0,href:!0});var Gs=p(U);S=r(Gs,"SPAN",{});var Ys=p(S);J(v.$$.fragment,Ys),Ys.forEach(s),Gs.forEach(s),B=c(Pl),ol=r(Pl,"SPAN",{});var vr=p(ol);io=o(vr,"\uC0AC\uC6A9\uC790 \uC815\uC758 \uBAA8\uB378 \uACF5\uC720\uD558\uAE30"),vr.forEach(s),Pl.forEach(s),Ds=c(l),Ol=r(l,"P",{});var Ar=p(Ol);co=o(Ar,`\u{1F917} Transformers \uB77C\uC774\uBE0C\uB7EC\uB9AC\uB294 \uC27D\uAC8C \uD655\uC7A5\uD560 \uC218 \uC788\uB3C4\uB85D \uC124\uACC4\uB418\uC5C8\uC2B5\uB2C8\uB2E4.
\uBAA8\uB4E0 \uBAA8\uB378\uC740 \uCD94\uC0C1\uD654 \uC5C6\uC774 \uC800\uC7A5\uC18C\uC758 \uC9C0\uC815\uB41C \uD558\uC704 \uD3F4\uB354\uC5D0 \uC644\uC804\uD788 \uCF54\uB529\uB418\uC5B4 \uC788\uC73C\uBBC0\uB85C, \uC190\uC27D\uAC8C \uBAA8\uB378\uB9C1 \uD30C\uC77C\uC744 \uBCF5\uC0AC\uD558\uACE0 \uD544\uC694\uC5D0 \uB530\uB77C \uC870\uC815\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`),Ar.forEach(s),Hs=c(l),xl=r(l,"P",{});var $r=p(xl);fo=o($r,`\uC644\uC804\uD788 \uC0C8\uB85C\uC6B4 \uBAA8\uB378\uC744 \uB9CC\uB4DC\uB294 \uACBD\uC6B0\uC5D0\uB294 \uCC98\uC74C\uBD80\uD130 \uC2DC\uC791\uD558\uB294 \uAC83\uC774 \uB354 \uC26C\uC6B8 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uC774 \uD29C\uD1A0\uB9AC\uC5BC\uC5D0\uC11C\uB294 Transformers \uB0B4\uC5D0\uC11C \uC0AC\uC6A9\uD560 \uC218 \uC788\uB3C4\uB85D \uC0AC\uC6A9\uC790 \uC815\uC758 \uBAA8\uB378\uACFC \uAD6C\uC131\uC744 \uC791\uC131\uD558\uB294 \uBC29\uBC95\uACFC
\u{1F917} Transformers \uB77C\uC774\uBE0C\uB7EC\uB9AC\uC5D0 \uC5C6\uB294 \uACBD\uC6B0\uC5D0\uB3C4 \uB204\uAD6C\uB098 \uC0AC\uC6A9\uD560 \uC218 \uC788\uB3C4\uB85D (\uC758\uC874\uC131\uACFC \uD568\uAED8) \uCEE4\uBBA4\uB2C8\uD2F0\uC5D0 \uACF5\uC720\uD558\uB294 \uBC29\uBC95\uC744 \uBC30\uC6B8 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`),$r.forEach(s),Ss=c(l),P=r(l,"P",{});var Vs=p(P);_l=r(Vs,"A",{href:!0,rel:!0});var kr=p(_l);yo=o(kr,"timm \uB77C\uC774\uBE0C\uB7EC\uB9AC"),kr.forEach(s),mo=o(Vs,"\uC758 ResNet \uD074\uB798\uC2A4\uB97C "),Ce=r(Vs,"CODE",{});var Nr=p(Ce);Jo=o(Nr,"PreTrainedModel"),Nr.forEach(s),wo=o(Vs,"\uB85C \uB798\uD551\uD55C ResNet \uBAA8\uB378\uC744 \uC608\uB85C \uBAA8\uB4E0 \uAC83\uC744 \uC124\uBA85\uD569\uB2C8\uB2E4."),Vs.forEach(s),Ps=c(l),O=r(l,"H2",{class:!0});var so=p(O);al=r(so,"A",{id:!0,class:!0,href:!0});var Rr=p(al);be=r(Rr,"SPAN",{});var Br=p(be);J(hl.$$.fragment,Br),Br.forEach(s),Rr.forEach(s),uo=c(so),Ie=r(so,"SPAN",{});var Wr=p(Ie);jo=o(Wr,"\uC0AC\uC6A9\uC790 \uC815\uC758 \uAD6C\uC131 \uC791\uC131\uD558\uAE30"),Wr.forEach(s),so.forEach(s),Os=c(l),W=r(l,"P",{});var fe=p(W);To=o(fe,`\uBAA8\uB378\uC5D0 \uB4E4\uC5B4\uAC00\uAE30 \uC804\uC5D0 \uBA3C\uC800 \uAD6C\uC131\uC744 \uC791\uC131\uD574\uBCF4\uB3C4\uB85D \uD558\uACA0\uC2B5\uB2C8\uB2E4.
\uBAA8\uB378\uC758 `),Ee=r(fe,"CODE",{});var Xr=p(Ee);Uo=o(Xr,"configuration"),Xr.forEach(s),_o=o(fe,`\uC740 \uBAA8\uB378\uC744 \uB9CC\uB4E4\uAE30 \uC704\uD574 \uD544\uC694\uD55C \uBAA8\uB4E0 \uC911\uC694\uD55C \uAC83\uB4E4\uC744 \uD3EC\uD568\uD558\uACE0 \uC788\uB294 \uAC1D\uCCB4\uC785\uB2C8\uB2E4.
\uB2E4\uC74C \uC139\uC158\uC5D0\uC11C \uBCFC \uC218 \uC788\uB4EF\uC774, \uBAA8\uB378\uC740 `),Ze=r(fe,"CODE",{});var gr=p(Ze);ho=o(gr,"config"),gr.forEach(s),Co=o(fe,"\uB97C \uC0AC\uC6A9\uD574\uC11C\uB9CC \uCD08\uAE30\uD654\uD560 \uC218 \uC788\uAE30 \uB54C\uBB38\uC5D0 \uC644\uBCBD\uD55C \uAD6C\uC131\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."),fe.forEach(s),xs=c(l),ql=r(l,"P",{});var Gr=p(ql);bo=o(Gr,`\uC544\uB798 \uC608\uC2DC\uC5D0\uC11C\uB294 ResNet \uD074\uB798\uC2A4\uC758 \uC778\uC218(argument)\uB97C \uC870\uC815\uD574\uBCF4\uACA0\uC2B5\uB2C8\uB2E4.
\uB2E4\uB978 \uAD6C\uC131\uC740 \uAC00\uB2A5\uD55C ResNet \uC911 \uB2E4\uB978 \uC720\uD615\uC744 \uC81C\uACF5\uD569\uB2C8\uB2E4.
\uADF8\uB7F0 \uB2E4\uC74C \uBA87 \uAC00\uC9C0 \uC720\uD6A8\uC131\uC744 \uD655\uC778\uD55C \uD6C4 \uD574\uB2F9 \uC778\uC218\uB97C \uC800\uC7A5\uD569\uB2C8\uB2E4.`),Gr.forEach(s),qs=c(l),J(Cl.$$.fragment,l),Ls=c(l),nl=r(l,"P",{});var to=p(nl);Io=o(to,"\uC0AC\uC6A9\uC790 \uC815\uC758 "),ve=r(to,"CODE",{});var Yr=p(ve);Eo=o(Yr,"configuration"),Yr.forEach(s),Zo=o(to,"\uC744 \uC791\uC131\uD560 \uB54C \uAE30\uC5B5\uD574\uC57C \uD560 \uC138 \uAC00\uC9C0 \uC911\uC694\uD55C \uC0AC\uD56D\uC740 \uB2E4\uC74C\uACFC \uAC19\uC2B5\uB2C8\uB2E4:"),to.forEach(s),Ks=c(l),X=r(l,"UL",{});var de=p(X);Ll=r(de,"LI",{});var Er=p(Ll);Ae=r(Er,"CODE",{});var Vr=p(Ae);vo=o(Vr,"PretrainedConfig"),Vr.forEach(s),Ao=o(Er,"\uC744 \uC0C1\uC18D\uD574\uC57C \uD569\uB2C8\uB2E4."),Er.forEach(s),$o=c(de),rl=r(de,"LI",{});var Qs=p(rl);$e=r(Qs,"CODE",{});var Qr=p($e);ko=o(Qr,"PretrainedConfig"),Qr.forEach(s),No=o(Qs,"\uC758 "),ke=r(Qs,"CODE",{});var Fr=p(ke);Ro=o(Fr,"__init__"),Fr.forEach(s),Bo=o(Qs,"\uC740 \uBAA8\uB4E0 kwargs\uB97C \uD5C8\uC6A9\uD574\uC57C \uD558\uACE0,"),Qs.forEach(s),Wo=c(de),x=r(de,"LI",{});var ye=p(x);Xo=o(ye,"\uC774\uB7EC\uD55C "),Ne=r(ye,"CODE",{});var zr=p(Ne);go=o(zr,"kwargs"),zr.forEach(s),Go=o(ye,"\uB294 \uC0C1\uC704 \uD074\uB798\uC2A4 "),Re=r(ye,"CODE",{});var Dr=p(Re);Yo=o(Dr,"__init__"),Dr.forEach(s),Vo=o(ye,"\uC5D0 \uC804\uB2EC\uB418\uC5B4\uC57C \uD569\uB2C8\uB2E4."),ye.forEach(s),de.forEach(s),lt=c(l),g=r(l,"P",{});var me=p(g);Qo=o(me,`\uC0C1\uC18D\uC740 \u{1F917} Transformers \uB77C\uC774\uBE0C\uB7EC\uB9AC\uC5D0\uC11C \uBAA8\uB4E0 \uAE30\uB2A5\uC744 \uAC00\uC838\uC624\uB294 \uAC83\uC785\uB2C8\uB2E4.
\uC774\uB7EC\uD55C \uC810\uC73C\uB85C\uBD80\uD130 \uBE44\uB86F\uB418\uB294 \uB450 \uAC00\uC9C0 \uC81C\uC57D \uC870\uAC74\uC740 `),Be=r(me,"CODE",{});var Hr=p(Be);Fo=o(Hr,"PretrainedConfig"),Hr.forEach(s),zo=o(me,`\uC5D0 \uC124\uC815\uD558\uB294 \uAC83\uBCF4\uB2E4 \uB354 \uB9CE\uC740 \uD544\uB4DC\uAC00 \uC788\uC2B5\uB2C8\uB2E4.
`),We=r(me,"CODE",{});var Sr=p(We);Do=o(Sr,"from_pretrained"),Sr.forEach(s),Ho=o(me," \uBA54\uC11C\uB4DC\uB85C \uAD6C\uC131\uC744 \uB2E4\uC2DC \uB85C\uB4DC\uD560 \uB54C \uD574\uB2F9 \uD544\uB4DC\uB294 \uAD6C\uC131\uC5D0\uC11C \uC218\uB77D\uD55C \uD6C4 \uC0C1\uC704 \uD074\uB798\uC2A4\uB85C \uBCF4\uB0B4\uC57C \uD569\uB2C8\uB2E4."),me.forEach(s),et=c(l),A=r(l,"P",{});var wl=p(A);So=o(wl,"\uBAA8\uB378\uC744 auto \uD074\uB798\uC2A4\uC5D0 \uB4F1\uB85D\uD558\uC9C0 \uC54A\uB294 \uD55C, "),Xe=r(wl,"CODE",{});var Pr=p(Xe);Po=o(Pr,"configuration"),Pr.forEach(s),Oo=o(wl,"\uC5D0\uC11C "),ge=r(wl,"CODE",{});var Or=p(ge);xo=o(Or,"model_type"),Or.forEach(s),qo=o(wl,"\uC744 \uC815\uC758(\uC5EC\uAE30\uC11C "),Ge=r(wl,"CODE",{});var xr=p(Ge);Lo=o(xr,'model_type="resnet"'),xr.forEach(s),Ko=o(wl,")\uD558\uB294 \uAC83\uC740 \uD544\uC218 \uC0AC\uD56D\uC774 \uC544\uB2D9\uB2C8\uB2E4 (\uB9C8\uC9C0\uB9C9 \uC139\uC158 \uCC38\uC870)."),wl.forEach(s),st=c(l),Kl=r(l,"P",{});var qr=p(Kl);la=o(qr,`\uC774\uB807\uAC8C \uD558\uBA74 \uB77C\uC774\uBE0C\uB7EC\uB9AC\uC758 \uB2E4\uB978 \uBAA8\uB378 \uAD6C\uC131\uACFC \uB9C8\uCC2C\uAC00\uC9C0\uB85C \uAD6C\uC131\uC744 \uC27D\uAC8C \uB9CC\uB4E4\uACE0 \uC800\uC7A5\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uB2E4\uC74C\uC740 resnet50d \uAD6C\uC131\uC744 \uC0DD\uC131\uD558\uACE0 \uC800\uC7A5\uD558\uB294 \uBC29\uBC95\uC785\uB2C8\uB2E4:`),qr.forEach(s),tt=c(l),J(bl.$$.fragment,l),ot=c(l),$=r(l,"P",{});var ul=p($);ea=o(ul,"\uC774\uB807\uAC8C \uD558\uBA74 "),Ye=r(ul,"CODE",{});var Lr=p(Ye);sa=o(Lr,"custom-resnet"),Lr.forEach(s),ta=o(ul," \uD3F4\uB354 \uC548\uC5D0 "),Ve=r(ul,"CODE",{});var Kr=p(Ve);oa=o(Kr,"config.json"),Kr.forEach(s),aa=o(ul,`\uC774\uB77C\uB294 \uD30C\uC77C\uC774 \uC800\uC7A5\uB429\uB2C8\uB2E4.
\uADF8\uB7F0 \uB2E4\uC74C `),Qe=r(ul,"CODE",{});var lp=p(Qe);na=o(lp,"from_pretrained"),lp.forEach(s),ra=o(ul," \uBA54\uC11C\uB4DC\uB97C \uC0AC\uC6A9\uD558\uC5EC \uAD6C\uC131\uC744 \uB2E4\uC2DC \uB85C\uB4DC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),ul.forEach(s),at=c(l),J(Il.$$.fragment,l),nt=c(l),G=r(l,"P",{});var Je=p(G);pa=o(Je,"\uAD6C\uC131\uC744 Hub\uC5D0 \uC9C1\uC811 \uC5C5\uB85C\uB4DC\uD558\uAE30 \uC704\uD574 "),Fe=r(Je,"CODE",{});var ep=p(Fe);Ma=o(ep,"PretrainedConfig"),ep.forEach(s),ia=o(Je," \uD074\uB798\uC2A4\uC758 "),ze=r(Je,"CODE",{});var sp=p(ze);ca=o(sp,"push_to_hub()"),sp.forEach(s),fa=o(Je,"\uC640 \uAC19\uC740 \uB2E4\uB978 \uBA54\uC11C\uB4DC\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),Je.forEach(s),rt=c(l),q=r(l,"H2",{class:!0});var oo=p(q);pl=r(oo,"A",{id:!0,class:!0,href:!0});var tp=p(pl);De=r(tp,"SPAN",{});var op=p(De);J(El.$$.fragment,op),op.forEach(s),tp.forEach(s),da=c(oo),He=r(oo,"SPAN",{});var ap=p(He);ya=o(ap,"\uC0AC\uC6A9\uC790 \uC815\uC758 \uBAA8\uB378 \uC791\uC131\uD558\uAE30"),ap.forEach(s),oo.forEach(s),pt=c(l),Y=r(l,"P",{});var we=p(Y);ma=o(we,`\uC774\uC81C ResNet \uAD6C\uC131\uC774 \uC788\uC73C\uBBC0\uB85C \uBAA8\uB378\uC744 \uC791\uC131\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uC2E4\uC81C\uB85C\uB294 \uB450 \uAC1C\uB97C \uC791\uC131\uD560 \uAC83\uC785\uB2C8\uB2E4. \uD558\uB098\uB294 \uC774\uBBF8\uC9C0 \uBC30\uCE58\uC5D0\uC11C hidden features\uB97C \uCD94\uCD9C\uD558\uB294 \uAC83(`),Se=r(we,"CODE",{});var np=p(Se);Ja=o(np,"BertModel"),np.forEach(s),wa=o(we,"\uACFC \uAC19\uC774), \uB2E4\uB978 \uD558\uB098\uB294 \uC774\uBBF8\uC9C0 \uBD84\uB958\uC5D0 \uC801\uD569\uD55C \uAC83\uC785\uB2C8\uB2E4("),Pe=r(we,"CODE",{});var rp=p(Pe);ua=o(rp,"BertForSequenceClassification"),rp.forEach(s),ja=o(we,"\uACFC \uAC19\uC774)."),we.forEach(s),Mt=c(l),V=r(l,"P",{});var ue=p(V);Ta=o(ue,`\uC774\uC804\uC5D0 \uC5B8\uAE09\uD588\uB4EF\uC774 \uC774 \uC608\uC81C\uC5D0\uC11C\uB294 \uB2E8\uC21C\uD558\uAC8C \uD558\uAE30 \uC704\uD574 \uBAA8\uB378\uC758 \uB290\uC2A8\uD55C \uB798\uD37C(loose wrapper)\uB9CC \uC791\uC131\uD560 \uAC83\uC785\uB2C8\uB2E4.
\uC774 \uD074\uB798\uC2A4\uB97C \uC791\uC131\uD558\uAE30 \uC804\uC5D0 \uBE14\uB85D \uC720\uD615\uACFC \uC2E4\uC81C \uBE14\uB85D \uD074\uB798\uC2A4 \uAC04\uC758 \uB9E4\uD551 \uC791\uC5C5\uB9CC \uD558\uBA74 \uB429\uB2C8\uB2E4.
\uADF8\uB7F0 \uB2E4\uC74C `),Oe=r(ue,"CODE",{});var pp=p(Oe);Ua=o(pp,"ResNet"),pp.forEach(s),_a=o(ue," \uD074\uB798\uC2A4\uB85C \uC804\uB2EC\uB418\uC5B4 "),xe=r(ue,"CODE",{});var Mp=p(xe);ha=o(Mp,"configuration"),Mp.forEach(s),Ca=o(ue,"\uC744 \uD1B5\uD574 \uBAA8\uB378\uC774 \uC120\uC5B8\uB429\uB2C8\uB2E4:"),ue.forEach(s),it=c(l),J(Zl.$$.fragment,l),ct=c(l),le=r(l,"P",{});var ip=p(le);ba=o(ip,"\uC774\uBBF8\uC9C0 \uBD84\uB958 \uBAA8\uB378\uC744 \uB9CC\uB4E4\uAE30 \uC704\uD574\uC11C\uB294 forward \uBA54\uC18C\uB4DC\uB9CC \uBCC0\uACBD\uD558\uBA74 \uB429\uB2C8\uB2E4:"),ip.forEach(s),ft=c(l),J(vl.$$.fragment,l),dt=c(l),E=r(l,"P",{});var H=p(E);Ia=o(H,"\uB450 \uACBD\uC6B0 \uBAA8\uB450 "),qe=r(H,"CODE",{});var cp=p(qe);Ea=o(cp,"PreTrainedModel"),cp.forEach(s),Za=o(H,"\uB97C \uC0C1\uC18D\uBC1B\uACE0, "),Le=r(H,"CODE",{});var fp=p(Le);va=o(fp,"config"),fp.forEach(s),Aa=o(H,"\uB97C \uD1B5\uD574 \uC0C1\uC704 \uD074\uB798\uC2A4 \uCD08\uAE30\uD654\uB97C \uD638\uCD9C\uD558\uB2E4\uB294 \uC810\uC744 \uAE30\uC5B5\uD558\uC138\uC694 (\uC77C\uBC18\uC801\uC778 "),Ke=r(H,"CODE",{});var dp=p(Ke);$a=o(dp,"torch.nn.Module"),dp.forEach(s),ka=o(H,`\uC744 \uC791\uC131\uD560 \uB54C\uC640 \uBE44\uC2B7\uD568).
\uBAA8\uB378\uC744 auto \uD074\uB798\uC2A4\uC5D0 \uB4F1\uB85D\uD558\uACE0 \uC2F6\uC740 \uACBD\uC6B0\uC5D0\uB294 `),ls=r(H,"CODE",{});var yp=p(ls);Na=o(yp,"config_class"),yp.forEach(s),Ra=o(H,"\uB97C \uC124\uC815\uD558\uB294 \uBD80\uBD84\uC774 \uD544\uC218\uC785\uB2C8\uB2E4 (\uB9C8\uC9C0\uB9C9 \uC139\uC158 \uCC38\uC870)."),H.forEach(s),yt=c(l),J(Ml.$$.fragment,l),mt=c(l),Q=r(l,"P",{});var je=p(Q);Ba=o(je,"\uC6D0\uD558\uB294 \uAC83\uC744 \uBAA8\uB378\uC774 \uBC18\uD658\uD558\uB3C4\uB85D \uD560 \uC218 \uC788\uC9C0\uB9CC, "),es=r(je,"CODE",{});var mp=p(es);Wa=o(mp,"ResnetModelForImageClassification"),mp.forEach(s),Xa=o(je,`\uC5D0\uC11C \uD588\uB358 \uAC83 \uCC98\uB7FC
\uB808\uC774\uBE14\uC744 \uD1B5\uACFC\uC2DC\uCF30\uC744 \uB54C \uC190\uC2E4\uACFC \uD568\uAED8 \uC0AC\uC804 \uD615\uD0DC\uB85C \uBC18\uD658\uD558\uB294 \uAC83\uC774 `),ss=r(je,"CODE",{});var Jp=p(ss);ga=o(Jp,"Trainer"),Jp.forEach(s),Ga=o(je,` \uD074\uB798\uC2A4 \uB0B4\uC5D0\uC11C \uC9C1\uC811 \uBAA8\uB378\uC744 \uC0AC\uC6A9\uD558\uAE30\uC5D0 \uC720\uC6A9\uD569\uB2C8\uB2E4.
\uC790\uC2E0\uB9CC\uC758 \uD559\uC2B5 \uB8E8\uD504 \uB610\uB294 \uB2E4\uB978 \uD559\uC2B5 \uB77C\uC774\uBE0C\uB7EC\uB9AC\uB97C \uC0AC\uC6A9\uD560 \uACC4\uD68D\uC774\uB77C\uBA74 \uB2E4\uB978 \uCD9C\uB825 \uD615\uC2DD\uC744 \uC0AC\uC6A9\uD574\uB3C4 \uC88B\uC2B5\uB2C8\uB2E4.`),je.forEach(s),Jt=c(l),ee=r(l,"P",{});var wp=p(ee);Ya=o(wp,"\uC774\uC81C \uBAA8\uB378 \uD074\uB798\uC2A4\uAC00 \uC788\uC73C\uBBC0\uB85C \uD558\uB098 \uC0DD\uC131\uD574 \uBCF4\uACA0\uC2B5\uB2C8\uB2E4:"),wp.forEach(s),wt=c(l),J(Al.$$.fragment,l),ut=c(l),k=r(l,"P",{});var jl=p(k);Va=o(jl,"\uB2E4\uC2DC \uB9D0\uD558\uC9C0\uB9CC, "),ts=r(jl,"CODE",{});var up=p(ts);Qa=o(up,"save_pretrained()"),up.forEach(s),Fa=o(jl,"\uB610\uB294 "),os=r(jl,"CODE",{});var jp=p(os);za=o(jp,"push_to_hub()"),jp.forEach(s),Da=o(jl,"\uCC98\uB7FC "),as=r(jl,"CODE",{});var Tp=p(as);Ha=o(Tp,"PreTrainedModel"),Tp.forEach(s),Sa=o(jl,`\uC5D0 \uC18D\uD558\uB294 \uBAA8\uB4E0 \uBA54\uC18C\uB4DC\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uB2E4\uC74C \uC139\uC158\uC5D0\uC11C \uB450 \uBC88\uC9F8 \uBA54\uC18C\uB4DC\uB97C \uC0AC\uC6A9\uD574 \uBAA8\uB378 \uCF54\uB4DC\uC640 \uBAA8\uB378 \uAC00\uC911\uCE58\uB97C \uC5C5\uB85C\uB4DC\uD558\uB294 \uBC29\uBC95\uC744 \uC0B4\uD3B4\uBCF4\uACA0\uC2B5\uB2C8\uB2E4.
\uBA3C\uC800, \uBAA8\uB378 \uB0B4\uBD80\uC5D0 \uC0AC\uC804 \uD6C8\uB828\uB41C \uAC00\uC911\uCE58\uB97C \uB85C\uB4DC\uD574 \uBCF4\uACA0\uC2B5\uB2C8\uB2E4.`),jl.forEach(s),jt=c(l),se=r(l,"P",{});var Up=p(se);Pa=o(Up,`\uC774 \uC608\uC81C\uB97C \uD65C\uC6A9\uD560 \uB54C\uB294, \uC0AC\uC6A9\uC790 \uC815\uC758 \uBAA8\uB378\uC744 \uC790\uC2E0\uB9CC\uC758 \uB370\uC774\uD130\uB85C \uD559\uC2B5\uC2DC\uD0AC \uAC83\uC785\uB2C8\uB2E4.
\uC774 \uD29C\uD1A0\uB9AC\uC5BC\uC5D0\uC11C\uB294 \uBE60\uB974\uAC8C \uC9C4\uD589\uD558\uAE30 \uC704\uD574 \uC0AC\uC804 \uD6C8\uB828\uB41C resnet50d\uB97C \uC0AC\uC6A9\uD558\uACA0\uC2B5\uB2C8\uB2E4.
\uC544\uB798 \uBAA8\uB378\uC740 resnet50d\uC758 \uB798\uD37C\uC774\uAE30 \uB54C\uBB38\uC5D0, \uAC00\uC911\uCE58\uB97C \uC27D\uAC8C \uB85C\uB4DC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`),Up.forEach(s),Tt=c(l),J($l.$$.fragment,l),Ut=c(l),F=r(l,"P",{});var Te=p(F);Oa=o(Te,"\uC774\uC81C "),ns=r(Te,"CODE",{});var _p=p(ns);xa=o(_p,"save_pretrained()"),_p.forEach(s),qa=o(Te," \uB610\uB294 "),rs=r(Te,"CODE",{});var hp=p(rs);La=o(hp,"push_to_hub()"),hp.forEach(s),Ka=o(Te,"\uB97C \uC0AC\uC6A9\uD560 \uB54C \uBAA8\uB378 \uCF54\uB4DC\uAC00 \uC800\uC7A5\uB418\uB294\uC9C0 \uD655\uC778\uD574\uBD05\uC2DC\uB2E4."),Te.forEach(s),_t=c(l),L=r(l,"H2",{class:!0});var ao=p(L);il=r(ao,"A",{id:!0,class:!0,href:!0});var Cp=p(il);ps=r(Cp,"SPAN",{});var bp=p(ps);J(kl.$$.fragment,bp),bp.forEach(s),Cp.forEach(s),ln=c(ao),Ms=r(ao,"SPAN",{});var Ip=p(Ms);en=o(Ip,"Hub\uB85C \uCF54\uB4DC \uC5C5\uB85C\uB4DC\uD558\uAE30"),Ip.forEach(s),ao.forEach(s),ht=c(l),J(cl.$$.fragment,l),Ct=c(l),_=r(l,"P",{});var I=p(_);sn=o(I,"\uBA3C\uC800 \uBAA8\uB378\uC774 "),is=r(I,"CODE",{});var Ep=p(is);tn=o(Ep,".py"),Ep.forEach(s),on=o(I,` \uD30C\uC77C\uC5D0 \uC644\uC804\uD788 \uC815\uC758\uB418\uC5B4 \uC788\uB294\uC9C0 \uD655\uC778\uD558\uC138\uC694.
\uBAA8\uB4E0 \uD30C\uC77C\uC774 \uB3D9\uC77C\uD55C \uC791\uC5C5 \uACBD\uB85C\uC5D0 \uC788\uAE30 \uB54C\uBB38\uC5D0 \uC0C1\uB300\uACBD\uB85C \uC784\uD3EC\uD2B8(relative import)\uC5D0 \uC758\uC874\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4 (transformers\uC5D0\uC11C\uB294 \uC774 \uAE30\uB2A5\uC5D0 \uB300\uD55C \uD558\uC704 \uBAA8\uB4C8\uC744 \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4).
\uC774 \uC608\uC2DC\uC5D0\uC11C\uB294 \uC791\uC5C5 \uACBD\uB85C \uC548\uC758 `),cs=r(I,"CODE",{});var Zp=p(cs);an=o(Zp,"resnet_model"),Zp.forEach(s),nn=o(I,"\uC5D0\uC11C "),fs=r(I,"CODE",{});var vp=p(fs);rn=o(vp,"modeling_resnet.py"),vp.forEach(s),pn=o(I," \uD30C\uC77C\uACFC "),ds=r(I,"CODE",{});var Ap=p(ds);Mn=o(Ap,"configuration_resnet.py"),Ap.forEach(s),cn=o(I,` \uD30C\uC77C\uC744 \uC815\uC758\uD569\uB2C8\uB2E4.
\uAD6C\uC131 \uD30C\uC77C\uC5D0\uB294 `),ys=r(I,"CODE",{});var $p=p(ys);fn=o($p,"ResnetConfig"),$p.forEach(s),dn=o(I,"\uC5D0 \uB300\uD55C \uCF54\uB4DC\uAC00 \uC788\uACE0 \uBAA8\uB378\uB9C1 \uD30C\uC77C\uC5D0\uB294 "),ms=r(I,"CODE",{});var kp=p(ms);yn=o(kp,"ResnetModel"),kp.forEach(s),mn=o(I," \uBC0F "),Js=r(I,"CODE",{});var Np=p(Js);Jn=o(Np,"ResnetModelForImageClassification"),Np.forEach(s),wn=o(I,"\uC5D0 \uB300\uD55C \uCF54\uB4DC\uAC00 \uC788\uC2B5\uB2C8\uB2E4."),I.forEach(s),bt=c(l),J(Nl.$$.fragment,l),It=c(l),z=r(l,"P",{});var Ue=p(z);un=o(Ue,"Python\uC774 "),ws=r(Ue,"CODE",{});var Rp=p(ws);jn=o(Rp,"resnet_model"),Rp.forEach(s),Tn=o(Ue,"\uC744 \uBAA8\uB4C8\uB85C \uC0AC\uC6A9\uD560 \uC218 \uC788\uB3C4\uB85D \uAC10\uC9C0\uD558\uB294 \uBAA9\uC801\uC774\uAE30 \uB54C\uBB38\uC5D0 "),us=r(Ue,"CODE",{});var Bp=p(us);Un=o(Bp,"__init__.py"),Bp.forEach(s),_n=o(Ue,"\uB294 \uBE44\uC5B4 \uC788\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),Ue.forEach(s),Et=c(l),J(fl.$$.fragment,l),Zt=c(l),te=r(l,"P",{});var Wp=p(te);hn=o(Wp,"\uAE30\uC874 \uAD6C\uC131\uC774\uB098 \uBAA8\uB378\uC744 \uC7AC\uC0AC\uC6A9(\uB610\uB294 \uC11C\uBE0C \uD074\uB798\uC2A4\uD654)\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),Wp.forEach(s),vt=c(l),oe=r(l,"P",{});var Xp=p(oe);Cn=o(Xp,`\uCEE4\uBBA4\uB2C8\uD2F0\uC5D0 \uBAA8\uB378\uC744 \uACF5\uC720\uD558\uAE30 \uC704\uD574\uC11C\uB294 \uB2E4\uC74C \uB2E8\uACC4\uB97C \uB530\uB77C\uC57C \uD569\uB2C8\uB2E4:
\uBA3C\uC800, \uC0C8\uB85C \uB9CC\uB4E0 \uD30C\uC77C\uC5D0 ResNet \uBAA8\uB378\uACFC \uAD6C\uC131\uC744 \uC784\uD3EC\uD2B8\uD569\uB2C8\uB2E4:`),Xp.forEach(s),At=c(l),J(Rl.$$.fragment,l),$t=c(l),dl=r(l,"P",{});var no=p(dl);bn=o(no,"\uB2E4\uC74C\uC73C\uB85C "),js=r(no,"CODE",{});var gp=p(js);In=o(gp,"save_pretrained"),gp.forEach(s),En=o(no,` \uBA54\uC18C\uB4DC\uB97C \uC0AC\uC6A9\uD574 \uD574\uB2F9 \uAC1D\uCCB4\uC758 \uCF54\uB4DC \uD30C\uC77C\uC744 \uBCF5\uC0AC\uD558\uACE0,
\uBCF5\uC0AC\uD55C \uD30C\uC77C\uC744 Auto \uD074\uB798\uC2A4\uB85C \uB4F1\uB85D\uD558\uACE0(\uBAA8\uB378\uC778 \uACBD\uC6B0) \uC2E4\uD589\uD569\uB2C8\uB2E4:`),no.forEach(s),kt=c(l),J(Bl.$$.fragment,l),Nt=c(l),K=r(l,"P",{});var Fs=p(K);Ts=r(Fs,"CODE",{});var Gp=p(Ts);Zn=o(Gp,"configuration"),Gp.forEach(s),vn=o(Fs,"\uC5D0 \uB300\uD55C auto \uD074\uB798\uC2A4\uB97C \uC9C0\uC815\uD560 \uD544\uC694\uB294 \uC5C6\uC9C0\uB9CC("),Us=r(Fs,"CODE",{});var Yp=p(Us);An=o(Yp,"configuration"),Yp.forEach(s),$n=o(Fs,` \uAD00\uB828 auto \uD074\uB798\uC2A4\uB294 AutoConfig \uD074\uB798\uC2A4 \uD558\uB098\uB9CC \uC788\uC74C), \uBAA8\uB378\uC758 \uACBD\uC6B0\uC5D0\uB294 \uC9C0\uC815\uD574\uC57C \uD569\uB2C8\uB2E4.
\uC0AC\uC6A9\uC790 \uC9C0\uC815 \uBAA8\uB378\uC740 \uB2E4\uC591\uD55C \uC791\uC5C5\uC5D0 \uC801\uD569\uD560 \uC218 \uC788\uC73C\uBBC0\uB85C, \uBAA8\uB378\uC5D0 \uB9DE\uB294 auto \uD074\uB798\uC2A4\uB97C \uC9C0\uC815\uD574\uC57C \uD569\uB2C8\uB2E4.`),Fs.forEach(s),Rt=c(l),ae=r(l,"P",{});var Vp=p(ae);kn=o(Vp,"\uB2E4\uC74C\uC73C\uB85C, \uC774\uC804\uC5D0 \uC791\uC5C5\uD588\uB358 \uAC83\uACFC \uB9C8\uCC2C\uAC00\uC9C0\uB85C \uAD6C\uC131\uACFC \uBAA8\uB378\uC744 \uC791\uC131\uD569\uB2C8\uB2E4:"),Vp.forEach(s),Bt=c(l),J(Wl.$$.fragment,l),Wt=c(l),ne=r(l,"P",{});var Qp=p(ne);Nn=o(Qp,`\uC774\uC81C \uBAA8\uB378\uC744 Hub\uB85C \uC5C5\uB85C\uB4DC\uD558\uAE30 \uC704\uD574 \uB85C\uADF8\uC778 \uC0C1\uD0DC\uC778\uC9C0 \uD655\uC778\uD558\uC138\uC694.
\uD130\uBBF8\uB110\uC5D0\uC11C \uB2E4\uC74C \uCF54\uB4DC\uB97C \uC2E4\uD589\uD574 \uD655\uC778\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4:`),Qp.forEach(s),Xt=c(l),J(Xl.$$.fragment,l),gt=c(l),re=r(l,"P",{});var Fp=p(re);Rn=o(Fp,"\uC8FC\uD53C\uD130 \uB178\uD2B8\uBD81\uC758 \uACBD\uC6B0\uC5D0\uB294 \uB2E4\uC74C\uACFC \uAC19\uC2B5\uB2C8\uB2E4:"),Fp.forEach(s),Gt=c(l),J(gl.$$.fragment,l),Yt=c(l),pe=r(l,"P",{});var zp=p(pe);Bn=o(zp,"\uADF8\uB7F0 \uB2E4\uC74C \uC774\uB807\uAC8C \uC790\uC2E0\uC758 \uB124\uC784\uC2A4\uD398\uC774\uC2A4(\uB610\uB294 \uC790\uC2E0\uC774 \uC18D\uD55C \uC870\uC9C1)\uC5D0 \uC5C5\uB85C\uB4DC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4:"),zp.forEach(s),Vt=c(l),J(Gl.$$.fragment,l),Qt=c(l),h=r(l,"P",{});var Z=p(h);Wn=o(Z,`On top of the modeling weights and the configuration in json format, this also copied the modeling and
configuration `),_s=r(Z,"CODE",{});var Dp=p(_s);Xn=o(Dp,".py"),Dp.forEach(s),gn=o(Z," files in the folder "),hs=r(Z,"CODE",{});var Hp=p(hs);Gn=o(Hp,"custom-resnet50d"),Hp.forEach(s),Yn=o(Z,` and uploaded the result to the Hub. You can check the result
in this `),Yl=r(Z,"A",{href:!0,rel:!0});var Sp=p(Yl);Vn=o(Sp,"model repo"),Sp.forEach(s),Qn=o(Z,`.
json \uD615\uC2DD\uC758 \uBAA8\uB378\uB9C1 \uAC00\uC911\uCE58\uC640 \uAD6C\uC131 \uC678\uC5D0\uB3C4 `),Cs=r(Z,"CODE",{});var Pp=p(Cs);Fn=o(Pp,"custom-resnet50d"),Pp.forEach(s),zn=o(Z," \uD3F4\uB354 \uC548\uC758 \uBAA8\uB378\uB9C1\uACFC \uAD6C\uC131 "),bs=r(Z,"CODE",{});var Op=p(bs);Dn=o(Op,".py"),Op.forEach(s),Hn=o(Z,` \uD30C\uC77C\uC744 \uBCF5\uC0AC\uD558\uD574 Hub\uC5D0 \uC5C5\uB85C\uB4DC\uD569\uB2C8\uB2E4.
`),Vl=r(Z,"A",{href:!0,rel:!0});var xp=p(Vl);Sn=o(xp,"\uBAA8\uB378 \uC800\uC7A5\uC18C"),xp.forEach(s),Pn=o(Z,"\uC5D0\uC11C \uACB0\uACFC\uB97C \uD655\uC778\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),Z.forEach(s),Ft=c(l),ll=r(l,"P",{});var zs=p(ll);Me=r(zs,"A",{href:!0});var qp=p(Me);On=o(qp,"sharing tutorial"),qp.forEach(s),xn=o(zs," \uBB38\uC11C\uC758 "),Is=r(zs,"CODE",{});var Lp=p(Is);qn=o(Lp,"push_to_hub"),Lp.forEach(s),Ln=o(zs," \uBA54\uC18C\uB4DC\uC5D0\uC11C \uC790\uC138\uD55C \uB0B4\uC6A9\uC744 \uD655\uC778\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),zs.forEach(s),zt=c(l),el=r(l,"H2",{class:!0});var ro=p(el);yl=r(ro,"A",{id:!0,class:!0,href:!0});var Kp=p(yl);Es=r(Kp,"SPAN",{});var lM=p(Es);J(Ql.$$.fragment,lM),lM.forEach(s),Kp.forEach(s),Kn=c(ro),Zs=r(ro,"SPAN",{});var eM=p(Zs);lr=o(eM,"\uC0AC\uC6A9\uC790 \uC815\uC758 \uCF54\uB4DC\uB85C \uBAA8\uB378 \uC0AC\uC6A9\uD558\uAE30"),eM.forEach(s),ro.forEach(s),Dt=c(l),N=r(l,"P",{});var Tl=p(N);er=o(Tl,"auto \uD074\uB798\uC2A4\uC640 "),vs=r(Tl,"CODE",{});var sM=p(vs);sr=o(sM,"from_pretrained"),sM.forEach(s),tr=o(Tl,` \uBA54\uC18C\uB4DC\uB97C \uC0AC\uC6A9\uD558\uC5EC \uC0AC\uC6A9\uC790 \uC9C0\uC815 \uCF54\uB4DC \uD30C\uC77C\uACFC \uD568\uAED8 \uBAA8\uB4E0 \uAD6C\uC131, \uBAA8\uB378, \uD1A0\uD06C\uB098\uC774\uC800\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
Hub\uC5D0 \uC5C5\uB85C\uB4DC\uB41C \uBAA8\uB4E0 \uD30C\uC77C \uBC0F \uCF54\uB4DC\uB294 \uBA5C\uC6E8\uC5B4\uAC00 \uC788\uB294\uC9C0 \uAC80\uC0AC\uB418\uC9C0\uB9CC (\uC790\uC138\uD55C \uB0B4\uC6A9\uC740 `),Fl=r(Tl,"A",{href:!0,rel:!0});var tM=p(Fl);or=o(tM,"Hub \uBCF4\uC548"),tM.forEach(s),ar=o(Tl,` \uC124\uBA85 \uCC38\uC870),
\uC790\uC2E0\uC758 \uCEF4\uD4E8\uD130\uC5D0\uC11C \uBAA8\uB378 \uCF54\uB4DC\uC640 \uC791\uC131\uC790\uAC00 \uC545\uC131 \uCF54\uB4DC\uB97C \uC2E4\uD589\uD558\uC9C0 \uC54A\uB294\uC9C0 \uD655\uC778\uD574\uC57C \uD569\uB2C8\uB2E4.
\uC0AC\uC6A9\uC790 \uC815\uC758 \uCF54\uB4DC\uB85C \uBAA8\uB378\uC744 \uC0AC\uC6A9\uD558\uB824\uBA74 `),As=r(Tl,"CODE",{});var oM=p(As);nr=o(oM,"trust_remote_code=True"),oM.forEach(s),rr=o(Tl,"\uB85C \uC124\uC815\uD558\uC138\uC694:"),Tl.forEach(s),Ht=c(l),J(zl.$$.fragment,l),St=c(l),ml=r(l,"P",{});var po=p(ml);pr=o(po,"\uBAA8\uB378 \uC791\uC131\uC790\uAC00 \uC545\uC758\uC801\uC73C\uB85C \uCF54\uB4DC\uB97C \uC5C5\uB370\uC774\uD2B8\uD558\uC9C0 \uC54A\uC558\uB2E4\uB294 \uC810\uC744 \uD655\uC778\uD558\uAE30 \uC704\uD574, \uCEE4\uBC0B \uD574\uC2DC(commit hash)\uB97C "),$s=r(po,"CODE",{});var aM=p($s);Mr=o(aM,"revision"),aM.forEach(s),ir=o(po,"\uC73C\uB85C \uC804\uB2EC\uD558\uB294 \uAC83\uB3C4 \uAC15\uB825\uD788 \uAD8C\uC7A5\uB429\uB2C8\uB2E4 (\uBAA8\uB378 \uC791\uC131\uC790\uB97C \uC644\uC804\uD788 \uC2E0\uB8B0\uD558\uC9C0 \uC54A\uB294 \uACBD\uC6B0)."),po.forEach(s),Pt=c(l),J(Dl.$$.fragment,l),Ot=c(l),ie=r(l,"P",{});var nM=p(ie);cr=o(nM,"Hub\uC5D0\uC11C \uBAA8\uB378 \uC800\uC7A5\uC18C\uC758 \uCEE4\uBC0B \uAE30\uB85D\uC744 \uCC3E\uC544\uBCFC \uB54C, \uBAA8\uB4E0 \uCEE4\uBC0B\uC758 \uCEE4\uBC0B \uD574\uC2DC\uB97C \uC27D\uAC8C \uBCF5\uC0AC\uD560 \uC218 \uC788\uB294 \uBC84\uD2BC\uC774 \uC788\uC2B5\uB2C8\uB2E4."),nM.forEach(s),xt=c(l),sl=r(l,"H2",{class:!0});var Mo=p(sl);Jl=r(Mo,"A",{id:!0,class:!0,href:!0});var rM=p(Jl);ks=r(rM,"SPAN",{});var pM=p(ks);J(Hl.$$.fragment,pM),pM.forEach(s),rM.forEach(s),fr=c(Mo),Ns=r(Mo,"SPAN",{});var MM=p(Ns);dr=o(MM,"\uC0AC\uC6A9\uC790 \uC815\uC758 \uCF54\uB4DC\uB85C \uB9CC\uB4E0 \uBAA8\uB378\uC744 auto \uD074\uB798\uC2A4\uB85C \uB4F1\uB85D\uD558\uAE30"),MM.forEach(s),Mo.forEach(s),qt=c(l),ce=r(l,"P",{});var iM=p(ce);yr=o(iM,`\u{1F917} Transformers\uB97C \uC0C1\uC18D\uD558\uB294 \uB77C\uC774\uBE0C\uB7EC\uB9AC\uB97C \uC791\uC131\uD558\uB294 \uACBD\uC6B0 \uC0AC\uC6A9\uC790 \uC815\uC758 \uBAA8\uB378\uC744 auto \uD074\uB798\uC2A4\uC5D0 \uCD94\uAC00\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uC0AC\uC6A9\uC790 \uC815\uC758 \uBAA8\uB378\uC744 \uC0AC\uC6A9\uD558\uAE30 \uC704\uD574 \uD574\uB2F9 \uB77C\uC774\uBE0C\uB7EC\uB9AC\uB97C \uC784\uD3EC\uD2B8\uD574\uC57C \uD558\uAE30 \uB54C\uBB38\uC5D0, \uC774\uB294 Hub\uB85C \uCF54\uB4DC\uB97C \uC5C5\uB85C\uB4DC\uD558\uB294 \uAC83\uACFC \uB2E4\uB985\uB2C8\uB2E4 (Hub\uC5D0\uC11C \uC790\uB3D9\uC801\uC73C\uB85C \uBAA8\uB378 \uCF54\uB4DC\uB97C \uB2E4\uC6B4\uB85C\uB4DC \uD558\uB294 \uAC83\uACFC \uBC18\uB300).`),iM.forEach(s),Lt=c(l),D=r(l,"P",{});var _e=p(D);mr=o(_e,"\uAD6C\uC131\uC5D0 \uAE30\uC874 \uBAA8\uB378 \uC720\uD615\uACFC \uB2E4\uB978 "),Rs=r(_e,"CODE",{});var cM=p(Rs);Jr=o(cM,"model_type"),cM.forEach(s),wr=o(_e," \uC18D\uC131\uC774 \uC788\uACE0 \uBAA8\uB378 \uD074\uB798\uC2A4\uC5D0 \uC62C\uBC14\uB978 "),Bs=r(_e,"CODE",{});var fM=p(Bs);ur=o(fM,"config_class"),fM.forEach(s),jr=o(_e,` \uC18D\uC131\uC774 \uC788\uB294 \uD55C,
\uB2E4\uC74C\uACFC \uAC19\uC774 auto \uD074\uB798\uC2A4\uC5D0 \uCD94\uAC00\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4:`),_e.forEach(s),Kt=c(l),J(Sl.$$.fragment,l),lo=c(l),R=r(l,"P",{});var Ul=p(R);Tr=o(Ul,"\uC0AC\uC6A9\uC790 \uC815\uC758 \uAD6C\uC131\uC744 "),Ws=r(Ul,"CODE",{});var dM=p(Ws);Ur=o(dM,"AutoConfig"),dM.forEach(s),_r=o(Ul,"\uC5D0 \uB4F1\uB85D\uD560 \uB54C \uC0AC\uC6A9\uB418\uB294 \uCCAB \uBC88\uC9F8 \uC778\uC218\uB294 \uC0AC\uC6A9\uC790 \uC815\uC758 \uAD6C\uC131\uC758 "),Xs=r(Ul,"CODE",{});var yM=p(Xs);hr=o(yM,"model_type"),yM.forEach(s),Cr=o(Ul,`\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4.
\uB610\uD55C, \uC0AC\uC6A9\uC790 \uC815\uC758 \uBAA8\uB378\uC744 auto \uD074\uB798\uC2A4\uC5D0 \uB4F1\uB85D\uD560 \uB54C \uC0AC\uC6A9\uB418\uB294 \uCCAB \uBC88\uC9F8 \uC778\uC218\uB294 \uD574\uB2F9 \uBAA8\uB378\uC758 `),gs=r(Ul,"CODE",{});var mM=p(gs);br=o(mM,"config_class"),mM.forEach(s),Ir=o(Ul,"\uC640 \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4."),Ul.forEach(s),this.h()},h(){f(d,"name","hf:doc:metadata"),f(d,"content",JSON.stringify(bM)),f(U,"id","sharing-custom-models"),f(U,"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"),f(U,"href","#sharing-custom-models"),f(y,"class","relative group"),f(_l,"href","https://github.com/rwightman/pytorch-image-models"),f(_l,"rel","nofollow"),f(al,"id","writing-a-custom-configuration"),f(al,"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"),f(al,"href","#writing-a-custom-configuration"),f(O,"class","relative group"),f(pl,"id","writing-a-custom-model"),f(pl,"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"),f(pl,"href","#writing-a-custom-model"),f(q,"class","relative group"),f(il,"id","sending-the-code-to-the-hub"),f(il,"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"),f(il,"href","#sending-the-code-to-the-hub"),f(L,"class","relative group"),f(Yl,"href","https://huggingface.co/sgugger/custom-resnet50d"),f(Yl,"rel","nofollow"),f(Vl,"href","https://huggingface.co/sgugger/custom-resnet50d"),f(Vl,"rel","nofollow"),f(Me,"href","model_sharing"),f(yl,"id","using-a-model-with-custom-code"),f(yl,"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"),f(yl,"href","#using-a-model-with-custom-code"),f(el,"class","relative group"),f(Fl,"href","https://huggingface.co/docs/hub/security#malware-scanning"),f(Fl,"rel","nofollow"),f(Jl,"id","registering-a-model-with-custom-code-to-the-auto-classes"),f(Jl,"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"),f(Jl,"href","#registering-a-model-with-custom-code-to-the-auto-classes"),f(sl,"class","relative group")},m(l,a){e(document.head,d),M(l,b,a),M(l,y,a),e(y,U),e(U,S),w(v,S,null),e(y,B),e(y,ol),e(ol,io),M(l,Ds,a),M(l,Ol,a),e(Ol,co),M(l,Hs,a),M(l,xl,a),e(xl,fo),M(l,Ss,a),M(l,P,a),e(P,_l),e(_l,yo),e(P,mo),e(P,Ce),e(Ce,Jo),e(P,wo),M(l,Ps,a),M(l,O,a),e(O,al),e(al,be),w(hl,be,null),e(O,uo),e(O,Ie),e(Ie,jo),M(l,Os,a),M(l,W,a),e(W,To),e(W,Ee),e(Ee,Uo),e(W,_o),e(W,Ze),e(Ze,ho),e(W,Co),M(l,xs,a),M(l,ql,a),e(ql,bo),M(l,qs,a),w(Cl,l,a),M(l,Ls,a),M(l,nl,a),e(nl,Io),e(nl,ve),e(ve,Eo),e(nl,Zo),M(l,Ks,a),M(l,X,a),e(X,Ll),e(Ll,Ae),e(Ae,vo),e(Ll,Ao),e(X,$o),e(X,rl),e(rl,$e),e($e,ko),e(rl,No),e(rl,ke),e(ke,Ro),e(rl,Bo),e(X,Wo),e(X,x),e(x,Xo),e(x,Ne),e(Ne,go),e(x,Go),e(x,Re),e(Re,Yo),e(x,Vo),M(l,lt,a),M(l,g,a),e(g,Qo),e(g,Be),e(Be,Fo),e(g,zo),e(g,We),e(We,Do),e(g,Ho),M(l,et,a),M(l,A,a),e(A,So),e(A,Xe),e(Xe,Po),e(A,Oo),e(A,ge),e(ge,xo),e(A,qo),e(A,Ge),e(Ge,Lo),e(A,Ko),M(l,st,a),M(l,Kl,a),e(Kl,la),M(l,tt,a),w(bl,l,a),M(l,ot,a),M(l,$,a),e($,ea),e($,Ye),e(Ye,sa),e($,ta),e($,Ve),e(Ve,oa),e($,aa),e($,Qe),e(Qe,na),e($,ra),M(l,at,a),w(Il,l,a),M(l,nt,a),M(l,G,a),e(G,pa),e(G,Fe),e(Fe,Ma),e(G,ia),e(G,ze),e(ze,ca),e(G,fa),M(l,rt,a),M(l,q,a),e(q,pl),e(pl,De),w(El,De,null),e(q,da),e(q,He),e(He,ya),M(l,pt,a),M(l,Y,a),e(Y,ma),e(Y,Se),e(Se,Ja),e(Y,wa),e(Y,Pe),e(Pe,ua),e(Y,ja),M(l,Mt,a),M(l,V,a),e(V,Ta),e(V,Oe),e(Oe,Ua),e(V,_a),e(V,xe),e(xe,ha),e(V,Ca),M(l,it,a),w(Zl,l,a),M(l,ct,a),M(l,le,a),e(le,ba),M(l,ft,a),w(vl,l,a),M(l,dt,a),M(l,E,a),e(E,Ia),e(E,qe),e(qe,Ea),e(E,Za),e(E,Le),e(Le,va),e(E,Aa),e(E,Ke),e(Ke,$a),e(E,ka),e(E,ls),e(ls,Na),e(E,Ra),M(l,yt,a),w(Ml,l,a),M(l,mt,a),M(l,Q,a),e(Q,Ba),e(Q,es),e(es,Wa),e(Q,Xa),e(Q,ss),e(ss,ga),e(Q,Ga),M(l,Jt,a),M(l,ee,a),e(ee,Ya),M(l,wt,a),w(Al,l,a),M(l,ut,a),M(l,k,a),e(k,Va),e(k,ts),e(ts,Qa),e(k,Fa),e(k,os),e(os,za),e(k,Da),e(k,as),e(as,Ha),e(k,Sa),M(l,jt,a),M(l,se,a),e(se,Pa),M(l,Tt,a),w($l,l,a),M(l,Ut,a),M(l,F,a),e(F,Oa),e(F,ns),e(ns,xa),e(F,qa),e(F,rs),e(rs,La),e(F,Ka),M(l,_t,a),M(l,L,a),e(L,il),e(il,ps),w(kl,ps,null),e(L,ln),e(L,Ms),e(Ms,en),M(l,ht,a),w(cl,l,a),M(l,Ct,a),M(l,_,a),e(_,sn),e(_,is),e(is,tn),e(_,on),e(_,cs),e(cs,an),e(_,nn),e(_,fs),e(fs,rn),e(_,pn),e(_,ds),e(ds,Mn),e(_,cn),e(_,ys),e(ys,fn),e(_,dn),e(_,ms),e(ms,yn),e(_,mn),e(_,Js),e(Js,Jn),e(_,wn),M(l,bt,a),w(Nl,l,a),M(l,It,a),M(l,z,a),e(z,un),e(z,ws),e(ws,jn),e(z,Tn),e(z,us),e(us,Un),e(z,_n),M(l,Et,a),w(fl,l,a),M(l,Zt,a),M(l,te,a),e(te,hn),M(l,vt,a),M(l,oe,a),e(oe,Cn),M(l,At,a),w(Rl,l,a),M(l,$t,a),M(l,dl,a),e(dl,bn),e(dl,js),e(js,In),e(dl,En),M(l,kt,a),w(Bl,l,a),M(l,Nt,a),M(l,K,a),e(K,Ts),e(Ts,Zn),e(K,vn),e(K,Us),e(Us,An),e(K,$n),M(l,Rt,a),M(l,ae,a),e(ae,kn),M(l,Bt,a),w(Wl,l,a),M(l,Wt,a),M(l,ne,a),e(ne,Nn),M(l,Xt,a),w(Xl,l,a),M(l,gt,a),M(l,re,a),e(re,Rn),M(l,Gt,a),w(gl,l,a),M(l,Yt,a),M(l,pe,a),e(pe,Bn),M(l,Vt,a),w(Gl,l,a),M(l,Qt,a),M(l,h,a),e(h,Wn),e(h,_s),e(_s,Xn),e(h,gn),e(h,hs),e(hs,Gn),e(h,Yn),e(h,Yl),e(Yl,Vn),e(h,Qn),e(h,Cs),e(Cs,Fn),e(h,zn),e(h,bs),e(bs,Dn),e(h,Hn),e(h,Vl),e(Vl,Sn),e(h,Pn),M(l,Ft,a),M(l,ll,a),e(ll,Me),e(Me,On),e(ll,xn),e(ll,Is),e(Is,qn),e(ll,Ln),M(l,zt,a),M(l,el,a),e(el,yl),e(yl,Es),w(Ql,Es,null),e(el,Kn),e(el,Zs),e(Zs,lr),M(l,Dt,a),M(l,N,a),e(N,er),e(N,vs),e(vs,sr),e(N,tr),e(N,Fl),e(Fl,or),e(N,ar),e(N,As),e(As,nr),e(N,rr),M(l,Ht,a),w(zl,l,a),M(l,St,a),M(l,ml,a),e(ml,pr),e(ml,$s),e($s,Mr),e(ml,ir),M(l,Pt,a),w(Dl,l,a),M(l,Ot,a),M(l,ie,a),e(ie,cr),M(l,xt,a),M(l,sl,a),e(sl,Jl),e(Jl,ks),w(Hl,ks,null),e(sl,fr),e(sl,Ns),e(Ns,dr),M(l,qt,a),M(l,ce,a),e(ce,yr),M(l,Lt,a),M(l,D,a),e(D,mr),e(D,Rs),e(Rs,Jr),e(D,wr),e(D,Bs),e(Bs,ur),e(D,jr),M(l,Kt,a),w(Sl,l,a),M(l,lo,a),M(l,R,a),e(R,Tr),e(R,Ws),e(Ws,Ur),e(R,_r),e(R,Xs),e(Xs,hr),e(R,Cr),e(R,gs),e(gs,br),e(R,Ir),eo=!0},p(l,[a]){const Pl={};a&2&&(Pl.$$scope={dirty:a,ctx:l}),Ml.$set(Pl);const Gs={};a&2&&(Gs.$$scope={dirty:a,ctx:l}),cl.$set(Gs);const Ys={};a&2&&(Ys.$$scope={dirty:a,ctx:l}),fl.$set(Ys)},i(l){eo||(u(v.$$.fragment,l),u(hl.$$.fragment,l),u(Cl.$$.fragment,l),u(bl.$$.fragment,l),u(Il.$$.fragment,l),u(El.$$.fragment,l),u(Zl.$$.fragment,l),u(vl.$$.fragment,l),u(Ml.$$.fragment,l),u(Al.$$.fragment,l),u($l.$$.fragment,l),u(kl.$$.fragment,l),u(cl.$$.fragment,l),u(Nl.$$.fragment,l),u(fl.$$.fragment,l),u(Rl.$$.fragment,l),u(Bl.$$.fragment,l),u(Wl.$$.fragment,l),u(Xl.$$.fragment,l),u(gl.$$.fragment,l),u(Gl.$$.fragment,l),u(Ql.$$.fragment,l),u(zl.$$.fragment,l),u(Dl.$$.fragment,l),u(Hl.$$.fragment,l),u(Sl.$$.fragment,l),eo=!0)},o(l){j(v.$$.fragment,l),j(hl.$$.fragment,l),j(Cl.$$.fragment,l),j(bl.$$.fragment,l),j(Il.$$.fragment,l),j(El.$$.fragment,l),j(Zl.$$.fragment,l),j(vl.$$.fragment,l),j(Ml.$$.fragment,l),j(Al.$$.fragment,l),j($l.$$.fragment,l),j(kl.$$.fragment,l),j(cl.$$.fragment,l),j(Nl.$$.fragment,l),j(fl.$$.fragment,l),j(Rl.$$.fragment,l),j(Bl.$$.fragment,l),j(Wl.$$.fragment,l),j(Xl.$$.fragment,l),j(gl.$$.fragment,l),j(Gl.$$.fragment,l),j(Ql.$$.fragment,l),j(zl.$$.fragment,l),j(Dl.$$.fragment,l),j(Hl.$$.fragment,l),j(Sl.$$.fragment,l),eo=!1},d(l){s(d),l&&s(b),l&&s(y),T(v),l&&s(Ds),l&&s(Ol),l&&s(Hs),l&&s(xl),l&&s(Ss),l&&s(P),l&&s(Ps),l&&s(O),T(hl),l&&s(Os),l&&s(W),l&&s(xs),l&&s(ql),l&&s(qs),T(Cl,l),l&&s(Ls),l&&s(nl),l&&s(Ks),l&&s(X),l&&s(lt),l&&s(g),l&&s(et),l&&s(A),l&&s(st),l&&s(Kl),l&&s(tt),T(bl,l),l&&s(ot),l&&s($),l&&s(at),T(Il,l),l&&s(nt),l&&s(G),l&&s(rt),l&&s(q),T(El),l&&s(pt),l&&s(Y),l&&s(Mt),l&&s(V),l&&s(it),T(Zl,l),l&&s(ct),l&&s(le),l&&s(ft),T(vl,l),l&&s(dt),l&&s(E),l&&s(yt),T(Ml,l),l&&s(mt),l&&s(Q),l&&s(Jt),l&&s(ee),l&&s(wt),T(Al,l),l&&s(ut),l&&s(k),l&&s(jt),l&&s(se),l&&s(Tt),T($l,l),l&&s(Ut),l&&s(F),l&&s(_t),l&&s(L),T(kl),l&&s(ht),T(cl,l),l&&s(Ct),l&&s(_),l&&s(bt),T(Nl,l),l&&s(It),l&&s(z),l&&s(Et),T(fl,l),l&&s(Zt),l&&s(te),l&&s(vt),l&&s(oe),l&&s(At),T(Rl,l),l&&s($t),l&&s(dl),l&&s(kt),T(Bl,l),l&&s(Nt),l&&s(K),l&&s(Rt),l&&s(ae),l&&s(Bt),T(Wl,l),l&&s(Wt),l&&s(ne),l&&s(Xt),T(Xl,l),l&&s(gt),l&&s(re),l&&s(Gt),T(gl,l),l&&s(Yt),l&&s(pe),l&&s(Vt),T(Gl,l),l&&s(Qt),l&&s(h),l&&s(Ft),l&&s(ll),l&&s(zt),l&&s(el),T(Ql),l&&s(Dt),l&&s(N),l&&s(Ht),T(zl,l),l&&s(St),l&&s(ml),l&&s(Pt),T(Dl,l),l&&s(Ot),l&&s(ie),l&&s(xt),l&&s(sl),T(Hl),l&&s(qt),l&&s(ce),l&&s(Lt),l&&s(D),l&&s(Kt),T(Sl,l),l&&s(lo),l&&s(R)}}}const bM={local:"sharing-custom-models",sections:[{local:"writing-a-custom-configuration",title:"\uC0AC\uC6A9\uC790 \uC815\uC758 \uAD6C\uC131 \uC791\uC131\uD558\uAE30"},{local:"writing-a-custom-model",title:"\uC0AC\uC6A9\uC790 \uC815\uC758 \uBAA8\uB378 \uC791\uC131\uD558\uAE30"},{local:"sending-the-code-to-the-hub",title:"Hub\uB85C \uCF54\uB4DC \uC5C5\uB85C\uB4DC\uD558\uAE30"},{local:"using-a-model-with-custom-code",title:"\uC0AC\uC6A9\uC790 \uC815\uC758 \uCF54\uB4DC\uB85C \uBAA8\uB378 \uC0AC\uC6A9\uD558\uAE30"},{local:"registering-a-model-with-custom-code-to-the-auto-classes",title:"\uC0AC\uC6A9\uC790 \uC815\uC758 \uCF54\uB4DC\uB85C \uB9CC\uB4E0 \uBAA8\uB378\uC744 auto \uD074\uB798\uC2A4\uB85C \uB4F1\uB85D\uD558\uAE30"}],title:"\uC0AC\uC6A9\uC790 \uC815\uC758 \uBAA8\uB378 \uACF5\uC720\uD558\uAE30"};function IM(tl){return TM(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class $M extends JM{constructor(d){super();wM(this,d,IM,CM,uM,{})}}export{$M as default,bM as metadata};
