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