import{S as rc,i as ac,s as nc,e as r,k as d,w as v,t as s,M as sc,c as a,d as o,m,a as n,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 U}from"../../chunks/Docstring-hf-doc-builder.js";import{C as ha}from"../../chunks/CodeBlock-hf-doc-builder.js";import{I as se}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=s("Example:"),_=d(),v(g.$$.fragment)},l(c){f=a(c,"P",{});var u=n(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=s("Although the recipe for forward pass needs to be defined within this function, one should call the "),_=r("code"),g=s("Module"),b=s(`
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=n(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=n(_);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=s("Example:"),_=d(),v(g.$$.fragment)},l(c){f=a(c,"P",{});var u=n(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=s("Although the recipe for forward pass needs to be defined within this function, one should call the "),_=r("code"),g=s("Module"),b=s(`
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=n(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=n(_);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=s("Example:"),_=d(),v(g.$$.fragment)},l(c){f=a(c,"P",{});var u=n(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=s("Although the recipe for forward pass needs to be defined within this function, one should call the "),_=r("code"),g=s("Module"),b=s(`
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=n(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=n(_);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=s("Examples:"),_=d(),v(g.$$.fragment)},l(c){f=a(c,"P",{});var u=n(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,B,ie,ho,Re,ga,fo,ua,hr,le,_a,We,ba,va,fr,Ft,ya,gr,St,go,Ma,ur,Ut,uo,wa,_r,jt,Na,br,I,_o,x,Ta,ce,Va,bo,$a,Ia,vo,Ea,xa,yo,Ca,za,Mo,Fa,Sa,wo,Ua,ja,Pa,No,To,ka,Ra,Vo,Je,Wa,Pt,Ja,Za,Aa,$o,Ze,La,Ae,Da,Ba,Ga,Io,G,Oa,Le,qa,Xa,De,Ya,Qa,Ha,Eo,O,Ka,kt,en,tn,xo,on,rn,vr,Rt,an,yr,j,Co,Be,nn,Wt,sn,ln,cn,zo,Fo,dn,mn,So,Ge,pn,Uo,hn,fn,gn,jo,Oe,un,Jt,_n,bn,Mr,P,vn,qe,yn,Mn,Xe,wn,Nn,Ye,Tn,Vn,wr,q,de,Po,Qe,$n,ko,In,Nr,Zt,En,Tr,He,Vr,me,L,At,xn,Cn,Ke,zn,Fn,et,Sn,Un,jn,Lt,Pn,Dt,kn,$r,Bt,Ro,Rn,Ir,Gt,Wo,Ot,Wn,Er,qt,Jn,xr,X,pe,Jo,tt,Zn,Zo,An,Cr,C,ot,Ln,Y,Dn,Xt,Bn,Gn,rt,On,qn,Xn,Q,Yn,Yt,Qn,Hn,Qt,Kn,es,ts,he,zr,H,fe,Ao,at,os,Lo,rs,Fr,Z,nt,as,ge,st,ns,Do,ss,is,ue,it,ls,lt,cs,Ht,ds,ms,Sr,K,_e,Bo,ct,ps,Go,hs,Ur,z,dt,fs,Oo,gs,us,be,mt,_s,qo,bs,vs,ve,pt,ys,ht,Ms,Kt,ws,Ns,jr,ee,ye,Xo,ft,Ts,Yo,Vs,Pr,A,gt,$s,ut,Is,_t,Es,xs,Cs,k,bt,zs,te,Fs,eo,Ss,Us,Qo,js,Ps,ks,Me,Rs,we,kr,oe,Ne,Ho,vt,Ws,Ko,Js,Rr,F,yt,Zs,er,As,Ls,Mt,Ds,wt,Bs,Gs,Os,R,Nt,qs,re,Xs,to,Ys,Qs,tr,Hs,Ks,ei,Te,ti,Ve,Wr,ae,$e,or,Tt,oi,rr,ri,Jr,S,Vt,ai,ar,ni,si,$t,ii,It,li,ci,di,W,Et,mi,ne,pi,oo,hi,fi,nr,gi,ui,_i,Ie,bi,Ee,Zr;return c=new se({}),Re=new se({}),Qe=new se({}),He=new lc({props:{pipeline:"image-classification"}}),tt=new se({}),ot=new U({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 se({}),nt=new U({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"}}),st=new U({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[transformers.utils.generic.TensorType, str, NoneType] = None"},{name:"data_format",val:": typing.Union[str, transformers.image_utils.ChannelDimension] = <ChannelDimension.FIRST: 'channels_first'>"},{name:"input_data_format",val:": typing.Union[str, transformers.image_utils.ChannelDimension, NoneType] = None"},{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"},{anchor:"transformers.MobileNetV2FeatureExtractor.preprocess.input_data_format",description:`<strong>input_data_format</strong> (<code>ChannelDimension</code> or <code>str</code>, <em>optional</em>) &#x2014;
The channel dimension format for the input image. If unset, the channel dimension format is inferred
from the input 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><code>&quot;none&quot;</code> or <code>ChannelDimension.NONE</code>: image in (height, width) format.</li>
</ul>`,name:"input_data_format"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/mobilenet_v2/image_processing_mobilenet_v2.py#L160"}}),it=new U({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#L296",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 se({}),dt=new U({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#L48"}}),mt=new U({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[transformers.utils.generic.TensorType, str, NoneType] = None"},{name:"data_format",val:": typing.Union[str, transformers.image_utils.ChannelDimension] = <ChannelDimension.FIRST: 'channels_first'>"},{name:"input_data_format",val:": typing.Union[str, transformers.image_utils.ChannelDimension, NoneType] = None"},{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"},{anchor:"transformers.MobileNetV2ImageProcessor.preprocess.input_data_format",description:`<strong>input_data_format</strong> (<code>ChannelDimension</code> or <code>str</code>, <em>optional</em>) &#x2014;
The channel dimension format for the input image. If unset, the channel dimension format is inferred
from the input 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><code>&quot;none&quot;</code> or <code>ChannelDimension.NONE</code>: image in (height, width) format.</li>
</ul>`,name:"input_data_format"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/mobilenet_v2/image_processing_mobilenet_v2.py#L160"}}),pt=new U({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#L296",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 se({}),gt=new U({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 U({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/donut#transformers.DonutFeatureExtractor.__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 se({}),yt=new U({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 U({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/donut#transformers.DonutFeatureExtractor.__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 se({}),Vt=new U({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 U({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/donut#transformers.DonutFeatureExtractor.__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=s("MobileNet V2"),pr=d(),B=r("h2"),ie=r("a"),ho=r("span"),v(Re.$$.fragment),ga=d(),fo=r("span"),ua=s("Overview"),hr=d(),le=r("p"),_a=s("The MobileNet model was proposed in "),We=r("a"),ba=s("MobileNetV2: Inverted Residuals and Linear Bottlenecks"),va=s(" by Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, Liang-Chieh Chen."),fr=d(),Ft=r("p"),ya=s("The abstract from the paper is the following:"),gr=d(),St=r("p"),go=r("em"),Ma=s("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(),Ut=r("p"),uo=r("em"),wa=s("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(),jt=r("p"),Na=s("Tips:"),br=d(),I=r("ul"),_o=r("li"),x=r("p"),Ta=s("The checkpoints are named "),ce=r("strong"),Va=s("mobilenet_v2_"),bo=r("em"),$a=s("depth"),Ia=s("_"),vo=r("em"),Ea=s("size"),xa=s(", for example "),yo=r("strong"),Ca=s("mobilenet_v2_1.0_224"),za=s(", where "),Mo=r("strong"),Fa=s("1.0"),Sa=s(" is the depth multiplier (sometimes also referred to as \u201Calpha\u201D or the width multiplier) and "),wo=r("strong"),Ua=s("224"),ja=s(" is the resolution of the input images the model was trained on."),Pa=d(),No=r("li"),To=r("p"),ka=s("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=s("One can use "),Pt=r("a"),Ja=s("MobileNetV2ImageProcessor"),Za=s(" to prepare images for the model."),Aa=d(),$o=r("li"),Ze=r("p"),La=s("The available image classification checkpoints are pre-trained on "),Ae=r("a"),Da=s("ImageNet-1k"),Ba=s(" (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=s("The segmentation model uses a "),Le=r("a"),qa=s("DeepLabV3+"),Xa=s(" head. The available semantic segmentation checkpoints are pre-trained on "),De=r("a"),Ya=s("PASCAL VOC"),Qa=s("."),Ha=d(),Eo=r("li"),O=r("p"),Ka=s("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"),en=s("MobileNetV2Config"),tn=s(" with "),xo=r("code"),on=s("tf_padding = False"),rn=s("."),vr=d(),Rt=r("p"),an=s("Unsupported features:"),yr=d(),j=r("ul"),Co=r("li"),Be=r("p"),nn=s("The "),Wt=r("a"),sn=s("MobileNetV2Model"),ln=s(" 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."),cn=d(),zo=r("li"),Fo=r("p"),dn=s("The original TensorFlow checkpoints include quantized models. We do not support these models as they include additional \u201CFakeQuantization\u201D operations to unquantize the weights."),mn=d(),So=r("li"),Ge=r("p"),pn=s("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 "),Uo=r("code"),hn=s("output_hidden_states=True"),fn=s(" returns the output from all intermediate layers. There is currently no way to limit this to specific layers."),gn=d(),jo=r("li"),Oe=r("p"),un=s("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"),_n=s("MobileNetV2Model"),bn=s(" up to which layer it should run."),Mr=d(),P=r("p"),vn=s("This model was contributed by "),qe=r("a"),yn=s("matthijs"),Mn=s(". The original code and weights can be found "),Xe=r("a"),wn=s("here for the main model"),Nn=s(" and "),Ye=r("a"),Tn=s("here for DeepLabV3+"),Vn=s("."),wr=d(),q=r("h2"),de=r("a"),Po=r("span"),v(Qe.$$.fragment),$n=d(),ko=r("span"),In=s("Resources"),Nr=d(),Zt=r("p"),En=s("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"),xn=s("MobileNetV2ForImageClassification"),Cn=s(" is supported by this "),Ke=r("a"),zn=s("example script"),Fn=s(" and "),et=r("a"),Sn=s("notebook"),Un=s("."),jn=d(),Lt=r("li"),Pn=s("See also: "),Dt=r("a"),kn=s("Image classification task guide"),$r=d(),Bt=r("p"),Ro=r("strong"),Rn=s("Semantic segmentation"),Ir=d(),Gt=r("ul"),Wo=r("li"),Ot=r("a"),Wn=s("Semantic segmentation task guide"),Er=d(),qt=r("p"),Jn=s("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(),X=r("h2"),pe=r("a"),Jo=r("span"),v(tt.$$.fragment),Zn=d(),Zo=r("span"),An=s("MobileNetV2Config"),Cr=d(),C=r("div"),v(ot.$$.fragment),Ln=d(),Y=r("p"),Dn=s("This is the configuration class to store the configuration of a "),Xt=r("a"),Bn=s("MobileNetV2Model"),Gn=s(`. 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"),On=s("google/mobilenet_v2_1.0_224"),qn=s(" architecture."),Xn=d(),Q=r("p"),Yn=s("Configuration objects inherit from "),Yt=r("a"),Qn=s("PretrainedConfig"),Hn=s(` and can be used to control the model outputs. Read the
documentation from `),Qt=r("a"),Kn=s("PretrainedConfig"),es=s(" for more information."),ts=d(),v(he.$$.fragment),zr=d(),H=r("h2"),fe=r("a"),Ao=r("span"),v(at.$$.fragment),os=d(),Lo=r("span"),rs=s("MobileNetV2FeatureExtractor"),Fr=d(),Z=r("div"),v(nt.$$.fragment),as=d(),ge=r("div"),v(st.$$.fragment),ns=d(),Do=r("p"),ss=s("Preprocess an image or batch of images."),is=d(),ue=r("div"),v(it.$$.fragment),ls=d(),lt=r("p"),cs=s("Converts the output of "),Ht=r("a"),ds=s("MobileNetV2ForSemanticSegmentation"),ms=s(` into semantic segmentation maps. Only supports
PyTorch.`),Sr=d(),K=r("h2"),_e=r("a"),Bo=r("span"),v(ct.$$.fragment),ps=d(),Go=r("span"),hs=s("MobileNetV2ImageProcessor"),Ur=d(),z=r("div"),v(dt.$$.fragment),fs=d(),Oo=r("p"),gs=s("Constructs a MobileNetV2 image processor."),us=d(),be=r("div"),v(mt.$$.fragment),_s=d(),qo=r("p"),bs=s("Preprocess an image or batch of images."),vs=d(),ve=r("div"),v(pt.$$.fragment),ys=d(),ht=r("p"),Ms=s("Converts the output of "),Kt=r("a"),ws=s("MobileNetV2ForSemanticSegmentation"),Ns=s(` into semantic segmentation maps. Only supports
PyTorch.`),jr=d(),ee=r("h2"),ye=r("a"),Xo=r("span"),v(ft.$$.fragment),Ts=d(),Yo=r("span"),Vs=s("MobileNetV2Model"),Pr=d(),A=r("div"),v(gt.$$.fragment),$s=d(),ut=r("p"),Is=s(`The bare MobileNetV2 model outputting raw hidden-states without any specific head on top.
This model is a PyTorch `),_t=r("a"),Es=s("torch.nn.Module"),xs=s(` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Cs=d(),k=r("div"),v(bt.$$.fragment),zs=d(),te=r("p"),Fs=s("The "),eo=r("a"),Ss=s("MobileNetV2Model"),Us=s(" forward method, overrides the "),Qo=r("code"),js=s("__call__"),Ps=s(" special method."),ks=d(),v(Me.$$.fragment),Rs=d(),v(we.$$.fragment),kr=d(),oe=r("h2"),Ne=r("a"),Ho=r("span"),v(vt.$$.fragment),Ws=d(),Ko=r("span"),Js=s("MobileNetV2ForImageClassification"),Rr=d(),F=r("div"),v(yt.$$.fragment),Zs=d(),er=r("p"),As=s(`MobileNetV2 model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`),Ls=d(),Mt=r("p"),Ds=s("This model is a PyTorch "),wt=r("a"),Bs=s("torch.nn.Module"),Gs=s(` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Os=d(),R=r("div"),v(Nt.$$.fragment),qs=d(),re=r("p"),Xs=s("The "),to=r("a"),Ys=s("MobileNetV2ForImageClassification"),Qs=s(" forward method, overrides the "),tr=r("code"),Hs=s("__call__"),Ks=s(" 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=s("MobileNetV2ForSemanticSegmentation"),Jr=d(),S=r("div"),v(Vt.$$.fragment),ai=d(),ar=r("p"),ni=s("MobileNetV2 model with a semantic segmentation head on top, e.g. for Pascal VOC."),si=d(),$t=r("p"),ii=s("This model is a PyTorch "),It=r("a"),li=s("torch.nn.Module"),ci=s(` 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(),ne=r("p"),pi=s("The "),oo=r("a"),hi=s("MobileNetV2ForSemanticSegmentation"),fi=s(" forward method, overrides the "),nr=r("code"),gi=s("__call__"),ui=s(" special method."),_i=d(),v(Ie.$$.fragment),bi=d(),v(Ee.$$.fragment),this.h()},l(t){const p=sc('[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=n(_);g=a(xt,"A",{id:!0,class:!0,href:!0});var sr=n(g);b=a(sr,"SPAN",{});var ir=n(b);y(c.$$.fragment,ir),ir.forEach(o),sr.forEach(o),u=m(xt),E=a(xt,"SPAN",{});var lr=n(E);fa=i(lr,"MobileNet V2"),lr.forEach(o),xt.forEach(o),pr=m(t),B=a(t,"H2",{class:!0});var Ct=n(B);ie=a(Ct,"A",{id:!0,class:!0,href:!0});var cr=n(ie);ho=a(cr,"SPAN",{});var dr=n(ho);y(Re.$$.fragment,dr),dr.forEach(o),cr.forEach(o),ga=m(Ct),fo=a(Ct,"SPAN",{});var Mi=n(fo);ua=i(Mi,"Overview"),Mi.forEach(o),Ct.forEach(o),hr=m(t),le=a(t,"P",{});var Ar=n(le);_a=i(Ar,"The MobileNet model was proposed in "),We=a(Ar,"A",{href:!0,rel:!0});var wi=n(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=n(Ft);ya=i(Ni,"The abstract from the paper is the following:"),Ni.forEach(o),gr=m(t),St=a(t,"P",{});var Ti=n(St);go=a(Ti,"EM",{});var Vi=n(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),Ut=a(t,"P",{});var $i=n(Ut);uo=a($i,"EM",{});var Ii=n(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),jt=a(t,"P",{});var Ei=n(jt);Na=i(Ei,"Tips:"),Ei.forEach(o),br=m(t),I=a(t,"UL",{});var J=n(I);_o=a(J,"LI",{});var xi=n(_o);x=a(xi,"P",{});var D=n(x);Ta=i(D,"The checkpoints are named "),ce=a(D,"STRONG",{});var mr=n(ce);Va=i(mr,"mobilenet_v2_"),bo=a(mr,"EM",{});var Ci=n(bo);$a=i(Ci,"depth"),Ci.forEach(o),Ia=i(mr,"_"),vo=a(mr,"EM",{});var zi=n(vo);Ea=i(zi,"size"),zi.forEach(o),mr.forEach(o),xa=i(D,", for example "),yo=a(D,"STRONG",{});var Fi=n(yo);Ca=i(Fi,"mobilenet_v2_1.0_224"),Fi.forEach(o),za=i(D,", where "),Mo=a(D,"STRONG",{});var Si=n(Mo);Fa=i(Si,"1.0"),Si.forEach(o),Sa=i(D," is the depth multiplier (sometimes also referred to as \u201Calpha\u201D or the width multiplier) and "),wo=a(D,"STRONG",{});var Ui=n(wo);Ua=i(Ui,"224"),Ui.forEach(o),ja=i(D," is the resolution of the input images the model was trained on."),D.forEach(o),xi.forEach(o),Pa=m(J),No=a(J,"LI",{});var ji=n(No);To=a(ji,"P",{});var Pi=n(To);ka=i(Pi,"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."),Pi.forEach(o),ji.forEach(o),Ra=m(J),Vo=a(J,"LI",{});var ki=n(Vo);Je=a(ki,"P",{});var Lr=n(Je);Wa=i(Lr,"One can use "),Pt=a(Lr,"A",{href:!0});var Ri=n(Pt);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=n($o);Ze=a(Wi,"P",{});var Dr=n(Ze);La=i(Dr,"The available image classification checkpoints are pre-trained on "),Ae=a(Dr,"A",{href:!0,rel:!0});var Ji=n(Ae);Da=i(Ji,"ImageNet-1k"),Ji.forEach(o),Ba=i(Dr," (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)."),Dr.forEach(o),Wi.forEach(o),Ga=m(J),Io=a(J,"LI",{});var Zi=n(Io);G=a(Zi,"P",{});var ro=n(G);Oa=i(ro,"The segmentation model uses a "),Le=a(ro,"A",{href:!0,rel:!0});var Ai=n(Le);qa=i(Ai,"DeepLabV3+"),Ai.forEach(o),Xa=i(ro," head. The available semantic segmentation checkpoints are pre-trained on "),De=a(ro,"A",{href:!0,rel:!0});var Li=n(De);Ya=i(Li,"PASCAL VOC"),Li.forEach(o),Qa=i(ro,"."),ro.forEach(o),Zi.forEach(o),Ha=m(J),Eo=a(J,"LI",{});var Di=n(Eo);O=a(Di,"P",{});var ao=n(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 Bi=n(kt);en=i(Bi,"MobileNetV2Config"),Bi.forEach(o),tn=i(ao," with "),xo=a(ao,"CODE",{});var Gi=n(xo);on=i(Gi,"tf_padding = False"),Gi.forEach(o),rn=i(ao,"."),ao.forEach(o),Di.forEach(o),J.forEach(o),vr=m(t),Rt=a(t,"P",{});var Oi=n(Rt);an=i(Oi,"Unsupported features:"),Oi.forEach(o),yr=m(t),j=a(t,"UL",{});var xe=n(j);Co=a(xe,"LI",{});var qi=n(Co);Be=a(qi,"P",{});var Br=n(Be);nn=i(Br,"The "),Wt=a(Br,"A",{href:!0});var Xi=n(Wt);sn=i(Xi,"MobileNetV2Model"),Xi.forEach(o),ln=i(Br," 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."),Br.forEach(o),qi.forEach(o),cn=m(xe),zo=a(xe,"LI",{});var Yi=n(zo);Fo=a(Yi,"P",{});var Qi=n(Fo);dn=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),Yi.forEach(o),mn=m(xe),So=a(xe,"LI",{});var Hi=n(So);Ge=a(Hi,"P",{});var Gr=n(Ge);pn=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 "),Uo=a(Gr,"CODE",{});var Ki=n(Uo);hn=i(Ki,"output_hidden_states=True"),Ki.forEach(o),fn=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),gn=m(xe),jo=a(xe,"LI",{});var el=n(jo);Oe=a(el,"P",{});var Or=n(Oe);un=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=n(Jt);_n=i(tl,"MobileNetV2Model"),tl.forEach(o),bn=i(Or," up to which layer it should run."),Or.forEach(o),el.forEach(o),xe.forEach(o),Mr=m(t),P=a(t,"P",{});var Ce=n(P);vn=i(Ce,"This model was contributed by "),qe=a(Ce,"A",{href:!0,rel:!0});var ol=n(qe);yn=i(ol,"matthijs"),ol.forEach(o),Mn=i(Ce,". The original code and weights can be found "),Xe=a(Ce,"A",{href:!0,rel:!0});var rl=n(Xe);wn=i(rl,"here for the main model"),rl.forEach(o),Nn=i(Ce," and "),Ye=a(Ce,"A",{href:!0,rel:!0});var al=n(Ye);Tn=i(al,"here for DeepLabV3+"),al.forEach(o),Vn=i(Ce,"."),Ce.forEach(o),wr=m(t),q=a(t,"H2",{class:!0});var qr=n(q);de=a(qr,"A",{id:!0,class:!0,href:!0});var nl=n(de);Po=a(nl,"SPAN",{});var sl=n(Po);y(Qe.$$.fragment,sl),sl.forEach(o),nl.forEach(o),$n=m(qr),ko=a(qr,"SPAN",{});var il=n(ko);In=i(il,"Resources"),il.forEach(o),qr.forEach(o),Nr=m(t),Zt=a(t,"P",{});var ll=n(Zt);En=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 Xr=n(me);L=a(Xr,"LI",{});var zt=n(L);At=a(zt,"A",{href:!0});var cl=n(At);xn=i(cl,"MobileNetV2ForImageClassification"),cl.forEach(o),Cn=i(zt," is supported by this "),Ke=a(zt,"A",{href:!0,rel:!0});var dl=n(Ke);zn=i(dl,"example script"),dl.forEach(o),Fn=i(zt," and "),et=a(zt,"A",{href:!0,rel:!0});var ml=n(et);Sn=i(ml,"notebook"),ml.forEach(o),Un=i(zt,"."),zt.forEach(o),jn=m(Xr),Lt=a(Xr,"LI",{});var vi=n(Lt);Pn=i(vi,"See also: "),Dt=a(vi,"A",{href:!0});var pl=n(Dt);kn=i(pl,"Image classification task guide"),pl.forEach(o),vi.forEach(o),Xr.forEach(o),$r=m(t),Bt=a(t,"P",{});var hl=n(Bt);Ro=a(hl,"STRONG",{});var fl=n(Ro);Rn=i(fl,"Semantic segmentation"),fl.forEach(o),hl.forEach(o),Ir=m(t),Gt=a(t,"UL",{});var gl=n(Gt);Wo=a(gl,"LI",{});var ul=n(Wo);Ot=a(ul,"A",{href:!0});var _l=n(Ot);Wn=i(_l,"Semantic segmentation task guide"),_l.forEach(o),ul.forEach(o),gl.forEach(o),Er=m(t),qt=a(t,"P",{});var bl=n(qt);Jn=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),X=a(t,"H2",{class:!0});var Yr=n(X);pe=a(Yr,"A",{id:!0,class:!0,href:!0});var vl=n(pe);Jo=a(vl,"SPAN",{});var yl=n(Jo);y(tt.$$.fragment,yl),yl.forEach(o),vl.forEach(o),Zn=m(Yr),Zo=a(Yr,"SPAN",{});var Ml=n(Zo);An=i(Ml,"MobileNetV2Config"),Ml.forEach(o),Yr.forEach(o),Cr=m(t),C=a(t,"DIV",{class:!0});var ze=n(C);y(ot.$$.fragment,ze),Ln=m(ze),Y=a(ze,"P",{});var no=n(Y);Dn=i(no,"This is the configuration class to store the configuration of a "),Xt=a(no,"A",{href:!0});var wl=n(Xt);Bn=i(wl,"MobileNetV2Model"),wl.forEach(o),Gn=i(no,`. 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(no,"A",{href:!0,rel:!0});var Nl=n(rt);On=i(Nl,"google/mobilenet_v2_1.0_224"),Nl.forEach(o),qn=i(no," architecture."),no.forEach(o),Xn=m(ze),Q=a(ze,"P",{});var so=n(Q);Yn=i(so,"Configuration objects inherit from "),Yt=a(so,"A",{href:!0});var Tl=n(Yt);Qn=i(Tl,"PretrainedConfig"),Tl.forEach(o),Hn=i(so,` and can be used to control the model outputs. Read the
documentation from `),Qt=a(so,"A",{href:!0});var Vl=n(Qt);Kn=i(Vl,"PretrainedConfig"),Vl.forEach(o),es=i(so," for more information."),so.forEach(o),ts=m(ze),y(he.$$.fragment,ze),ze.forEach(o),zr=m(t),H=a(t,"H2",{class:!0});var Qr=n(H);fe=a(Qr,"A",{id:!0,class:!0,href:!0});var $l=n(fe);Ao=a($l,"SPAN",{});var Il=n(Ao);y(at.$$.fragment,Il),Il.forEach(o),$l.forEach(o),os=m(Qr),Lo=a(Qr,"SPAN",{});var El=n(Lo);rs=i(El,"MobileNetV2FeatureExtractor"),El.forEach(o),Qr.forEach(o),Fr=m(t),Z=a(t,"DIV",{class:!0});var io=n(Z);y(nt.$$.fragment,io),as=m(io),ge=a(io,"DIV",{class:!0});var Hr=n(ge);y(st.$$.fragment,Hr),ns=m(Hr),Do=a(Hr,"P",{});var xl=n(Do);ss=i(xl,"Preprocess an image or batch of images."),xl.forEach(o),Hr.forEach(o),is=m(io),ue=a(io,"DIV",{class:!0});var Kr=n(ue);y(it.$$.fragment,Kr),ls=m(Kr),lt=a(Kr,"P",{});var ea=n(lt);cs=i(ea,"Converts the output of "),Ht=a(ea,"A",{href:!0});var Cl=n(Ht);ds=i(Cl,"MobileNetV2ForSemanticSegmentation"),Cl.forEach(o),ms=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=n(K);_e=a(ta,"A",{id:!0,class:!0,href:!0});var zl=n(_e);Bo=a(zl,"SPAN",{});var Fl=n(Bo);y(ct.$$.fragment,Fl),Fl.forEach(o),zl.forEach(o),ps=m(ta),Go=a(ta,"SPAN",{});var Sl=n(Go);hs=i(Sl,"MobileNetV2ImageProcessor"),Sl.forEach(o),ta.forEach(o),Ur=m(t),z=a(t,"DIV",{class:!0});var Fe=n(z);y(dt.$$.fragment,Fe),fs=m(Fe),Oo=a(Fe,"P",{});var Ul=n(Oo);gs=i(Ul,"Constructs a MobileNetV2 image processor."),Ul.forEach(o),us=m(Fe),be=a(Fe,"DIV",{class:!0});var oa=n(be);y(mt.$$.fragment,oa),_s=m(oa),qo=a(oa,"P",{});var jl=n(qo);bs=i(jl,"Preprocess an image or batch of images."),jl.forEach(o),oa.forEach(o),vs=m(Fe),ve=a(Fe,"DIV",{class:!0});var ra=n(ve);y(pt.$$.fragment,ra),ys=m(ra),ht=a(ra,"P",{});var aa=n(ht);Ms=i(aa,"Converts the output of "),Kt=a(aa,"A",{href:!0});var Pl=n(Kt);ws=i(Pl,"MobileNetV2ForSemanticSegmentation"),Pl.forEach(o),Ns=i(aa,` into semantic segmentation maps. Only supports
PyTorch.`),aa.forEach(o),ra.forEach(o),Fe.forEach(o),jr=m(t),ee=a(t,"H2",{class:!0});var na=n(ee);ye=a(na,"A",{id:!0,class:!0,href:!0});var kl=n(ye);Xo=a(kl,"SPAN",{});var Rl=n(Xo);y(ft.$$.fragment,Rl),Rl.forEach(o),kl.forEach(o),Ts=m(na),Yo=a(na,"SPAN",{});var Wl=n(Yo);Vs=i(Wl,"MobileNetV2Model"),Wl.forEach(o),na.forEach(o),Pr=m(t),A=a(t,"DIV",{class:!0});var lo=n(A);y(gt.$$.fragment,lo),$s=m(lo),ut=a(lo,"P",{});var sa=n(ut);Is=i(sa,`The bare MobileNetV2 model outputting raw hidden-states without any specific head on top.
This model is a PyTorch `),_t=a(sa,"A",{href:!0,rel:!0});var Jl=n(_t);Es=i(Jl,"torch.nn.Module"),Jl.forEach(o),xs=i(sa,` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),sa.forEach(o),Cs=m(lo),k=a(lo,"DIV",{class:!0});var Se=n(k);y(bt.$$.fragment,Se),zs=m(Se),te=a(Se,"P",{});var co=n(te);Fs=i(co,"The "),eo=a(co,"A",{href:!0});var Zl=n(eo);Ss=i(Zl,"MobileNetV2Model"),Zl.forEach(o),Us=i(co," forward method, overrides the "),Qo=a(co,"CODE",{});var Al=n(Qo);js=i(Al,"__call__"),Al.forEach(o),Ps=i(co," special method."),co.forEach(o),ks=m(Se),y(Me.$$.fragment,Se),Rs=m(Se),y(we.$$.fragment,Se),Se.forEach(o),lo.forEach(o),kr=m(t),oe=a(t,"H2",{class:!0});var ia=n(oe);Ne=a(ia,"A",{id:!0,class:!0,href:!0});var Ll=n(Ne);Ho=a(Ll,"SPAN",{});var Dl=n(Ho);y(vt.$$.fragment,Dl),Dl.forEach(o),Ll.forEach(o),Ws=m(ia),Ko=a(ia,"SPAN",{});var Bl=n(Ko);Js=i(Bl,"MobileNetV2ForImageClassification"),Bl.forEach(o),ia.forEach(o),Rr=m(t),F=a(t,"DIV",{class:!0});var Ue=n(F);y(yt.$$.fragment,Ue),Zs=m(Ue),er=a(Ue,"P",{});var Gl=n(er);As=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),Ls=m(Ue),Mt=a(Ue,"P",{});var la=n(Mt);Ds=i(la,"This model is a PyTorch "),wt=a(la,"A",{href:!0,rel:!0});var Ol=n(wt);Bs=i(Ol,"torch.nn.Module"),Ol.forEach(o),Gs=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),Os=m(Ue),R=a(Ue,"DIV",{class:!0});var je=n(R);y(Nt.$$.fragment,je),qs=m(je),re=a(je,"P",{});var mo=n(re);Xs=i(mo,"The "),to=a(mo,"A",{href:!0});var ql=n(to);Ys=i(ql,"MobileNetV2ForImageClassification"),ql.forEach(o),Qs=i(mo," forward method, overrides the "),tr=a(mo,"CODE",{});var Xl=n(tr);Hs=i(Xl,"__call__"),Xl.forEach(o),Ks=i(mo," special method."),mo.forEach(o),ei=m(je),y(Te.$$.fragment,je),ti=m(je),y(Ve.$$.fragment,je),je.forEach(o),Ue.forEach(o),Wr=m(t),ae=a(t,"H2",{class:!0});var ca=n(ae);$e=a(ca,"A",{id:!0,class:!0,href:!0});var Yl=n($e);or=a(Yl,"SPAN",{});var Ql=n(or);y(Tt.$$.fragment,Ql),Ql.forEach(o),Yl.forEach(o),oi=m(ca),rr=a(ca,"SPAN",{});var Hl=n(rr);ri=i(Hl,"MobileNetV2ForSemanticSegmentation"),Hl.forEach(o),ca.forEach(o),Jr=m(t),S=a(t,"DIV",{class:!0});var Pe=n(S);y(Vt.$$.fragment,Pe),ai=m(Pe),ar=a(Pe,"P",{});var Kl=n(ar);ni=i(Kl,"MobileNetV2 model with a semantic segmentation head on top, e.g. for Pascal VOC."),Kl.forEach(o),si=m(Pe),$t=a(Pe,"P",{});var da=n($t);ii=i(da,"This model is a PyTorch "),It=a(da,"A",{href:!0,rel:!0});var ec=n(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(Pe),W=a(Pe,"DIV",{class:!0});var ke=n(W);y(Et.$$.fragment,ke),mi=m(ke),ne=a(ke,"P",{});var po=n(ne);pi=i(po,"The "),oo=a(po,"A",{href:!0});var tc=n(oo);hi=i(tc,"MobileNetV2ForSemanticSegmentation"),tc.forEach(o),fi=i(po," forward method, overrides the "),nr=a(po,"CODE",{});var oc=n(nr);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),Pe.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(B,"class","relative group"),l(We,"href","https://arxiv.org/abs/1801.04381"),l(We,"rel","nofollow"),l(Pt,"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(De,"href","http://host.robots.ox.ac.uk/pascal/VOC/"),l(De,"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(qe,"href","https://huggingface.co/Matthijs"),l(qe,"rel","nofollow"),l(Xe,"href","https://github.com/tensorflow/models/tree/master/research/slim/nets/mobilenet"),l(Xe,"rel","nofollow"),l(Ye,"href","https://github.com/tensorflow/models/tree/master/research/deeplab"),l(Ye,"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(q,"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(Dt,"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(X,"class","relative group"),l(Xt,"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(Yt,"href","/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig"),l(Qt,"href","/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig"),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(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(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(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,B,p),e(B,ie),e(ie,ho),M(Re,ho,null),e(B,ga),e(B,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,Ut,p),e(Ut,uo),e(uo,wa),h(t,_r,p),h(t,jt,p),e(jt,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,Ca),e(x,za),e(x,Mo),e(Mo,Fa),e(x,Sa),e(x,wo),e(wo,Ua),e(x,ja),e(I,Pa),e(I,No),e(No,To),e(To,ka),e(I,Ra),e(I,Vo),e(Vo,Je),e(Je,Wa),e(Je,Pt),e(Pt,Ja),e(Je,Za),e(I,Aa),e(I,$o),e($o,Ze),e(Ze,La),e(Ze,Ae),e(Ae,Da),e(Ze,Ba),e(I,Ga),e(I,Io),e(Io,G),e(G,Oa),e(G,Le),e(Le,qa),e(G,Xa),e(G,De),e(De,Ya),e(G,Qa),e(I,Ha),e(I,Eo),e(Eo,O),e(O,Ka),e(O,kt),e(kt,en),e(O,tn),e(O,xo),e(xo,on),e(O,rn),h(t,vr,p),h(t,Rt,p),e(Rt,an),h(t,yr,p),h(t,j,p),e(j,Co),e(Co,Be),e(Be,nn),e(Be,Wt),e(Wt,sn),e(Be,ln),e(j,cn),e(j,zo),e(zo,Fo),e(Fo,dn),e(j,mn),e(j,So),e(So,Ge),e(Ge,pn),e(Ge,Uo),e(Uo,hn),e(Ge,fn),e(j,gn),e(j,jo),e(jo,Oe),e(Oe,un),e(Oe,Jt),e(Jt,_n),e(Oe,bn),h(t,Mr,p),h(t,P,p),e(P,vn),e(P,qe),e(qe,yn),e(P,Mn),e(P,Xe),e(Xe,wn),e(P,Nn),e(P,Ye),e(Ye,Tn),e(P,Vn),h(t,wr,p),h(t,q,p),e(q,de),e(de,Po),M(Qe,Po,null),e(q,$n),e(q,ko),e(ko,In),h(t,Nr,p),h(t,Zt,p),e(Zt,En),h(t,Tr,p),M(He,t,p),h(t,Vr,p),h(t,me,p),e(me,L),e(L,At),e(At,xn),e(L,Cn),e(L,Ke),e(Ke,zn),e(L,Fn),e(L,et),e(et,Sn),e(L,Un),e(me,jn),e(me,Lt),e(Lt,Pn),e(Lt,Dt),e(Dt,kn),h(t,$r,p),h(t,Bt,p),e(Bt,Ro),e(Ro,Rn),h(t,Ir,p),h(t,Gt,p),e(Gt,Wo),e(Wo,Ot),e(Ot,Wn),h(t,Er,p),h(t,qt,p),e(qt,Jn),h(t,xr,p),h(t,X,p),e(X,pe),e(pe,Jo),M(tt,Jo,null),e(X,Zn),e(X,Zo),e(Zo,An),h(t,Cr,p),h(t,C,p),M(ot,C,null),e(C,Ln),e(C,Y),e(Y,Dn),e(Y,Xt),e(Xt,Bn),e(Y,Gn),e(Y,rt),e(rt,On),e(Y,qn),e(C,Xn),e(C,Q),e(Q,Yn),e(Q,Yt),e(Yt,Qn),e(Q,Hn),e(Q,Qt),e(Qt,Kn),e(Q,es),e(C,ts),M(he,C,null),h(t,zr,p),h(t,H,p),e(H,fe),e(fe,Ao),M(at,Ao,null),e(H,os),e(H,Lo),e(Lo,rs),h(t,Fr,p),h(t,Z,p),M(nt,Z,null),e(Z,as),e(Z,ge),M(st,ge,null),e(ge,ns),e(ge,Do),e(Do,ss),e(Z,is),e(Z,ue),M(it,ue,null),e(ue,ls),e(ue,lt),e(lt,cs),e(lt,Ht),e(Ht,ds),e(lt,ms),h(t,Sr,p),h(t,K,p),e(K,_e),e(_e,Bo),M(ct,Bo,null),e(K,ps),e(K,Go),e(Go,hs),h(t,Ur,p),h(t,z,p),M(dt,z,null),e(z,fs),e(z,Oo),e(Oo,gs),e(z,us),e(z,be),M(mt,be,null),e(be,_s),e(be,qo),e(qo,bs),e(z,vs),e(z,ve),M(pt,ve,null),e(ve,ys),e(ve,ht),e(ht,Ms),e(ht,Kt),e(Kt,ws),e(ht,Ns),h(t,jr,p),h(t,ee,p),e(ee,ye),e(ye,Xo),M(ft,Xo,null),e(ee,Ts),e(ee,Yo),e(Yo,Vs),h(t,Pr,p),h(t,A,p),M(gt,A,null),e(A,$s),e(A,ut),e(ut,Is),e(ut,_t),e(_t,Es),e(ut,xs),e(A,Cs),e(A,k),M(bt,k,null),e(k,zs),e(k,te),e(te,Fs),e(te,eo),e(eo,Ss),e(te,Us),e(te,Qo),e(Qo,js),e(te,Ps),e(k,ks),M(Me,k,null),e(k,Rs),M(we,k,null),h(t,kr,p),h(t,oe,p),e(oe,Ne),e(Ne,Ho),M(vt,Ho,null),e(oe,Ws),e(oe,Ko),e(Ko,Js),h(t,Rr,p),h(t,F,p),M(yt,F,null),e(F,Zs),e(F,er),e(er,As),e(F,Ls),e(F,Mt),e(Mt,Ds),e(Mt,wt),e(wt,Bs),e(Mt,Gs),e(F,Os),e(F,R),M(Nt,R,null),e(R,qs),e(R,re),e(re,Xs),e(re,to),e(to,Ys),e(re,Qs),e(re,tr),e(tr,Hs),e(re,Ks),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,ni),e(S,si),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,ne),e(ne,pi),e(ne,oo),e(oo,hi),e(ne,fi),e(ne,nr),e(nr,gi),e(ne,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 sr={};p&2&&(sr.$$scope={dirty:p,ctx:t}),Me.$set(sr);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 Ct={};p&2&&(Ct.$$scope={dirty:p,ctx:t}),Ve.$set(Ct);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(nt.$$.fragment,t),w(st.$$.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(nt.$$.fragment,t),N(st.$$.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(B),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(Ut),t&&o(_r),t&&o(jt),t&&o(br),t&&o(I),t&&o(vr),t&&o(Rt),t&&o(yr),t&&o(j),t&&o(Mr),t&&o(P),t&&o(wr),t&&o(q),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(Bt),t&&o(Ir),t&&o(Gt),t&&o(Er),t&&o(qt),t&&o(xr),t&&o(X),T(tt),t&&o(Cr),t&&o(C),T(ot),T(he),t&&o(zr),t&&o(H),T(at),t&&o(Fr),t&&o(Z),T(nt),T(st),T(it),t&&o(Sr),t&&o(K),T(ct),t&&o(Ur),t&&o(z),T(dt),T(mt),T(pt),t&&o(jr),t&&o(ee),T(ft),t&&o(Pr),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,nc,{})}}export{$c as default,_c as metadata};
