import{s as hr,o as fr,n as S}from"../chunks/scheduler.9bc65507.js";import{S as ur,i as gr,g as n,s as i,u as _,A as br,h as a,f as t,c as l,j as b,v,y as h,k as u,o as s,a as c,w as T,d as M,t as y,x as w}from"../chunks/index.78c82d43.js";import{T as he}from"../chunks/Tip.87d55b76.js";import{D as U}from"../chunks/Docstring.4e7352e2.js";import{C as Ke}from"../chunks/CodeBlock.73e038be.js";import{I as D}from"../chunks/IconCopyLink.bedaa44d.js";import{E as At}from"../chunks/ExampleCodeBlock.872b014d.js";import{P as _r}from"../chunks/PipelineTag.75b0f707.js";function vr(x){let o,V="Example:",p,m,$;return m=new Ke({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyME1vYmlsZVZpVENvbmZpZyUyQyUyME1vYmlsZVZpVE1vZGVsJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMG1vYmlsZXZpdC1zbWFsbCUyMHN0eWxlJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBNb2JpbGVWaVRDb25maWcoKSUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBtb2RlbCUyMGZyb20lMjB0aGUlMjBtb2JpbGV2aXQtc21hbGwlMjBzdHlsZSUyMGNvbmZpZ3VyYXRpb24lMEFtb2RlbCUyMCUzRCUyME1vYmlsZVZpVE1vZGVsKGNvbmZpZ3VyYXRpb24pJTBBJTBBJTIzJTIwQWNjZXNzaW5nJTIwdGhlJTIwbW9kZWwlMjBjb25maWd1cmF0aW9uJTBBY29uZmlndXJhdGlvbiUyMCUzRCUyMG1vZGVsLmNvbmZpZw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> MobileViTConfig, MobileViTModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a mobilevit-small style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = MobileViTConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model from the mobilevit-small style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = MobileViTModel(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`,wrap:!1}}),{c(){o=n("p"),o.textContent=V,p=i(),_(m.$$.fragment)},l(r){o=a(r,"P",{"data-svelte-h":!0}),h(o)!=="svelte-11lpom8"&&(o.textContent=V),p=l(r),v(m.$$.fragment,r)},m(r,g){c(r,o,g),c(r,p,g),T(m,r,g),$=!0},p:S,i(r){$||(M(m.$$.fragment,r),$=!0)},o(r){y(m.$$.fragment,r),$=!1},d(r){r&&(t(o),t(p)),w(m,r)}}}function Tr(x){let o,V=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){o=n("p"),o.innerHTML=V},l(p){o=a(p,"P",{"data-svelte-h":!0}),h(o)!=="svelte-fincs2"&&(o.innerHTML=V)},m(p,m){c(p,o,m)},p:S,d(p){p&&t(o)}}}function Mr(x){let o,V="Example:",p,m,$;return m=new Ke({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyME1vYmlsZVZpVE1vZGVsJTBBaW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGF0YXNldHMlMjBpbXBvcnQlMjBsb2FkX2RhdGFzZXQlMEElMEFkYXRhc2V0JTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMmh1Z2dpbmdmYWNlJTJGY2F0cy1pbWFnZSUyMiklMEFpbWFnZSUyMCUzRCUyMGRhdGFzZXQlNUIlMjJ0ZXN0JTIyJTVEJTVCJTIyaW1hZ2UlMjIlNUQlNUIwJTVEJTBBJTBBaW1hZ2VfcHJvY2Vzc29yJTIwJTNEJTIwQXV0b0ltYWdlUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJhcHBsZSUyRm1vYmlsZXZpdC1zbWFsbCUyMiklMEFtb2RlbCUyMCUzRCUyME1vYmlsZVZpVE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJhcHBsZSUyRm1vYmlsZXZpdC1zbWFsbCUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjBpbWFnZV9wcm9jZXNzb3IoaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQSUwQXdpdGglMjB0b3JjaC5ub19ncmFkKCklM0ElMEElMjAlMjAlMjAlMjBvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpJTBBJTBBbGFzdF9oaWRkZW5fc3RhdGVzJTIwJTNEJTIwb3V0cHV0cy5sYXN0X2hpZGRlbl9zdGF0ZSUwQWxpc3QobGFzdF9oaWRkZW5fc3RhdGVzLnNoYXBlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, MobileViTModel
<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;apple/mobilevit-small&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = MobileViTModel.from_pretrained(<span class="hljs-string">&quot;apple/mobilevit-small&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">640</span>, <span class="hljs-number">8</span>, <span class="hljs-number">8</span>]`,wrap:!1}}),{c(){o=n("p"),o.textContent=V,p=i(),_(m.$$.fragment)},l(r){o=a(r,"P",{"data-svelte-h":!0}),h(o)!=="svelte-11lpom8"&&(o.textContent=V),p=l(r),v(m.$$.fragment,r)},m(r,g){c(r,o,g),c(r,p,g),T(m,r,g),$=!0},p:S,i(r){$||(M(m.$$.fragment,r),$=!0)},o(r){y(m.$$.fragment,r),$=!1},d(r){r&&(t(o),t(p)),w(m,r)}}}function yr(x){let o,V=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){o=n("p"),o.innerHTML=V},l(p){o=a(p,"P",{"data-svelte-h":!0}),h(o)!=="svelte-fincs2"&&(o.innerHTML=V)},m(p,m){c(p,o,m)},p:S,d(p){p&&t(o)}}}function wr(x){let o,V="Example:",p,m,$;return m=new Ke({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyME1vYmlsZVZpVEZvckltYWdlQ2xhc3NpZmljYXRpb24lMEFpbXBvcnQlMjB0b3JjaCUwQWZyb20lMjBkYXRhc2V0cyUyMGltcG9ydCUyMGxvYWRfZGF0YXNldCUwQSUwQWRhdGFzZXQlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyaHVnZ2luZ2ZhY2UlMkZjYXRzLWltYWdlJTIyKSUwQWltYWdlJTIwJTNEJTIwZGF0YXNldCU1QiUyMnRlc3QlMjIlNUQlNUIlMjJpbWFnZSUyMiU1RCU1QjAlNUQlMEElMEFpbWFnZV9wcm9jZXNzb3IlMjAlM0QlMjBBdXRvSW1hZ2VQcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMmFwcGxlJTJGbW9iaWxldml0LXNtYWxsJTIyKSUwQW1vZGVsJTIwJTNEJTIwTW9iaWxlVmlURm9ySW1hZ2VDbGFzc2lmaWNhdGlvbi5mcm9tX3ByZXRyYWluZWQoJTIyYXBwbGUlMkZtb2JpbGV2aXQtc21hbGwlMjIpJTBBJTBBaW5wdXRzJTIwJTNEJTIwaW1hZ2VfcHJvY2Vzc29yKGltYWdlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEElMEF3aXRoJTIwdG9yY2gubm9fZ3JhZCgpJTNBJTBBJTIwJTIwJTIwJTIwbG9naXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpLmxvZ2l0cyUwQSUwQSUyMyUyMG1vZGVsJTIwcHJlZGljdHMlMjBvbmUlMjBvZiUyMHRoZSUyMDEwMDAlMjBJbWFnZU5ldCUyMGNsYXNzZXMlMEFwcmVkaWN0ZWRfbGFiZWwlMjAlM0QlMjBsb2dpdHMuYXJnbWF4KC0xKS5pdGVtKCklMEFwcmludChtb2RlbC5jb25maWcuaWQybGFiZWwlNUJwcmVkaWN0ZWRfbGFiZWwlNUQp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, MobileViTForImageClassification
<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;apple/mobilevit-small&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = MobileViTForImageClassification.from_pretrained(<span class="hljs-string">&quot;apple/mobilevit-small&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`,wrap:!1}}),{c(){o=n("p"),o.textContent=V,p=i(),_(m.$$.fragment)},l(r){o=a(r,"P",{"data-svelte-h":!0}),h(o)!=="svelte-11lpom8"&&(o.textContent=V),p=l(r),v(m.$$.fragment,r)},m(r,g){c(r,o,g),c(r,p,g),T(m,r,g),$=!0},p:S,i(r){$||(M(m.$$.fragment,r),$=!0)},o(r){y(m.$$.fragment,r),$=!1},d(r){r&&(t(o),t(p)),w(m,r)}}}function $r(x){let o,V=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){o=n("p"),o.innerHTML=V},l(p){o=a(p,"P",{"data-svelte-h":!0}),h(o)!=="svelte-fincs2"&&(o.innerHTML=V)},m(p,m){c(p,o,m)},p:S,d(p){p&&t(o)}}}function Vr(x){let o,V="Examples:",p,m,$;return m=new Ke({props:{code:"aW1wb3J0JTIwcmVxdWVzdHMlMEFpbXBvcnQlMjB0b3JjaCUwQWZyb20lMjBQSUwlMjBpbXBvcnQlMjBJbWFnZSUwQWZyb20lMjB0cmFuc2Zvcm1lcnMlMjBpbXBvcnQlMjBBdXRvSW1hZ2VQcm9jZXNzb3IlMkMlMjBNb2JpbGVWaVRGb3JTZW1hbnRpY1NlZ21lbnRhdGlvbiUwQSUwQXVybCUyMCUzRCUyMCUyMmh0dHAlM0ElMkYlMkZpbWFnZXMuY29jb2RhdGFzZXQub3JnJTJGdmFsMjAxNyUyRjAwMDAwMDAzOTc2OS5qcGclMjIlMEFpbWFnZSUyMCUzRCUyMEltYWdlLm9wZW4ocmVxdWVzdHMuZ2V0KHVybCUyQyUyMHN0cmVhbSUzRFRydWUpLnJhdyklMEElMEFpbWFnZV9wcm9jZXNzb3IlMjAlM0QlMjBBdXRvSW1hZ2VQcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMmFwcGxlJTJGZGVlcGxhYnYzLW1vYmlsZXZpdC1zbWFsbCUyMiklMEFtb2RlbCUyMCUzRCUyME1vYmlsZVZpVEZvclNlbWFudGljU2VnbWVudGF0aW9uLmZyb21fcHJldHJhaW5lZCglMjJhcHBsZSUyRmRlZXBsYWJ2My1tb2JpbGV2aXQtc21hbGwlMjIpJTBBJTBBaW5wdXRzJTIwJTNEJTIwaW1hZ2VfcHJvY2Vzc29yKGltYWdlcyUzRGltYWdlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEElMEF3aXRoJTIwdG9yY2gubm9fZ3JhZCgpJTNBJTBBJTIwJTIwJTIwJTIwb3V0cHV0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzKSUwQSUwQSUyMyUyMGxvZ2l0cyUyMGFyZSUyMG9mJTIwc2hhcGUlMjAoYmF0Y2hfc2l6ZSUyQyUyMG51bV9sYWJlbHMlMkMlMjBoZWlnaHQlMkMlMjB3aWR0aCklMEFsb2dpdHMlMjAlM0QlMjBvdXRwdXRzLmxvZ2l0cw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> requests
<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> PIL <span class="hljs-keyword">import</span> Image
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, MobileViTForSemanticSegmentation

<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;apple/deeplabv3-mobilevit-small&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = MobileViTForSemanticSegmentation.from_pretrained(<span class="hljs-string">&quot;apple/deeplabv3-mobilevit-small&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`,wrap:!1}}),{c(){o=n("p"),o.textContent=V,p=i(),_(m.$$.fragment)},l(r){o=a(r,"P",{"data-svelte-h":!0}),h(o)!=="svelte-kvfsh7"&&(o.textContent=V),p=l(r),v(m.$$.fragment,r)},m(r,g){c(r,o,g),c(r,p,g),T(m,r,g),$=!0},p:S,i(r){$||(M(m.$$.fragment,r),$=!0)},o(r){y(m.$$.fragment,r),$=!1},d(r){r&&(t(o),t(p)),w(m,r)}}}function Cr(x){let o,V="TensorFlow models and layers in <code>transformers</code> accept two formats as input:",p,m,$="<li>having all inputs as keyword arguments (like PyTorch models), or</li> <li>having all inputs as a list, tuple or dict in the first positional argument.</li>",r,g,z=`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like <code>model.fit()</code> things should “just work” for you - just
pass your inputs and labels in any format that <code>model.fit()</code> supports! If, however, you want to use the second
format outside of Keras methods like <code>fit()</code> and <code>predict()</code>, such as when creating your own layers or models with
the Keras <code>Functional</code> API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`,k,j,O=`<li>a single Tensor with <code>pixel_values</code> only and nothing else: <code>model(pixel_values)</code></li> <li>a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
<code>model([pixel_values, attention_mask])</code> or <code>model([pixel_values, attention_mask, token_type_ids])</code></li> <li>a dictionary with one or several input Tensors associated to the input names given in the docstring:
<code>model({&quot;pixel_values&quot;: pixel_values, &quot;token_type_ids&quot;: token_type_ids})</code></li>`,I,F,Z=`Note that when creating models and layers with
<a href="https://keras.io/guides/making_new_layers_and_models_via_subclassing/" rel="nofollow">subclassing</a> then you don’t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`;return{c(){o=n("p"),o.innerHTML=V,p=i(),m=n("ul"),m.innerHTML=$,r=i(),g=n("p"),g.innerHTML=z,k=i(),j=n("ul"),j.innerHTML=O,I=i(),F=n("p"),F.innerHTML=Z},l(f){o=a(f,"P",{"data-svelte-h":!0}),h(o)!=="svelte-1ajbfxg"&&(o.innerHTML=V),p=l(f),m=a(f,"UL",{"data-svelte-h":!0}),h(m)!=="svelte-qm1t26"&&(m.innerHTML=$),r=l(f),g=a(f,"P",{"data-svelte-h":!0}),h(g)!=="svelte-1v9qsc5"&&(g.innerHTML=z),k=l(f),j=a(f,"UL",{"data-svelte-h":!0}),h(j)!=="svelte-99h8aq"&&(j.innerHTML=O),I=l(f),F=a(f,"P",{"data-svelte-h":!0}),h(F)!=="svelte-1an3odd"&&(F.innerHTML=Z)},m(f,C){c(f,o,C),c(f,p,C),c(f,m,C),c(f,r,C),c(f,g,C),c(f,k,C),c(f,j,C),c(f,I,C),c(f,F,C)},p:S,d(f){f&&(t(o),t(p),t(m),t(r),t(g),t(k),t(j),t(I),t(F))}}}function xr(x){let o,V=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){o=n("p"),o.innerHTML=V},l(p){o=a(p,"P",{"data-svelte-h":!0}),h(o)!=="svelte-fincs2"&&(o.innerHTML=V)},m(p,m){c(p,o,m)},p:S,d(p){p&&t(o)}}}function Fr(x){let o,V="Example:",p,m,$;return m=new Ke({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFRGTW9iaWxlVmlUTW9kZWwlMEFmcm9tJTIwZGF0YXNldHMlMjBpbXBvcnQlMjBsb2FkX2RhdGFzZXQlMEElMEFkYXRhc2V0JTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMmh1Z2dpbmdmYWNlJTJGY2F0cy1pbWFnZSUyMiklMEFpbWFnZSUyMCUzRCUyMGRhdGFzZXQlNUIlMjJ0ZXN0JTIyJTVEJTVCJTIyaW1hZ2UlMjIlNUQlNUIwJTVEJTBBJTBBaW1hZ2VfcHJvY2Vzc29yJTIwJTNEJTIwQXV0b0ltYWdlUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJhcHBsZSUyRm1vYmlsZXZpdC1zbWFsbCUyMiklMEFtb2RlbCUyMCUzRCUyMFRGTW9iaWxlVmlUTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMmFwcGxlJTJGbW9iaWxldml0LXNtYWxsJTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMGltYWdlX3Byb2Nlc3NvcihpbWFnZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIydGYlMjIpJTBBb3V0cHV0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzKSUwQSUwQWxhc3RfaGlkZGVuX3N0YXRlcyUyMCUzRCUyMG91dHB1dHMubGFzdF9oaWRkZW5fc3RhdGUlMEFsaXN0KGxhc3RfaGlkZGVuX3N0YXRlcy5zaGFwZSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, TFMobileViTModel
<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;apple/mobilevit-small&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFMobileViTModel.from_pretrained(<span class="hljs-string">&quot;apple/mobilevit-small&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = image_processor(image, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </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">640</span>, <span class="hljs-number">8</span>, <span class="hljs-number">8</span>]`,wrap:!1}}),{c(){o=n("p"),o.textContent=V,p=i(),_(m.$$.fragment)},l(r){o=a(r,"P",{"data-svelte-h":!0}),h(o)!=="svelte-11lpom8"&&(o.textContent=V),p=l(r),v(m.$$.fragment,r)},m(r,g){c(r,o,g),c(r,p,g),T(m,r,g),$=!0},p:S,i(r){$||(M(m.$$.fragment,r),$=!0)},o(r){y(m.$$.fragment,r),$=!1},d(r){r&&(t(o),t(p)),w(m,r)}}}function jr(x){let o,V="TensorFlow models and layers in <code>transformers</code> accept two formats as input:",p,m,$="<li>having all inputs as keyword arguments (like PyTorch models), or</li> <li>having all inputs as a list, tuple or dict in the first positional argument.</li>",r,g,z=`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like <code>model.fit()</code> things should “just work” for you - just
pass your inputs and labels in any format that <code>model.fit()</code> supports! If, however, you want to use the second
format outside of Keras methods like <code>fit()</code> and <code>predict()</code>, such as when creating your own layers or models with
the Keras <code>Functional</code> API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`,k,j,O=`<li>a single Tensor with <code>pixel_values</code> only and nothing else: <code>model(pixel_values)</code></li> <li>a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
<code>model([pixel_values, attention_mask])</code> or <code>model([pixel_values, attention_mask, token_type_ids])</code></li> <li>a dictionary with one or several input Tensors associated to the input names given in the docstring:
<code>model({&quot;pixel_values&quot;: pixel_values, &quot;token_type_ids&quot;: token_type_ids})</code></li>`,I,F,Z=`Note that when creating models and layers with
<a href="https://keras.io/guides/making_new_layers_and_models_via_subclassing/" rel="nofollow">subclassing</a> then you don’t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`;return{c(){o=n("p"),o.innerHTML=V,p=i(),m=n("ul"),m.innerHTML=$,r=i(),g=n("p"),g.innerHTML=z,k=i(),j=n("ul"),j.innerHTML=O,I=i(),F=n("p"),F.innerHTML=Z},l(f){o=a(f,"P",{"data-svelte-h":!0}),h(o)!=="svelte-1ajbfxg"&&(o.innerHTML=V),p=l(f),m=a(f,"UL",{"data-svelte-h":!0}),h(m)!=="svelte-qm1t26"&&(m.innerHTML=$),r=l(f),g=a(f,"P",{"data-svelte-h":!0}),h(g)!=="svelte-1v9qsc5"&&(g.innerHTML=z),k=l(f),j=a(f,"UL",{"data-svelte-h":!0}),h(j)!=="svelte-99h8aq"&&(j.innerHTML=O),I=l(f),F=a(f,"P",{"data-svelte-h":!0}),h(F)!=="svelte-1an3odd"&&(F.innerHTML=Z)},m(f,C){c(f,o,C),c(f,p,C),c(f,m,C),c(f,r,C),c(f,g,C),c(f,k,C),c(f,j,C),c(f,I,C),c(f,F,C)},p:S,d(f){f&&(t(o),t(p),t(m),t(r),t(g),t(k),t(j),t(I),t(F))}}}function Ir(x){let o,V=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){o=n("p"),o.innerHTML=V},l(p){o=a(p,"P",{"data-svelte-h":!0}),h(o)!=="svelte-fincs2"&&(o.innerHTML=V)},m(p,m){c(p,o,m)},p:S,d(p){p&&t(o)}}}function Ur(x){let o,V="Example:",p,m,$;return m=new Ke({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFRGTW9iaWxlVmlURm9ySW1hZ2VDbGFzc2lmaWNhdGlvbiUwQWltcG9ydCUyMHRlbnNvcmZsb3clMjBhcyUyMHRmJTBBZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJodWdnaW5nZmFjZSUyRmNhdHMtaW1hZ2UlMjIpJTBBaW1hZ2UlMjAlM0QlMjBkYXRhc2V0JTVCJTIydGVzdCUyMiU1RCU1QiUyMmltYWdlJTIyJTVEJTVCMCU1RCUwQSUwQWltYWdlX3Byb2Nlc3NvciUyMCUzRCUyMEF1dG9JbWFnZVByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIyYXBwbGUlMkZtb2JpbGV2aXQtc21hbGwlMjIpJTBBbW9kZWwlMjAlM0QlMjBURk1vYmlsZVZpVEZvckltYWdlQ2xhc3NpZmljYXRpb24uZnJvbV9wcmV0cmFpbmVkKCUyMmFwcGxlJTJGbW9iaWxldml0LXNtYWxsJTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMGltYWdlX3Byb2Nlc3NvcihpbWFnZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIydGYlMjIpJTBBbG9naXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpLmxvZ2l0cyUwQSUwQSUyMyUyMG1vZGVsJTIwcHJlZGljdHMlMjBvbmUlMjBvZiUyMHRoZSUyMDEwMDAlMjBJbWFnZU5ldCUyMGNsYXNzZXMlMEFwcmVkaWN0ZWRfbGFiZWwlMjAlM0QlMjBpbnQodGYubWF0aC5hcmdtYXgobG9naXRzJTJDJTIwYXhpcyUzRC0xKSklMEFwcmludChtb2RlbC5jb25maWcuaWQybGFiZWwlNUJwcmVkaWN0ZWRfbGFiZWwlNUQp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, TFMobileViTForImageClassification
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> tensorflow <span class="hljs-keyword">as</span> tf
<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;apple/mobilevit-small&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFMobileViTForImageClassification.from_pretrained(<span class="hljs-string">&quot;apple/mobilevit-small&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = image_processor(image, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </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 = <span class="hljs-built_in">int</span>(tf.math.argmax(logits, axis=-<span class="hljs-number">1</span>))
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(model.config.id2label[predicted_label])
tabby, tabby cat`,wrap:!1}}),{c(){o=n("p"),o.textContent=V,p=i(),_(m.$$.fragment)},l(r){o=a(r,"P",{"data-svelte-h":!0}),h(o)!=="svelte-11lpom8"&&(o.textContent=V),p=l(r),v(m.$$.fragment,r)},m(r,g){c(r,o,g),c(r,p,g),T(m,r,g),$=!0},p:S,i(r){$||(M(m.$$.fragment,r),$=!0)},o(r){y(m.$$.fragment,r),$=!1},d(r){r&&(t(o),t(p)),w(m,r)}}}function kr(x){let o,V="TensorFlow models and layers in <code>transformers</code> accept two formats as input:",p,m,$="<li>having all inputs as keyword arguments (like PyTorch models), or</li> <li>having all inputs as a list, tuple or dict in the first positional argument.</li>",r,g,z=`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like <code>model.fit()</code> things should “just work” for you - just
pass your inputs and labels in any format that <code>model.fit()</code> supports! If, however, you want to use the second
format outside of Keras methods like <code>fit()</code> and <code>predict()</code>, such as when creating your own layers or models with
the Keras <code>Functional</code> API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`,k,j,O=`<li>a single Tensor with <code>pixel_values</code> only and nothing else: <code>model(pixel_values)</code></li> <li>a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
<code>model([pixel_values, attention_mask])</code> or <code>model([pixel_values, attention_mask, token_type_ids])</code></li> <li>a dictionary with one or several input Tensors associated to the input names given in the docstring:
<code>model({&quot;pixel_values&quot;: pixel_values, &quot;token_type_ids&quot;: token_type_ids})</code></li>`,I,F,Z=`Note that when creating models and layers with
<a href="https://keras.io/guides/making_new_layers_and_models_via_subclassing/" rel="nofollow">subclassing</a> then you don’t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`;return{c(){o=n("p"),o.innerHTML=V,p=i(),m=n("ul"),m.innerHTML=$,r=i(),g=n("p"),g.innerHTML=z,k=i(),j=n("ul"),j.innerHTML=O,I=i(),F=n("p"),F.innerHTML=Z},l(f){o=a(f,"P",{"data-svelte-h":!0}),h(o)!=="svelte-1ajbfxg"&&(o.innerHTML=V),p=l(f),m=a(f,"UL",{"data-svelte-h":!0}),h(m)!=="svelte-qm1t26"&&(m.innerHTML=$),r=l(f),g=a(f,"P",{"data-svelte-h":!0}),h(g)!=="svelte-1v9qsc5"&&(g.innerHTML=z),k=l(f),j=a(f,"UL",{"data-svelte-h":!0}),h(j)!=="svelte-99h8aq"&&(j.innerHTML=O),I=l(f),F=a(f,"P",{"data-svelte-h":!0}),h(F)!=="svelte-1an3odd"&&(F.innerHTML=Z)},m(f,C){c(f,o,C),c(f,p,C),c(f,m,C),c(f,r,C),c(f,g,C),c(f,k,C),c(f,j,C),c(f,I,C),c(f,F,C)},p:S,d(f){f&&(t(o),t(p),t(m),t(r),t(g),t(k),t(j),t(I),t(F))}}}function Zr(x){let o,V=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){o=n("p"),o.innerHTML=V},l(p){o=a(p,"P",{"data-svelte-h":!0}),h(o)!=="svelte-fincs2"&&(o.innerHTML=V)},m(p,m){c(p,o,m)},p:S,d(p){p&&t(o)}}}function Jr(x){let o,V="Examples:",p,m,$;return m=new Ke({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFRGTW9iaWxlVmlURm9yU2VtYW50aWNTZWdtZW50YXRpb24lMEFmcm9tJTIwUElMJTIwaW1wb3J0JTIwSW1hZ2UlMEFpbXBvcnQlMjByZXF1ZXN0cyUwQSUwQXVybCUyMCUzRCUyMCUyMmh0dHAlM0ElMkYlMkZpbWFnZXMuY29jb2RhdGFzZXQub3JnJTJGdmFsMjAxNyUyRjAwMDAwMDAzOTc2OS5qcGclMjIlMEFpbWFnZSUyMCUzRCUyMEltYWdlLm9wZW4ocmVxdWVzdHMuZ2V0KHVybCUyQyUyMHN0cmVhbSUzRFRydWUpLnJhdyklMEElMEFpbWFnZV9wcm9jZXNzb3IlMjAlM0QlMjBBdXRvSW1hZ2VQcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMmFwcGxlJTJGZGVlcGxhYnYzLW1vYmlsZXZpdC1zbWFsbCUyMiklMEFtb2RlbCUyMCUzRCUyMFRGTW9iaWxlVmlURm9yU2VtYW50aWNTZWdtZW50YXRpb24uZnJvbV9wcmV0cmFpbmVkKCUyMmFwcGxlJTJGZGVlcGxhYnYzLW1vYmlsZXZpdC1zbWFsbCUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjBpbWFnZV9wcm9jZXNzb3IoaW1hZ2VzJTNEaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnRmJTIyKSUwQSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyklMEElMEElMjMlMjBsb2dpdHMlMjBhcmUlMjBvZiUyMHNoYXBlJTIwKGJhdGNoX3NpemUlMkMlMjBudW1fbGFiZWxzJTJDJTIwaGVpZ2h0JTJDJTIwd2lkdGgpJTBBbG9naXRzJTIwJTNEJTIwb3V0cHV0cy5sb2dpdHM=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, TFMobileViTForSemanticSegmentation
<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;apple/deeplabv3-mobilevit-small&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFMobileViTForSemanticSegmentation.from_pretrained(<span class="hljs-string">&quot;apple/deeplabv3-mobilevit-small&quot;</span>)

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

<span class="hljs-meta">&gt;&gt;&gt; </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`,wrap:!1}}),{c(){o=n("p"),o.textContent=V,p=i(),_(m.$$.fragment)},l(r){o=a(r,"P",{"data-svelte-h":!0}),h(o)!=="svelte-kvfsh7"&&(o.textContent=V),p=l(r),v(m.$$.fragment,r)},m(r,g){c(r,o,g),c(r,p,g),T(m,r,g),$=!0},p:S,i(r){$||(M(m.$$.fragment,r),$=!0)},o(r){y(m.$$.fragment,r),$=!1},d(r){r&&(t(o),t(p)),w(m,r)}}}function Wr(x){let o,V,p,m,$,r,g,z,k,j,O="MobileViT",I,F,Z,f,C,As,Yt,na="Overview",os,et,aa='The MobileViT model was proposed in <a href="https://arxiv.org/abs/2110.02178" rel="nofollow">MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer</a> by Sachin Mehta and Mohammad Rastegari. MobileViT introduces a new layer that replaces local processing in convolutions with global processing using transformers.',ss,tt,ra="The abstract from the paper is the following:",ns,ot,ia="<em>Light-weight convolutional neural networks (CNNs) are the de-facto for mobile vision tasks. Their spatial inductive biases allow them to learn representations with fewer parameters across different vision tasks. However, these networks are spatially local. To learn global representations, self-attention-based vision trans-formers (ViTs) have been adopted. Unlike CNNs, ViTs are heavy-weight. In this paper, we ask the following question: is it possible to combine the strengths of CNNs and ViTs to build a light-weight and low latency network for mobile vision tasks? Towards this end, we introduce MobileViT, a light-weight and general-purpose vision transformer for mobile devices. MobileViT presents a different perspective for the global processing of information with transformers, i.e., transformers as convolutions. Our results show that MobileViT significantly outperforms CNN- and ViT-based networks across different tasks and datasets. On the ImageNet-1k dataset, MobileViT achieves top-1 accuracy of 78.4% with about 6 million parameters, which is 3.2% and 6.2% more accurate than MobileNetv3 (CNN-based) and DeIT (ViT-based) for a similar number of parameters. On the MS-COCO object detection task, MobileViT is 5.7% more accurate than MobileNetv3 for a similar number of parameters.</em>",as,st,la="Tips:",rs,nt,ca=`<li><p>MobileViT is more like a CNN than a Transformer model. It does not work on sequence data but on batches of images. Unlike ViT, there are no embeddings. The backbone model outputs a feature map. You can follow <a href="https://keras.io/examples/vision/mobilevit" rel="nofollow">this tutorial</a> for a lightweight introduction.</p></li> <li><p>One can use <a href="/docs/transformers/v4.34.0/en/model_doc/mobilevit#transformers.MobileViTImageProcessor">MobileViTImageProcessor</a> to prepare images for the model. Note that if you do your own preprocessing, the pretrained checkpoints expect images to be in BGR pixel order (not RGB).</p></li> <li><p>The available image classification checkpoints are pre-trained on <a href="https://huggingface.co/datasets/imagenet-1k" rel="nofollow">ImageNet-1k</a> (also referred to as ILSVRC 2012, a collection of 1.3 million images and 1,000 classes).</p></li> <li><p>The segmentation model uses a <a href="https://arxiv.org/abs/1706.05587" rel="nofollow">DeepLabV3</a> head. The available semantic segmentation checkpoints are pre-trained on <a href="http://host.robots.ox.ac.uk/pascal/VOC/" rel="nofollow">PASCAL VOC</a>.</p></li> <li><p>As the name suggests MobileViT was designed to be performant and efficient on mobile phones. The TensorFlow versions of the MobileViT models are fully compatible with <a href="https://www.tensorflow.org/lite" rel="nofollow">TensorFlow Lite</a>.</p> <p>You can use the following code to convert a MobileViT checkpoint (be it image classification or semantic segmentation) to generate a
TensorFlow Lite model:</p></li>`,is,at,ls,rt,da=`The resulting model will be just <strong>about an MB</strong> making it a good fit for mobile applications where resources and network
bandwidth can be constrained.`,cs,it,ma='This model was contributed by <a href="https://huggingface.co/Matthijs" rel="nofollow">matthijs</a>. The TensorFlow version of the model was contributed by <a href="https://huggingface.co/sayakpaul" rel="nofollow">sayakpaul</a>. The original code and weights can be found <a href="https://github.com/apple/ml-cvnets" rel="nofollow">here</a>.',ds,se,fe,Wo,lt,Ys,Qt,pa="Resources",ms,ct,ha="A list of official Hugging Face and community (indicated by 🌎) resources to help you get started with MobileViT.",ps,dt,hs,mt,fa='<li><a href="/docs/transformers/v4.34.0/en/model_doc/mobilevit#transformers.MobileViTForImageClassification">MobileViTForImageClassification</a> is supported by this <a href="https://github.com/huggingface/transformers/tree/main/examples/pytorch/image-classification" rel="nofollow">example script</a> and <a href="https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/image_classification.ipynb" rel="nofollow">notebook</a>.</li> <li>See also: <a href="../tasks/image_classification">Image classification task guide</a></li>',fs,pt,ua="<strong>Semantic segmentation</strong>",us,ht,ga='<li><a href="../tasks/semantic_segmentation">Semantic segmentation task guide</a></li>',gs,ft,ba="If you’re interested in submitting a resource to be included here, please feel free to open a Pull Request and we’ll review it! The resource should ideally demonstrate something new instead of duplicating an existing resource.",bs,ne,ue,zo,ut,Qs,Dt,_a="MobileViTConfig",_s,P,gt,Ds,Ot,va=`This is the configuration class to store the configuration of a <a href="/docs/transformers/v4.34.0/en/model_doc/mobilevit#transformers.MobileViTModel">MobileViTModel</a>. It is used to instantiate a
MobileViT 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 MobileViT
<a href="https://huggingface.co/apple/mobilevit-small" rel="nofollow">apple/mobilevit-small</a> architecture.`,Os,Kt,Ta=`Configuration objects inherit from <a href="/docs/transformers/v4.34.0/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> and can be used to control the model outputs. Read the
documentation from <a href="/docs/transformers/v4.34.0/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,Ks,ge,vs,ae,be,So,bt,en,eo,Ma="MobileViTFeatureExtractor",Ts,K,_t,tn,_e,vt,on,to,ya="Preprocess an image or a batch of images.",sn,ve,Tt,nn,oo,wa=`Converts the output of <a href="/docs/transformers/v4.34.0/en/model_doc/mobilevit#transformers.MobileViTForSemanticSegmentation">MobileViTForSemanticSegmentation</a> into semantic segmentation maps. Only supports
PyTorch.`,Ms,re,Te,No,Mt,an,so,$a="MobileViTImageProcessor",ys,E,yt,rn,no,Va="Constructs a MobileViT image processor.",ln,Me,wt,cn,ao,Ca="Preprocess an image or batch of images.",dn,ye,$t,mn,ro,xa=`Converts the output of <a href="/docs/transformers/v4.34.0/en/model_doc/mobilevit#transformers.MobileViTForSemanticSegmentation">MobileViTForSemanticSegmentation</a> into semantic segmentation maps. Only supports
PyTorch.`,ws,ie,we,Po,Vt,pn,io,Fa="MobileViTModel",$s,ee,Ct,hn,lo,ja=`The bare MobileViT model outputting raw hidden-states without any specific head on top.
This model is a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`,fn,H,xt,un,co,Ia='The <a href="/docs/transformers/v4.34.0/en/model_doc/mobilevit#transformers.MobileViTModel">MobileViTModel</a> forward method, overrides the <code>__call__</code> special method.',gn,$e,bn,Ve,Vs,le,Ce,Eo,Ft,_n,mo,Ua="MobileViTForImageClassification",Cs,R,jt,vn,po,ka=`MobileViT model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`,Tn,ho,Za=`This model is a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`,Mn,L,It,yn,fo,Ja='The <a href="/docs/transformers/v4.34.0/en/model_doc/mobilevit#transformers.MobileViTForImageClassification">MobileViTForImageClassification</a> forward method, overrides the <code>__call__</code> special method.',wn,xe,$n,Fe,xs,ce,je,Ro,Ut,Vn,uo,Wa="MobileViTForSemanticSegmentation",Fs,G,kt,Cn,go,za="MobileViT model with a semantic segmentation head on top, e.g. for Pascal VOC.",xn,bo,Sa=`This model is a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`,Fn,B,Zt,jn,_o,Na='The <a href="/docs/transformers/v4.34.0/en/model_doc/mobilevit#transformers.MobileViTForSemanticSegmentation">MobileViTForSemanticSegmentation</a> forward method, overrides the <code>__call__</code> special method.',In,Ie,Un,Ue,js,de,ke,Go,Jt,kn,vo,Pa="TFMobileViTModel",Is,N,Wt,Zn,To,Ea=`The bare MobileViT model outputting raw hidden-states without any specific head on top.
This model inherits from <a href="/docs/transformers/v4.34.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`,Jn,Mo,Ra=`This model is also a <a href="https://www.tensorflow.org/api_docs/python/tf/keras/Model" rel="nofollow">tf.keras.Model</a> subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`,Wn,Ze,zn,q,zt,Sn,yo,Ga='The <a href="/docs/transformers/v4.34.0/en/model_doc/mobilevit#transformers.TFMobileViTModel">TFMobileViTModel</a> forward method, overrides the <code>__call__</code> special method.',Nn,Je,Pn,We,Us,me,ze,Ho,St,En,wo,Ha="TFMobileViTForImageClassification",ks,J,Nt,Rn,$o,La=`MobileViT model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`,Gn,Vo,Ba=`This model inherits from <a href="/docs/transformers/v4.34.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`,Hn,Co,qa=`This model is also a <a href="https://www.tensorflow.org/api_docs/python/tf/keras/Model" rel="nofollow">tf.keras.Model</a> subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`,Ln,Se,Bn,X,Pt,qn,xo,Xa='The <a href="/docs/transformers/v4.34.0/en/model_doc/mobilevit#transformers.TFMobileViTForImageClassification">TFMobileViTForImageClassification</a> forward method, overrides the <code>__call__</code> special method.',Xn,Ne,An,Pe,Zs,pe,Ee,Lo,Et,Yn,Fo,Aa="TFMobileViTForSemanticSegmentation",Js,W,Rt,Qn,jo,Ya="MobileViT model with a semantic segmentation head on top, e.g. for Pascal VOC.",Dn,Io,Qa=`This model inherits from <a href="/docs/transformers/v4.34.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`,On,Uo,Da=`This model is also a <a href="https://www.tensorflow.org/api_docs/python/tf/keras/Model" rel="nofollow">tf.keras.Model</a> subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`,Kn,Re,ea,A,Gt,ta,ko,Oa='The <a href="/docs/transformers/v4.34.0/en/model_doc/mobilevit#transformers.TFMobileViTForSemanticSegmentation">TFMobileViTForSemanticSegmentation</a> forward method, overrides the <code>__call__</code> special method.',oa,Ge,sa,He,Ws,Bo,zs;return z=new D({}),C=new D({}),at=new Ke({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRGTW9iaWxlVmlURm9ySW1hZ2VDbGFzc2lmaWNhdGlvbiUwQWltcG9ydCUyMHRlbnNvcmZsb3clMjBhcyUyMHRmJTBBJTBBJTBBbW9kZWxfY2twdCUyMCUzRCUyMCUyMmFwcGxlJTJGbW9iaWxldml0LXh4LXNtYWxsJTIyJTBBbW9kZWwlMjAlM0QlMjBURk1vYmlsZVZpVEZvckltYWdlQ2xhc3NpZmljYXRpb24uZnJvbV9wcmV0cmFpbmVkKG1vZGVsX2NrcHQpJTBBJTBBY29udmVydGVyJTIwJTNEJTIwdGYubGl0ZS5URkxpdGVDb252ZXJ0ZXIuZnJvbV9rZXJhc19tb2RlbChtb2RlbCklMEFjb252ZXJ0ZXIub3B0aW1pemF0aW9ucyUyMCUzRCUyMCU1QnRmLmxpdGUuT3B0aW1pemUuREVGQVVMVCU1RCUwQWNvbnZlcnRlci50YXJnZXRfc3BlYy5zdXBwb3J0ZWRfb3BzJTIwJTNEJTIwJTVCJTBBJTIwJTIwJTIwJTIwdGYubGl0ZS5PcHNTZXQuVEZMSVRFX0JVSUxUSU5TJTJDJTBBJTIwJTIwJTIwJTIwdGYubGl0ZS5PcHNTZXQuU0VMRUNUX1RGX09QUyUyQyUwQSU1RCUwQXRmbGl0ZV9tb2RlbCUyMCUzRCUyMGNvbnZlcnRlci5jb252ZXJ0KCklMEF0ZmxpdGVfZmlsZW5hbWUlMjAlM0QlMjBtb2RlbF9ja3B0LnNwbGl0KCUyMiUyRiUyMiklNUItMSU1RCUyMCUyQiUyMCUyMi50ZmxpdGUlMjIlMEF3aXRoJTIwb3Blbih0ZmxpdGVfZmlsZW5hbWUlMkMlMjAlMjJ3YiUyMiklMjBhcyUyMGYlM0ElMEElMjAlMjAlMjAlMjBmLndyaXRlKHRmbGl0ZV9tb2RlbCk=",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TFMobileViTForImageClassification
<span class="hljs-keyword">import</span> tensorflow <span class="hljs-keyword">as</span> tf


model_ckpt = <span class="hljs-string">&quot;apple/mobilevit-xx-small&quot;</span>
model = TFMobileViTForImageClassification.from_pretrained(model_ckpt)

converter = tf.lite.TFLiteConverter.from_keras_model(model)
converter.optimizations = [tf.lite.Optimize.DEFAULT]
converter.target_spec.supported_ops = [
    tf.lite.OpsSet.TFLITE_BUILTINS,
    tf.lite.OpsSet.SELECT_TF_OPS,
]
tflite_model = converter.convert()
tflite_filename = model_ckpt.split(<span class="hljs-string">&quot;/&quot;</span>)[-<span class="hljs-number">1</span>] + <span class="hljs-string">&quot;.tflite&quot;</span>
<span class="hljs-keyword">with</span> <span class="hljs-built_in">open</span>(tflite_filename, <span class="hljs-string">&quot;wb&quot;</span>) <span class="hljs-keyword">as</span> f:
    f.write(tflite_model)`,wrap:!1}}),lt=new D({}),dt=new _r({props:{pipeline:"image-classification"}}),ut=new D({}),gt=new U({props:{name:"class transformers.MobileViTConfig",anchor:"transformers.MobileViTConfig",parameters:[{name:"num_channels",val:" = 3"},{name:"image_size",val:" = 256"},{name:"patch_size",val:" = 2"},{name:"hidden_sizes",val:" = [144, 192, 240]"},{name:"neck_hidden_sizes",val:" = [16, 32, 64, 96, 128, 160, 640]"},{name:"num_attention_heads",val:" = 4"},{name:"mlp_ratio",val:" = 2.0"},{name:"expand_ratio",val:" = 4.0"},{name:"hidden_act",val:" = 'silu'"},{name:"conv_kernel_size",val:" = 3"},{name:"output_stride",val:" = 32"},{name:"hidden_dropout_prob",val:" = 0.1"},{name:"attention_probs_dropout_prob",val:" = 0.0"},{name:"classifier_dropout_prob",val:" = 0.1"},{name:"initializer_range",val:" = 0.02"},{name:"layer_norm_eps",val:" = 1e-05"},{name:"qkv_bias",val:" = True"},{name:"aspp_out_channels",val:" = 256"},{name:"atrous_rates",val:" = [6, 12, 18]"},{name:"aspp_dropout_prob",val:" = 0.1"},{name:"semantic_loss_ignore_index",val:" = 255"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.MobileViTConfig.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.MobileViTConfig.image_size",description:`<strong>image_size</strong> (<code>int</code>, <em>optional</em>, defaults to 256) &#x2014;
The size (resolution) of each image.`,name:"image_size"},{anchor:"transformers.MobileViTConfig.patch_size",description:`<strong>patch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 2) &#x2014;
The size (resolution) of each patch.`,name:"patch_size"},{anchor:"transformers.MobileViTConfig.hidden_sizes",description:`<strong>hidden_sizes</strong> (<code>List[int]</code>, <em>optional</em>, defaults to <code>[144, 192, 240]</code>) &#x2014;
Dimensionality (hidden size) of the Transformer encoders at each stage.`,name:"hidden_sizes"},{anchor:"transformers.MobileViTConfig.neck_hidden_sizes",description:`<strong>neck_hidden_sizes</strong> (<code>List[int]</code>, <em>optional</em>, defaults to <code>[16, 32, 64, 96, 128, 160, 640]</code>) &#x2014;
The number of channels for the feature maps of the backbone.`,name:"neck_hidden_sizes"},{anchor:"transformers.MobileViTConfig.num_attention_heads",description:`<strong>num_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014;
Number of attention heads for each attention layer in the Transformer encoder.`,name:"num_attention_heads"},{anchor:"transformers.MobileViTConfig.mlp_ratio",description:`<strong>mlp_ratio</strong> (<code>float</code>, <em>optional</em>, defaults to 2.0) &#x2014;
The ratio of the number of channels in the output of the MLP to the number of channels in the input.`,name:"mlp_ratio"},{anchor:"transformers.MobileViTConfig.expand_ratio",description:`<strong>expand_ratio</strong> (<code>float</code>, <em>optional</em>, defaults to 4.0) &#x2014;
Expansion factor for the MobileNetv2 layers.`,name:"expand_ratio"},{anchor:"transformers.MobileViTConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code> or <code>function</code>, <em>optional</em>, defaults to <code>&quot;silu&quot;</code>) &#x2014;
The non-linear activation function (function or string) in the Transformer encoder and convolution layers.`,name:"hidden_act"},{anchor:"transformers.MobileViTConfig.conv_kernel_size",description:`<strong>conv_kernel_size</strong> (<code>int</code>, <em>optional</em>, defaults to 3) &#x2014;
The size of the convolutional kernel in the MobileViT layer.`,name:"conv_kernel_size"},{anchor:"transformers.MobileViTConfig.output_stride",description:`<strong>output_stride</strong> (<code>int</code>, <code>optional</code>, defaults to 32) &#x2014;
The ratio of the spatial resolution of the output to the resolution of the input image.`,name:"output_stride"},{anchor:"transformers.MobileViTConfig.hidden_dropout_prob",description:`<strong>hidden_dropout_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The dropout probabilitiy for all fully connected layers in the Transformer encoder.`,name:"hidden_dropout_prob"},{anchor:"transformers.MobileViTConfig.attention_probs_dropout_prob",description:`<strong>attention_probs_dropout_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout ratio for the attention probabilities.`,name:"attention_probs_dropout_prob"},{anchor:"transformers.MobileViTConfig.classifier_dropout_prob",description:`<strong>classifier_dropout_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The dropout ratio for attached classifiers.`,name:"classifier_dropout_prob"},{anchor:"transformers.MobileViTConfig.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.MobileViTConfig.layer_norm_eps",description:`<strong>layer_norm_eps</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-5) &#x2014;
The epsilon used by the layer normalization layers.`,name:"layer_norm_eps"},{anchor:"transformers.MobileViTConfig.qkv_bias",description:`<strong>qkv_bias</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to add a bias to the queries, keys and values.`,name:"qkv_bias"},{anchor:"transformers.MobileViTConfig.aspp_out_channels",description:`<strong>aspp_out_channels</strong> (<code>int</code>, <code>optional</code>, defaults to 256) &#x2014;
Number of output channels used in the ASPP layer for semantic segmentation.`,name:"aspp_out_channels"},{anchor:"transformers.MobileViTConfig.atrous_rates",description:`<strong>atrous_rates</strong> (<code>List[int]</code>, <em>optional</em>, defaults to <code>[6, 12, 18]</code>) &#x2014;
Dilation (atrous) factors used in the ASPP layer for semantic segmentation.`,name:"atrous_rates"},{anchor:"transformers.MobileViTConfig.aspp_dropout_prob",description:`<strong>aspp_dropout_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The dropout ratio for the ASPP layer for semantic segmentation.`,name:"aspp_dropout_prob"},{anchor:"transformers.MobileViTConfig.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/v4.34.0/src/transformers/models/mobilevit/configuration_mobilevit.py#L46"}}),ge=new At({props:{anchor:"transformers.MobileViTConfig.example",$$slots:{default:[vr]},$$scope:{ctx:x}}}),bt=new D({}),_t=new U({props:{name:"class transformers.MobileViTFeatureExtractor",anchor:"transformers.MobileViTFeatureExtractor",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/mobilevit/feature_extraction_mobilevit.py#L26"}}),vt=new U({props:{name:"__call__",anchor:"transformers.MobileViTFeatureExtractor.__call__",parameters:[{name:"images",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/image_processing_utils.py#L544"}}),Tt=new U({props:{name:"post_process_semantic_segmentation",anchor:"transformers.MobileViTFeatureExtractor.post_process_semantic_segmentation",parameters:[{name:"outputs",val:""},{name:"target_sizes",val:": typing.List[typing.Tuple] = None"}],parametersDescription:[{anchor:"transformers.MobileViTFeatureExtractor.post_process_semantic_segmentation.outputs",description:`<strong>outputs</strong> (<a href="/docs/transformers/v4.34.0/en/model_doc/mobilevit#transformers.MobileViTForSemanticSegmentation">MobileViTForSemanticSegmentation</a>) &#x2014;
Raw outputs of the model.`,name:"outputs"},{anchor:"transformers.MobileViTFeatureExtractor.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/v4.34.0/src/transformers/models/mobilevit/image_processing_mobilevit.py#L303",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>
`}}),Mt=new D({}),yt=new U({props:{name:"class transformers.MobileViTImageProcessor",anchor:"transformers.MobileViTImageProcessor",parameters:[{name:"do_resize",val:": bool = True"},{name:"size",val:": typing.Dict[str, int] = None"},{name:"resample",val:": Resampling = <Resampling.BILINEAR: 2>"},{name:"do_rescale",val:": bool = True"},{name:"rescale_factor",val:": typing.Union[int, float] = 0.00392156862745098"},{name:"do_center_crop",val:": bool = True"},{name:"crop_size",val:": typing.Dict[str, int] = None"},{name:"do_flip_channel_order",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.MobileViTImageProcessor.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 the
<code>do_resize</code> parameter in the <code>preprocess</code> method.`,name:"do_resize"},{anchor:"transformers.MobileViTImageProcessor.size",description:`<strong>size</strong> (<code>Dict[str, int]</code> <em>optional</em>, defaults to <code>{&quot;shortest_edge&quot; -- 224}</code>):
Controls the size of the output image after resizing. Can be overridden by the <code>size</code> parameter in the
<code>preprocess</code> method.`,name:"size"},{anchor:"transformers.MobileViTImageProcessor.resample",description:`<strong>resample</strong> (<code>PILImageResampling</code>, <em>optional</em>, defaults to <code>PILImageResampling.BILINEAR</code>) &#x2014;
Defines the 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.MobileViTImageProcessor.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.MobileViTImageProcessor.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.`,name:"rescale_factor"},{anchor:"transformers.MobileViTImageProcessor.do_center_crop",description:`<strong>do_center_crop</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to crop the input at the center. 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.MobileViTImageProcessor.crop_size",description:`<strong>crop_size</strong> (<code>Dict[str, int]</code>, <em>optional</em>, defaults to <code>{&quot;height&quot; -- 256, &quot;width&quot;: 256}</code>):
Desired output size <code>(size[&quot;height&quot;], size[&quot;width&quot;])</code> when applying center-cropping. Can be overridden by
the <code>crop_size</code> parameter in the <code>preprocess</code> method.`,name:"crop_size"},{anchor:"transformers.MobileViTImageProcessor.do_flip_channel_order",description:`<strong>do_flip_channel_order</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to flip the color channels from RGB to BGR. Can be overridden by the <code>do_flip_channel_order</code>
parameter in the <code>preprocess</code> method.`,name:"do_flip_channel_order"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/mobilevit/image_processing_mobilevit.py#L51"}}),wt=new U({props:{name:"preprocess",anchor:"transformers.MobileViTImageProcessor.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:": bool = None"},{name:"size",val:": typing.Dict[str, int] = None"},{name:"resample",val:": Resampling = None"},{name:"do_rescale",val:": bool = None"},{name:"rescale_factor",val:": float = None"},{name:"do_center_crop",val:": bool = None"},{name:"crop_size",val:": typing.Dict[str, int] = None"},{name:"do_flip_channel_order",val:": bool = None"},{name:"return_tensors",val:": typing.Union[str, transformers.utils.generic.TensorType, NoneType] = None"},{name:"data_format",val:": 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.MobileViTImageProcessor.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.MobileViTImageProcessor.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.MobileViTImageProcessor.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.`,name:"size"},{anchor:"transformers.MobileViTImageProcessor.preprocess.resample",description:`<strong>resample</strong> (<code>int</code>, <em>optional</em>, defaults to <code>self.resample</code>) &#x2014;
Resampling filter to use if resizing the image. This can be one of the enum <code>PILImageResampling</code>, Only
has an effect if <code>do_resize</code> is set to <code>True</code>.`,name:"resample"},{anchor:"transformers.MobileViTImageProcessor.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 by rescale factor.`,name:"do_rescale"},{anchor:"transformers.MobileViTImageProcessor.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.MobileViTImageProcessor.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.MobileViTImageProcessor.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 if <code>do_center_crop</code> is set to <code>True</code>.`,name:"crop_size"},{anchor:"transformers.MobileViTImageProcessor.preprocess.do_flip_channel_order",description:`<strong>do_flip_channel_order</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_flip_channel_order</code>) &#x2014;
Whether to flip the channel order of the image.`,name:"do_flip_channel_order"},{anchor:"transformers.MobileViTImageProcessor.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.MobileViTImageProcessor.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>ChannelDimension.FIRST</code>: image in (num_channels, height, width) format.</li>
<li><code>ChannelDimension.LAST</code>: image in (height, width, num_channels) format.</li>
</ul>`,name:"data_format"},{anchor:"transformers.MobileViTImageProcessor.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/v4.34.0/src/transformers/models/mobilevit/image_processing_mobilevit.py#L172"}}),$t=new U({props:{name:"post_process_semantic_segmentation",anchor:"transformers.MobileViTImageProcessor.post_process_semantic_segmentation",parameters:[{name:"outputs",val:""},{name:"target_sizes",val:": typing.List[typing.Tuple] = None"}],parametersDescription:[{anchor:"transformers.MobileViTImageProcessor.post_process_semantic_segmentation.outputs",description:`<strong>outputs</strong> (<a href="/docs/transformers/v4.34.0/en/model_doc/mobilevit#transformers.MobileViTForSemanticSegmentation">MobileViTForSemanticSegmentation</a>) &#x2014;
Raw outputs of the model.`,name:"outputs"},{anchor:"transformers.MobileViTImageProcessor.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/v4.34.0/src/transformers/models/mobilevit/image_processing_mobilevit.py#L303",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>
`}}),Vt=new D({}),Ct=new U({props:{name:"class transformers.MobileViTModel",anchor:"transformers.MobileViTModel",parameters:[{name:"config",val:": MobileViTConfig"},{name:"expand_output",val:": bool = True"}],parametersDescription:[{anchor:"transformers.MobileViTModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.34.0/en/model_doc/mobilevit#transformers.MobileViTConfig">MobileViTConfig</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/v4.34.0/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/v4.34.0/src/transformers/models/mobilevit/modeling_mobilevit.py#L708"}}),xt=new U({props:{name:"forward",anchor:"transformers.MobileViTModel.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.MobileViTModel.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/v4.34.0/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/v4.34.0/en/model_doc/deit#transformers.DeiTFeatureExtractor.__call__">MobileViTImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.MobileViTModel.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.MobileViTModel.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/v4.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/mobilevit/modeling_mobilevit.py#L745",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/v4.34.0/en/model_doc/mobilevit#transformers.MobileViTConfig"
>MobileViTConfig</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>) — 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>) — 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>) — 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>
`}}),$e=new he({props:{$$slots:{default:[Tr]},$$scope:{ctx:x}}}),Ve=new At({props:{anchor:"transformers.MobileViTModel.forward.example",$$slots:{default:[Mr]},$$scope:{ctx:x}}}),Ft=new D({}),jt=new U({props:{name:"class transformers.MobileViTForImageClassification",anchor:"transformers.MobileViTForImageClassification",parameters:[{name:"config",val:": MobileViTConfig"}],parametersDescription:[{anchor:"transformers.MobileViTForImageClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.34.0/en/model_doc/mobilevit#transformers.MobileViTConfig">MobileViTConfig</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/v4.34.0/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/v4.34.0/src/transformers/models/mobilevit/modeling_mobilevit.py#L802"}}),It=new U({props:{name:"forward",anchor:"transformers.MobileViTForImageClassification.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.MobileViTForImageClassification.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/v4.34.0/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/v4.34.0/en/model_doc/deit#transformers.DeiTFeatureExtractor.__call__">MobileViTImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.MobileViTForImageClassification.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.MobileViTForImageClassification.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/v4.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.MobileViTForImageClassification.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/v4.34.0/src/transformers/models/mobilevit/modeling_mobilevit.py#L818",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.34.0/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/v4.34.0/en/model_doc/mobilevit#transformers.MobileViTConfig"
>MobileViTConfig</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) — 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>) — 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>) — 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/v4.34.0/en/main_classes/output#transformers.modeling_outputs.ImageClassifierOutputWithNoAttention"
>transformers.modeling_outputs.ImageClassifierOutputWithNoAttention</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),xe=new he({props:{$$slots:{default:[yr]},$$scope:{ctx:x}}}),Fe=new At({props:{anchor:"transformers.MobileViTForImageClassification.forward.example",$$slots:{default:[wr]},$$scope:{ctx:x}}}),Ut=new D({}),kt=new U({props:{name:"class transformers.MobileViTForSemanticSegmentation",anchor:"transformers.MobileViTForSemanticSegmentation",parameters:[{name:"config",val:": MobileViTConfig"}],parametersDescription:[{anchor:"transformers.MobileViTForSemanticSegmentation.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.34.0/en/model_doc/mobilevit#transformers.MobileViTConfig">MobileViTConfig</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/v4.34.0/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/v4.34.0/src/transformers/models/mobilevit/modeling_mobilevit.py#L997"}}),Zt=new U({props:{name:"forward",anchor:"transformers.MobileViTForSemanticSegmentation.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.MobileViTForSemanticSegmentation.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/v4.34.0/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/v4.34.0/en/model_doc/deit#transformers.DeiTFeatureExtractor.__call__">MobileViTImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.MobileViTForSemanticSegmentation.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.MobileViTForSemanticSegmentation.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/v4.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.MobileViTForSemanticSegmentation.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/v4.34.0/src/transformers/models/mobilevit/modeling_mobilevit.py#L1008",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.34.0/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/v4.34.0/en/model_doc/mobilevit#transformers.MobileViTConfig"
>MobileViTConfig</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) — 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>) — 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>) — 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>) — 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/v4.34.0/en/main_classes/output#transformers.modeling_outputs.SemanticSegmenterOutput"
>transformers.modeling_outputs.SemanticSegmenterOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Ie=new he({props:{$$slots:{default:[$r]},$$scope:{ctx:x}}}),Ue=new At({props:{anchor:"transformers.MobileViTForSemanticSegmentation.forward.example",$$slots:{default:[Vr]},$$scope:{ctx:x}}}),Jt=new D({}),Wt=new U({props:{name:"class transformers.TFMobileViTModel",anchor:"transformers.TFMobileViTModel",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFMobileViTModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.34.0/en/model_doc/mobilevit#transformers.MobileViTConfig">MobileViTConfig</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/v4.34.0/en/main_classes/model#transformers.TFPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/mobilevit/modeling_tf_mobilevit.py#L800"}}),Ze=new he({props:{$$slots:{default:[Cr]},$$scope:{ctx:x}}}),zt=new U({props:{name:"call",anchor:"transformers.TFMobileViTModel.call",parameters:[{name:"pixel_values",val:": tf.Tensor | None = None"},{name:"output_hidden_states",val:": Optional[bool] = None"},{name:"return_dict",val:": Optional[bool] = None"},{name:"training",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TFMobileViTModel.call.pixel_values",description:`<strong>pixel_values</strong> (<code>np.ndarray</code>, <code>tf.Tensor</code>, <code>List[tf.Tensor]</code>, <code>Dict[str, tf.Tensor]</code> or <code>Dict[str, np.ndarray]</code> and each example must have the shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Pixel values. Pixel values can be obtained using <a href="/docs/transformers/v4.34.0/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/v4.34.0/en/model_doc/deit#transformers.DeiTFeatureExtractor.__call__">MobileViTImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.TFMobileViTModel.call.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. This argument can be used only in eager mode, in graph mode the value in the config will be
used instead.`,name:"output_hidden_states"},{anchor:"transformers.TFMobileViTModel.call.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple. This argument can be used in
eager mode, in graph mode the value will always be set to True.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/mobilevit/modeling_tf_mobilevit.py#L808",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.34.0/en/main_classes/output#transformers.modeling_tf_outputs.TFBaseModelOutputWithPooling"
>transformers.modeling_tf_outputs.TFBaseModelOutputWithPooling</a> or a tuple of <code>tf.Tensor</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/v4.34.0/en/model_doc/mobilevit#transformers.MobileViTConfig"
>MobileViTConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>last_hidden_state</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>) — Sequence of hidden-states at the output of the last layer of the model.</p>
</li>
<li>
<p><strong>pooler_output</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, hidden_size)</code>) — Last layer hidden-state of the first token of the sequence (classification token) further processed by a
Linear layer and a Tanh activation function. The Linear layer weights are trained from the next sentence
prediction (classification) objective during pretraining.</p>
<p>This output is usually <em>not</em> a good summary of the semantic content of the input, you’re often better with
averaging or pooling the sequence of hidden-states for the whole input sequence.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) — Tuple of <code>tf.Tensor</code> (one for the output of the embeddings + one for the output of each layer) of shape
<code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) — Tuple of <code>tf.Tensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, 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/v4.34.0/en/main_classes/output#transformers.modeling_tf_outputs.TFBaseModelOutputWithPooling"
>transformers.modeling_tf_outputs.TFBaseModelOutputWithPooling</a> or <code>tuple(tf.Tensor)</code></p>
`}}),Je=new he({props:{$$slots:{default:[xr]},$$scope:{ctx:x}}}),We=new At({props:{anchor:"transformers.TFMobileViTModel.call.example",$$slots:{default:[Fr]},$$scope:{ctx:x}}}),St=new D({}),Nt=new U({props:{name:"class transformers.TFMobileViTForImageClassification",anchor:"transformers.TFMobileViTForImageClassification",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFMobileViTForImageClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.34.0/en/model_doc/mobilevit#transformers.MobileViTConfig">MobileViTConfig</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/v4.34.0/en/main_classes/model#transformers.TFPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/mobilevit/modeling_tf_mobilevit.py#L835"}}),Se=new he({props:{$$slots:{default:[jr]},$$scope:{ctx:x}}}),Pt=new U({props:{name:"call",anchor:"transformers.TFMobileViTForImageClassification.call",parameters:[{name:"pixel_values",val:": tf.Tensor | None = None"},{name:"output_hidden_states",val:": Optional[bool] = None"},{name:"labels",val:": tf.Tensor | None = None"},{name:"return_dict",val:": Optional[bool] = None"},{name:"training",val:": Optional[bool] = False"}],parametersDescription:[{anchor:"transformers.TFMobileViTForImageClassification.call.pixel_values",description:`<strong>pixel_values</strong> (<code>np.ndarray</code>, <code>tf.Tensor</code>, <code>List[tf.Tensor]</code>, <code>Dict[str, tf.Tensor]</code> or <code>Dict[str, np.ndarray]</code> and each example must have the shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Pixel values. Pixel values can be obtained using <a href="/docs/transformers/v4.34.0/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/v4.34.0/en/model_doc/deit#transformers.DeiTFeatureExtractor.__call__">MobileViTImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.TFMobileViTForImageClassification.call.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. This argument can be used only in eager mode, in graph mode the value in the config will be
used instead.`,name:"output_hidden_states"},{anchor:"transformers.TFMobileViTForImageClassification.call.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple. This argument can be used in
eager mode, in graph mode the value will always be set to True.`,name:"return_dict"},{anchor:"transformers.TFMobileViTForImageClassification.call.labels",description:`<strong>labels</strong> (<code>tf.Tensor</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/v4.34.0/src/transformers/models/mobilevit/modeling_tf_mobilevit.py#L848",returnDescription:`
<p>A <code>transformers.modeling_tf_outputs.TFImageClassifierOutputWithNoAttention</code> or a tuple of <code>tf.Tensor</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/v4.34.0/en/model_doc/mobilevit#transformers.MobileViTConfig"
>MobileViTConfig</a>) and inputs.</p>
<ul>
<li><strong>loss</strong> (<code>tf.Tensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>labels</code> is provided) — Classification (or regression if config.num_labels==1) loss.</li>
<li><strong>logits</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, config.num_labels)</code>) — Classification (or regression if config.num_labels==1) scores (before SoftMax).</li>
<li><strong>hidden_states</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) — Tuple of <code>tf.Tensor</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><code>transformers.modeling_tf_outputs.TFImageClassifierOutputWithNoAttention</code> or <code>tuple(tf.Tensor)</code></p>
`}}),Ne=new he({props:{$$slots:{default:[Ir]},$$scope:{ctx:x}}}),Pe=new At({props:{anchor:"transformers.TFMobileViTForImageClassification.call.example",$$slots:{default:[Ur]},$$scope:{ctx:x}}}),Et=new D({}),Rt=new U({props:{name:"class transformers.TFMobileViTForSemanticSegmentation",anchor:"transformers.TFMobileViTForSemanticSegmentation",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFMobileViTForSemanticSegmentation.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.34.0/en/model_doc/mobilevit#transformers.MobileViTConfig">MobileViTConfig</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/v4.34.0/en/main_classes/model#transformers.TFPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/mobilevit/modeling_tf_mobilevit.py#L1011"}}),Re=new he({props:{$$slots:{default:[kr]},$$scope:{ctx:x}}}),Gt=new U({props:{name:"call",anchor:"transformers.TFMobileViTForSemanticSegmentation.call",parameters:[{name:"pixel_values",val:": tf.Tensor | None = None"},{name:"labels",val:": tf.Tensor | None = None"},{name:"output_hidden_states",val:": Optional[bool] = None"},{name:"return_dict",val:": Optional[bool] = None"},{name:"training",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TFMobileViTForSemanticSegmentation.call.pixel_values",description:`<strong>pixel_values</strong> (<code>np.ndarray</code>, <code>tf.Tensor</code>, <code>List[tf.Tensor]</code>, <code>Dict[str, tf.Tensor]</code> or <code>Dict[str, np.ndarray]</code> and each example must have the shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Pixel values. Pixel values can be obtained using <a href="/docs/transformers/v4.34.0/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/v4.34.0/en/model_doc/deit#transformers.DeiTFeatureExtractor.__call__">MobileViTImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.TFMobileViTForSemanticSegmentation.call.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. This argument can be used only in eager mode, in graph mode the value in the config will be
used instead.`,name:"output_hidden_states"},{anchor:"transformers.TFMobileViTForSemanticSegmentation.call.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple. This argument can be used in
eager mode, in graph mode the value will always be set to True.`,name:"return_dict"},{anchor:"transformers.TFMobileViTForSemanticSegmentation.call.labels",description:`<strong>labels</strong> (<code>tf.Tensor</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/v4.34.0/src/transformers/models/mobilevit/modeling_tf_mobilevit.py#L1039",returnDescription:`
<p>A <code>transformers.modeling_tf_outputs.TFSemanticSegmenterOutputWithNoAttention</code> or a tuple of <code>tf.Tensor</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/v4.34.0/en/model_doc/mobilevit#transformers.MobileViTConfig"
>MobileViTConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>tf.Tensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>labels</code> is provided) — Classification (or regression if config.num_labels==1) loss.</p>
</li>
<li>
<p><strong>logits</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, config.num_labels, logits_height, logits_width)</code>) — 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(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) — Tuple of <code>tf.Tensor</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>
</ul>
`,returnType:`
<p><code>transformers.modeling_tf_outputs.TFSemanticSegmenterOutputWithNoAttention</code> or <code>tuple(tf.Tensor)</code></p>
`}}),Ge=new he({props:{$$slots:{default:[Zr]},$$scope:{ctx:x}}}),He=new At({props:{anchor:"transformers.TFMobileViTForSemanticSegmentation.call.example",$$slots:{default:[Jr]},$$scope:{ctx:x}}}),{c(){o=n("meta"),V=i(),p=n("p"),m=i(),$=n("h1"),r=n("a"),g=n("span"),_(z.$$.fragment),k=i(),j=n("span"),j.textContent=O,I=i(),F=n("h2"),Z=n("a"),f=n("span"),_(C.$$.fragment),As=i(),Yt=n("span"),Yt.textContent=na,os=i(),et=n("p"),et.innerHTML=aa,ss=i(),tt=n("p"),tt.textContent=ra,ns=i(),ot=n("p"),ot.innerHTML=ia,as=i(),st=n("p"),st.textContent=la,rs=i(),nt=n("ul"),nt.innerHTML=ca,is=i(),_(at.$$.fragment),ls=i(),rt=n("p"),rt.innerHTML=da,cs=i(),it=n("p"),it.innerHTML=ma,ds=i(),se=n("h2"),fe=n("a"),Wo=n("span"),_(lt.$$.fragment),Ys=i(),Qt=n("span"),Qt.textContent=pa,ms=i(),ct=n("p"),ct.textContent=ha,ps=i(),_(dt.$$.fragment),hs=i(),mt=n("ul"),mt.innerHTML=fa,fs=i(),pt=n("p"),pt.innerHTML=ua,us=i(),ht=n("ul"),ht.innerHTML=ga,gs=i(),ft=n("p"),ft.textContent=ba,bs=i(),ne=n("h2"),ue=n("a"),zo=n("span"),_(ut.$$.fragment),Qs=i(),Dt=n("span"),Dt.textContent=_a,_s=i(),P=n("div"),_(gt.$$.fragment),Ds=i(),Ot=n("p"),Ot.innerHTML=va,Os=i(),Kt=n("p"),Kt.innerHTML=Ta,Ks=i(),_(ge.$$.fragment),vs=i(),ae=n("h2"),be=n("a"),So=n("span"),_(bt.$$.fragment),en=i(),eo=n("span"),eo.textContent=Ma,Ts=i(),K=n("div"),_(_t.$$.fragment),tn=i(),_e=n("div"),_(vt.$$.fragment),on=i(),to=n("p"),to.textContent=ya,sn=i(),ve=n("div"),_(Tt.$$.fragment),nn=i(),oo=n("p"),oo.innerHTML=wa,Ms=i(),re=n("h2"),Te=n("a"),No=n("span"),_(Mt.$$.fragment),an=i(),so=n("span"),so.textContent=$a,ys=i(),E=n("div"),_(yt.$$.fragment),rn=i(),no=n("p"),no.textContent=Va,ln=i(),Me=n("div"),_(wt.$$.fragment),cn=i(),ao=n("p"),ao.textContent=Ca,dn=i(),ye=n("div"),_($t.$$.fragment),mn=i(),ro=n("p"),ro.innerHTML=xa,ws=i(),ie=n("h2"),we=n("a"),Po=n("span"),_(Vt.$$.fragment),pn=i(),io=n("span"),io.textContent=Fa,$s=i(),ee=n("div"),_(Ct.$$.fragment),hn=i(),lo=n("p"),lo.innerHTML=ja,fn=i(),H=n("div"),_(xt.$$.fragment),un=i(),co=n("p"),co.innerHTML=Ia,gn=i(),_($e.$$.fragment),bn=i(),_(Ve.$$.fragment),Vs=i(),le=n("h2"),Ce=n("a"),Eo=n("span"),_(Ft.$$.fragment),_n=i(),mo=n("span"),mo.textContent=Ua,Cs=i(),R=n("div"),_(jt.$$.fragment),vn=i(),po=n("p"),po.textContent=ka,Tn=i(),ho=n("p"),ho.innerHTML=Za,Mn=i(),L=n("div"),_(It.$$.fragment),yn=i(),fo=n("p"),fo.innerHTML=Ja,wn=i(),_(xe.$$.fragment),$n=i(),_(Fe.$$.fragment),xs=i(),ce=n("h2"),je=n("a"),Ro=n("span"),_(Ut.$$.fragment),Vn=i(),uo=n("span"),uo.textContent=Wa,Fs=i(),G=n("div"),_(kt.$$.fragment),Cn=i(),go=n("p"),go.textContent=za,xn=i(),bo=n("p"),bo.innerHTML=Sa,Fn=i(),B=n("div"),_(Zt.$$.fragment),jn=i(),_o=n("p"),_o.innerHTML=Na,In=i(),_(Ie.$$.fragment),Un=i(),_(Ue.$$.fragment),js=i(),de=n("h2"),ke=n("a"),Go=n("span"),_(Jt.$$.fragment),kn=i(),vo=n("span"),vo.textContent=Pa,Is=i(),N=n("div"),_(Wt.$$.fragment),Zn=i(),To=n("p"),To.innerHTML=Ea,Jn=i(),Mo=n("p"),Mo.innerHTML=Ra,Wn=i(),_(Ze.$$.fragment),zn=i(),q=n("div"),_(zt.$$.fragment),Sn=i(),yo=n("p"),yo.innerHTML=Ga,Nn=i(),_(Je.$$.fragment),Pn=i(),_(We.$$.fragment),Us=i(),me=n("h2"),ze=n("a"),Ho=n("span"),_(St.$$.fragment),En=i(),wo=n("span"),wo.textContent=Ha,ks=i(),J=n("div"),_(Nt.$$.fragment),Rn=i(),$o=n("p"),$o.textContent=La,Gn=i(),Vo=n("p"),Vo.innerHTML=Ba,Hn=i(),Co=n("p"),Co.innerHTML=qa,Ln=i(),_(Se.$$.fragment),Bn=i(),X=n("div"),_(Pt.$$.fragment),qn=i(),xo=n("p"),xo.innerHTML=Xa,Xn=i(),_(Ne.$$.fragment),An=i(),_(Pe.$$.fragment),Zs=i(),pe=n("h2"),Ee=n("a"),Lo=n("span"),_(Et.$$.fragment),Yn=i(),Fo=n("span"),Fo.textContent=Aa,Js=i(),W=n("div"),_(Rt.$$.fragment),Qn=i(),jo=n("p"),jo.textContent=Ya,Dn=i(),Io=n("p"),Io.innerHTML=Qa,On=i(),Uo=n("p"),Uo.innerHTML=Da,Kn=i(),_(Re.$$.fragment),ea=i(),A=n("div"),_(Gt.$$.fragment),ta=i(),ko=n("p"),ko.innerHTML=Oa,oa=i(),_(Ge.$$.fragment),sa=i(),_(He.$$.fragment),Ws=i(),Bo=n("p"),this.h()},l(e){const d=br("svelte-1phssyn",document.head);o=a(d,"META",{name:!0,content:!0}),d.forEach(t),V=l(e),p=a(e,"P",{}),b(p).forEach(t),m=l(e),$=a(e,"H1",{class:!0});var Ht=b($);r=a(Ht,"A",{id:!0,class:!0,href:!0});var qo=b(r);g=a(qo,"SPAN",{});var Xo=b(g);v(z.$$.fragment,Xo),Xo.forEach(t),qo.forEach(t),k=l(Ht),j=a(Ht,"SPAN",{"data-svelte-h":!0}),h(j)!=="svelte-dln8ga"&&(j.textContent=O),Ht.forEach(t),I=l(e),F=a(e,"H2",{class:!0});var Lt=b(F);Z=a(Lt,"A",{id:!0,class:!0,href:!0});var Ao=b(Z);f=a(Ao,"SPAN",{});var Yo=b(f);v(C.$$.fragment,Yo),Yo.forEach(t),Ao.forEach(t),As=l(Lt),Yt=a(Lt,"SPAN",{"data-svelte-h":!0}),h(Yt)!=="svelte-1jsw1pg"&&(Yt.textContent=na),Lt.forEach(t),os=l(e),et=a(e,"P",{"data-svelte-h":!0}),h(et)!=="svelte-apjtbw"&&(et.innerHTML=aa),ss=l(e),tt=a(e,"P",{"data-svelte-h":!0}),h(tt)!=="svelte-vfdo9a"&&(tt.textContent=ra),ns=l(e),ot=a(e,"P",{"data-svelte-h":!0}),h(ot)!=="svelte-1sl3ue4"&&(ot.innerHTML=ia),as=l(e),st=a(e,"P",{"data-svelte-h":!0}),h(st)!=="svelte-axv494"&&(st.textContent=la),rs=l(e),nt=a(e,"UL",{"data-svelte-h":!0}),h(nt)!=="svelte-sdnrzg"&&(nt.innerHTML=ca),is=l(e),v(at.$$.fragment,e),ls=l(e),rt=a(e,"P",{"data-svelte-h":!0}),h(rt)!=="svelte-j7j4pu"&&(rt.innerHTML=da),cs=l(e),it=a(e,"P",{"data-svelte-h":!0}),h(it)!=="svelte-wh05f9"&&(it.innerHTML=ma),ds=l(e),se=a(e,"H2",{class:!0});var Bt=b(se);fe=a(Bt,"A",{id:!0,class:!0,href:!0});var Qo=b(fe);Wo=a(Qo,"SPAN",{});var Do=b(Wo);v(lt.$$.fragment,Do),Do.forEach(t),Qo.forEach(t),Ys=l(Bt),Qt=a(Bt,"SPAN",{"data-svelte-h":!0}),h(Qt)!=="svelte-w4zzv6"&&(Qt.textContent=pa),Bt.forEach(t),ms=l(e),ct=a(e,"P",{"data-svelte-h":!0}),h(ct)!=="svelte-1vdwjx8"&&(ct.textContent=ha),ps=l(e),v(dt.$$.fragment,e),hs=l(e),mt=a(e,"UL",{"data-svelte-h":!0}),h(mt)!=="svelte-p8cmt0"&&(mt.innerHTML=fa),fs=l(e),pt=a(e,"P",{"data-svelte-h":!0}),h(pt)!=="svelte-1qspi63"&&(pt.innerHTML=ua),us=l(e),ht=a(e,"UL",{"data-svelte-h":!0}),h(ht)!=="svelte-bnel3y"&&(ht.innerHTML=ga),gs=l(e),ft=a(e,"P",{"data-svelte-h":!0}),h(ft)!=="svelte-1xesile"&&(ft.textContent=ba),bs=l(e),ne=a(e,"H2",{class:!0});var qt=b(ne);ue=a(qt,"A",{id:!0,class:!0,href:!0});var Oo=b(ue);zo=a(Oo,"SPAN",{});var Ko=b(zo);v(ut.$$.fragment,Ko),Ko.forEach(t),Oo.forEach(t),Qs=l(qt),Dt=a(qt,"SPAN",{"data-svelte-h":!0}),h(Dt)!=="svelte-ni0xao"&&(Dt.textContent=_a),qt.forEach(t),_s=l(e),P=a(e,"DIV",{class:!0});var te=b(P);v(gt.$$.fragment,te),Ds=l(te),Ot=a(te,"P",{"data-svelte-h":!0}),h(Ot)!=="svelte-qrjlci"&&(Ot.innerHTML=va),Os=l(te),Kt=a(te,"P",{"data-svelte-h":!0}),h(Kt)!=="svelte-10kqkkl"&&(Kt.innerHTML=Ta),Ks=l(te),v(ge.$$.fragment,te),te.forEach(t),vs=l(e),ae=a(e,"H2",{class:!0});var Xt=b(ae);be=a(Xt,"A",{id:!0,class:!0,href:!0});var es=b(be);So=a(es,"SPAN",{});var ts=b(So);v(bt.$$.fragment,ts),ts.forEach(t),es.forEach(t),en=l(Xt),eo=a(Xt,"SPAN",{"data-svelte-h":!0}),h(eo)!=="svelte-1qychro"&&(eo.textContent=Ma),Xt.forEach(t),Ts=l(e),K=a(e,"DIV",{class:!0});var Zo=b(K);v(_t.$$.fragment,Zo),tn=l(Zo),_e=a(Zo,"DIV",{class:!0});var Ss=b(_e);v(vt.$$.fragment,Ss),on=l(Ss),to=a(Ss,"P",{"data-svelte-h":!0}),h(to)!=="svelte-khengj"&&(to.textContent=ya),Ss.forEach(t),sn=l(Zo),ve=a(Zo,"DIV",{class:!0});var Ns=b(ve);v(Tt.$$.fragment,Ns),nn=l(Ns),oo=a(Ns,"P",{"data-svelte-h":!0}),h(oo)!=="svelte-1av9go7"&&(oo.innerHTML=wa),Ns.forEach(t),Zo.forEach(t),Ms=l(e),re=a(e,"H2",{class:!0});var Ps=b(re);Te=a(Ps,"A",{id:!0,class:!0,href:!0});var Ka=b(Te);No=a(Ka,"SPAN",{});var er=b(No);v(Mt.$$.fragment,er),er.forEach(t),Ka.forEach(t),an=l(Ps),so=a(Ps,"SPAN",{"data-svelte-h":!0}),h(so)!=="svelte-h5p0el"&&(so.textContent=$a),Ps.forEach(t),ys=l(e),E=a(e,"DIV",{class:!0});var Le=b(E);v(yt.$$.fragment,Le),rn=l(Le),no=a(Le,"P",{"data-svelte-h":!0}),h(no)!=="svelte-7gbr4d"&&(no.textContent=Va),ln=l(Le),Me=a(Le,"DIV",{class:!0});var Es=b(Me);v(wt.$$.fragment,Es),cn=l(Es),ao=a(Es,"P",{"data-svelte-h":!0}),h(ao)!=="svelte-1x3yxsa"&&(ao.textContent=Ca),Es.forEach(t),dn=l(Le),ye=a(Le,"DIV",{class:!0});var Rs=b(ye);v($t.$$.fragment,Rs),mn=l(Rs),ro=a(Rs,"P",{"data-svelte-h":!0}),h(ro)!=="svelte-1av9go7"&&(ro.innerHTML=xa),Rs.forEach(t),Le.forEach(t),ws=l(e),ie=a(e,"H2",{class:!0});var Gs=b(ie);we=a(Gs,"A",{id:!0,class:!0,href:!0});var tr=b(we);Po=a(tr,"SPAN",{});var or=b(Po);v(Vt.$$.fragment,or),or.forEach(t),tr.forEach(t),pn=l(Gs),io=a(Gs,"SPAN",{"data-svelte-h":!0}),h(io)!=="svelte-13paspf"&&(io.textContent=Fa),Gs.forEach(t),$s=l(e),ee=a(e,"DIV",{class:!0});var Jo=b(ee);v(Ct.$$.fragment,Jo),hn=l(Jo),lo=a(Jo,"P",{"data-svelte-h":!0}),h(lo)!=="svelte-1nu7yyb"&&(lo.innerHTML=ja),fn=l(Jo),H=a(Jo,"DIV",{class:!0});var Be=b(H);v(xt.$$.fragment,Be),un=l(Be),co=a(Be,"P",{"data-svelte-h":!0}),h(co)!=="svelte-1jxuayy"&&(co.innerHTML=Ia),gn=l(Be),v($e.$$.fragment,Be),bn=l(Be),v(Ve.$$.fragment,Be),Be.forEach(t),Jo.forEach(t),Vs=l(e),le=a(e,"H2",{class:!0});var Hs=b(le);Ce=a(Hs,"A",{id:!0,class:!0,href:!0});var sr=b(Ce);Eo=a(sr,"SPAN",{});var nr=b(Eo);v(Ft.$$.fragment,nr),nr.forEach(t),sr.forEach(t),_n=l(Hs),mo=a(Hs,"SPAN",{"data-svelte-h":!0}),h(mo)!=="svelte-j1tox6"&&(mo.textContent=Ua),Hs.forEach(t),Cs=l(e),R=a(e,"DIV",{class:!0});var qe=b(R);v(jt.$$.fragment,qe),vn=l(qe),po=a(qe,"P",{"data-svelte-h":!0}),h(po)!=="svelte-zljr1p"&&(po.textContent=ka),Tn=l(qe),ho=a(qe,"P",{"data-svelte-h":!0}),h(ho)!=="svelte-1gjh92c"&&(ho.innerHTML=Za),Mn=l(qe),L=a(qe,"DIV",{class:!0});var Xe=b(L);v(It.$$.fragment,Xe),yn=l(Xe),fo=a(Xe,"P",{"data-svelte-h":!0}),h(fo)!=="svelte-1elplae"&&(fo.innerHTML=Ja),wn=l(Xe),v(xe.$$.fragment,Xe),$n=l(Xe),v(Fe.$$.fragment,Xe),Xe.forEach(t),qe.forEach(t),xs=l(e),ce=a(e,"H2",{class:!0});var Ls=b(ce);je=a(Ls,"A",{id:!0,class:!0,href:!0});var ar=b(je);Ro=a(ar,"SPAN",{});var rr=b(Ro);v(Ut.$$.fragment,rr),rr.forEach(t),ar.forEach(t),Vn=l(Ls),uo=a(Ls,"SPAN",{"data-svelte-h":!0}),h(uo)!=="svelte-1rtdhgj"&&(uo.textContent=Wa),Ls.forEach(t),Fs=l(e),G=a(e,"DIV",{class:!0});var Ae=b(G);v(kt.$$.fragment,Ae),Cn=l(Ae),go=a(Ae,"P",{"data-svelte-h":!0}),h(go)!=="svelte-n2rd9e"&&(go.textContent=za),xn=l(Ae),bo=a(Ae,"P",{"data-svelte-h":!0}),h(bo)!=="svelte-1gjh92c"&&(bo.innerHTML=Sa),Fn=l(Ae),B=a(Ae,"DIV",{class:!0});var Ye=b(B);v(Zt.$$.fragment,Ye),jn=l(Ye),_o=a(Ye,"P",{"data-svelte-h":!0}),h(_o)!=="svelte-1yuxu0a"&&(_o.innerHTML=Na),In=l(Ye),v(Ie.$$.fragment,Ye),Un=l(Ye),v(Ue.$$.fragment,Ye),Ye.forEach(t),Ae.forEach(t),js=l(e),de=a(e,"H2",{class:!0});var Bs=b(de);ke=a(Bs,"A",{id:!0,class:!0,href:!0});var ir=b(ke);Go=a(ir,"SPAN",{});var lr=b(Go);v(Jt.$$.fragment,lr),lr.forEach(t),ir.forEach(t),kn=l(Bs),vo=a(Bs,"SPAN",{"data-svelte-h":!0}),h(vo)!=="svelte-14qzry5"&&(vo.textContent=Pa),Bs.forEach(t),Is=l(e),N=a(e,"DIV",{class:!0});var oe=b(N);v(Wt.$$.fragment,oe),Zn=l(oe),To=a(oe,"P",{"data-svelte-h":!0}),h(To)!=="svelte-53f7nr"&&(To.innerHTML=Ea),Jn=l(oe),Mo=a(oe,"P",{"data-svelte-h":!0}),h(Mo)!=="svelte-1ivrf8m"&&(Mo.innerHTML=Ra),Wn=l(oe),v(Ze.$$.fragment,oe),zn=l(oe),q=a(oe,"DIV",{class:!0});var Qe=b(q);v(zt.$$.fragment,Qe),Sn=l(Qe),yo=a(Qe,"P",{"data-svelte-h":!0}),h(yo)!=="svelte-1kbrfyu"&&(yo.innerHTML=Ga),Nn=l(Qe),v(Je.$$.fragment,Qe),Pn=l(Qe),v(We.$$.fragment,Qe),Qe.forEach(t),oe.forEach(t),Us=l(e),me=a(e,"H2",{class:!0});var qs=b(me);ze=a(qs,"A",{id:!0,class:!0,href:!0});var cr=b(ze);Ho=a(cr,"SPAN",{});var dr=b(Ho);v(St.$$.fragment,dr),dr.forEach(t),cr.forEach(t),En=l(qs),wo=a(qs,"SPAN",{"data-svelte-h":!0}),h(wo)!=="svelte-dev9wc"&&(wo.textContent=Ha),qs.forEach(t),ks=l(e),J=a(e,"DIV",{class:!0});var Y=b(J);v(Nt.$$.fragment,Y),Rn=l(Y),$o=a(Y,"P",{"data-svelte-h":!0}),h($o)!=="svelte-zljr1p"&&($o.textContent=La),Gn=l(Y),Vo=a(Y,"P",{"data-svelte-h":!0}),h(Vo)!=="svelte-1i0vt4o"&&(Vo.innerHTML=Ba),Hn=l(Y),Co=a(Y,"P",{"data-svelte-h":!0}),h(Co)!=="svelte-1ivrf8m"&&(Co.innerHTML=qa),Ln=l(Y),v(Se.$$.fragment,Y),Bn=l(Y),X=a(Y,"DIV",{class:!0});var De=b(X);v(Pt.$$.fragment,De),qn=l(De),xo=a(De,"P",{"data-svelte-h":!0}),h(xo)!=="svelte-1myhtrq"&&(xo.innerHTML=Xa),Xn=l(De),v(Ne.$$.fragment,De),An=l(De),v(Pe.$$.fragment,De),De.forEach(t),Y.forEach(t),Zs=l(e),pe=a(e,"H2",{class:!0});var Xs=b(pe);Ee=a(Xs,"A",{id:!0,class:!0,href:!0});var mr=b(Ee);Lo=a(mr,"SPAN",{});var pr=b(Lo);v(Et.$$.fragment,pr),pr.forEach(t),mr.forEach(t),Yn=l(Xs),Fo=a(Xs,"SPAN",{"data-svelte-h":!0}),h(Fo)!=="svelte-qofre5"&&(Fo.textContent=Aa),Xs.forEach(t),Js=l(e),W=a(e,"DIV",{class:!0});var Q=b(W);v(Rt.$$.fragment,Q),Qn=l(Q),jo=a(Q,"P",{"data-svelte-h":!0}),h(jo)!=="svelte-n2rd9e"&&(jo.textContent=Ya),Dn=l(Q),Io=a(Q,"P",{"data-svelte-h":!0}),h(Io)!=="svelte-1i0vt4o"&&(Io.innerHTML=Qa),On=l(Q),Uo=a(Q,"P",{"data-svelte-h":!0}),h(Uo)!=="svelte-1ivrf8m"&&(Uo.innerHTML=Da),Kn=l(Q),v(Re.$$.fragment,Q),ea=l(Q),A=a(Q,"DIV",{class:!0});var Oe=b(A);v(Gt.$$.fragment,Oe),ta=l(Oe),ko=a(Oe,"P",{"data-svelte-h":!0}),h(ko)!=="svelte-18rco8m"&&(ko.innerHTML=Oa),oa=l(Oe),v(Ge.$$.fragment,Oe),sa=l(Oe),v(He.$$.fragment,Oe),Oe.forEach(t),Q.forEach(t),Ws=l(e),Bo=a(e,"P",{}),b(Bo).forEach(t),this.h()},h(){u(o,"name","hf:doc:metadata"),u(o,"content",JSON.stringify(zr)),u(r,"id","mobilevit"),u(r,"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"),u(r,"href","#mobilevit"),u($,"class","relative group"),u(Z,"id","overview"),u(Z,"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"),u(Z,"href","#overview"),u(F,"class","relative group"),u(fe,"id","resources"),u(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"),u(fe,"href","#resources"),u(se,"class","relative group"),u(ue,"id","transformers.MobileViTConfig"),u(ue,"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"),u(ue,"href","#transformers.MobileViTConfig"),u(ne,"class","relative group"),u(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(be,"id","transformers.MobileViTFeatureExtractor"),u(be,"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"),u(be,"href","#transformers.MobileViTFeatureExtractor"),u(ae,"class","relative group"),u(_e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Te,"id","transformers.MobileViTImageProcessor"),u(Te,"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"),u(Te,"href","#transformers.MobileViTImageProcessor"),u(re,"class","relative group"),u(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(we,"id","transformers.MobileViTModel"),u(we,"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"),u(we,"href","#transformers.MobileViTModel"),u(ie,"class","relative group"),u(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Ce,"id","transformers.MobileViTForImageClassification"),u(Ce,"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"),u(Ce,"href","#transformers.MobileViTForImageClassification"),u(le,"class","relative group"),u(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(je,"id","transformers.MobileViTForSemanticSegmentation"),u(je,"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"),u(je,"href","#transformers.MobileViTForSemanticSegmentation"),u(ce,"class","relative group"),u(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(ke,"id","transformers.TFMobileViTModel"),u(ke,"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"),u(ke,"href","#transformers.TFMobileViTModel"),u(de,"class","relative group"),u(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(ze,"id","transformers.TFMobileViTForImageClassification"),u(ze,"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"),u(ze,"href","#transformers.TFMobileViTForImageClassification"),u(me,"class","relative group"),u(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Ee,"id","transformers.TFMobileViTForSemanticSegmentation"),u(Ee,"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"),u(Ee,"href","#transformers.TFMobileViTForSemanticSegmentation"),u(pe,"class","relative group"),u(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,d){s(document.head,o),c(e,V,d),c(e,p,d),c(e,m,d),c(e,$,d),s($,r),s(r,g),T(z,g,null),s($,k),s($,j),c(e,I,d),c(e,F,d),s(F,Z),s(Z,f),T(C,f,null),s(F,As),s(F,Yt),c(e,os,d),c(e,et,d),c(e,ss,d),c(e,tt,d),c(e,ns,d),c(e,ot,d),c(e,as,d),c(e,st,d),c(e,rs,d),c(e,nt,d),c(e,is,d),T(at,e,d),c(e,ls,d),c(e,rt,d),c(e,cs,d),c(e,it,d),c(e,ds,d),c(e,se,d),s(se,fe),s(fe,Wo),T(lt,Wo,null),s(se,Ys),s(se,Qt),c(e,ms,d),c(e,ct,d),c(e,ps,d),T(dt,e,d),c(e,hs,d),c(e,mt,d),c(e,fs,d),c(e,pt,d),c(e,us,d),c(e,ht,d),c(e,gs,d),c(e,ft,d),c(e,bs,d),c(e,ne,d),s(ne,ue),s(ue,zo),T(ut,zo,null),s(ne,Qs),s(ne,Dt),c(e,_s,d),c(e,P,d),T(gt,P,null),s(P,Ds),s(P,Ot),s(P,Os),s(P,Kt),s(P,Ks),T(ge,P,null),c(e,vs,d),c(e,ae,d),s(ae,be),s(be,So),T(bt,So,null),s(ae,en),s(ae,eo),c(e,Ts,d),c(e,K,d),T(_t,K,null),s(K,tn),s(K,_e),T(vt,_e,null),s(_e,on),s(_e,to),s(K,sn),s(K,ve),T(Tt,ve,null),s(ve,nn),s(ve,oo),c(e,Ms,d),c(e,re,d),s(re,Te),s(Te,No),T(Mt,No,null),s(re,an),s(re,so),c(e,ys,d),c(e,E,d),T(yt,E,null),s(E,rn),s(E,no),s(E,ln),s(E,Me),T(wt,Me,null),s(Me,cn),s(Me,ao),s(E,dn),s(E,ye),T($t,ye,null),s(ye,mn),s(ye,ro),c(e,ws,d),c(e,ie,d),s(ie,we),s(we,Po),T(Vt,Po,null),s(ie,pn),s(ie,io),c(e,$s,d),c(e,ee,d),T(Ct,ee,null),s(ee,hn),s(ee,lo),s(ee,fn),s(ee,H),T(xt,H,null),s(H,un),s(H,co),s(H,gn),T($e,H,null),s(H,bn),T(Ve,H,null),c(e,Vs,d),c(e,le,d),s(le,Ce),s(Ce,Eo),T(Ft,Eo,null),s(le,_n),s(le,mo),c(e,Cs,d),c(e,R,d),T(jt,R,null),s(R,vn),s(R,po),s(R,Tn),s(R,ho),s(R,Mn),s(R,L),T(It,L,null),s(L,yn),s(L,fo),s(L,wn),T(xe,L,null),s(L,$n),T(Fe,L,null),c(e,xs,d),c(e,ce,d),s(ce,je),s(je,Ro),T(Ut,Ro,null),s(ce,Vn),s(ce,uo),c(e,Fs,d),c(e,G,d),T(kt,G,null),s(G,Cn),s(G,go),s(G,xn),s(G,bo),s(G,Fn),s(G,B),T(Zt,B,null),s(B,jn),s(B,_o),s(B,In),T(Ie,B,null),s(B,Un),T(Ue,B,null),c(e,js,d),c(e,de,d),s(de,ke),s(ke,Go),T(Jt,Go,null),s(de,kn),s(de,vo),c(e,Is,d),c(e,N,d),T(Wt,N,null),s(N,Zn),s(N,To),s(N,Jn),s(N,Mo),s(N,Wn),T(Ze,N,null),s(N,zn),s(N,q),T(zt,q,null),s(q,Sn),s(q,yo),s(q,Nn),T(Je,q,null),s(q,Pn),T(We,q,null),c(e,Us,d),c(e,me,d),s(me,ze),s(ze,Ho),T(St,Ho,null),s(me,En),s(me,wo),c(e,ks,d),c(e,J,d),T(Nt,J,null),s(J,Rn),s(J,$o),s(J,Gn),s(J,Vo),s(J,Hn),s(J,Co),s(J,Ln),T(Se,J,null),s(J,Bn),s(J,X),T(Pt,X,null),s(X,qn),s(X,xo),s(X,Xn),T(Ne,X,null),s(X,An),T(Pe,X,null),c(e,Zs,d),c(e,pe,d),s(pe,Ee),s(Ee,Lo),T(Et,Lo,null),s(pe,Yn),s(pe,Fo),c(e,Js,d),c(e,W,d),T(Rt,W,null),s(W,Qn),s(W,jo),s(W,Dn),s(W,Io),s(W,On),s(W,Uo),s(W,Kn),T(Re,W,null),s(W,ea),s(W,A),T(Gt,A,null),s(A,ta),s(A,ko),s(A,oa),T(Ge,A,null),s(A,sa),T(He,A,null),c(e,Ws,d),c(e,Bo,d),zs=!0},p(e,[d]){const Ht={};d&2&&(Ht.$$scope={dirty:d,ctx:e}),ge.$set(Ht);const qo={};d&2&&(qo.$$scope={dirty:d,ctx:e}),$e.$set(qo);const Xo={};d&2&&(Xo.$$scope={dirty:d,ctx:e}),Ve.$set(Xo);const Lt={};d&2&&(Lt.$$scope={dirty:d,ctx:e}),xe.$set(Lt);const Ao={};d&2&&(Ao.$$scope={dirty:d,ctx:e}),Fe.$set(Ao);const Yo={};d&2&&(Yo.$$scope={dirty:d,ctx:e}),Ie.$set(Yo);const Bt={};d&2&&(Bt.$$scope={dirty:d,ctx:e}),Ue.$set(Bt);const Qo={};d&2&&(Qo.$$scope={dirty:d,ctx:e}),Ze.$set(Qo);const Do={};d&2&&(Do.$$scope={dirty:d,ctx:e}),Je.$set(Do);const qt={};d&2&&(qt.$$scope={dirty:d,ctx:e}),We.$set(qt);const Oo={};d&2&&(Oo.$$scope={dirty:d,ctx:e}),Se.$set(Oo);const Ko={};d&2&&(Ko.$$scope={dirty:d,ctx:e}),Ne.$set(Ko);const te={};d&2&&(te.$$scope={dirty:d,ctx:e}),Pe.$set(te);const Xt={};d&2&&(Xt.$$scope={dirty:d,ctx:e}),Re.$set(Xt);const es={};d&2&&(es.$$scope={dirty:d,ctx:e}),Ge.$set(es);const ts={};d&2&&(ts.$$scope={dirty:d,ctx:e}),He.$set(ts)},i(e){zs||(M(z.$$.fragment,e),M(C.$$.fragment,e),M(at.$$.fragment,e),M(lt.$$.fragment,e),M(dt.$$.fragment,e),M(ut.$$.fragment,e),M(gt.$$.fragment,e),M(ge.$$.fragment,e),M(bt.$$.fragment,e),M(_t.$$.fragment,e),M(vt.$$.fragment,e),M(Tt.$$.fragment,e),M(Mt.$$.fragment,e),M(yt.$$.fragment,e),M(wt.$$.fragment,e),M($t.$$.fragment,e),M(Vt.$$.fragment,e),M(Ct.$$.fragment,e),M(xt.$$.fragment,e),M($e.$$.fragment,e),M(Ve.$$.fragment,e),M(Ft.$$.fragment,e),M(jt.$$.fragment,e),M(It.$$.fragment,e),M(xe.$$.fragment,e),M(Fe.$$.fragment,e),M(Ut.$$.fragment,e),M(kt.$$.fragment,e),M(Zt.$$.fragment,e),M(Ie.$$.fragment,e),M(Ue.$$.fragment,e),M(Jt.$$.fragment,e),M(Wt.$$.fragment,e),M(Ze.$$.fragment,e),M(zt.$$.fragment,e),M(Je.$$.fragment,e),M(We.$$.fragment,e),M(St.$$.fragment,e),M(Nt.$$.fragment,e),M(Se.$$.fragment,e),M(Pt.$$.fragment,e),M(Ne.$$.fragment,e),M(Pe.$$.fragment,e),M(Et.$$.fragment,e),M(Rt.$$.fragment,e),M(Re.$$.fragment,e),M(Gt.$$.fragment,e),M(Ge.$$.fragment,e),M(He.$$.fragment,e),zs=!0)},o(e){y(z.$$.fragment,e),y(C.$$.fragment,e),y(at.$$.fragment,e),y(lt.$$.fragment,e),y(dt.$$.fragment,e),y(ut.$$.fragment,e),y(gt.$$.fragment,e),y(ge.$$.fragment,e),y(bt.$$.fragment,e),y(_t.$$.fragment,e),y(vt.$$.fragment,e),y(Tt.$$.fragment,e),y(Mt.$$.fragment,e),y(yt.$$.fragment,e),y(wt.$$.fragment,e),y($t.$$.fragment,e),y(Vt.$$.fragment,e),y(Ct.$$.fragment,e),y(xt.$$.fragment,e),y($e.$$.fragment,e),y(Ve.$$.fragment,e),y(Ft.$$.fragment,e),y(jt.$$.fragment,e),y(It.$$.fragment,e),y(xe.$$.fragment,e),y(Fe.$$.fragment,e),y(Ut.$$.fragment,e),y(kt.$$.fragment,e),y(Zt.$$.fragment,e),y(Ie.$$.fragment,e),y(Ue.$$.fragment,e),y(Jt.$$.fragment,e),y(Wt.$$.fragment,e),y(Ze.$$.fragment,e),y(zt.$$.fragment,e),y(Je.$$.fragment,e),y(We.$$.fragment,e),y(St.$$.fragment,e),y(Nt.$$.fragment,e),y(Se.$$.fragment,e),y(Pt.$$.fragment,e),y(Ne.$$.fragment,e),y(Pe.$$.fragment,e),y(Et.$$.fragment,e),y(Rt.$$.fragment,e),y(Re.$$.fragment,e),y(Gt.$$.fragment,e),y(Ge.$$.fragment,e),y(He.$$.fragment,e),zs=!1},d(e){e&&(t(V),t(p),t(m),t($),t(I),t(F),t(os),t(et),t(ss),t(tt),t(ns),t(ot),t(as),t(st),t(rs),t(nt),t(is),t(ls),t(rt),t(cs),t(it),t(ds),t(se),t(ms),t(ct),t(ps),t(hs),t(mt),t(fs),t(pt),t(us),t(ht),t(gs),t(ft),t(bs),t(ne),t(_s),t(P),t(vs),t(ae),t(Ts),t(K),t(Ms),t(re),t(ys),t(E),t(ws),t(ie),t($s),t(ee),t(Vs),t(le),t(Cs),t(R),t(xs),t(ce),t(Fs),t(G),t(js),t(de),t(Is),t(N),t(Us),t(me),t(ks),t(J),t(Zs),t(pe),t(Js),t(W),t(Ws),t(Bo)),t(o),w(z),w(C),w(at,e),w(lt),w(dt,e),w(ut),w(gt),w(ge),w(bt),w(_t),w(vt),w(Tt),w(Mt),w(yt),w(wt),w($t),w(Vt),w(Ct),w(xt),w($e),w(Ve),w(Ft),w(jt),w(It),w(xe),w(Fe),w(Ut),w(kt),w(Zt),w(Ie),w(Ue),w(Jt),w(Wt),w(Ze),w(zt),w(Je),w(We),w(St),w(Nt),w(Se),w(Pt),w(Ne),w(Pe),w(Et),w(Rt),w(Re),w(Gt),w(Ge),w(He)}}}const zr={local:"mobilevit",sections:[{local:"overview",title:"Overview"},{local:"resources",title:"Resources"},{local:"transformers.MobileViTConfig",title:"MobileViTConfig"},{local:"transformers.MobileViTFeatureExtractor",title:"MobileViTFeatureExtractor"},{local:"transformers.MobileViTImageProcessor",title:"MobileViTImageProcessor"},{local:"transformers.MobileViTModel",title:"MobileViTModel"},{local:"transformers.MobileViTForImageClassification",title:"MobileViTForImageClassification"},{local:"transformers.MobileViTForSemanticSegmentation",title:"MobileViTForSemanticSegmentation"},{local:"transformers.TFMobileViTModel",title:"TFMobileViTModel"},{local:"transformers.TFMobileViTForImageClassification",title:"TFMobileViTForImageClassification"},{local:"transformers.TFMobileViTForSemanticSegmentation",title:"TFMobileViTForSemanticSegmentation"}],title:"MobileViT"};function Sr(x){return fr(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class qr extends ur{constructor(o){super(),gr(this,o,Sr,Wr,hr,{})}}export{qr as component};
