import{S as rc,i as ac,s as sc,e as r,k as d,w as v,t as n,M as nc,c as a,d as o,m,a as s,x as y,h as i,b as l,G as e,g as h,y as M,q as w,o as N,B as T,v as ic,L as pa}from"../../chunks/vendor-hf-doc-builder.js";import{T as yi}from"../../chunks/Tip-hf-doc-builder.js";import{D as j}from"../../chunks/Docstring-hf-doc-builder.js";import{C as ha}from"../../chunks/CodeBlock-hf-doc-builder.js";import{I as ne}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{E as ma}from"../../chunks/ExampleCodeBlock-hf-doc-builder.js";import{P as lc}from"../../chunks/PipelineTag-hf-doc-builder.js";function cc($){let f,V,_,g,b;return g=new ha({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyME1vYmlsZU5ldFYyQ29uZmlnJTJDJTIwTW9iaWxlTmV0VjJNb2RlbCUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjAlMjJtb2JpbGVuZXRfdjJfMS4wXzIyNCUyMiUyMHN0eWxlJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBNb2JpbGVOZXRWMkNvbmZpZygpJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMG1vZGVsJTIwZnJvbSUyMHRoZSUyMCUyMm1vYmlsZW5ldF92Ml8xLjBfMjI0JTIyJTIwc3R5bGUlMjBjb25maWd1cmF0aW9uJTBBbW9kZWwlMjAlM0QlMjBNb2JpbGVOZXRWMk1vZGVsKGNvbmZpZ3VyYXRpb24pJTBBJTBBJTIzJTIwQWNjZXNzaW5nJTIwdGhlJTIwbW9kZWwlMjBjb25maWd1cmF0aW9uJTBBY29uZmlndXJhdGlvbiUyMCUzRCUyMG1vZGVsLmNvbmZpZw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> MobileNetV2Config, MobileNetV2Model

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a &quot;mobilenet_v2_1.0_224&quot; style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = MobileNetV2Config()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model from the &quot;mobilenet_v2_1.0_224&quot; style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = MobileNetV2Model(configuration)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Accessing the model configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = model.config`}}),{c(){f=r("p"),V=n("Example:"),_=d(),v(g.$$.fragment)},l(c){f=a(c,"P",{});var u=s(f);V=i(u,"Example:"),u.forEach(o),_=m(c),y(g.$$.fragment,c)},m(c,u){h(c,f,u),e(f,V),h(c,_,u),M(g,c,u),b=!0},p:pa,i(c){b||(w(g.$$.fragment,c),b=!0)},o(c){N(g.$$.fragment,c),b=!1},d(c){c&&o(f),c&&o(_),T(g,c)}}}function dc($){let f,V,_,g,b;return{c(){f=r("p"),V=n("Although the recipe for forward pass needs to be defined within this function, one should call the "),_=r("code"),g=n("Module"),b=n(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(c){f=a(c,"P",{});var u=s(f);V=i(u,"Although the recipe for forward pass needs to be defined within this function, one should call the "),_=a(u,"CODE",{});var E=s(_);g=i(E,"Module"),E.forEach(o),b=i(u,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),u.forEach(o)},m(c,u){h(c,f,u),e(f,V),e(f,_),e(_,g),e(f,b)},d(c){c&&o(f)}}}function mc($){let f,V,_,g,b;return g=new ha({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyME1vYmlsZU5ldFYyTW9kZWwlMEFpbXBvcnQlMjB0b3JjaCUwQWZyb20lMjBkYXRhc2V0cyUyMGltcG9ydCUyMGxvYWRfZGF0YXNldCUwQSUwQWRhdGFzZXQlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyaHVnZ2luZ2ZhY2UlMkZjYXRzLWltYWdlJTIyKSUwQWltYWdlJTIwJTNEJTIwZGF0YXNldCU1QiUyMnRlc3QlMjIlNUQlNUIlMjJpbWFnZSUyMiU1RCU1QjAlNUQlMEElMEFpbWFnZV9wcm9jZXNzb3IlMjAlM0QlMjBBdXRvSW1hZ2VQcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMmdvb2dsZSUyRm1vYmlsZW5ldF92Ml8xLjBfMjI0JTIyKSUwQW1vZGVsJTIwJTNEJTIwTW9iaWxlTmV0VjJNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyZ29vZ2xlJTJGbW9iaWxlbmV0X3YyXzEuMF8yMjQlMjIpJTBBJTBBaW5wdXRzJTIwJTNEJTIwaW1hZ2VfcHJvY2Vzc29yKGltYWdlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEElMEF3aXRoJTIwdG9yY2gubm9fZ3JhZCgpJTNBJTBBJTIwJTIwJTIwJTIwb3V0cHV0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzKSUwQSUwQWxhc3RfaGlkZGVuX3N0YXRlcyUyMCUzRCUyMG91dHB1dHMubGFzdF9oaWRkZW5fc3RhdGUlMEFsaXN0KGxhc3RfaGlkZGVuX3N0YXRlcy5zaGFwZSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, MobileNetV2Model
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;huggingface/cats-image&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image = dataset[<span class="hljs-string">&quot;test&quot;</span>][<span class="hljs-string">&quot;image&quot;</span>][<span class="hljs-number">0</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span>image_processor = AutoImageProcessor.from_pretrained(<span class="hljs-string">&quot;google/mobilenet_v2_1.0_224&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = MobileNetV2Model.from_pretrained(<span class="hljs-string">&quot;google/mobilenet_v2_1.0_224&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = image_processor(image, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> torch.no_grad():
<span class="hljs-meta">... </span>    outputs = model(**inputs)

<span class="hljs-meta">&gt;&gt;&gt; </span>last_hidden_states = outputs.last_hidden_state
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(last_hidden_states.shape)
[<span class="hljs-number">1</span>, <span class="hljs-number">1280</span>, <span class="hljs-number">7</span>, <span class="hljs-number">7</span>]`}}),{c(){f=r("p"),V=n("Example:"),_=d(),v(g.$$.fragment)},l(c){f=a(c,"P",{});var u=s(f);V=i(u,"Example:"),u.forEach(o),_=m(c),y(g.$$.fragment,c)},m(c,u){h(c,f,u),e(f,V),h(c,_,u),M(g,c,u),b=!0},p:pa,i(c){b||(w(g.$$.fragment,c),b=!0)},o(c){N(g.$$.fragment,c),b=!1},d(c){c&&o(f),c&&o(_),T(g,c)}}}function pc($){let f,V,_,g,b;return{c(){f=r("p"),V=n("Although the recipe for forward pass needs to be defined within this function, one should call the "),_=r("code"),g=n("Module"),b=n(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(c){f=a(c,"P",{});var u=s(f);V=i(u,"Although the recipe for forward pass needs to be defined within this function, one should call the "),_=a(u,"CODE",{});var E=s(_);g=i(E,"Module"),E.forEach(o),b=i(u,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),u.forEach(o)},m(c,u){h(c,f,u),e(f,V),e(f,_),e(_,g),e(f,b)},d(c){c&&o(f)}}}function hc($){let f,V,_,g,b;return g=new ha({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyME1vYmlsZU5ldFYyRm9ySW1hZ2VDbGFzc2lmaWNhdGlvbiUwQWltcG9ydCUyMHRvcmNoJTBBZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJodWdnaW5nZmFjZSUyRmNhdHMtaW1hZ2UlMjIpJTBBaW1hZ2UlMjAlM0QlMjBkYXRhc2V0JTVCJTIydGVzdCUyMiU1RCU1QiUyMmltYWdlJTIyJTVEJTVCMCU1RCUwQSUwQWltYWdlX3Byb2Nlc3NvciUyMCUzRCUyMEF1dG9JbWFnZVByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIyZ29vZ2xlJTJGbW9iaWxlbmV0X3YyXzEuMF8yMjQlMjIpJTBBbW9kZWwlMjAlM0QlMjBNb2JpbGVOZXRWMkZvckltYWdlQ2xhc3NpZmljYXRpb24uZnJvbV9wcmV0cmFpbmVkKCUyMmdvb2dsZSUyRm1vYmlsZW5ldF92Ml8xLjBfMjI0JTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMGltYWdlX3Byb2Nlc3NvcihpbWFnZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBJTBBd2l0aCUyMHRvcmNoLm5vX2dyYWQoKSUzQSUwQSUyMCUyMCUyMCUyMGxvZ2l0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzKS5sb2dpdHMlMEElMEElMjMlMjBtb2RlbCUyMHByZWRpY3RzJTIwb25lJTIwb2YlMjB0aGUlMjAxMDAwJTIwSW1hZ2VOZXQlMjBjbGFzc2VzJTBBcHJlZGljdGVkX2xhYmVsJTIwJTNEJTIwbG9naXRzLmFyZ21heCgtMSkuaXRlbSgpJTBBcHJpbnQobW9kZWwuY29uZmlnLmlkMmxhYmVsJTVCcHJlZGljdGVkX2xhYmVsJTVEKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, MobileNetV2ForImageClassification
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;huggingface/cats-image&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image = dataset[<span class="hljs-string">&quot;test&quot;</span>][<span class="hljs-string">&quot;image&quot;</span>][<span class="hljs-number">0</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span>image_processor = AutoImageProcessor.from_pretrained(<span class="hljs-string">&quot;google/mobilenet_v2_1.0_224&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = MobileNetV2ForImageClassification.from_pretrained(<span class="hljs-string">&quot;google/mobilenet_v2_1.0_224&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = image_processor(image, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> torch.no_grad():
<span class="hljs-meta">... </span>    logits = model(**inputs).logits

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># model predicts one of the 1000 ImageNet classes</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_label = logits.argmax(-<span class="hljs-number">1</span>).item()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(model.config.id2label[predicted_label])
tabby, tabby cat`}}),{c(){f=r("p"),V=n("Example:"),_=d(),v(g.$$.fragment)},l(c){f=a(c,"P",{});var u=s(f);V=i(u,"Example:"),u.forEach(o),_=m(c),y(g.$$.fragment,c)},m(c,u){h(c,f,u),e(f,V),h(c,_,u),M(g,c,u),b=!0},p:pa,i(c){b||(w(g.$$.fragment,c),b=!0)},o(c){N(g.$$.fragment,c),b=!1},d(c){c&&o(f),c&&o(_),T(g,c)}}}function fc($){let f,V,_,g,b;return{c(){f=r("p"),V=n("Although the recipe for forward pass needs to be defined within this function, one should call the "),_=r("code"),g=n("Module"),b=n(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(c){f=a(c,"P",{});var u=s(f);V=i(u,"Although the recipe for forward pass needs to be defined within this function, one should call the "),_=a(u,"CODE",{});var E=s(_);g=i(E,"Module"),E.forEach(o),b=i(u,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),u.forEach(o)},m(c,u){h(c,f,u),e(f,V),e(f,_),e(_,g),e(f,b)},d(c){c&&o(f)}}}function gc($){let f,V,_,g,b;return g=new ha({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyME1vYmlsZU5ldFYyRm9yU2VtYW50aWNTZWdtZW50YXRpb24lMEFmcm9tJTIwUElMJTIwaW1wb3J0JTIwSW1hZ2UlMEFpbXBvcnQlMjByZXF1ZXN0cyUwQSUwQXVybCUyMCUzRCUyMCUyMmh0dHAlM0ElMkYlMkZpbWFnZXMuY29jb2RhdGFzZXQub3JnJTJGdmFsMjAxNyUyRjAwMDAwMDAzOTc2OS5qcGclMjIlMEFpbWFnZSUyMCUzRCUyMEltYWdlLm9wZW4ocmVxdWVzdHMuZ2V0KHVybCUyQyUyMHN0cmVhbSUzRFRydWUpLnJhdyklMEElMEFpbWFnZV9wcm9jZXNzb3IlMjAlM0QlMjBBdXRvSW1hZ2VQcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMmdvb2dsZSUyRmRlZXBsYWJ2M19tb2JpbGVuZXRfdjJfMS4wXzUxMyUyMiklMEFtb2RlbCUyMCUzRCUyME1vYmlsZU5ldFYyRm9yU2VtYW50aWNTZWdtZW50YXRpb24uZnJvbV9wcmV0cmFpbmVkKCUyMmdvb2dsZSUyRmRlZXBsYWJ2M19tb2JpbGVuZXRfdjJfMS4wXzUxMyUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjBpbWFnZV9wcm9jZXNzb3IoaW1hZ2VzJTNEaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQSUwQXdpdGglMjB0b3JjaC5ub19ncmFkKCklM0ElMEElMjAlMjAlMjAlMjBvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpJTBBJTBBJTIzJTIwbG9naXRzJTIwYXJlJTIwb2YlMjBzaGFwZSUyMChiYXRjaF9zaXplJTJDJTIwbnVtX2xhYmVscyUyQyUyMGhlaWdodCUyQyUyMHdpZHRoKSUwQWxvZ2l0cyUyMCUzRCUyMG91dHB1dHMubG9naXRz",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, MobileNetV2ForSemanticSegmentation
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> PIL <span class="hljs-keyword">import</span> Image
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> requests

<span class="hljs-meta">&gt;&gt;&gt; </span>url = <span class="hljs-string">&quot;http://images.cocodataset.org/val2017/000000039769.jpg&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>image = Image.<span class="hljs-built_in">open</span>(requests.get(url, stream=<span class="hljs-literal">True</span>).raw)

<span class="hljs-meta">&gt;&gt;&gt; </span>image_processor = AutoImageProcessor.from_pretrained(<span class="hljs-string">&quot;google/deeplabv3_mobilenet_v2_1.0_513&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = MobileNetV2ForSemanticSegmentation.from_pretrained(<span class="hljs-string">&quot;google/deeplabv3_mobilenet_v2_1.0_513&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = image_processor(images=image, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> torch.no_grad():
<span class="hljs-meta">... </span>    outputs = model(**inputs)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># logits are of shape (batch_size, num_labels, height, width)</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits`}}),{c(){f=r("p"),V=n("Examples:"),_=d(),v(g.$$.fragment)},l(c){f=a(c,"P",{});var u=s(f);V=i(u,"Examples:"),u.forEach(o),_=m(c),y(g.$$.fragment,c)},m(c,u){h(c,f,u),e(f,V),h(c,_,u),M(g,c,u),b=!0},p:pa,i(c){b||(w(g.$$.fragment,c),b=!0)},o(c){N(g.$$.fragment,c),b=!1},d(c){c&&o(f),c&&o(_),T(g,c)}}}function uc($){let f,V,_,g,b,c,u,E,fa,pr,D,ie,ho,Re,ga,fo,ua,hr,le,_a,We,ba,va,fr,Ft,ya,gr,St,go,Ma,ur,jt,uo,wa,_r,Pt,Na,br,I,_o,x,Ta,ce,Va,bo,$a,Ia,vo,Ea,xa,yo,za,Ca,Mo,Fa,Sa,wo,ja,Pa,Ua,No,To,ka,Ra,Vo,Je,Wa,Ut,Ja,Za,Aa,$o,Ze,La,Ae,Ba,Da,Ga,Io,G,Oa,Le,Xa,Ya,Be,qa,Qa,Ha,Eo,O,Ka,kt,es,ts,xo,os,rs,vr,Rt,as,yr,P,zo,De,ss,Wt,ns,is,ls,Co,Fo,cs,ds,So,Ge,ms,jo,ps,hs,fs,Po,Oe,gs,Jt,us,_s,Mr,U,bs,Xe,vs,ys,Ye,Ms,ws,qe,Ns,Ts,wr,X,de,Uo,Qe,Vs,ko,$s,Nr,Zt,Is,Tr,He,Vr,me,L,At,Es,xs,Ke,zs,Cs,et,Fs,Ss,js,Lt,Ps,Bt,Us,$r,Dt,Ro,ks,Ir,Gt,Wo,Ot,Rs,Er,Xt,Ws,xr,Y,pe,Jo,tt,Js,Zo,Zs,zr,z,ot,As,q,Ls,Yt,Bs,Ds,rt,Gs,Os,Xs,Q,Ys,qt,qs,Qs,Qt,Hs,Ks,en,he,Cr,H,fe,Ao,at,tn,Lo,on,Fr,Z,st,rn,ge,nt,an,Bo,sn,nn,ue,it,ln,lt,cn,Ht,dn,mn,Sr,K,_e,Do,ct,pn,Go,hn,jr,C,dt,fn,Oo,gn,un,be,mt,_n,Xo,bn,vn,ve,pt,yn,ht,Mn,Kt,wn,Nn,Pr,ee,ye,Yo,ft,Tn,qo,Vn,Ur,A,gt,$n,ut,In,_t,En,xn,zn,k,bt,Cn,te,Fn,eo,Sn,jn,Qo,Pn,Un,kn,Me,Rn,we,kr,oe,Ne,Ho,vt,Wn,Ko,Jn,Rr,F,yt,Zn,er,An,Ln,Mt,Bn,wt,Dn,Gn,On,R,Nt,Xn,re,Yn,to,qn,Qn,tr,Hn,Kn,ei,Te,ti,Ve,Wr,ae,$e,or,Tt,oi,rr,ri,Jr,S,Vt,ai,ar,si,ni,$t,ii,It,li,ci,di,W,Et,mi,se,pi,oo,hi,fi,sr,gi,ui,_i,Ie,bi,Ee,Zr;return c=new ne({}),Re=new ne({}),Qe=new ne({}),He=new lc({props:{pipeline:"image-classification"}}),tt=new ne({}),ot=new j({props:{name:"class transformers.MobileNetV2Config",anchor:"transformers.MobileNetV2Config",parameters:[{name:"num_channels",val:" = 3"},{name:"image_size",val:" = 224"},{name:"depth_multiplier",val:" = 1.0"},{name:"depth_divisible_by",val:" = 8"},{name:"min_depth",val:" = 8"},{name:"expand_ratio",val:" = 6"},{name:"output_stride",val:" = 32"},{name:"first_layer_is_expansion",val:" = True"},{name:"finegrained_output",val:" = True"},{name:"hidden_act",val:" = 'relu6'"},{name:"tf_padding",val:" = True"},{name:"classifier_dropout_prob",val:" = 0.8"},{name:"initializer_range",val:" = 0.02"},{name:"layer_norm_eps",val:" = 0.001"},{name:"semantic_loss_ignore_index",val:" = 255"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.MobileNetV2Config.num_channels",description:`<strong>num_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 3) &#x2014;
The number of input channels.`,name:"num_channels"},{anchor:"transformers.MobileNetV2Config.image_size",description:`<strong>image_size</strong> (<code>int</code>, <em>optional</em>, defaults to 224) &#x2014;
The size (resolution) of each image.`,name:"image_size"},{anchor:"transformers.MobileNetV2Config.depth_multiplier",description:`<strong>depth_multiplier</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014;
Shrinks or expands the number of channels in each layer. Default is 1.0, which starts the network with 32
channels. This is sometimes also called &#x201C;alpha&#x201D; or &#x201C;width multiplier&#x201D;.`,name:"depth_multiplier"},{anchor:"transformers.MobileNetV2Config.depth_divisible_by",description:`<strong>depth_divisible_by</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
The number of channels in each layer will always be a multiple of this number.`,name:"depth_divisible_by"},{anchor:"transformers.MobileNetV2Config.min_depth",description:`<strong>min_depth</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
All layers will have at least this many channels.`,name:"min_depth"},{anchor:"transformers.MobileNetV2Config.expand_ratio",description:`<strong>expand_ratio</strong> (<code>float</code>, <em>optional</em>, defaults to 6.0) &#x2014;
The number of output channels of the first layer in each block is input channels times expansion ratio.`,name:"expand_ratio"},{anchor:"transformers.MobileNetV2Config.output_stride",description:`<strong>output_stride</strong> (<code>int</code>, <em>optional</em>, defaults to 32) &#x2014;
The ratio between the spatial resolution of the input and output feature maps. By default the model reduces
the input dimensions by a factor of 32. If <code>output_stride</code> is 8 or 16, the model uses dilated convolutions
on the depthwise layers instead of regular convolutions, so that the feature maps never become more than 8x
or 16x smaller than the input image.`,name:"output_stride"},{anchor:"transformers.MobileNetV2Config.first_layer_is_expansion",description:`<strong>first_layer_is_expansion</strong> (<code>bool</code>, <code>optional</code>, defaults to <code>True</code>) &#x2014;
True if the very first convolution layer is also the expansion layer for the first expansion block.`,name:"first_layer_is_expansion"},{anchor:"transformers.MobileNetV2Config.finegrained_output",description:`<strong>finegrained_output</strong> (<code>bool</code>, <code>optional</code>, defaults to <code>True</code>) &#x2014;
If true, the number of output channels in the final convolution layer will stay large (1280) even if
<code>depth_multiplier</code> is less than 1.`,name:"finegrained_output"},{anchor:"transformers.MobileNetV2Config.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code> or <code>function</code>, <em>optional</em>, defaults to <code>&quot;relu6&quot;</code>) &#x2014;
The non-linear activation function (function or string) in the Transformer encoder and convolution layers.`,name:"hidden_act"},{anchor:"transformers.MobileNetV2Config.tf_padding",description:`<strong>tf_padding</strong> (<code>bool</code>, <code>optional</code>, defaults to <code>True</code>) &#x2014;
Whether to use TensorFlow padding rules on the convolution layers.`,name:"tf_padding"},{anchor:"transformers.MobileNetV2Config.classifier_dropout_prob",description:`<strong>classifier_dropout_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.999) &#x2014;
The dropout ratio for attached classifiers.`,name:"classifier_dropout_prob"},{anchor:"transformers.MobileNetV2Config.initializer_range",description:`<strong>initializer_range</strong> (<code>float</code>, <em>optional</em>, defaults to 0.02) &#x2014;
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.`,name:"initializer_range"},{anchor:"transformers.MobileNetV2Config.layer_norm_eps",description:`<strong>layer_norm_eps</strong> (<code>float</code>, <em>optional</em>, defaults to 0.001) &#x2014;
The epsilon used by the layer normalization layers.`,name:"layer_norm_eps"},{anchor:"transformers.MobileNetV2Config.semantic_loss_ignore_index",description:`<strong>semantic_loss_ignore_index</strong> (<code>int</code>, <em>optional</em>, defaults to 255) &#x2014;
The index that is ignored by the loss function of the semantic segmentation model.`,name:"semantic_loss_ignore_index"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/mobilenet_v2/configuration_mobilenet_v2.py#L38"}}),he=new ma({props:{anchor:"transformers.MobileNetV2Config.example",$$slots:{default:[cc]},$$scope:{ctx:$}}}),at=new ne({}),st=new j({props:{name:"class transformers.MobileNetV2FeatureExtractor",anchor:"transformers.MobileNetV2FeatureExtractor",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/mobilenet_v2/feature_extraction_mobilenet_v2.py#L26"}}),nt=new j({props:{name:"preprocess",anchor:"transformers.MobileNetV2FeatureExtractor.preprocess",parameters:[{name:"images",val:": typing.Union[ForwardRef('PIL.Image.Image'), numpy.ndarray, ForwardRef('torch.Tensor'), typing.List[ForwardRef('PIL.Image.Image')], typing.List[numpy.ndarray], typing.List[ForwardRef('torch.Tensor')]]"},{name:"do_resize",val:": typing.Optional[bool] = None"},{name:"size",val:": typing.Dict[str, int] = None"},{name:"resample",val:": Resampling = None"},{name:"do_center_crop",val:": bool = None"},{name:"crop_size",val:": typing.Dict[str, int] = None"},{name:"do_rescale",val:": typing.Optional[bool] = None"},{name:"rescale_factor",val:": typing.Optional[float] = None"},{name:"do_normalize",val:": typing.Optional[bool] = None"},{name:"image_mean",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"image_std",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"return_tensors",val:": typing.Union[str, transformers.utils.generic.TensorType, NoneType] = None"},{name:"data_format",val:": typing.Union[str, transformers.image_utils.ChannelDimension] = <ChannelDimension.FIRST: 'channels_first'>"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.MobileNetV2FeatureExtractor.preprocess.images",description:`<strong>images</strong> (<code>ImageInput</code>) &#x2014;
Image to preprocess.`,name:"images"},{anchor:"transformers.MobileNetV2FeatureExtractor.preprocess.do_resize",description:`<strong>do_resize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_resize</code>) &#x2014;
Whether to resize the image.`,name:"do_resize"},{anchor:"transformers.MobileNetV2FeatureExtractor.preprocess.size",description:`<strong>size</strong> (<code>Dict[str, int]</code>, <em>optional</em>, defaults to <code>self.size</code>) &#x2014;
Size of the image after resizing. Shortest edge of the image is resized to size[&#x201C;shortest_edge&#x201D;], with
the longest edge resized to keep the input aspect ratio.`,name:"size"},{anchor:"transformers.MobileNetV2FeatureExtractor.preprocess.resample",description:`<strong>resample</strong> (<code>PILImageResampling</code> filter, <em>optional</em>, defaults to <code>self.resample</code>) &#x2014;
<code>PILImageResampling</code> filter to use if resizing the image e.g. <code>PILImageResampling.BILINEAR</code>. Only has
an effect if <code>do_resize</code> is set to <code>True</code>.`,name:"resample"},{anchor:"transformers.MobileNetV2FeatureExtractor.preprocess.do_center_crop",description:`<strong>do_center_crop</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_center_crop</code>) &#x2014;
Whether to center crop the image.`,name:"do_center_crop"},{anchor:"transformers.MobileNetV2FeatureExtractor.preprocess.crop_size",description:`<strong>crop_size</strong> (<code>Dict[str, int]</code>, <em>optional</em>, defaults to <code>self.crop_size</code>) &#x2014;
Size of the center crop. Only has an effect if <code>do_center_crop</code> is set to <code>True</code>.`,name:"crop_size"},{anchor:"transformers.MobileNetV2FeatureExtractor.preprocess.do_rescale",description:`<strong>do_rescale</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_rescale</code>) &#x2014;
Whether to rescale the image values between [0 - 1].`,name:"do_rescale"},{anchor:"transformers.MobileNetV2FeatureExtractor.preprocess.rescale_factor",description:`<strong>rescale_factor</strong> (<code>float</code>, <em>optional</em>, defaults to <code>self.rescale_factor</code>) &#x2014;
Rescale factor to rescale the image by if <code>do_rescale</code> is set to <code>True</code>.`,name:"rescale_factor"},{anchor:"transformers.MobileNetV2FeatureExtractor.preprocess.do_normalize",description:`<strong>do_normalize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_normalize</code>) &#x2014;
Whether to normalize the image.`,name:"do_normalize"},{anchor:"transformers.MobileNetV2FeatureExtractor.preprocess.image_mean",description:`<strong>image_mean</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>self.image_mean</code>) &#x2014;
Image mean to use if <code>do_normalize</code> is set to <code>True</code>.`,name:"image_mean"},{anchor:"transformers.MobileNetV2FeatureExtractor.preprocess.image_std",description:`<strong>image_std</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>self.image_std</code>) &#x2014;
Image standard deviation to use if <code>do_normalize</code> is set to <code>True</code>.`,name:"image_std"},{anchor:"transformers.MobileNetV2FeatureExtractor.preprocess.return_tensors",description:`<strong>return_tensors</strong> (<code>str</code> or <code>TensorType</code>, <em>optional</em>) &#x2014;
The type of tensors to return. Can be one of:<ul>
<li>Unset: Return a list of <code>np.ndarray</code>.</li>
<li><code>TensorType.TENSORFLOW</code> or <code>&apos;tf&apos;</code>: Return a batch of type <code>tf.Tensor</code>.</li>
<li><code>TensorType.PYTORCH</code> or <code>&apos;pt&apos;</code>: Return a batch of type <code>torch.Tensor</code>.</li>
<li><code>TensorType.NUMPY</code> or <code>&apos;np&apos;</code>: Return a batch of type <code>np.ndarray</code>.</li>
<li><code>TensorType.JAX</code> or <code>&apos;jax&apos;</code>: Return a batch of type <code>jax.numpy.ndarray</code>.</li>
</ul>`,name:"return_tensors"},{anchor:"transformers.MobileNetV2FeatureExtractor.preprocess.data_format",description:`<strong>data_format</strong> (<code>ChannelDimension</code> or <code>str</code>, <em>optional</em>, defaults to <code>ChannelDimension.FIRST</code>) &#x2014;
The channel dimension format for the output image. Can be one of:<ul>
<li><code>&quot;channels_first&quot;</code> or <code>ChannelDimension.FIRST</code>: image in (num_channels, height, width) format.</li>
<li><code>&quot;channels_last&quot;</code> or <code>ChannelDimension.LAST</code>: image in (height, width, num_channels) format.</li>
<li>Unset: Use the channel dimension format of the input image.</li>
</ul>`,name:"data_format"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/mobilenet_v2/image_processing_mobilenet_v2.py#L147"}}),it=new j({props:{name:"post_process_semantic_segmentation",anchor:"transformers.MobileNetV2FeatureExtractor.post_process_semantic_segmentation",parameters:[{name:"outputs",val:""},{name:"target_sizes",val:": typing.List[typing.Tuple] = None"}],parametersDescription:[{anchor:"transformers.MobileNetV2FeatureExtractor.post_process_semantic_segmentation.outputs",description:`<strong>outputs</strong> (<a href="/docs/transformers/main/en/model_doc/mobilenet_v2#transformers.MobileNetV2ForSemanticSegmentation">MobileNetV2ForSemanticSegmentation</a>) &#x2014;
Raw outputs of the model.`,name:"outputs"},{anchor:"transformers.MobileNetV2FeatureExtractor.post_process_semantic_segmentation.target_sizes",description:`<strong>target_sizes</strong> (<code>List[Tuple]</code> of length <code>batch_size</code>, <em>optional</em>) &#x2014;
List of tuples corresponding to the requested final size (height, width) of each prediction. If unset,
predictions will not be resized.`,name:"target_sizes"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/mobilenet_v2/image_processing_mobilenet_v2.py#L259",returnDescription:`
<p><code>List[torch.Tensor]</code> of length <code>batch_size</code>, where each item is a semantic
segmentation map of shape (height, width) corresponding to the target_sizes entry (if <code>target_sizes</code> is
specified). Each entry of each <code>torch.Tensor</code> correspond to a semantic class id.</p>
`,returnType:`
<p>semantic_segmentation</p>
`}}),ct=new ne({}),dt=new j({props:{name:"class transformers.MobileNetV2ImageProcessor",anchor:"transformers.MobileNetV2ImageProcessor",parameters:[{name:"do_resize",val:": bool = True"},{name:"size",val:": typing.Union[typing.Dict[str, int], NoneType] = None"},{name:"resample",val:": Resampling = <Resampling.BILINEAR: 2>"},{name:"do_center_crop",val:": bool = True"},{name:"crop_size",val:": typing.Dict[str, int] = None"},{name:"do_rescale",val:": bool = True"},{name:"rescale_factor",val:": typing.Union[int, float] = 0.00392156862745098"},{name:"do_normalize",val:": bool = True"},{name:"image_mean",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"image_std",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.MobileNetV2ImageProcessor.do_resize",description:`<strong>do_resize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to resize the image&#x2019;s (height, width) dimensions to the specified <code>size</code>. Can be overridden by
<code>do_resize</code> in the <code>preprocess</code> method.`,name:"do_resize"},{anchor:"transformers.MobileNetV2ImageProcessor.size",description:`<strong>size</strong> (<code>Dict[str, int]</code> <em>optional</em>, defaults to <code>{&quot;shortest_edge&quot; -- 256}</code>):
Size of the image after resizing. The shortest edge of the image is resized to size[&#x201C;shortest_edge&#x201D;], with
the longest edge resized to keep the input aspect ratio. Can be overridden by <code>size</code> in the <code>preprocess</code>
method.`,name:"size"},{anchor:"transformers.MobileNetV2ImageProcessor.resample",description:`<strong>resample</strong> (<code>PILImageResampling</code>, <em>optional</em>, defaults to <code>PILImageResampling.BILINEAR</code>) &#x2014;
Resampling filter to use if resizing the image. Can be overridden by the <code>resample</code> parameter in the
<code>preprocess</code> method.`,name:"resample"},{anchor:"transformers.MobileNetV2ImageProcessor.do_center_crop",description:`<strong>do_center_crop</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to center crop the image. If the input size is smaller than <code>crop_size</code> along any edge, the image
is padded with 0&#x2019;s and then center cropped. Can be overridden by the <code>do_center_crop</code> parameter in the
<code>preprocess</code> method.`,name:"do_center_crop"},{anchor:"transformers.MobileNetV2ImageProcessor.crop_size",description:`<strong>crop_size</strong> (<code>Dict[str, int]</code>, <em>optional</em>, defaults to <code>{&quot;height&quot; -- 224, &quot;width&quot;: 224}</code>):
Desired output size when applying center-cropping. Only has an effect if <code>do_center_crop</code> is set to <code>True</code>.
Can be overridden by the <code>crop_size</code> parameter in the <code>preprocess</code> method.`,name:"crop_size"},{anchor:"transformers.MobileNetV2ImageProcessor.do_rescale",description:`<strong>do_rescale</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to rescale the image by the specified scale <code>rescale_factor</code>. Can be overridden by the <code>do_rescale</code>
parameter in the <code>preprocess</code> method.`,name:"do_rescale"},{anchor:"transformers.MobileNetV2ImageProcessor.rescale_factor",description:`<strong>rescale_factor</strong> (<code>int</code> or <code>float</code>, <em>optional</em>, defaults to <code>1/255</code>) &#x2014;
Scale factor to use if rescaling the image. Can be overridden by the <code>rescale_factor</code> parameter in the
<code>preprocess</code> method.
do_normalize &#x2014;
Whether to normalize the image. Can be overridden by the <code>do_normalize</code> parameter in the <code>preprocess</code>
method.`,name:"rescale_factor"},{anchor:"transformers.MobileNetV2ImageProcessor.image_mean",description:`<strong>image_mean</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>IMAGENET_STANDARD_MEAN</code>) &#x2014;
Mean to use if normalizing the image. This is a float or list of floats the length of the number of
channels in the image. Can be overridden by the <code>image_mean</code> parameter in the <code>preprocess</code> method.`,name:"image_mean"},{anchor:"transformers.MobileNetV2ImageProcessor.image_std",description:`<strong>image_std</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>IMAGENET_STANDARD_STD</code>) &#x2014;
Standard deviation to use if normalizing the image. This is a float or list of floats the length of the
number of channels in the image. Can be overridden by the <code>image_std</code> parameter in the <code>preprocess</code> method.`,name:"image_std"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/mobilenet_v2/image_processing_mobilenet_v2.py#L47"}}),mt=new j({props:{name:"preprocess",anchor:"transformers.MobileNetV2ImageProcessor.preprocess",parameters:[{name:"images",val:": typing.Union[ForwardRef('PIL.Image.Image'), numpy.ndarray, ForwardRef('torch.Tensor'), typing.List[ForwardRef('PIL.Image.Image')], typing.List[numpy.ndarray], typing.List[ForwardRef('torch.Tensor')]]"},{name:"do_resize",val:": typing.Optional[bool] = None"},{name:"size",val:": typing.Dict[str, int] = None"},{name:"resample",val:": Resampling = None"},{name:"do_center_crop",val:": bool = None"},{name:"crop_size",val:": typing.Dict[str, int] = None"},{name:"do_rescale",val:": typing.Optional[bool] = None"},{name:"rescale_factor",val:": typing.Optional[float] = None"},{name:"do_normalize",val:": typing.Optional[bool] = None"},{name:"image_mean",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"image_std",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"return_tensors",val:": typing.Union[str, transformers.utils.generic.TensorType, NoneType] = None"},{name:"data_format",val:": typing.Union[str, transformers.image_utils.ChannelDimension] = <ChannelDimension.FIRST: 'channels_first'>"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.MobileNetV2ImageProcessor.preprocess.images",description:`<strong>images</strong> (<code>ImageInput</code>) &#x2014;
Image to preprocess.`,name:"images"},{anchor:"transformers.MobileNetV2ImageProcessor.preprocess.do_resize",description:`<strong>do_resize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_resize</code>) &#x2014;
Whether to resize the image.`,name:"do_resize"},{anchor:"transformers.MobileNetV2ImageProcessor.preprocess.size",description:`<strong>size</strong> (<code>Dict[str, int]</code>, <em>optional</em>, defaults to <code>self.size</code>) &#x2014;
Size of the image after resizing. Shortest edge of the image is resized to size[&#x201C;shortest_edge&#x201D;], with
the longest edge resized to keep the input aspect ratio.`,name:"size"},{anchor:"transformers.MobileNetV2ImageProcessor.preprocess.resample",description:`<strong>resample</strong> (<code>PILImageResampling</code> filter, <em>optional</em>, defaults to <code>self.resample</code>) &#x2014;
<code>PILImageResampling</code> filter to use if resizing the image e.g. <code>PILImageResampling.BILINEAR</code>. Only has
an effect if <code>do_resize</code> is set to <code>True</code>.`,name:"resample"},{anchor:"transformers.MobileNetV2ImageProcessor.preprocess.do_center_crop",description:`<strong>do_center_crop</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_center_crop</code>) &#x2014;
Whether to center crop the image.`,name:"do_center_crop"},{anchor:"transformers.MobileNetV2ImageProcessor.preprocess.crop_size",description:`<strong>crop_size</strong> (<code>Dict[str, int]</code>, <em>optional</em>, defaults to <code>self.crop_size</code>) &#x2014;
Size of the center crop. Only has an effect if <code>do_center_crop</code> is set to <code>True</code>.`,name:"crop_size"},{anchor:"transformers.MobileNetV2ImageProcessor.preprocess.do_rescale",description:`<strong>do_rescale</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_rescale</code>) &#x2014;
Whether to rescale the image values between [0 - 1].`,name:"do_rescale"},{anchor:"transformers.MobileNetV2ImageProcessor.preprocess.rescale_factor",description:`<strong>rescale_factor</strong> (<code>float</code>, <em>optional</em>, defaults to <code>self.rescale_factor</code>) &#x2014;
Rescale factor to rescale the image by if <code>do_rescale</code> is set to <code>True</code>.`,name:"rescale_factor"},{anchor:"transformers.MobileNetV2ImageProcessor.preprocess.do_normalize",description:`<strong>do_normalize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_normalize</code>) &#x2014;
Whether to normalize the image.`,name:"do_normalize"},{anchor:"transformers.MobileNetV2ImageProcessor.preprocess.image_mean",description:`<strong>image_mean</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>self.image_mean</code>) &#x2014;
Image mean to use if <code>do_normalize</code> is set to <code>True</code>.`,name:"image_mean"},{anchor:"transformers.MobileNetV2ImageProcessor.preprocess.image_std",description:`<strong>image_std</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>self.image_std</code>) &#x2014;
Image standard deviation to use if <code>do_normalize</code> is set to <code>True</code>.`,name:"image_std"},{anchor:"transformers.MobileNetV2ImageProcessor.preprocess.return_tensors",description:`<strong>return_tensors</strong> (<code>str</code> or <code>TensorType</code>, <em>optional</em>) &#x2014;
The type of tensors to return. Can be one of:<ul>
<li>Unset: Return a list of <code>np.ndarray</code>.</li>
<li><code>TensorType.TENSORFLOW</code> or <code>&apos;tf&apos;</code>: Return a batch of type <code>tf.Tensor</code>.</li>
<li><code>TensorType.PYTORCH</code> or <code>&apos;pt&apos;</code>: Return a batch of type <code>torch.Tensor</code>.</li>
<li><code>TensorType.NUMPY</code> or <code>&apos;np&apos;</code>: Return a batch of type <code>np.ndarray</code>.</li>
<li><code>TensorType.JAX</code> or <code>&apos;jax&apos;</code>: Return a batch of type <code>jax.numpy.ndarray</code>.</li>
</ul>`,name:"return_tensors"},{anchor:"transformers.MobileNetV2ImageProcessor.preprocess.data_format",description:`<strong>data_format</strong> (<code>ChannelDimension</code> or <code>str</code>, <em>optional</em>, defaults to <code>ChannelDimension.FIRST</code>) &#x2014;
The channel dimension format for the output image. Can be one of:<ul>
<li><code>&quot;channels_first&quot;</code> or <code>ChannelDimension.FIRST</code>: image in (num_channels, height, width) format.</li>
<li><code>&quot;channels_last&quot;</code> or <code>ChannelDimension.LAST</code>: image in (height, width, num_channels) format.</li>
<li>Unset: Use the channel dimension format of the input image.</li>
</ul>`,name:"data_format"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/mobilenet_v2/image_processing_mobilenet_v2.py#L147"}}),pt=new j({props:{name:"post_process_semantic_segmentation",anchor:"transformers.MobileNetV2ImageProcessor.post_process_semantic_segmentation",parameters:[{name:"outputs",val:""},{name:"target_sizes",val:": typing.List[typing.Tuple] = None"}],parametersDescription:[{anchor:"transformers.MobileNetV2ImageProcessor.post_process_semantic_segmentation.outputs",description:`<strong>outputs</strong> (<a href="/docs/transformers/main/en/model_doc/mobilenet_v2#transformers.MobileNetV2ForSemanticSegmentation">MobileNetV2ForSemanticSegmentation</a>) &#x2014;
Raw outputs of the model.`,name:"outputs"},{anchor:"transformers.MobileNetV2ImageProcessor.post_process_semantic_segmentation.target_sizes",description:`<strong>target_sizes</strong> (<code>List[Tuple]</code> of length <code>batch_size</code>, <em>optional</em>) &#x2014;
List of tuples corresponding to the requested final size (height, width) of each prediction. If unset,
predictions will not be resized.`,name:"target_sizes"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/mobilenet_v2/image_processing_mobilenet_v2.py#L259",returnDescription:`
<p><code>List[torch.Tensor]</code> of length <code>batch_size</code>, where each item is a semantic
segmentation map of shape (height, width) corresponding to the target_sizes entry (if <code>target_sizes</code> is
specified). Each entry of each <code>torch.Tensor</code> correspond to a semantic class id.</p>
`,returnType:`
<p>semantic_segmentation</p>
`}}),ft=new ne({}),gt=new j({props:{name:"class transformers.MobileNetV2Model",anchor:"transformers.MobileNetV2Model",parameters:[{name:"config",val:": MobileNetV2Config"},{name:"add_pooling_layer",val:": bool = True"}],parametersDescription:[{anchor:"transformers.MobileNetV2Model.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/mobilenet_v2#transformers.MobileNetV2Config">MobileNetV2Config</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/mobilenet_v2/modeling_mobilenet_v2.py#L502"}}),bt=new j({props:{name:"forward",anchor:"transformers.MobileNetV2Model.forward",parameters:[{name:"pixel_values",val:": typing.Optional[torch.Tensor] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.MobileNetV2Model.forward.pixel_values",description:`<strong>pixel_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Pixel values. Pixel values can be obtained using <a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/main/en/model_doc/levit#transformers.LevitFeatureExtractor.__call__">MobileNetV2ImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.MobileNetV2Model.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.MobileNetV2Model.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/mobilenet_v2/modeling_mobilenet_v2.py#L566",returnDescription:`
<p>A <code>transformers.modeling_outputs.BaseModelOutputWithPoolingAndNoAttention</code> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/main/en/model_doc/mobilenet_v2#transformers.MobileNetV2Config"
>MobileNetV2Config</a>) and inputs.</p>
<ul>
<li>
<p><strong>last_hidden_state</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) \u2014 Sequence of hidden-states at the output of the last layer of the model.</p>
</li>
<li>
<p><strong>pooler_output</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, hidden_size)</code>) \u2014 Last layer hidden-state after a pooling operation on the spatial dimensions.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, num_channels, height, width)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
</ul>
`,returnType:`
<p><code>transformers.modeling_outputs.BaseModelOutputWithPoolingAndNoAttention</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Me=new yi({props:{$$slots:{default:[dc]},$$scope:{ctx:$}}}),we=new ma({props:{anchor:"transformers.MobileNetV2Model.forward.example",$$slots:{default:[mc]},$$scope:{ctx:$}}}),vt=new ne({}),yt=new j({props:{name:"class transformers.MobileNetV2ForImageClassification",anchor:"transformers.MobileNetV2ForImageClassification",parameters:[{name:"config",val:": MobileNetV2Config"}],parametersDescription:[{anchor:"transformers.MobileNetV2ForImageClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/mobilenet_v2#transformers.MobileNetV2Config">MobileNetV2Config</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/mobilenet_v2/modeling_mobilenet_v2.py#L622"}}),Nt=new j({props:{name:"forward",anchor:"transformers.MobileNetV2ForImageClassification.forward",parameters:[{name:"pixel_values",val:": typing.Optional[torch.Tensor] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"labels",val:": typing.Optional[torch.Tensor] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.MobileNetV2ForImageClassification.forward.pixel_values",description:`<strong>pixel_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Pixel values. Pixel values can be obtained using <a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/main/en/model_doc/levit#transformers.LevitFeatureExtractor.__call__">MobileNetV2ImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.MobileNetV2ForImageClassification.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.MobileNetV2ForImageClassification.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.MobileNetV2ForImageClassification.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for computing the image classification/regression loss. Indices should be in <code>[0, ..., config.num_labels - 1]</code>. If <code>config.num_labels == 1</code> a regression loss is computed (Mean-Square loss). If
<code>config.num_labels &gt; 1</code> a classification loss is computed (Cross-Entropy).`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/mobilenet_v2/modeling_mobilenet_v2.py#L638",returnDescription:`
<p>A <a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_outputs.ImageClassifierOutputWithNoAttention"
>transformers.modeling_outputs.ImageClassifierOutputWithNoAttention</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/main/en/model_doc/mobilenet_v2#transformers.MobileNetV2Config"
>MobileNetV2Config</a>) and inputs.</p>
<ul>
<li><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>labels</code> is provided) \u2014 Classification (or regression if config.num_labels==1) loss.</li>
<li><strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, config.num_labels)</code>) \u2014 Classification (or regression if config.num_labels==1) scores (before SoftMax).</li>
<li><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each stage) of shape <code>(batch_size, num_channels, height, width)</code>. Hidden-states (also
called feature maps) of the model at the output of each stage.</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_outputs.ImageClassifierOutputWithNoAttention"
>transformers.modeling_outputs.ImageClassifierOutputWithNoAttention</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Te=new yi({props:{$$slots:{default:[pc]},$$scope:{ctx:$}}}),Ve=new ma({props:{anchor:"transformers.MobileNetV2ForImageClassification.forward.example",$$slots:{default:[hc]},$$scope:{ctx:$}}}),Tt=new ne({}),Vt=new j({props:{name:"class transformers.MobileNetV2ForSemanticSegmentation",anchor:"transformers.MobileNetV2ForSemanticSegmentation",parameters:[{name:"config",val:": MobileNetV2Config"}],parametersDescription:[{anchor:"transformers.MobileNetV2ForSemanticSegmentation.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/mobilenet_v2#transformers.MobileNetV2Config">MobileNetV2Config</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/mobilenet_v2/modeling_mobilenet_v2.py#L781"}}),Et=new j({props:{name:"forward",anchor:"transformers.MobileNetV2ForSemanticSegmentation.forward",parameters:[{name:"pixel_values",val:": typing.Optional[torch.Tensor] = None"},{name:"labels",val:": typing.Optional[torch.Tensor] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.MobileNetV2ForSemanticSegmentation.forward.pixel_values",description:`<strong>pixel_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Pixel values. Pixel values can be obtained using <a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/main/en/model_doc/levit#transformers.LevitFeatureExtractor.__call__">MobileNetV2ImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.MobileNetV2ForSemanticSegmentation.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.MobileNetV2ForSemanticSegmentation.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.MobileNetV2ForSemanticSegmentation.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, height, width)</code>, <em>optional</em>) &#x2014;
Ground truth semantic segmentation maps for computing the loss. Indices should be in <code>[0, ..., config.num_labels - 1]</code>. If <code>config.num_labels &gt; 1</code>, a classification loss is computed (Cross-Entropy).`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/mobilenet_v2/modeling_mobilenet_v2.py#L792",returnDescription:`
<p>A <a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_outputs.SemanticSegmenterOutput"
>transformers.modeling_outputs.SemanticSegmenterOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/main/en/model_doc/mobilenet_v2#transformers.MobileNetV2Config"
>MobileNetV2Config</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>labels</code> is provided) \u2014 Classification (or regression if config.num_labels==1) loss.</p>
</li>
<li>
<p><strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, config.num_labels, logits_height, logits_width)</code>) \u2014 Classification scores for each pixel.</p>
<Tip warning={true}>
<p>The logits returned do not necessarily have the same size as the <code>pixel_values</code> passed as inputs. This is
to avoid doing two interpolations and lose some quality when a user needs to resize the logits to the
original image size as post-processing. You should always check your logits shape and resize as needed.</p>
</Tip>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, patch_size, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, patch_size, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_outputs.SemanticSegmenterOutput"
>transformers.modeling_outputs.SemanticSegmenterOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Ie=new yi({props:{$$slots:{default:[fc]},$$scope:{ctx:$}}}),Ee=new ma({props:{anchor:"transformers.MobileNetV2ForSemanticSegmentation.forward.example",$$slots:{default:[gc]},$$scope:{ctx:$}}}),{c(){f=r("meta"),V=d(),_=r("h1"),g=r("a"),b=r("span"),v(c.$$.fragment),u=d(),E=r("span"),fa=n("MobileNet V2"),pr=d(),D=r("h2"),ie=r("a"),ho=r("span"),v(Re.$$.fragment),ga=d(),fo=r("span"),ua=n("Overview"),hr=d(),le=r("p"),_a=n("The MobileNet model was proposed in "),We=r("a"),ba=n("MobileNetV2: Inverted Residuals and Linear Bottlenecks"),va=n(" by Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, Liang-Chieh Chen."),fr=d(),Ft=r("p"),ya=n("The abstract from the paper is the following:"),gr=d(),St=r("p"),go=r("em"),Ma=n("In this paper we describe a new mobile architecture, MobileNetV2, that improves the state of the art performance of mobile models on multiple tasks and benchmarks as well as across a spectrum of different model sizes. We also describe efficient ways of applying these mobile models to object detection in a novel framework we call SSDLite. Additionally, we demonstrate how to build mobile semantic segmentation models through a reduced form of DeepLabv3 which we call Mobile DeepLabv3."),ur=d(),jt=r("p"),uo=r("em"),wa=n("The MobileNetV2 architecture is based on an inverted residual structure where the input and output of the residual block are thin bottleneck layers opposite to traditional residual models which use expanded representations in the input an MobileNetV2 uses lightweight depthwise convolutions to filter features in the intermediate expansion layer. Additionally, we find that it is important to remove non-linearities in the narrow layers in order to maintain representational power. We demonstrate that this improves performance and provide an intuition that led to this design. Finally, our approach allows decoupling of the input/output domains from the expressiveness of the transformation, which provides a convenient framework for further analysis. We measure our performance on Imagenet classification, COCO object detection, VOC image segmentation. We evaluate the trade-offs between accuracy, and number of operations measured by multiply-adds (MAdd), as well as the number of parameters."),_r=d(),Pt=r("p"),Na=n("Tips:"),br=d(),I=r("ul"),_o=r("li"),x=r("p"),Ta=n("The checkpoints are named "),ce=r("strong"),Va=n("mobilenet_v2_"),bo=r("em"),$a=n("depth"),Ia=n("_"),vo=r("em"),Ea=n("size"),xa=n(", for example "),yo=r("strong"),za=n("mobilenet_v2_1.0_224"),Ca=n(", where "),Mo=r("strong"),Fa=n("1.0"),Sa=n(" is the depth multiplier (sometimes also referred to as \u201Calpha\u201D or the width multiplier) and "),wo=r("strong"),ja=n("224"),Pa=n(" is the resolution of the input images the model was trained on."),Ua=d(),No=r("li"),To=r("p"),ka=n("Even though the checkpoint is trained on images of specific size, the model will work on images of any size. The smallest supported image size is 32x32."),Ra=d(),Vo=r("li"),Je=r("p"),Wa=n("One can use "),Ut=r("a"),Ja=n("MobileNetV2ImageProcessor"),Za=n(" to prepare images for the model."),Aa=d(),$o=r("li"),Ze=r("p"),La=n("The available image classification checkpoints are pre-trained on "),Ae=r("a"),Ba=n("ImageNet-1k"),Da=n(" (also referred to as ILSVRC 2012, a collection of 1.3 million images and 1,000 classes). However, the model predicts 1001 classes: the 1000 classes from ImageNet plus an extra \u201Cbackground\u201D class (index 0)."),Ga=d(),Io=r("li"),G=r("p"),Oa=n("The segmentation model uses a "),Le=r("a"),Xa=n("DeepLabV3+"),Ya=n(" head. The available semantic segmentation checkpoints are pre-trained on "),Be=r("a"),qa=n("PASCAL VOC"),Qa=n("."),Ha=d(),Eo=r("li"),O=r("p"),Ka=n("The original TensorFlow checkpoints use different padding rules than PyTorch, requiring the model to determine the padding amount at inference time, since this depends on the input image size. To use native PyTorch padding behavior, create a "),kt=r("a"),es=n("MobileNetV2Config"),ts=n(" with "),xo=r("code"),os=n("tf_padding = False"),rs=n("."),vr=d(),Rt=r("p"),as=n("Unsupported features:"),yr=d(),P=r("ul"),zo=r("li"),De=r("p"),ss=n("The "),Wt=r("a"),ns=n("MobileNetV2Model"),is=n(" outputs a globally pooled version of the last hidden state. In the original model it is possible to use an average pooling layer with a fixed 7x7 window and stride 1 instead of global pooling. For inputs that are larger than the recommended image size, this gives a pooled output that is larger than 1x1. The Hugging Face implementation does not support this."),ls=d(),Co=r("li"),Fo=r("p"),cs=n("The original TensorFlow checkpoints include quantized models. We do not support these models as they include additional \u201CFakeQuantization\u201D operations to unquantize the weights."),ds=d(),So=r("li"),Ge=r("p"),ms=n("It\u2019s common to extract the output from the expansion layers at indices 10 and 13, as well as the output from the final 1x1 convolution layer, for downstream purposes. Using "),jo=r("code"),ps=n("output_hidden_states=True"),hs=n(" returns the output from all intermediate layers. There is currently no way to limit this to specific layers."),fs=d(),Po=r("li"),Oe=r("p"),gs=n("The DeepLabV3+ segmentation head does not use the final convolution layer from the backbone, but this layer gets computed anyway. There is currently no way to tell "),Jt=r("a"),us=n("MobileNetV2Model"),_s=n(" up to which layer it should run."),Mr=d(),U=r("p"),bs=n("This model was contributed by "),Xe=r("a"),vs=n("matthijs"),ys=n(". The original code and weights can be found "),Ye=r("a"),Ms=n("here for the main model"),ws=n(" and "),qe=r("a"),Ns=n("here for DeepLabV3+"),Ts=n("."),wr=d(),X=r("h2"),de=r("a"),Uo=r("span"),v(Qe.$$.fragment),Vs=d(),ko=r("span"),$s=n("Resources"),Nr=d(),Zt=r("p"),Is=n("A list of official Hugging Face and community (indicated by \u{1F30E}) resources to help you get started with MobileNetV2."),Tr=d(),v(He.$$.fragment),Vr=d(),me=r("ul"),L=r("li"),At=r("a"),Es=n("MobileNetV2ForImageClassification"),xs=n(" is supported by this "),Ke=r("a"),zs=n("example script"),Cs=n(" and "),et=r("a"),Fs=n("notebook"),Ss=n("."),js=d(),Lt=r("li"),Ps=n("See also: "),Bt=r("a"),Us=n("Image classification task guide"),$r=d(),Dt=r("p"),Ro=r("strong"),ks=n("Semantic segmentation"),Ir=d(),Gt=r("ul"),Wo=r("li"),Ot=r("a"),Rs=n("Semantic segmentation task guide"),Er=d(),Xt=r("p"),Ws=n("If you\u2019re interested in submitting a resource to be included here, please feel free to open a Pull Request and we\u2019ll review it! The resource should ideally demonstrate something new instead of duplicating an existing resource."),xr=d(),Y=r("h2"),pe=r("a"),Jo=r("span"),v(tt.$$.fragment),Js=d(),Zo=r("span"),Zs=n("MobileNetV2Config"),zr=d(),z=r("div"),v(ot.$$.fragment),As=d(),q=r("p"),Ls=n("This is the configuration class to store the configuration of a "),Yt=r("a"),Bs=n("MobileNetV2Model"),Ds=n(`. It is used to instantiate a
MobileNetV2 model according to the specified arguments, defining the model architecture. Instantiating a
configuration with the defaults will yield a similar configuration to that of the MobileNetV2
`),rt=r("a"),Gs=n("google/mobilenet_v2_1.0_224"),Os=n(" architecture."),Xs=d(),Q=r("p"),Ys=n("Configuration objects inherit from "),qt=r("a"),qs=n("PretrainedConfig"),Qs=n(` and can be used to control the model outputs. Read the
documentation from `),Qt=r("a"),Hs=n("PretrainedConfig"),Ks=n(" for more information."),en=d(),v(he.$$.fragment),Cr=d(),H=r("h2"),fe=r("a"),Ao=r("span"),v(at.$$.fragment),tn=d(),Lo=r("span"),on=n("MobileNetV2FeatureExtractor"),Fr=d(),Z=r("div"),v(st.$$.fragment),rn=d(),ge=r("div"),v(nt.$$.fragment),an=d(),Bo=r("p"),sn=n("Preprocess an image or batch of images."),nn=d(),ue=r("div"),v(it.$$.fragment),ln=d(),lt=r("p"),cn=n("Converts the output of "),Ht=r("a"),dn=n("MobileNetV2ForSemanticSegmentation"),mn=n(` into semantic segmentation maps. Only supports
PyTorch.`),Sr=d(),K=r("h2"),_e=r("a"),Do=r("span"),v(ct.$$.fragment),pn=d(),Go=r("span"),hn=n("MobileNetV2ImageProcessor"),jr=d(),C=r("div"),v(dt.$$.fragment),fn=d(),Oo=r("p"),gn=n("Constructs a MobileNetV2 image processor."),un=d(),be=r("div"),v(mt.$$.fragment),_n=d(),Xo=r("p"),bn=n("Preprocess an image or batch of images."),vn=d(),ve=r("div"),v(pt.$$.fragment),yn=d(),ht=r("p"),Mn=n("Converts the output of "),Kt=r("a"),wn=n("MobileNetV2ForSemanticSegmentation"),Nn=n(` into semantic segmentation maps. Only supports
PyTorch.`),Pr=d(),ee=r("h2"),ye=r("a"),Yo=r("span"),v(ft.$$.fragment),Tn=d(),qo=r("span"),Vn=n("MobileNetV2Model"),Ur=d(),A=r("div"),v(gt.$$.fragment),$n=d(),ut=r("p"),In=n(`The bare MobileNetV2 model outputting raw hidden-states without any specific head on top.
This model is a PyTorch `),_t=r("a"),En=n("torch.nn.Module"),xn=n(` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),zn=d(),k=r("div"),v(bt.$$.fragment),Cn=d(),te=r("p"),Fn=n("The "),eo=r("a"),Sn=n("MobileNetV2Model"),jn=n(" forward method, overrides the "),Qo=r("code"),Pn=n("__call__"),Un=n(" special method."),kn=d(),v(Me.$$.fragment),Rn=d(),v(we.$$.fragment),kr=d(),oe=r("h2"),Ne=r("a"),Ho=r("span"),v(vt.$$.fragment),Wn=d(),Ko=r("span"),Jn=n("MobileNetV2ForImageClassification"),Rr=d(),F=r("div"),v(yt.$$.fragment),Zn=d(),er=r("p"),An=n(`MobileNetV2 model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`),Ln=d(),Mt=r("p"),Bn=n("This model is a PyTorch "),wt=r("a"),Dn=n("torch.nn.Module"),Gn=n(` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),On=d(),R=r("div"),v(Nt.$$.fragment),Xn=d(),re=r("p"),Yn=n("The "),to=r("a"),qn=n("MobileNetV2ForImageClassification"),Qn=n(" forward method, overrides the "),tr=r("code"),Hn=n("__call__"),Kn=n(" special method."),ei=d(),v(Te.$$.fragment),ti=d(),v(Ve.$$.fragment),Wr=d(),ae=r("h2"),$e=r("a"),or=r("span"),v(Tt.$$.fragment),oi=d(),rr=r("span"),ri=n("MobileNetV2ForSemanticSegmentation"),Jr=d(),S=r("div"),v(Vt.$$.fragment),ai=d(),ar=r("p"),si=n("MobileNetV2 model with a semantic segmentation head on top, e.g. for Pascal VOC."),ni=d(),$t=r("p"),ii=n("This model is a PyTorch "),It=r("a"),li=n("torch.nn.Module"),ci=n(` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),di=d(),W=r("div"),v(Et.$$.fragment),mi=d(),se=r("p"),pi=n("The "),oo=r("a"),hi=n("MobileNetV2ForSemanticSegmentation"),fi=n(" forward method, overrides the "),sr=r("code"),gi=n("__call__"),ui=n(" special method."),_i=d(),v(Ie.$$.fragment),bi=d(),v(Ee.$$.fragment),this.h()},l(t){const p=nc('[data-svelte="svelte-1phssyn"]',document.head);f=a(p,"META",{name:!0,content:!0}),p.forEach(o),V=m(t),_=a(t,"H1",{class:!0});var xt=s(_);g=a(xt,"A",{id:!0,class:!0,href:!0});var nr=s(g);b=a(nr,"SPAN",{});var ir=s(b);y(c.$$.fragment,ir),ir.forEach(o),nr.forEach(o),u=m(xt),E=a(xt,"SPAN",{});var lr=s(E);fa=i(lr,"MobileNet V2"),lr.forEach(o),xt.forEach(o),pr=m(t),D=a(t,"H2",{class:!0});var zt=s(D);ie=a(zt,"A",{id:!0,class:!0,href:!0});var cr=s(ie);ho=a(cr,"SPAN",{});var dr=s(ho);y(Re.$$.fragment,dr),dr.forEach(o),cr.forEach(o),ga=m(zt),fo=a(zt,"SPAN",{});var Mi=s(fo);ua=i(Mi,"Overview"),Mi.forEach(o),zt.forEach(o),hr=m(t),le=a(t,"P",{});var Ar=s(le);_a=i(Ar,"The MobileNet model was proposed in "),We=a(Ar,"A",{href:!0,rel:!0});var wi=s(We);ba=i(wi,"MobileNetV2: Inverted Residuals and Linear Bottlenecks"),wi.forEach(o),va=i(Ar," by Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, Liang-Chieh Chen."),Ar.forEach(o),fr=m(t),Ft=a(t,"P",{});var Ni=s(Ft);ya=i(Ni,"The abstract from the paper is the following:"),Ni.forEach(o),gr=m(t),St=a(t,"P",{});var Ti=s(St);go=a(Ti,"EM",{});var Vi=s(go);Ma=i(Vi,"In this paper we describe a new mobile architecture, MobileNetV2, that improves the state of the art performance of mobile models on multiple tasks and benchmarks as well as across a spectrum of different model sizes. We also describe efficient ways of applying these mobile models to object detection in a novel framework we call SSDLite. Additionally, we demonstrate how to build mobile semantic segmentation models through a reduced form of DeepLabv3 which we call Mobile DeepLabv3."),Vi.forEach(o),Ti.forEach(o),ur=m(t),jt=a(t,"P",{});var $i=s(jt);uo=a($i,"EM",{});var Ii=s(uo);wa=i(Ii,"The MobileNetV2 architecture is based on an inverted residual structure where the input and output of the residual block are thin bottleneck layers opposite to traditional residual models which use expanded representations in the input an MobileNetV2 uses lightweight depthwise convolutions to filter features in the intermediate expansion layer. Additionally, we find that it is important to remove non-linearities in the narrow layers in order to maintain representational power. We demonstrate that this improves performance and provide an intuition that led to this design. Finally, our approach allows decoupling of the input/output domains from the expressiveness of the transformation, which provides a convenient framework for further analysis. We measure our performance on Imagenet classification, COCO object detection, VOC image segmentation. We evaluate the trade-offs between accuracy, and number of operations measured by multiply-adds (MAdd), as well as the number of parameters."),Ii.forEach(o),$i.forEach(o),_r=m(t),Pt=a(t,"P",{});var Ei=s(Pt);Na=i(Ei,"Tips:"),Ei.forEach(o),br=m(t),I=a(t,"UL",{});var J=s(I);_o=a(J,"LI",{});var xi=s(_o);x=a(xi,"P",{});var B=s(x);Ta=i(B,"The checkpoints are named "),ce=a(B,"STRONG",{});var mr=s(ce);Va=i(mr,"mobilenet_v2_"),bo=a(mr,"EM",{});var zi=s(bo);$a=i(zi,"depth"),zi.forEach(o),Ia=i(mr,"_"),vo=a(mr,"EM",{});var Ci=s(vo);Ea=i(Ci,"size"),Ci.forEach(o),mr.forEach(o),xa=i(B,", for example "),yo=a(B,"STRONG",{});var Fi=s(yo);za=i(Fi,"mobilenet_v2_1.0_224"),Fi.forEach(o),Ca=i(B,", where "),Mo=a(B,"STRONG",{});var Si=s(Mo);Fa=i(Si,"1.0"),Si.forEach(o),Sa=i(B," is the depth multiplier (sometimes also referred to as \u201Calpha\u201D or the width multiplier) and "),wo=a(B,"STRONG",{});var ji=s(wo);ja=i(ji,"224"),ji.forEach(o),Pa=i(B," is the resolution of the input images the model was trained on."),B.forEach(o),xi.forEach(o),Ua=m(J),No=a(J,"LI",{});var Pi=s(No);To=a(Pi,"P",{});var Ui=s(To);ka=i(Ui,"Even though the checkpoint is trained on images of specific size, the model will work on images of any size. The smallest supported image size is 32x32."),Ui.forEach(o),Pi.forEach(o),Ra=m(J),Vo=a(J,"LI",{});var ki=s(Vo);Je=a(ki,"P",{});var Lr=s(Je);Wa=i(Lr,"One can use "),Ut=a(Lr,"A",{href:!0});var Ri=s(Ut);Ja=i(Ri,"MobileNetV2ImageProcessor"),Ri.forEach(o),Za=i(Lr," to prepare images for the model."),Lr.forEach(o),ki.forEach(o),Aa=m(J),$o=a(J,"LI",{});var Wi=s($o);Ze=a(Wi,"P",{});var Br=s(Ze);La=i(Br,"The available image classification checkpoints are pre-trained on "),Ae=a(Br,"A",{href:!0,rel:!0});var Ji=s(Ae);Ba=i(Ji,"ImageNet-1k"),Ji.forEach(o),Da=i(Br," (also referred to as ILSVRC 2012, a collection of 1.3 million images and 1,000 classes). However, the model predicts 1001 classes: the 1000 classes from ImageNet plus an extra \u201Cbackground\u201D class (index 0)."),Br.forEach(o),Wi.forEach(o),Ga=m(J),Io=a(J,"LI",{});var Zi=s(Io);G=a(Zi,"P",{});var ro=s(G);Oa=i(ro,"The segmentation model uses a "),Le=a(ro,"A",{href:!0,rel:!0});var Ai=s(Le);Xa=i(Ai,"DeepLabV3+"),Ai.forEach(o),Ya=i(ro," head. The available semantic segmentation checkpoints are pre-trained on "),Be=a(ro,"A",{href:!0,rel:!0});var Li=s(Be);qa=i(Li,"PASCAL VOC"),Li.forEach(o),Qa=i(ro,"."),ro.forEach(o),Zi.forEach(o),Ha=m(J),Eo=a(J,"LI",{});var Bi=s(Eo);O=a(Bi,"P",{});var ao=s(O);Ka=i(ao,"The original TensorFlow checkpoints use different padding rules than PyTorch, requiring the model to determine the padding amount at inference time, since this depends on the input image size. To use native PyTorch padding behavior, create a "),kt=a(ao,"A",{href:!0});var Di=s(kt);es=i(Di,"MobileNetV2Config"),Di.forEach(o),ts=i(ao," with "),xo=a(ao,"CODE",{});var Gi=s(xo);os=i(Gi,"tf_padding = False"),Gi.forEach(o),rs=i(ao,"."),ao.forEach(o),Bi.forEach(o),J.forEach(o),vr=m(t),Rt=a(t,"P",{});var Oi=s(Rt);as=i(Oi,"Unsupported features:"),Oi.forEach(o),yr=m(t),P=a(t,"UL",{});var xe=s(P);zo=a(xe,"LI",{});var Xi=s(zo);De=a(Xi,"P",{});var Dr=s(De);ss=i(Dr,"The "),Wt=a(Dr,"A",{href:!0});var Yi=s(Wt);ns=i(Yi,"MobileNetV2Model"),Yi.forEach(o),is=i(Dr," outputs a globally pooled version of the last hidden state. In the original model it is possible to use an average pooling layer with a fixed 7x7 window and stride 1 instead of global pooling. For inputs that are larger than the recommended image size, this gives a pooled output that is larger than 1x1. The Hugging Face implementation does not support this."),Dr.forEach(o),Xi.forEach(o),ls=m(xe),Co=a(xe,"LI",{});var qi=s(Co);Fo=a(qi,"P",{});var Qi=s(Fo);cs=i(Qi,"The original TensorFlow checkpoints include quantized models. We do not support these models as they include additional \u201CFakeQuantization\u201D operations to unquantize the weights."),Qi.forEach(o),qi.forEach(o),ds=m(xe),So=a(xe,"LI",{});var Hi=s(So);Ge=a(Hi,"P",{});var Gr=s(Ge);ms=i(Gr,"It\u2019s common to extract the output from the expansion layers at indices 10 and 13, as well as the output from the final 1x1 convolution layer, for downstream purposes. Using "),jo=a(Gr,"CODE",{});var Ki=s(jo);ps=i(Ki,"output_hidden_states=True"),Ki.forEach(o),hs=i(Gr," returns the output from all intermediate layers. There is currently no way to limit this to specific layers."),Gr.forEach(o),Hi.forEach(o),fs=m(xe),Po=a(xe,"LI",{});var el=s(Po);Oe=a(el,"P",{});var Or=s(Oe);gs=i(Or,"The DeepLabV3+ segmentation head does not use the final convolution layer from the backbone, but this layer gets computed anyway. There is currently no way to tell "),Jt=a(Or,"A",{href:!0});var tl=s(Jt);us=i(tl,"MobileNetV2Model"),tl.forEach(o),_s=i(Or," up to which layer it should run."),Or.forEach(o),el.forEach(o),xe.forEach(o),Mr=m(t),U=a(t,"P",{});var ze=s(U);bs=i(ze,"This model was contributed by "),Xe=a(ze,"A",{href:!0,rel:!0});var ol=s(Xe);vs=i(ol,"matthijs"),ol.forEach(o),ys=i(ze,". The original code and weights can be found "),Ye=a(ze,"A",{href:!0,rel:!0});var rl=s(Ye);Ms=i(rl,"here for the main model"),rl.forEach(o),ws=i(ze," and "),qe=a(ze,"A",{href:!0,rel:!0});var al=s(qe);Ns=i(al,"here for DeepLabV3+"),al.forEach(o),Ts=i(ze,"."),ze.forEach(o),wr=m(t),X=a(t,"H2",{class:!0});var Xr=s(X);de=a(Xr,"A",{id:!0,class:!0,href:!0});var sl=s(de);Uo=a(sl,"SPAN",{});var nl=s(Uo);y(Qe.$$.fragment,nl),nl.forEach(o),sl.forEach(o),Vs=m(Xr),ko=a(Xr,"SPAN",{});var il=s(ko);$s=i(il,"Resources"),il.forEach(o),Xr.forEach(o),Nr=m(t),Zt=a(t,"P",{});var ll=s(Zt);Is=i(ll,"A list of official Hugging Face and community (indicated by \u{1F30E}) resources to help you get started with MobileNetV2."),ll.forEach(o),Tr=m(t),y(He.$$.fragment,t),Vr=m(t),me=a(t,"UL",{});var Yr=s(me);L=a(Yr,"LI",{});var Ct=s(L);At=a(Ct,"A",{href:!0});var cl=s(At);Es=i(cl,"MobileNetV2ForImageClassification"),cl.forEach(o),xs=i(Ct," is supported by this "),Ke=a(Ct,"A",{href:!0,rel:!0});var dl=s(Ke);zs=i(dl,"example script"),dl.forEach(o),Cs=i(Ct," and "),et=a(Ct,"A",{href:!0,rel:!0});var ml=s(et);Fs=i(ml,"notebook"),ml.forEach(o),Ss=i(Ct,"."),Ct.forEach(o),js=m(Yr),Lt=a(Yr,"LI",{});var vi=s(Lt);Ps=i(vi,"See also: "),Bt=a(vi,"A",{href:!0});var pl=s(Bt);Us=i(pl,"Image classification task guide"),pl.forEach(o),vi.forEach(o),Yr.forEach(o),$r=m(t),Dt=a(t,"P",{});var hl=s(Dt);Ro=a(hl,"STRONG",{});var fl=s(Ro);ks=i(fl,"Semantic segmentation"),fl.forEach(o),hl.forEach(o),Ir=m(t),Gt=a(t,"UL",{});var gl=s(Gt);Wo=a(gl,"LI",{});var ul=s(Wo);Ot=a(ul,"A",{href:!0});var _l=s(Ot);Rs=i(_l,"Semantic segmentation task guide"),_l.forEach(o),ul.forEach(o),gl.forEach(o),Er=m(t),Xt=a(t,"P",{});var bl=s(Xt);Ws=i(bl,"If you\u2019re interested in submitting a resource to be included here, please feel free to open a Pull Request and we\u2019ll review it! The resource should ideally demonstrate something new instead of duplicating an existing resource."),bl.forEach(o),xr=m(t),Y=a(t,"H2",{class:!0});var qr=s(Y);pe=a(qr,"A",{id:!0,class:!0,href:!0});var vl=s(pe);Jo=a(vl,"SPAN",{});var yl=s(Jo);y(tt.$$.fragment,yl),yl.forEach(o),vl.forEach(o),Js=m(qr),Zo=a(qr,"SPAN",{});var Ml=s(Zo);Zs=i(Ml,"MobileNetV2Config"),Ml.forEach(o),qr.forEach(o),zr=m(t),z=a(t,"DIV",{class:!0});var Ce=s(z);y(ot.$$.fragment,Ce),As=m(Ce),q=a(Ce,"P",{});var so=s(q);Ls=i(so,"This is the configuration class to store the configuration of a "),Yt=a(so,"A",{href:!0});var wl=s(Yt);Bs=i(wl,"MobileNetV2Model"),wl.forEach(o),Ds=i(so,`. It is used to instantiate a
MobileNetV2 model according to the specified arguments, defining the model architecture. Instantiating a
configuration with the defaults will yield a similar configuration to that of the MobileNetV2
`),rt=a(so,"A",{href:!0,rel:!0});var Nl=s(rt);Gs=i(Nl,"google/mobilenet_v2_1.0_224"),Nl.forEach(o),Os=i(so," architecture."),so.forEach(o),Xs=m(Ce),Q=a(Ce,"P",{});var no=s(Q);Ys=i(no,"Configuration objects inherit from "),qt=a(no,"A",{href:!0});var Tl=s(qt);qs=i(Tl,"PretrainedConfig"),Tl.forEach(o),Qs=i(no,` and can be used to control the model outputs. Read the
documentation from `),Qt=a(no,"A",{href:!0});var Vl=s(Qt);Hs=i(Vl,"PretrainedConfig"),Vl.forEach(o),Ks=i(no," for more information."),no.forEach(o),en=m(Ce),y(he.$$.fragment,Ce),Ce.forEach(o),Cr=m(t),H=a(t,"H2",{class:!0});var Qr=s(H);fe=a(Qr,"A",{id:!0,class:!0,href:!0});var $l=s(fe);Ao=a($l,"SPAN",{});var Il=s(Ao);y(at.$$.fragment,Il),Il.forEach(o),$l.forEach(o),tn=m(Qr),Lo=a(Qr,"SPAN",{});var El=s(Lo);on=i(El,"MobileNetV2FeatureExtractor"),El.forEach(o),Qr.forEach(o),Fr=m(t),Z=a(t,"DIV",{class:!0});var io=s(Z);y(st.$$.fragment,io),rn=m(io),ge=a(io,"DIV",{class:!0});var Hr=s(ge);y(nt.$$.fragment,Hr),an=m(Hr),Bo=a(Hr,"P",{});var xl=s(Bo);sn=i(xl,"Preprocess an image or batch of images."),xl.forEach(o),Hr.forEach(o),nn=m(io),ue=a(io,"DIV",{class:!0});var Kr=s(ue);y(it.$$.fragment,Kr),ln=m(Kr),lt=a(Kr,"P",{});var ea=s(lt);cn=i(ea,"Converts the output of "),Ht=a(ea,"A",{href:!0});var zl=s(Ht);dn=i(zl,"MobileNetV2ForSemanticSegmentation"),zl.forEach(o),mn=i(ea,` into semantic segmentation maps. Only supports
PyTorch.`),ea.forEach(o),Kr.forEach(o),io.forEach(o),Sr=m(t),K=a(t,"H2",{class:!0});var ta=s(K);_e=a(ta,"A",{id:!0,class:!0,href:!0});var Cl=s(_e);Do=a(Cl,"SPAN",{});var Fl=s(Do);y(ct.$$.fragment,Fl),Fl.forEach(o),Cl.forEach(o),pn=m(ta),Go=a(ta,"SPAN",{});var Sl=s(Go);hn=i(Sl,"MobileNetV2ImageProcessor"),Sl.forEach(o),ta.forEach(o),jr=m(t),C=a(t,"DIV",{class:!0});var Fe=s(C);y(dt.$$.fragment,Fe),fn=m(Fe),Oo=a(Fe,"P",{});var jl=s(Oo);gn=i(jl,"Constructs a MobileNetV2 image processor."),jl.forEach(o),un=m(Fe),be=a(Fe,"DIV",{class:!0});var oa=s(be);y(mt.$$.fragment,oa),_n=m(oa),Xo=a(oa,"P",{});var Pl=s(Xo);bn=i(Pl,"Preprocess an image or batch of images."),Pl.forEach(o),oa.forEach(o),vn=m(Fe),ve=a(Fe,"DIV",{class:!0});var ra=s(ve);y(pt.$$.fragment,ra),yn=m(ra),ht=a(ra,"P",{});var aa=s(ht);Mn=i(aa,"Converts the output of "),Kt=a(aa,"A",{href:!0});var Ul=s(Kt);wn=i(Ul,"MobileNetV2ForSemanticSegmentation"),Ul.forEach(o),Nn=i(aa,` into semantic segmentation maps. Only supports
PyTorch.`),aa.forEach(o),ra.forEach(o),Fe.forEach(o),Pr=m(t),ee=a(t,"H2",{class:!0});var sa=s(ee);ye=a(sa,"A",{id:!0,class:!0,href:!0});var kl=s(ye);Yo=a(kl,"SPAN",{});var Rl=s(Yo);y(ft.$$.fragment,Rl),Rl.forEach(o),kl.forEach(o),Tn=m(sa),qo=a(sa,"SPAN",{});var Wl=s(qo);Vn=i(Wl,"MobileNetV2Model"),Wl.forEach(o),sa.forEach(o),Ur=m(t),A=a(t,"DIV",{class:!0});var lo=s(A);y(gt.$$.fragment,lo),$n=m(lo),ut=a(lo,"P",{});var na=s(ut);In=i(na,`The bare MobileNetV2 model outputting raw hidden-states without any specific head on top.
This model is a PyTorch `),_t=a(na,"A",{href:!0,rel:!0});var Jl=s(_t);En=i(Jl,"torch.nn.Module"),Jl.forEach(o),xn=i(na,` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),na.forEach(o),zn=m(lo),k=a(lo,"DIV",{class:!0});var Se=s(k);y(bt.$$.fragment,Se),Cn=m(Se),te=a(Se,"P",{});var co=s(te);Fn=i(co,"The "),eo=a(co,"A",{href:!0});var Zl=s(eo);Sn=i(Zl,"MobileNetV2Model"),Zl.forEach(o),jn=i(co," forward method, overrides the "),Qo=a(co,"CODE",{});var Al=s(Qo);Pn=i(Al,"__call__"),Al.forEach(o),Un=i(co," special method."),co.forEach(o),kn=m(Se),y(Me.$$.fragment,Se),Rn=m(Se),y(we.$$.fragment,Se),Se.forEach(o),lo.forEach(o),kr=m(t),oe=a(t,"H2",{class:!0});var ia=s(oe);Ne=a(ia,"A",{id:!0,class:!0,href:!0});var Ll=s(Ne);Ho=a(Ll,"SPAN",{});var Bl=s(Ho);y(vt.$$.fragment,Bl),Bl.forEach(o),Ll.forEach(o),Wn=m(ia),Ko=a(ia,"SPAN",{});var Dl=s(Ko);Jn=i(Dl,"MobileNetV2ForImageClassification"),Dl.forEach(o),ia.forEach(o),Rr=m(t),F=a(t,"DIV",{class:!0});var je=s(F);y(yt.$$.fragment,je),Zn=m(je),er=a(je,"P",{});var Gl=s(er);An=i(Gl,`MobileNetV2 model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`),Gl.forEach(o),Ln=m(je),Mt=a(je,"P",{});var la=s(Mt);Bn=i(la,"This model is a PyTorch "),wt=a(la,"A",{href:!0,rel:!0});var Ol=s(wt);Dn=i(Ol,"torch.nn.Module"),Ol.forEach(o),Gn=i(la,` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),la.forEach(o),On=m(je),R=a(je,"DIV",{class:!0});var Pe=s(R);y(Nt.$$.fragment,Pe),Xn=m(Pe),re=a(Pe,"P",{});var mo=s(re);Yn=i(mo,"The "),to=a(mo,"A",{href:!0});var Xl=s(to);qn=i(Xl,"MobileNetV2ForImageClassification"),Xl.forEach(o),Qn=i(mo," forward method, overrides the "),tr=a(mo,"CODE",{});var Yl=s(tr);Hn=i(Yl,"__call__"),Yl.forEach(o),Kn=i(mo," special method."),mo.forEach(o),ei=m(Pe),y(Te.$$.fragment,Pe),ti=m(Pe),y(Ve.$$.fragment,Pe),Pe.forEach(o),je.forEach(o),Wr=m(t),ae=a(t,"H2",{class:!0});var ca=s(ae);$e=a(ca,"A",{id:!0,class:!0,href:!0});var ql=s($e);or=a(ql,"SPAN",{});var Ql=s(or);y(Tt.$$.fragment,Ql),Ql.forEach(o),ql.forEach(o),oi=m(ca),rr=a(ca,"SPAN",{});var Hl=s(rr);ri=i(Hl,"MobileNetV2ForSemanticSegmentation"),Hl.forEach(o),ca.forEach(o),Jr=m(t),S=a(t,"DIV",{class:!0});var Ue=s(S);y(Vt.$$.fragment,Ue),ai=m(Ue),ar=a(Ue,"P",{});var Kl=s(ar);si=i(Kl,"MobileNetV2 model with a semantic segmentation head on top, e.g. for Pascal VOC."),Kl.forEach(o),ni=m(Ue),$t=a(Ue,"P",{});var da=s($t);ii=i(da,"This model is a PyTorch "),It=a(da,"A",{href:!0,rel:!0});var ec=s(It);li=i(ec,"torch.nn.Module"),ec.forEach(o),ci=i(da,` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),da.forEach(o),di=m(Ue),W=a(Ue,"DIV",{class:!0});var ke=s(W);y(Et.$$.fragment,ke),mi=m(ke),se=a(ke,"P",{});var po=s(se);pi=i(po,"The "),oo=a(po,"A",{href:!0});var tc=s(oo);hi=i(tc,"MobileNetV2ForSemanticSegmentation"),tc.forEach(o),fi=i(po," forward method, overrides the "),sr=a(po,"CODE",{});var oc=s(sr);gi=i(oc,"__call__"),oc.forEach(o),ui=i(po," special method."),po.forEach(o),_i=m(ke),y(Ie.$$.fragment,ke),bi=m(ke),y(Ee.$$.fragment,ke),ke.forEach(o),Ue.forEach(o),this.h()},h(){l(f,"name","hf:doc:metadata"),l(f,"content",JSON.stringify(_c)),l(g,"id","mobilenet-v2"),l(g,"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"),l(g,"href","#mobilenet-v2"),l(_,"class","relative group"),l(ie,"id","overview"),l(ie,"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"),l(ie,"href","#overview"),l(D,"class","relative group"),l(We,"href","https://arxiv.org/abs/1801.04381"),l(We,"rel","nofollow"),l(Ut,"href","/docs/transformers/main/en/model_doc/mobilenet_v2#transformers.MobileNetV2ImageProcessor"),l(Ae,"href","https://huggingface.co/datasets/imagenet-1k"),l(Ae,"rel","nofollow"),l(Le,"href","https://arxiv.org/abs/1802.02611"),l(Le,"rel","nofollow"),l(Be,"href","http://host.robots.ox.ac.uk/pascal/VOC/"),l(Be,"rel","nofollow"),l(kt,"href","/docs/transformers/main/en/model_doc/mobilenet_v2#transformers.MobileNetV2Config"),l(Wt,"href","/docs/transformers/main/en/model_doc/mobilenet_v2#transformers.MobileNetV2Model"),l(Jt,"href","/docs/transformers/main/en/model_doc/mobilenet_v2#transformers.MobileNetV2Model"),l(Xe,"href","https://huggingface.co/Matthijs"),l(Xe,"rel","nofollow"),l(Ye,"href","https://github.com/tensorflow/models/tree/master/research/slim/nets/mobilenet"),l(Ye,"rel","nofollow"),l(qe,"href","https://github.com/tensorflow/models/tree/master/research/deeplab"),l(qe,"rel","nofollow"),l(de,"id","resources"),l(de,"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"),l(de,"href","#resources"),l(X,"class","relative group"),l(At,"href","/docs/transformers/main/en/model_doc/mobilenet_v2#transformers.MobileNetV2ForImageClassification"),l(Ke,"href","https://github.com/huggingface/transformers/tree/main/examples/pytorch/image-classification"),l(Ke,"rel","nofollow"),l(et,"href","https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/image_classification.ipynb"),l(et,"rel","nofollow"),l(Bt,"href","../tasks/image_classification"),l(Ot,"href","../tasks/semantic_segmentation"),l(pe,"id","transformers.MobileNetV2Config"),l(pe,"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"),l(pe,"href","#transformers.MobileNetV2Config"),l(Y,"class","relative group"),l(Yt,"href","/docs/transformers/main/en/model_doc/mobilenet_v2#transformers.MobileNetV2Model"),l(rt,"href","https://huggingface.co/google/mobilenet_v2_1.0_224"),l(rt,"rel","nofollow"),l(qt,"href","/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig"),l(Qt,"href","/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig"),l(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(fe,"id","transformers.MobileNetV2FeatureExtractor"),l(fe,"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"),l(fe,"href","#transformers.MobileNetV2FeatureExtractor"),l(H,"class","relative group"),l(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(Ht,"href","/docs/transformers/main/en/model_doc/mobilenet_v2#transformers.MobileNetV2ForSemanticSegmentation"),l(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(_e,"id","transformers.MobileNetV2ImageProcessor"),l(_e,"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"),l(_e,"href","#transformers.MobileNetV2ImageProcessor"),l(K,"class","relative group"),l(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(Kt,"href","/docs/transformers/main/en/model_doc/mobilenet_v2#transformers.MobileNetV2ForSemanticSegmentation"),l(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(ye,"id","transformers.MobileNetV2Model"),l(ye,"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"),l(ye,"href","#transformers.MobileNetV2Model"),l(ee,"class","relative group"),l(_t,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),l(_t,"rel","nofollow"),l(eo,"href","/docs/transformers/main/en/model_doc/mobilenet_v2#transformers.MobileNetV2Model"),l(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(Ne,"id","transformers.MobileNetV2ForImageClassification"),l(Ne,"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"),l(Ne,"href","#transformers.MobileNetV2ForImageClassification"),l(oe,"class","relative group"),l(wt,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),l(wt,"rel","nofollow"),l(to,"href","/docs/transformers/main/en/model_doc/mobilenet_v2#transformers.MobileNetV2ForImageClassification"),l(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l($e,"id","transformers.MobileNetV2ForSemanticSegmentation"),l($e,"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"),l($e,"href","#transformers.MobileNetV2ForSemanticSegmentation"),l(ae,"class","relative group"),l(It,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),l(It,"rel","nofollow"),l(oo,"href","/docs/transformers/main/en/model_doc/mobilenet_v2#transformers.MobileNetV2ForSemanticSegmentation"),l(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(t,p){e(document.head,f),h(t,V,p),h(t,_,p),e(_,g),e(g,b),M(c,b,null),e(_,u),e(_,E),e(E,fa),h(t,pr,p),h(t,D,p),e(D,ie),e(ie,ho),M(Re,ho,null),e(D,ga),e(D,fo),e(fo,ua),h(t,hr,p),h(t,le,p),e(le,_a),e(le,We),e(We,ba),e(le,va),h(t,fr,p),h(t,Ft,p),e(Ft,ya),h(t,gr,p),h(t,St,p),e(St,go),e(go,Ma),h(t,ur,p),h(t,jt,p),e(jt,uo),e(uo,wa),h(t,_r,p),h(t,Pt,p),e(Pt,Na),h(t,br,p),h(t,I,p),e(I,_o),e(_o,x),e(x,Ta),e(x,ce),e(ce,Va),e(ce,bo),e(bo,$a),e(ce,Ia),e(ce,vo),e(vo,Ea),e(x,xa),e(x,yo),e(yo,za),e(x,Ca),e(x,Mo),e(Mo,Fa),e(x,Sa),e(x,wo),e(wo,ja),e(x,Pa),e(I,Ua),e(I,No),e(No,To),e(To,ka),e(I,Ra),e(I,Vo),e(Vo,Je),e(Je,Wa),e(Je,Ut),e(Ut,Ja),e(Je,Za),e(I,Aa),e(I,$o),e($o,Ze),e(Ze,La),e(Ze,Ae),e(Ae,Ba),e(Ze,Da),e(I,Ga),e(I,Io),e(Io,G),e(G,Oa),e(G,Le),e(Le,Xa),e(G,Ya),e(G,Be),e(Be,qa),e(G,Qa),e(I,Ha),e(I,Eo),e(Eo,O),e(O,Ka),e(O,kt),e(kt,es),e(O,ts),e(O,xo),e(xo,os),e(O,rs),h(t,vr,p),h(t,Rt,p),e(Rt,as),h(t,yr,p),h(t,P,p),e(P,zo),e(zo,De),e(De,ss),e(De,Wt),e(Wt,ns),e(De,is),e(P,ls),e(P,Co),e(Co,Fo),e(Fo,cs),e(P,ds),e(P,So),e(So,Ge),e(Ge,ms),e(Ge,jo),e(jo,ps),e(Ge,hs),e(P,fs),e(P,Po),e(Po,Oe),e(Oe,gs),e(Oe,Jt),e(Jt,us),e(Oe,_s),h(t,Mr,p),h(t,U,p),e(U,bs),e(U,Xe),e(Xe,vs),e(U,ys),e(U,Ye),e(Ye,Ms),e(U,ws),e(U,qe),e(qe,Ns),e(U,Ts),h(t,wr,p),h(t,X,p),e(X,de),e(de,Uo),M(Qe,Uo,null),e(X,Vs),e(X,ko),e(ko,$s),h(t,Nr,p),h(t,Zt,p),e(Zt,Is),h(t,Tr,p),M(He,t,p),h(t,Vr,p),h(t,me,p),e(me,L),e(L,At),e(At,Es),e(L,xs),e(L,Ke),e(Ke,zs),e(L,Cs),e(L,et),e(et,Fs),e(L,Ss),e(me,js),e(me,Lt),e(Lt,Ps),e(Lt,Bt),e(Bt,Us),h(t,$r,p),h(t,Dt,p),e(Dt,Ro),e(Ro,ks),h(t,Ir,p),h(t,Gt,p),e(Gt,Wo),e(Wo,Ot),e(Ot,Rs),h(t,Er,p),h(t,Xt,p),e(Xt,Ws),h(t,xr,p),h(t,Y,p),e(Y,pe),e(pe,Jo),M(tt,Jo,null),e(Y,Js),e(Y,Zo),e(Zo,Zs),h(t,zr,p),h(t,z,p),M(ot,z,null),e(z,As),e(z,q),e(q,Ls),e(q,Yt),e(Yt,Bs),e(q,Ds),e(q,rt),e(rt,Gs),e(q,Os),e(z,Xs),e(z,Q),e(Q,Ys),e(Q,qt),e(qt,qs),e(Q,Qs),e(Q,Qt),e(Qt,Hs),e(Q,Ks),e(z,en),M(he,z,null),h(t,Cr,p),h(t,H,p),e(H,fe),e(fe,Ao),M(at,Ao,null),e(H,tn),e(H,Lo),e(Lo,on),h(t,Fr,p),h(t,Z,p),M(st,Z,null),e(Z,rn),e(Z,ge),M(nt,ge,null),e(ge,an),e(ge,Bo),e(Bo,sn),e(Z,nn),e(Z,ue),M(it,ue,null),e(ue,ln),e(ue,lt),e(lt,cn),e(lt,Ht),e(Ht,dn),e(lt,mn),h(t,Sr,p),h(t,K,p),e(K,_e),e(_e,Do),M(ct,Do,null),e(K,pn),e(K,Go),e(Go,hn),h(t,jr,p),h(t,C,p),M(dt,C,null),e(C,fn),e(C,Oo),e(Oo,gn),e(C,un),e(C,be),M(mt,be,null),e(be,_n),e(be,Xo),e(Xo,bn),e(C,vn),e(C,ve),M(pt,ve,null),e(ve,yn),e(ve,ht),e(ht,Mn),e(ht,Kt),e(Kt,wn),e(ht,Nn),h(t,Pr,p),h(t,ee,p),e(ee,ye),e(ye,Yo),M(ft,Yo,null),e(ee,Tn),e(ee,qo),e(qo,Vn),h(t,Ur,p),h(t,A,p),M(gt,A,null),e(A,$n),e(A,ut),e(ut,In),e(ut,_t),e(_t,En),e(ut,xn),e(A,zn),e(A,k),M(bt,k,null),e(k,Cn),e(k,te),e(te,Fn),e(te,eo),e(eo,Sn),e(te,jn),e(te,Qo),e(Qo,Pn),e(te,Un),e(k,kn),M(Me,k,null),e(k,Rn),M(we,k,null),h(t,kr,p),h(t,oe,p),e(oe,Ne),e(Ne,Ho),M(vt,Ho,null),e(oe,Wn),e(oe,Ko),e(Ko,Jn),h(t,Rr,p),h(t,F,p),M(yt,F,null),e(F,Zn),e(F,er),e(er,An),e(F,Ln),e(F,Mt),e(Mt,Bn),e(Mt,wt),e(wt,Dn),e(Mt,Gn),e(F,On),e(F,R),M(Nt,R,null),e(R,Xn),e(R,re),e(re,Yn),e(re,to),e(to,qn),e(re,Qn),e(re,tr),e(tr,Hn),e(re,Kn),e(R,ei),M(Te,R,null),e(R,ti),M(Ve,R,null),h(t,Wr,p),h(t,ae,p),e(ae,$e),e($e,or),M(Tt,or,null),e(ae,oi),e(ae,rr),e(rr,ri),h(t,Jr,p),h(t,S,p),M(Vt,S,null),e(S,ai),e(S,ar),e(ar,si),e(S,ni),e(S,$t),e($t,ii),e($t,It),e(It,li),e($t,ci),e(S,di),e(S,W),M(Et,W,null),e(W,mi),e(W,se),e(se,pi),e(se,oo),e(oo,hi),e(se,fi),e(se,sr),e(sr,gi),e(se,ui),e(W,_i),M(Ie,W,null),e(W,bi),M(Ee,W,null),Zr=!0},p(t,[p]){const xt={};p&2&&(xt.$$scope={dirty:p,ctx:t}),he.$set(xt);const nr={};p&2&&(nr.$$scope={dirty:p,ctx:t}),Me.$set(nr);const ir={};p&2&&(ir.$$scope={dirty:p,ctx:t}),we.$set(ir);const lr={};p&2&&(lr.$$scope={dirty:p,ctx:t}),Te.$set(lr);const zt={};p&2&&(zt.$$scope={dirty:p,ctx:t}),Ve.$set(zt);const cr={};p&2&&(cr.$$scope={dirty:p,ctx:t}),Ie.$set(cr);const dr={};p&2&&(dr.$$scope={dirty:p,ctx:t}),Ee.$set(dr)},i(t){Zr||(w(c.$$.fragment,t),w(Re.$$.fragment,t),w(Qe.$$.fragment,t),w(He.$$.fragment,t),w(tt.$$.fragment,t),w(ot.$$.fragment,t),w(he.$$.fragment,t),w(at.$$.fragment,t),w(st.$$.fragment,t),w(nt.$$.fragment,t),w(it.$$.fragment,t),w(ct.$$.fragment,t),w(dt.$$.fragment,t),w(mt.$$.fragment,t),w(pt.$$.fragment,t),w(ft.$$.fragment,t),w(gt.$$.fragment,t),w(bt.$$.fragment,t),w(Me.$$.fragment,t),w(we.$$.fragment,t),w(vt.$$.fragment,t),w(yt.$$.fragment,t),w(Nt.$$.fragment,t),w(Te.$$.fragment,t),w(Ve.$$.fragment,t),w(Tt.$$.fragment,t),w(Vt.$$.fragment,t),w(Et.$$.fragment,t),w(Ie.$$.fragment,t),w(Ee.$$.fragment,t),Zr=!0)},o(t){N(c.$$.fragment,t),N(Re.$$.fragment,t),N(Qe.$$.fragment,t),N(He.$$.fragment,t),N(tt.$$.fragment,t),N(ot.$$.fragment,t),N(he.$$.fragment,t),N(at.$$.fragment,t),N(st.$$.fragment,t),N(nt.$$.fragment,t),N(it.$$.fragment,t),N(ct.$$.fragment,t),N(dt.$$.fragment,t),N(mt.$$.fragment,t),N(pt.$$.fragment,t),N(ft.$$.fragment,t),N(gt.$$.fragment,t),N(bt.$$.fragment,t),N(Me.$$.fragment,t),N(we.$$.fragment,t),N(vt.$$.fragment,t),N(yt.$$.fragment,t),N(Nt.$$.fragment,t),N(Te.$$.fragment,t),N(Ve.$$.fragment,t),N(Tt.$$.fragment,t),N(Vt.$$.fragment,t),N(Et.$$.fragment,t),N(Ie.$$.fragment,t),N(Ee.$$.fragment,t),Zr=!1},d(t){o(f),t&&o(V),t&&o(_),T(c),t&&o(pr),t&&o(D),T(Re),t&&o(hr),t&&o(le),t&&o(fr),t&&o(Ft),t&&o(gr),t&&o(St),t&&o(ur),t&&o(jt),t&&o(_r),t&&o(Pt),t&&o(br),t&&o(I),t&&o(vr),t&&o(Rt),t&&o(yr),t&&o(P),t&&o(Mr),t&&o(U),t&&o(wr),t&&o(X),T(Qe),t&&o(Nr),t&&o(Zt),t&&o(Tr),T(He,t),t&&o(Vr),t&&o(me),t&&o($r),t&&o(Dt),t&&o(Ir),t&&o(Gt),t&&o(Er),t&&o(Xt),t&&o(xr),t&&o(Y),T(tt),t&&o(zr),t&&o(z),T(ot),T(he),t&&o(Cr),t&&o(H),T(at),t&&o(Fr),t&&o(Z),T(st),T(nt),T(it),t&&o(Sr),t&&o(K),T(ct),t&&o(jr),t&&o(C),T(dt),T(mt),T(pt),t&&o(Pr),t&&o(ee),T(ft),t&&o(Ur),t&&o(A),T(gt),T(bt),T(Me),T(we),t&&o(kr),t&&o(oe),T(vt),t&&o(Rr),t&&o(F),T(yt),T(Nt),T(Te),T(Ve),t&&o(Wr),t&&o(ae),T(Tt),t&&o(Jr),t&&o(S),T(Vt),T(Et),T(Ie),T(Ee)}}}const _c={local:"mobilenet-v2",sections:[{local:"overview",title:"Overview"},{local:"resources",title:"Resources"},{local:"transformers.MobileNetV2Config",title:"MobileNetV2Config"},{local:"transformers.MobileNetV2FeatureExtractor",title:"MobileNetV2FeatureExtractor"},{local:"transformers.MobileNetV2ImageProcessor",title:"MobileNetV2ImageProcessor"},{local:"transformers.MobileNetV2Model",title:"MobileNetV2Model"},{local:"transformers.MobileNetV2ForImageClassification",title:"MobileNetV2ForImageClassification"},{local:"transformers.MobileNetV2ForSemanticSegmentation",title:"MobileNetV2ForSemanticSegmentation"}],title:"MobileNet V2"};function bc($){return ic(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class $c extends rc{constructor(f){super();ac(this,f,bc,uc,sc,{})}}export{$c as default,_c as metadata};
