import{s as wo,f as yo,o as $o,n as Le}from"../chunks/scheduler.9bc65507.js";import{S as Co,i as No,g as n,s as d,u as _,A as Vo,h as s,f as t,c,j as u,v,y as f,k as m,o as l,a as r,w as M,d as b,t as T,x as w}from"../chunks/index.78c82d43.js";import{T as To}from"../chunks/Tip.87d55b76.js";import{D as Ae}from"../chunks/Docstring.4e7352e2.js";import{C as Pt}from"../chunks/CodeBlock.73e038be.js";import{I as We}from"../chunks/IconCopyLink.bedaa44d.js";import{E as Bt}from"../chunks/ExampleCodeBlock.872b014d.js";import{P as xo}from"../chunks/PipelineTag.75b0f707.js";function So(V){let i,y="Example:",p,h,g;return h=new Pt({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFZpVE1TTk1vZGVsJTJDJTIwVmlUTVNOQ29uZmlnJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMFZpVCUyME1TTiUyMHZpdC1tc24tYmFzZSUyMHN0eWxlJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBWaVRDb25maWcoKSUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBtb2RlbCUyMGZyb20lMjB0aGUlMjB2aXQtbXNuLWJhc2UlMjBzdHlsZSUyMGNvbmZpZ3VyYXRpb24lMEFtb2RlbCUyMCUzRCUyMFZpVE1TTk1vZGVsKGNvbmZpZ3VyYXRpb24pJTBBJTBBJTIzJTIwQWNjZXNzaW5nJTIwdGhlJTIwbW9kZWwlMjBjb25maWd1cmF0aW9uJTBBY29uZmlndXJhdGlvbiUyMCUzRCUyMG1vZGVsLmNvbmZpZw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> ViTMSNModel, ViTMSNConfig

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a ViT MSN vit-msn-base style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = ViTConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model from the vit-msn-base style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = ViTMSNModel(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(){i=n("p"),i.textContent=y,p=d(),_(h.$$.fragment)},l(a){i=s(a,"P",{"data-svelte-h":!0}),f(i)!=="svelte-11lpom8"&&(i.textContent=y),p=c(a),v(h.$$.fragment,a)},m(a,$){r(a,i,$),r(a,p,$),M(h,a,$),g=!0},p:Le,i(a){g||(b(h.$$.fragment,a),g=!0)},o(a){T(h.$$.fragment,a),g=!1},d(a){a&&(t(i),t(p)),w(h,a)}}}function ko(V){let i,y=`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(){i=n("p"),i.innerHTML=y},l(p){i=s(p,"P",{"data-svelte-h":!0}),f(i)!=="svelte-fincs2"&&(i.innerHTML=y)},m(p,h){r(p,i,h)},p:Le,d(p){p&&t(i)}}}function jo(V){let i,y="Examples:",p,h,g;return h=new Pt({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFZpVE1TTk1vZGVsJTBBaW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwUElMJTIwaW1wb3J0JTIwSW1hZ2UlMEFpbXBvcnQlMjByZXF1ZXN0cyUwQSUwQXVybCUyMCUzRCUyMCUyMmh0dHAlM0ElMkYlMkZpbWFnZXMuY29jb2RhdGFzZXQub3JnJTJGdmFsMjAxNyUyRjAwMDAwMDAzOTc2OS5qcGclMjIlMEFpbWFnZSUyMCUzRCUyMEltYWdlLm9wZW4ocmVxdWVzdHMuZ2V0KHVybCUyQyUyMHN0cmVhbSUzRFRydWUpLnJhdyklMEElMEFpbWFnZV9wcm9jZXNzb3IlMjAlM0QlMjBBdXRvSW1hZ2VQcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMmZhY2Vib29rJTJGdml0LW1zbi1zbWFsbCUyMiklMEFtb2RlbCUyMCUzRCUyMFZpVE1TTk1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRnZpdC1tc24tc21hbGwlMjIpJTBBaW5wdXRzJTIwJTNEJTIwaW1hZ2VfcHJvY2Vzc29yKGltYWdlcyUzRGltYWdlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEF3aXRoJTIwdG9yY2gubm9fZ3JhZCgpJTNBJTBBJTIwJTIwJTIwJTIwb3V0cHV0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzKSUwQWxhc3RfaGlkZGVuX3N0YXRlcyUyMCUzRCUyMG91dHB1dHMubGFzdF9oaWRkZW5fc3RhdGU=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, ViTMSNModel
<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">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;facebook/vit-msn-small&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = ViTMSNModel.from_pretrained(<span class="hljs-string">&quot;facebook/vit-msn-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>last_hidden_states = outputs.last_hidden_state`,wrap:!1}}),{c(){i=n("p"),i.textContent=y,p=d(),_(h.$$.fragment)},l(a){i=s(a,"P",{"data-svelte-h":!0}),f(i)!=="svelte-kvfsh7"&&(i.textContent=y),p=c(a),v(h.$$.fragment,a)},m(a,$){r(a,i,$),r(a,p,$),M(h,a,$),g=!0},p:Le,i(a){g||(b(h.$$.fragment,a),g=!0)},o(a){T(h.$$.fragment,a),g=!1},d(a){a&&(t(i),t(p)),w(h,a)}}}function Jo(V){let i,y=`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(){i=n("p"),i.innerHTML=y},l(p){i=s(p,"P",{"data-svelte-h":!0}),f(i)!=="svelte-fincs2"&&(i.innerHTML=y)},m(p,h){r(p,i,h)},p:Le,d(p){p&&t(i)}}}function Io(V){let i,y="Examples:",p,h,g;return h=new Pt({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFZpVE1TTkZvckltYWdlQ2xhc3NpZmljYXRpb24lMEFpbXBvcnQlMjB0b3JjaCUwQWZyb20lMjBQSUwlMjBpbXBvcnQlMjBJbWFnZSUwQWltcG9ydCUyMHJlcXVlc3RzJTBBJTBBdG9yY2gubWFudWFsX3NlZWQoMiklMEF1cmwlMjAlM0QlMjAlMjJodHRwJTNBJTJGJTJGaW1hZ2VzLmNvY29kYXRhc2V0Lm9yZyUyRnZhbDIwMTclMkYwMDAwMDAwMzk3NjkuanBnJTIyJTBBaW1hZ2UlMjAlM0QlMjBJbWFnZS5vcGVuKHJlcXVlc3RzLmdldCh1cmwlMkMlMjBzdHJlYW0lM0RUcnVlKS5yYXcpJTBBJTBBaW1hZ2VfcHJvY2Vzc29yJTIwJTNEJTIwQXV0b0ltYWdlUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRnZpdC1tc24tc21hbGwlMjIpJTBBbW9kZWwlMjAlM0QlMjBWaVRNU05Gb3JJbWFnZUNsYXNzaWZpY2F0aW9uLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRnZpdC1tc24tc21hbGwlMjIpJTBBJTBBaW5wdXRzJTIwJTNEJTIwaW1hZ2VfcHJvY2Vzc29yKGltYWdlcyUzRGltYWdlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEF3aXRoJTIwdG9yY2gubm9fZ3JhZCgpJTNBJTBBJTIwJTIwJTIwJTIwbG9naXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpLmxvZ2l0cyUwQSUyMyUyMG1vZGVsJTIwcHJlZGljdHMlMjBvbmUlMjBvZiUyMHRoZSUyMDEwMDAlMjBJbWFnZU5ldCUyMGNsYXNzZXMlMEFwcmVkaWN0ZWRfbGFiZWwlMjAlM0QlMjBsb2dpdHMuYXJnbWF4KC0xKS5pdGVtKCklMEFwcmludChtb2RlbC5jb25maWcuaWQybGFiZWwlNUJwcmVkaWN0ZWRfbGFiZWwlNUQp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, ViTMSNForImageClassification
<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">import</span> requests

<span class="hljs-meta">&gt;&gt;&gt; </span>torch.manual_seed(<span class="hljs-number">2</span>)
<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;facebook/vit-msn-small&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = ViTMSNForImageClassification.from_pretrained(<span class="hljs-string">&quot;facebook/vit-msn-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>    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])
Kerry blue terrier`,wrap:!1}}),{c(){i=n("p"),i.textContent=y,p=d(),_(h.$$.fragment)},l(a){i=s(a,"P",{"data-svelte-h":!0}),f(i)!=="svelte-kvfsh7"&&(i.textContent=y),p=c(a),v(h.$$.fragment,a)},m(a,$){r(a,i,$),r(a,p,$),M(h,a,$),g=!0},p:Le,i(a){g||(b(h.$$.fragment,a),g=!0)},o(a){T(h.$$.fragment,a),g=!1},d(a){a&&(t(i),t(p)),w(h,a)}}}function Fo(V){let i,y,p,h,g,a,$,O,Mt,Te,Ht="ViTMSN",qe,j,Z,Ze,D,bt,we,Et="Overview",Ye,K,Gt=`The ViTMSN model was proposed in <a href="https://arxiv.org/abs/2204.07141" rel="nofollow">Masked Siamese Networks for Label-Efficient Learning</a> by Mahmoud Assran, Mathilde Caron, Ishan Misra, Piotr Bojanowski, Florian Bordes,
Pascal Vincent, Armand Joulin, Michael Rabbat, Nicolas Ballas. The paper presents a joint-embedding architecture to match the prototypes
of masked patches with that of the unmasked patches. With this setup, their method yields excellent performance in the low-shot and extreme low-shot
regimes.`,Xe,ee,Rt="The abstract from the paper is the following:",Qe,te,At=`<em>We propose Masked Siamese Networks (MSN), a self-supervised learning framework for learning image representations. Our
approach matches the representation of an image view containing randomly masked patches to the representation of the original
unmasked image. This self-supervised pre-training strategy is particularly scalable when applied to Vision Transformers since only the
unmasked patches are processed by the network. As a result, MSNs improve the scalability of joint-embedding architectures,
while producing representations of a high semantic level that perform competitively on low-shot image classification. For instance,
on ImageNet-1K, with only 5,000 annotated images, our base MSN model achieves 72.4% top-1 accuracy,
and with 1% of ImageNet-1K labels, we achieve 75.7% top-1 accuracy, setting a new state-of-the-art for self-supervised learning on this benchmark.</em>`,Oe,oe,Lt="Tips:",De,ne,qt=`<li>MSN (masked siamese networks) is a method for self-supervised pre-training of Vision Transformers (ViTs). The pre-training
objective is to match the prototypes assigned to the unmasked views of the images to that of the masked views of the same images.</li> <li>The authors have only released pre-trained weights of the backbone (ImageNet-1k pre-training). So, to use that on your own image classification dataset,
use the <a href="/docs/transformers/v4.34.0/en/model_doc/vit_msn#transformers.ViTMSNForImageClassification">ViTMSNForImageClassification</a> class which is initialized from <a href="/docs/transformers/v4.34.0/en/model_doc/vit_msn#transformers.ViTMSNModel">ViTMSNModel</a>. Follow
<a href="https://github.com/huggingface/notebooks/blob/main/examples/image_classification.ipynb" rel="nofollow">this notebook</a> for a detailed tutorial on fine-tuning.</li> <li>MSN is particularly useful in the low-shot and extreme low-shot regimes. Notably, it achieves 75.7% top-1 accuracy with only 1% of ImageNet-1K
labels when fine-tuned.</li>`,Ke,U,Yt,et,se,Xt='MSN architecture. Taken from the <a href="https://arxiv.org/abs/2204.07141">original paper.</a>',tt,ae,Qt='This model was contributed by <a href="https://huggingface.co/sayakpaul" rel="nofollow">sayakpaul</a>. The original code can be found <a href="https://github.com/facebookresearch/msn" rel="nofollow">here</a>.',ot,J,z,Ue,re,Tt,ye,Ot="Resources",nt,ie,Dt="A list of official Hugging Face and community (indicated by 🌎) resources to help you get started with ViT MSN.",st,le,at,de,Kt='<li><a href="/docs/transformers/v4.34.0/en/model_doc/vit_msn#transformers.ViTMSNForImageClassification">ViTMSNForImageClassification</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>',rt,ce,eo="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.",it,I,B,ze,me,wt,$e,to="ViTMSNConfig",lt,C,pe,yt,Ce,oo=`This is the configuration class to store the configuration of a <a href="/docs/transformers/v4.34.0/en/model_doc/vit_msn#transformers.ViTMSNModel">ViTMSNModel</a>. It is used to instantiate an ViT
MSN 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 ViT
<a href="https://huggingface.co/facebook/vit_msn_base" rel="nofollow">facebook/vit_msn_base</a> architecture.`,$t,Ne,no=`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.`,Ct,P,dt,F,H,Be,he,Nt,Ve,so="ViTMSNModel",ct,k,fe,Vt,xe,ao=`The bare ViTMSN 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.`,xt,x,ue,St,Se,ro='The <a href="/docs/transformers/v4.34.0/en/model_doc/vit_msn#transformers.ViTMSNModel">ViTMSNModel</a> forward method, overrides the <code>__call__</code> special method.',kt,E,jt,G,mt,W,R,Pe,ge,Jt,ke,io="ViTMSNForImageClassification",pt,N,_e,It,je,lo="ViTMSN Model with an image classification head on top e.g. for ImageNet.",Ft,Je,co=`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.`,Wt,S,ve,Zt,Ie,mo='The <a href="/docs/transformers/v4.34.0/en/model_doc/vit_msn#transformers.ViTMSNForImageClassification">ViTMSNForImageClassification</a> forward method, overrides the <code>__call__</code> special method.',Ut,A,zt,L,ht,He,ft;return O=new We({}),D=new We({}),re=new We({}),le=new xo({props:{pipeline:"image-classification"}}),me=new We({}),pe=new Ae({props:{name:"class transformers.ViTMSNConfig",anchor:"transformers.ViTMSNConfig",parameters:[{name:"hidden_size",val:" = 768"},{name:"num_hidden_layers",val:" = 12"},{name:"num_attention_heads",val:" = 12"},{name:"intermediate_size",val:" = 3072"},{name:"hidden_act",val:" = 'gelu'"},{name:"hidden_dropout_prob",val:" = 0.0"},{name:"attention_probs_dropout_prob",val:" = 0.0"},{name:"initializer_range",val:" = 0.02"},{name:"layer_norm_eps",val:" = 1e-06"},{name:"image_size",val:" = 224"},{name:"patch_size",val:" = 16"},{name:"num_channels",val:" = 3"},{name:"qkv_bias",val:" = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ViTMSNConfig.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 768) &#x2014;
Dimensionality of the encoder layers and the pooler layer.`,name:"hidden_size"},{anchor:"transformers.ViTMSNConfig.num_hidden_layers",description:`<strong>num_hidden_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 12) &#x2014;
Number of hidden layers in the Transformer encoder.`,name:"num_hidden_layers"},{anchor:"transformers.ViTMSNConfig.num_attention_heads",description:`<strong>num_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 12) &#x2014;
Number of attention heads for each attention layer in the Transformer encoder.`,name:"num_attention_heads"},{anchor:"transformers.ViTMSNConfig.intermediate_size",description:`<strong>intermediate_size</strong> (<code>int</code>, <em>optional</em>, defaults to 3072) &#x2014;
Dimensionality of the &#x201C;intermediate&#x201D; (i.e., feed-forward) layer in the Transformer encoder.`,name:"intermediate_size"},{anchor:"transformers.ViTMSNConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code> or <code>function</code>, <em>optional</em>, defaults to <code>&quot;gelu&quot;</code>) &#x2014;
The non-linear activation function (function or string) in the encoder and pooler. If string, <code>&quot;gelu&quot;</code>,
<code>&quot;relu&quot;</code>, <code>&quot;selu&quot;</code> and <code>&quot;gelu_new&quot;</code> are supported.`,name:"hidden_act"},{anchor:"transformers.ViTMSNConfig.hidden_dropout_prob",description:`<strong>hidden_dropout_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout probability for all fully connected layers in the embeddings, encoder, and pooler.`,name:"hidden_dropout_prob"},{anchor:"transformers.ViTMSNConfig.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.ViTMSNConfig.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.ViTMSNConfig.layer_norm_eps",description:`<strong>layer_norm_eps</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-06) &#x2014;
The epsilon used by the layer normalization layers.`,name:"layer_norm_eps"},{anchor:"transformers.ViTMSNConfig.image_size",description:`<strong>image_size</strong> (<code>int</code>, <em>optional</em>, defaults to 224) &#x2014;
The size (resolution) of each image.`,name:"image_size"},{anchor:"transformers.ViTMSNConfig.patch_size",description:`<strong>patch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 16) &#x2014;
The size (resolution) of each patch.`,name:"patch_size"},{anchor:"transformers.ViTMSNConfig.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.ViTMSNConfig.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"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/vit_msn/configuration_vit_msn.py#L30"}}),P=new Bt({props:{anchor:"transformers.ViTMSNConfig.example",$$slots:{default:[So]},$$scope:{ctx:V}}}),he=new We({}),fe=new Ae({props:{name:"class transformers.ViTMSNModel",anchor:"transformers.ViTMSNModel",parameters:[{name:"config",val:": ViTMSNConfig"},{name:"use_mask_token",val:": bool = False"}],parametersDescription:[{anchor:"transformers.ViTMSNModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.34.0/en/model_doc/vit_msn#transformers.ViTMSNConfig">ViTMSNConfig</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/vit_msn/modeling_vit_msn.py#L492"}}),ue=new Ae({props:{name:"forward",anchor:"transformers.ViTMSNModel.forward",parameters:[{name:"pixel_values",val:": typing.Optional[torch.Tensor] = None"},{name:"bool_masked_pos",val:": typing.Optional[torch.BoolTensor] = None"},{name:"head_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"interpolate_pos_encoding",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.ViTMSNModel.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__">ViTImageProcessor.<strong>call</strong>()</a>
for details.`,name:"pixel_values"},{anchor:"transformers.ViTMSNModel.forward.head_mask",description:`<strong>head_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(num_heads,)</code> or <code>(num_layers, num_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the self-attention modules. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.ViTMSNModel.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.ViTMSNModel.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.ViTMSNModel.forward.interpolate_pos_encoding",description:`<strong>interpolate_pos_encoding</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to interpolate the pre-trained position encodings.`,name:"interpolate_pos_encoding"},{anchor:"transformers.ViTMSNModel.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.ViTMSNModel.forward.bool_masked_pos",description:`<strong>bool_masked_pos</strong> (<code>torch.BoolTensor</code> of shape <code>(batch_size, num_patches)</code>, <em>optional</em>) &#x2014;
Boolean masked positions. Indicates which patches are masked (1) and which aren&#x2019;t (0).`,name:"bool_masked_pos"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/vit_msn/modeling_vit_msn.py#L516",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.34.0/en/main_classes/output#transformers.modeling_outputs.BaseModelOutput"
>transformers.modeling_outputs.BaseModelOutput</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/vit_msn#transformers.ViTMSNConfig"
>ViTMSNConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>last_hidden_state</strong> (<code>torch.FloatTensor</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>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, sequence_length, 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, 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_outputs.BaseModelOutput"
>transformers.modeling_outputs.BaseModelOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),E=new To({props:{$$slots:{default:[ko]},$$scope:{ctx:V}}}),G=new Bt({props:{anchor:"transformers.ViTMSNModel.forward.example",$$slots:{default:[jo]},$$scope:{ctx:V}}}),ge=new We({}),_e=new Ae({props:{name:"class transformers.ViTMSNForImageClassification",anchor:"transformers.ViTMSNForImageClassification",parameters:[{name:"config",val:": ViTMSNConfig"}],parametersDescription:[{anchor:"transformers.ViTMSNForImageClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.34.0/en/model_doc/vit_msn#transformers.ViTMSNConfig">ViTMSNConfig</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/vit_msn/modeling_vit_msn.py#L601"}}),ve=new Ae({props:{name:"forward",anchor:"transformers.ViTMSNForImageClassification.forward",parameters:[{name:"pixel_values",val:": typing.Optional[torch.Tensor] = None"},{name:"head_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"labels",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"interpolate_pos_encoding",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.ViTMSNForImageClassification.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__">ViTImageProcessor.<strong>call</strong>()</a>
for details.`,name:"pixel_values"},{anchor:"transformers.ViTMSNForImageClassification.forward.head_mask",description:`<strong>head_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(num_heads,)</code> or <code>(num_layers, num_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the self-attention modules. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.ViTMSNForImageClassification.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.ViTMSNForImageClassification.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.ViTMSNForImageClassification.forward.interpolate_pos_encoding",description:`<strong>interpolate_pos_encoding</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to interpolate the pre-trained position encodings.`,name:"interpolate_pos_encoding"},{anchor:"transformers.ViTMSNForImageClassification.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/vit_msn/modeling_vit_msn.py#L614",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.34.0/en/main_classes/output#transformers.modeling_outputs.ImageClassifierOutput"
>transformers.modeling_outputs.ImageClassifierOutput</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/vit_msn#transformers.ViTMSNConfig"
>ViTMSNConfig</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)</code>) — Classification (or regression if config.num_labels==1) scores (before SoftMax).</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 stage) of shape <code>(batch_size, sequence_length, hidden_size)</code>. Hidden-states
(also called feature maps) of the model at the output of each stage.</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.ImageClassifierOutput"
>transformers.modeling_outputs.ImageClassifierOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),A=new To({props:{$$slots:{default:[Jo]},$$scope:{ctx:V}}}),L=new Bt({props:{anchor:"transformers.ViTMSNForImageClassification.forward.example",$$slots:{default:[Io]},$$scope:{ctx:V}}}),{c(){i=n("meta"),y=d(),p=n("p"),h=d(),g=n("h1"),a=n("a"),$=n("span"),_(O.$$.fragment),Mt=d(),Te=n("span"),Te.textContent=Ht,qe=d(),j=n("h2"),Z=n("a"),Ze=n("span"),_(D.$$.fragment),bt=d(),we=n("span"),we.textContent=Et,Ye=d(),K=n("p"),K.innerHTML=Gt,Xe=d(),ee=n("p"),ee.textContent=Rt,Qe=d(),te=n("p"),te.innerHTML=At,Oe=d(),oe=n("p"),oe.textContent=Lt,De=d(),ne=n("ul"),ne.innerHTML=qt,Ke=d(),U=n("img"),et=d(),se=n("small"),se.innerHTML=Xt,tt=d(),ae=n("p"),ae.innerHTML=Qt,ot=d(),J=n("h2"),z=n("a"),Ue=n("span"),_(re.$$.fragment),Tt=d(),ye=n("span"),ye.textContent=Ot,nt=d(),ie=n("p"),ie.textContent=Dt,st=d(),_(le.$$.fragment),at=d(),de=n("ul"),de.innerHTML=Kt,rt=d(),ce=n("p"),ce.textContent=eo,it=d(),I=n("h2"),B=n("a"),ze=n("span"),_(me.$$.fragment),wt=d(),$e=n("span"),$e.textContent=to,lt=d(),C=n("div"),_(pe.$$.fragment),yt=d(),Ce=n("p"),Ce.innerHTML=oo,$t=d(),Ne=n("p"),Ne.innerHTML=no,Ct=d(),_(P.$$.fragment),dt=d(),F=n("h2"),H=n("a"),Be=n("span"),_(he.$$.fragment),Nt=d(),Ve=n("span"),Ve.textContent=so,ct=d(),k=n("div"),_(fe.$$.fragment),Vt=d(),xe=n("p"),xe.innerHTML=ao,xt=d(),x=n("div"),_(ue.$$.fragment),St=d(),Se=n("p"),Se.innerHTML=ro,kt=d(),_(E.$$.fragment),jt=d(),_(G.$$.fragment),mt=d(),W=n("h2"),R=n("a"),Pe=n("span"),_(ge.$$.fragment),Jt=d(),ke=n("span"),ke.textContent=io,pt=d(),N=n("div"),_(_e.$$.fragment),It=d(),je=n("p"),je.textContent=lo,Ft=d(),Je=n("p"),Je.innerHTML=co,Wt=d(),S=n("div"),_(ve.$$.fragment),Zt=d(),Ie=n("p"),Ie.innerHTML=mo,Ut=d(),_(A.$$.fragment),zt=d(),_(L.$$.fragment),ht=d(),He=n("p"),this.h()},l(e){const o=Vo("svelte-1phssyn",document.head);i=s(o,"META",{name:!0,content:!0}),o.forEach(t),y=c(e),p=s(e,"P",{}),u(p).forEach(t),h=c(e),g=s(e,"H1",{class:!0});var Me=u(g);a=s(Me,"A",{id:!0,class:!0,href:!0});var Ee=u(a);$=s(Ee,"SPAN",{});var Ge=u($);v(O.$$.fragment,Ge),Ge.forEach(t),Ee.forEach(t),Mt=c(Me),Te=s(Me,"SPAN",{"data-svelte-h":!0}),f(Te)!=="svelte-6h167w"&&(Te.textContent=Ht),Me.forEach(t),qe=c(e),j=s(e,"H2",{class:!0});var be=u(j);Z=s(be,"A",{id:!0,class:!0,href:!0});var Re=u(Z);Ze=s(Re,"SPAN",{});var po=u(Ze);v(D.$$.fragment,po),po.forEach(t),Re.forEach(t),bt=c(be),we=s(be,"SPAN",{"data-svelte-h":!0}),f(we)!=="svelte-1jsw1pg"&&(we.textContent=Et),be.forEach(t),Ye=c(e),K=s(e,"P",{"data-svelte-h":!0}),f(K)!=="svelte-lk3nii"&&(K.innerHTML=Gt),Xe=c(e),ee=s(e,"P",{"data-svelte-h":!0}),f(ee)!=="svelte-vfdo9a"&&(ee.textContent=Rt),Qe=c(e),te=s(e,"P",{"data-svelte-h":!0}),f(te)!=="svelte-abxoxf"&&(te.innerHTML=At),Oe=c(e),oe=s(e,"P",{"data-svelte-h":!0}),f(oe)!=="svelte-axv494"&&(oe.textContent=Lt),De=c(e),ne=s(e,"UL",{"data-svelte-h":!0}),f(ne)!=="svelte-1j955h7"&&(ne.innerHTML=qt),Ke=c(e),U=s(e,"IMG",{src:!0,alt:!0,width:!0}),et=c(e),se=s(e,"SMALL",{"data-svelte-h":!0}),f(se)!=="svelte-1iymhb9"&&(se.innerHTML=Xt),tt=c(e),ae=s(e,"P",{"data-svelte-h":!0}),f(ae)!=="svelte-ig50j8"&&(ae.innerHTML=Qt),ot=c(e),J=s(e,"H2",{class:!0});var ut=u(J);z=s(ut,"A",{id:!0,class:!0,href:!0});var ho=u(z);Ue=s(ho,"SPAN",{});var fo=u(Ue);v(re.$$.fragment,fo),fo.forEach(t),ho.forEach(t),Tt=c(ut),ye=s(ut,"SPAN",{"data-svelte-h":!0}),f(ye)!=="svelte-w4zzv6"&&(ye.textContent=Ot),ut.forEach(t),nt=c(e),ie=s(e,"P",{"data-svelte-h":!0}),f(ie)!=="svelte-s3w6c0"&&(ie.textContent=Dt),st=c(e),v(le.$$.fragment,e),at=c(e),de=s(e,"UL",{"data-svelte-h":!0}),f(de)!=="svelte-1reizqv"&&(de.innerHTML=Kt),rt=c(e),ce=s(e,"P",{"data-svelte-h":!0}),f(ce)!=="svelte-1xesile"&&(ce.textContent=eo),it=c(e),I=s(e,"H2",{class:!0});var gt=u(I);B=s(gt,"A",{id:!0,class:!0,href:!0});var uo=u(B);ze=s(uo,"SPAN",{});var go=u(ze);v(me.$$.fragment,go),go.forEach(t),uo.forEach(t),wt=c(gt),$e=s(gt,"SPAN",{"data-svelte-h":!0}),f($e)!=="svelte-yba6tq"&&($e.textContent=to),gt.forEach(t),lt=c(e),C=s(e,"DIV",{class:!0});var q=u(C);v(pe.$$.fragment,q),yt=c(q),Ce=s(q,"P",{"data-svelte-h":!0}),f(Ce)!=="svelte-ju00z5"&&(Ce.innerHTML=oo),$t=c(q),Ne=s(q,"P",{"data-svelte-h":!0}),f(Ne)!=="svelte-10kqkkl"&&(Ne.innerHTML=no),Ct=c(q),v(P.$$.fragment,q),q.forEach(t),dt=c(e),F=s(e,"H2",{class:!0});var _t=u(F);H=s(_t,"A",{id:!0,class:!0,href:!0});var _o=u(H);Be=s(_o,"SPAN",{});var vo=u(Be);v(he.$$.fragment,vo),vo.forEach(t),_o.forEach(t),Nt=c(_t),Ve=s(_t,"SPAN",{"data-svelte-h":!0}),f(Ve)!=="svelte-15kd5t7"&&(Ve.textContent=so),_t.forEach(t),ct=c(e),k=s(e,"DIV",{class:!0});var Fe=u(k);v(fe.$$.fragment,Fe),Vt=c(Fe),xe=s(Fe,"P",{"data-svelte-h":!0}),f(xe)!=="svelte-f45q49"&&(xe.innerHTML=ao),xt=c(Fe),x=s(Fe,"DIV",{class:!0});var Y=u(x);v(ue.$$.fragment,Y),St=c(Y),Se=s(Y,"P",{"data-svelte-h":!0}),f(Se)!=="svelte-yoz7z"&&(Se.innerHTML=ro),kt=c(Y),v(E.$$.fragment,Y),jt=c(Y),v(G.$$.fragment,Y),Y.forEach(t),Fe.forEach(t),mt=c(e),W=s(e,"H2",{class:!0});var vt=u(W);R=s(vt,"A",{id:!0,class:!0,href:!0});var Mo=u(R);Pe=s(Mo,"SPAN",{});var bo=u(Pe);v(ge.$$.fragment,bo),bo.forEach(t),Mo.forEach(t),Jt=c(vt),ke=s(vt,"SPAN",{"data-svelte-h":!0}),f(ke)!=="svelte-dg4bz0"&&(ke.textContent=io),vt.forEach(t),pt=c(e),N=s(e,"DIV",{class:!0});var X=u(N);v(_e.$$.fragment,X),It=c(X),je=s(X,"P",{"data-svelte-h":!0}),f(je)!=="svelte-73jzbh"&&(je.textContent=lo),Ft=c(X),Je=s(X,"P",{"data-svelte-h":!0}),f(Je)!=="svelte-1gjh92c"&&(Je.innerHTML=co),Wt=c(X),S=s(X,"DIV",{class:!0});var Q=u(S);v(ve.$$.fragment,Q),Zt=c(Q),Ie=s(Q,"P",{"data-svelte-h":!0}),f(Ie)!=="svelte-w7nrsh"&&(Ie.innerHTML=mo),Ut=c(Q),v(A.$$.fragment,Q),zt=c(Q),v(L.$$.fragment,Q),Q.forEach(t),X.forEach(t),ht=c(e),He=s(e,"P",{}),u(He).forEach(t),this.h()},h(){m(i,"name","hf:doc:metadata"),m(i,"content",JSON.stringify(Wo)),m(a,"id","vitmsn"),m(a,"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"),m(a,"href","#vitmsn"),m(g,"class","relative group"),m(Z,"id","overview"),m(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"),m(Z,"href","#overview"),m(j,"class","relative group"),yo(U.src,Yt="https://i.ibb.co/W6PQMdC/Screenshot-2022-09-13-at-9-08-40-AM.png")||m(U,"src",Yt),m(U,"alt","drawing"),m(U,"width","600"),m(z,"id","resources"),m(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"),m(z,"href","#resources"),m(J,"class","relative group"),m(B,"id","transformers.ViTMSNConfig"),m(B,"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"),m(B,"href","#transformers.ViTMSNConfig"),m(I,"class","relative group"),m(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(H,"id","transformers.ViTMSNModel"),m(H,"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"),m(H,"href","#transformers.ViTMSNModel"),m(F,"class","relative group"),m(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(R,"id","transformers.ViTMSNForImageClassification"),m(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"),m(R,"href","#transformers.ViTMSNForImageClassification"),m(W,"class","relative group"),m(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(N,"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,o){l(document.head,i),r(e,y,o),r(e,p,o),r(e,h,o),r(e,g,o),l(g,a),l(a,$),M(O,$,null),l(g,Mt),l(g,Te),r(e,qe,o),r(e,j,o),l(j,Z),l(Z,Ze),M(D,Ze,null),l(j,bt),l(j,we),r(e,Ye,o),r(e,K,o),r(e,Xe,o),r(e,ee,o),r(e,Qe,o),r(e,te,o),r(e,Oe,o),r(e,oe,o),r(e,De,o),r(e,ne,o),r(e,Ke,o),r(e,U,o),r(e,et,o),r(e,se,o),r(e,tt,o),r(e,ae,o),r(e,ot,o),r(e,J,o),l(J,z),l(z,Ue),M(re,Ue,null),l(J,Tt),l(J,ye),r(e,nt,o),r(e,ie,o),r(e,st,o),M(le,e,o),r(e,at,o),r(e,de,o),r(e,rt,o),r(e,ce,o),r(e,it,o),r(e,I,o),l(I,B),l(B,ze),M(me,ze,null),l(I,wt),l(I,$e),r(e,lt,o),r(e,C,o),M(pe,C,null),l(C,yt),l(C,Ce),l(C,$t),l(C,Ne),l(C,Ct),M(P,C,null),r(e,dt,o),r(e,F,o),l(F,H),l(H,Be),M(he,Be,null),l(F,Nt),l(F,Ve),r(e,ct,o),r(e,k,o),M(fe,k,null),l(k,Vt),l(k,xe),l(k,xt),l(k,x),M(ue,x,null),l(x,St),l(x,Se),l(x,kt),M(E,x,null),l(x,jt),M(G,x,null),r(e,mt,o),r(e,W,o),l(W,R),l(R,Pe),M(ge,Pe,null),l(W,Jt),l(W,ke),r(e,pt,o),r(e,N,o),M(_e,N,null),l(N,It),l(N,je),l(N,Ft),l(N,Je),l(N,Wt),l(N,S),M(ve,S,null),l(S,Zt),l(S,Ie),l(S,Ut),M(A,S,null),l(S,zt),M(L,S,null),r(e,ht,o),r(e,He,o),ft=!0},p(e,[o]){const Me={};o&2&&(Me.$$scope={dirty:o,ctx:e}),P.$set(Me);const Ee={};o&2&&(Ee.$$scope={dirty:o,ctx:e}),E.$set(Ee);const Ge={};o&2&&(Ge.$$scope={dirty:o,ctx:e}),G.$set(Ge);const be={};o&2&&(be.$$scope={dirty:o,ctx:e}),A.$set(be);const Re={};o&2&&(Re.$$scope={dirty:o,ctx:e}),L.$set(Re)},i(e){ft||(b(O.$$.fragment,e),b(D.$$.fragment,e),b(re.$$.fragment,e),b(le.$$.fragment,e),b(me.$$.fragment,e),b(pe.$$.fragment,e),b(P.$$.fragment,e),b(he.$$.fragment,e),b(fe.$$.fragment,e),b(ue.$$.fragment,e),b(E.$$.fragment,e),b(G.$$.fragment,e),b(ge.$$.fragment,e),b(_e.$$.fragment,e),b(ve.$$.fragment,e),b(A.$$.fragment,e),b(L.$$.fragment,e),ft=!0)},o(e){T(O.$$.fragment,e),T(D.$$.fragment,e),T(re.$$.fragment,e),T(le.$$.fragment,e),T(me.$$.fragment,e),T(pe.$$.fragment,e),T(P.$$.fragment,e),T(he.$$.fragment,e),T(fe.$$.fragment,e),T(ue.$$.fragment,e),T(E.$$.fragment,e),T(G.$$.fragment,e),T(ge.$$.fragment,e),T(_e.$$.fragment,e),T(ve.$$.fragment,e),T(A.$$.fragment,e),T(L.$$.fragment,e),ft=!1},d(e){e&&(t(y),t(p),t(h),t(g),t(qe),t(j),t(Ye),t(K),t(Xe),t(ee),t(Qe),t(te),t(Oe),t(oe),t(De),t(ne),t(Ke),t(U),t(et),t(se),t(tt),t(ae),t(ot),t(J),t(nt),t(ie),t(st),t(at),t(de),t(rt),t(ce),t(it),t(I),t(lt),t(C),t(dt),t(F),t(ct),t(k),t(mt),t(W),t(pt),t(N),t(ht),t(He)),t(i),w(O),w(D),w(re),w(le,e),w(me),w(pe),w(P),w(he),w(fe),w(ue),w(E),w(G),w(ge),w(_e),w(ve),w(A),w(L)}}}const Wo={local:"vitmsn",sections:[{local:"overview",title:"Overview"},{local:"resources",title:"Resources"},{local:"transformers.ViTMSNConfig",title:"ViTMSNConfig"},{local:"transformers.ViTMSNModel",title:"ViTMSNModel"},{local:"transformers.ViTMSNForImageClassification",title:"ViTMSNForImageClassification"}],title:"ViTMSN"};function Zo(V){return $o(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ao extends Co{constructor(i){super(),No(this,i,Zo,Fo,wo,{})}}export{Ao as component};
