import{s as We,o as Je,n as $e}from"../chunks/scheduler.25b97de1.js";import{S as Ie,i as Ue,g as c,s as r,r as _,A as Re,h as m,f as o,c as i,j as O,u as b,x as T,k as Q,y as u,a as s,v,d as w,t as $,w as M}from"../chunks/index.d9030fc9.js";import{T as Pe}from"../chunks/Tip.baa67368.js";import{D as we}from"../chunks/Docstring.e257edda.js";import{C as Ze}from"../chunks/CodeBlock.e6cd0d95.js";import{E as Ee}from"../chunks/ExampleCodeBlock.20db4b6e.js";import{H as me,E as Ge}from"../chunks/EditOnGithub.91d95064.js";function Le(k){let a,h="Example:",d,l,p;return l=new Ze({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFZpdERldENvbmZpZyUyQyUyMFZpdERldE1vZGVsJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMFZpdERldCUyMGNvbmZpZ3VyYXRpb24lMEFjb25maWd1cmF0aW9uJTIwJTNEJTIwVml0RGV0Q29uZmlnKCklMEElMEElMjMlMjBJbml0aWFsaXppbmclMjBhJTIwbW9kZWwlMjAod2l0aCUyMHJhbmRvbSUyMHdlaWdodHMpJTIwZnJvbSUyMHRoZSUyMGNvbmZpZ3VyYXRpb24lMEFtb2RlbCUyMCUzRCUyMFZpdERldE1vZGVsKGNvbmZpZ3VyYXRpb24pJTBBJTBBJTIzJTIwQWNjZXNzaW5nJTIwdGhlJTIwbW9kZWwlMjBjb25maWd1cmF0aW9uJTBBY29uZmlndXJhdGlvbiUyMCUzRCUyMG1vZGVsLmNvbmZpZw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> VitDetConfig, VitDetModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a VitDet configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = VitDetConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model (with random weights) from the configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = VitDetModel(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(){a=c("p"),a.textContent=h,d=r(),_(l.$$.fragment)},l(n){a=m(n,"P",{"data-svelte-h":!0}),T(a)!=="svelte-11lpom8"&&(a.textContent=h),d=i(n),b(l.$$.fragment,n)},m(n,f){s(n,a,f),s(n,d,f),v(l,n,f),p=!0},p:$e,i(n){p||(w(l.$$.fragment,n),p=!0)},o(n){$(l.$$.fragment,n),p=!1},d(n){n&&(o(a),o(d)),M(l,n)}}}function Fe(k){let a,h=`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(){a=c("p"),a.innerHTML=h},l(d){a=m(d,"P",{"data-svelte-h":!0}),T(a)!=="svelte-fincs2"&&(a.innerHTML=h)},m(d,l){s(d,a,l)},p:$e,d(d){d&&o(a)}}}function He(k){let a,h="Examples:",d,l,p;return l=new Ze({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFZpdERldENvbmZpZyUyQyUyMFZpdERldE1vZGVsJTBBaW1wb3J0JTIwdG9yY2glMEElMEFjb25maWclMjAlM0QlMjBWaXREZXRDb25maWcoKSUwQW1vZGVsJTIwJTNEJTIwVml0RGV0TW9kZWwoY29uZmlnKSUwQSUwQXBpeGVsX3ZhbHVlcyUyMCUzRCUyMHRvcmNoLnJhbmRuKDElMkMlMjAzJTJDJTIwMjI0JTJDJTIwMjI0KSUwQSUwQXdpdGglMjB0b3JjaC5ub19ncmFkKCklM0ElMEElMjAlMjAlMjAlMjBvdXRwdXRzJTIwJTNEJTIwbW9kZWwocGl4ZWxfdmFsdWVzKSUwQSUwQWxhc3RfaGlkZGVuX3N0YXRlcyUyMCUzRCUyMG91dHB1dHMubGFzdF9oaWRkZW5fc3RhdGUlMEFsaXN0KGxhc3RfaGlkZGVuX3N0YXRlcy5zaGFwZSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> VitDetConfig, VitDetModel
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>config = VitDetConfig()
<span class="hljs-meta">&gt;&gt;&gt; </span>model = VitDetModel(config)

<span class="hljs-meta">&gt;&gt;&gt; </span>pixel_values = torch.randn(<span class="hljs-number">1</span>, <span class="hljs-number">3</span>, <span class="hljs-number">224</span>, <span class="hljs-number">224</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(pixel_values)

<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">768</span>, <span class="hljs-number">14</span>, <span class="hljs-number">14</span>]`,wrap:!1}}),{c(){a=c("p"),a.textContent=h,d=r(),_(l.$$.fragment)},l(n){a=m(n,"P",{"data-svelte-h":!0}),T(a)!=="svelte-kvfsh7"&&(a.textContent=h),d=i(n),b(l.$$.fragment,n)},m(n,f){s(n,a,f),s(n,d,f),v(l,n,f),p=!0},p:$e,i(n){p||(w(l.$$.fragment,n),p=!0)},o(n){$(l.$$.fragment,n),p=!1},d(n){n&&(o(a),o(d)),M(l,n)}}}function qe(k){let a,h,d,l,p,n,f,Y,Z,Me=`The ViTDet model was proposed in <a href="https://arxiv.org/abs/2203.16527" rel="nofollow">Exploring Plain Vision Transformer Backbones for Object Detection</a> by Yanghao Li, Hanzi Mao, Ross Girshick, Kaiming He.
VitDet leverages the plain <a href="vit">Vision Transformer</a> for the task of object detection.`,K,W,Te="The abstract from the paper is the following:",ee,J,ye="<em>We explore the plain, non-hierarchical Vision Transformer (ViT) as a backbone network for object detection. This design enables the original ViT architecture to be fine-tuned for object detection without needing to redesign a hierarchical backbone for pre-training. With minimal adaptations for fine-tuning, our plain-backbone detector can achieve competitive results. Surprisingly, we observe: (i) it is sufficient to build a simple feature pyramid from a single-scale feature map (without the common FPN design) and (ii) it is sufficient to use window attention (without shifting) aided with very few cross-window propagation blocks. With plain ViT backbones pre-trained as Masked Autoencoders (MAE), our detector, named ViTDet, can compete with the previous leading methods that were all based on hierarchical backbones, reaching up to 61.3 AP_box on the COCO dataset using only ImageNet-1K pre-training. We hope our study will draw attention to research on plain-backbone detectors.</em>",te,I,Ve=`This model was contributed by <a href="https://huggingface.co/nielsr" rel="nofollow">nielsr</a>.
The original code can be found <a href="https://github.com/facebookresearch/detectron2/tree/main/projects/ViTDet" rel="nofollow">here</a>.`,oe,U,Ce="Tips:",ne,R,xe="<li>At the moment, only the backbone is available.</li>",ae,P,se,g,G,pe,B,De=`This is the configuration class to store the configuration of a <a href="/docs/transformers/pr_30788/en/model_doc/vitdet#transformers.VitDetModel">VitDetModel</a>. It is used to instantiate an
VitDet 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 VitDet
<a href="https://huggingface.co/google/vitdet-base-patch16-224" rel="nofollow">google/vitdet-base-patch16-224</a> architecture.`,fe,N,ke=`Configuration objects inherit from <a href="/docs/transformers/pr_30788/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/pr_30788/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,ue,j,re,L,ie,V,F,he,S,je=`The bare VitDet Transformer 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.`,ge,y,H,_e,A,ze='The <a href="/docs/transformers/pr_30788/en/model_doc/vitdet#transformers.VitDetModel">VitDetModel</a> forward method, overrides the <code>__call__</code> special method.',be,z,ve,E,le,q,de,X,ce;return p=new me({props:{title:"ViTDet",local:"vitdet",headingTag:"h1"}}),f=new me({props:{title:"Overview",local:"overview",headingTag:"h2"}}),P=new me({props:{title:"VitDetConfig",local:"transformers.VitDetConfig",headingTag:"h2"}}),G=new we({props:{name:"class transformers.VitDetConfig",anchor:"transformers.VitDetConfig",parameters:[{name:"hidden_size",val:" = 768"},{name:"num_hidden_layers",val:" = 12"},{name:"num_attention_heads",val:" = 12"},{name:"mlp_ratio",val:" = 4"},{name:"hidden_act",val:" = 'gelu'"},{name:"dropout_prob",val:" = 0.0"},{name:"initializer_range",val:" = 0.02"},{name:"layer_norm_eps",val:" = 1e-06"},{name:"image_size",val:" = 224"},{name:"pretrain_image_size",val:" = 224"},{name:"patch_size",val:" = 16"},{name:"num_channels",val:" = 3"},{name:"qkv_bias",val:" = True"},{name:"drop_path_rate",val:" = 0.0"},{name:"window_block_indices",val:" = []"},{name:"residual_block_indices",val:" = []"},{name:"use_absolute_position_embeddings",val:" = True"},{name:"use_relative_position_embeddings",val:" = False"},{name:"window_size",val:" = 0"},{name:"out_features",val:" = None"},{name:"out_indices",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.VitDetConfig.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.VitDetConfig.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.VitDetConfig.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.VitDetConfig.mlp_ratio",description:`<strong>mlp_ratio</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014;
Ratio of mlp hidden dim to embedding dim.`,name:"mlp_ratio"},{anchor:"transformers.VitDetConfig.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.VitDetConfig.dropout_prob",description:`<strong>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:"dropout_prob"},{anchor:"transformers.VitDetConfig.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.VitDetConfig.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.VitDetConfig.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.VitDetConfig.pretrain_image_size",description:`<strong>pretrain_image_size</strong> (<code>int</code>, <em>optional</em>, defaults to 224) &#x2014;
The size (resolution) of each image during pretraining.`,name:"pretrain_image_size"},{anchor:"transformers.VitDetConfig.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.VitDetConfig.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.VitDetConfig.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.VitDetConfig.drop_path_rate",description:`<strong>drop_path_rate</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Stochastic depth rate.`,name:"drop_path_rate"},{anchor:"transformers.VitDetConfig.window_block_indices",description:`<strong>window_block_indices</strong> (<code>List[int]</code>, <em>optional</em>, defaults to <code>[]</code>) &#x2014;
List of indices of blocks that should have window attention instead of regular global self-attention.`,name:"window_block_indices"},{anchor:"transformers.VitDetConfig.residual_block_indices",description:`<strong>residual_block_indices</strong> (<code>List[int]</code>, <em>optional</em>, defaults to <code>[]</code>) &#x2014;
List of indices of blocks that should have an extra residual block after the MLP.`,name:"residual_block_indices"},{anchor:"transformers.VitDetConfig.use_absolute_position_embeddings",description:`<strong>use_absolute_position_embeddings</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to add absolute position embeddings to the patch embeddings.`,name:"use_absolute_position_embeddings"},{anchor:"transformers.VitDetConfig.use_relative_position_embeddings",description:`<strong>use_relative_position_embeddings</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to add relative position embeddings to the attention maps.`,name:"use_relative_position_embeddings"},{anchor:"transformers.VitDetConfig.window_size",description:`<strong>window_size</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
The size of the attention window.`,name:"window_size"},{anchor:"transformers.VitDetConfig.out_features",description:`<strong>out_features</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
If used as backbone, list of features to output. Can be any of <code>&quot;stem&quot;</code>, <code>&quot;stage1&quot;</code>, <code>&quot;stage2&quot;</code>, etc.
(depending on how many stages the model has). If unset and <code>out_indices</code> is set, will default to the
corresponding stages. If unset and <code>out_indices</code> is unset, will default to the last stage. Must be in the
same order as defined in the <code>stage_names</code> attribute.`,name:"out_features"},{anchor:"transformers.VitDetConfig.out_indices",description:`<strong>out_indices</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
If used as backbone, list of indices of features to output. Can be any of 0, 1, 2, etc. (depending on how
many stages the model has). If unset and <code>out_features</code> is set, will default to the corresponding stages.
If unset and <code>out_features</code> is unset, will default to the last stage. Must be in the
same order as defined in the <code>stage_names</code> attribute.`,name:"out_indices"}],source:"https://github.com/huggingface/transformers/blob/vr_30788/src/transformers/models/vitdet/configuration_vitdet.py#L25"}}),j=new Ee({props:{anchor:"transformers.VitDetConfig.example",$$slots:{default:[Le]},$$scope:{ctx:k}}}),L=new me({props:{title:"VitDetModel",local:"transformers.VitDetModel",headingTag:"h2"}}),F=new we({props:{name:"class transformers.VitDetModel",anchor:"transformers.VitDetModel",parameters:[{name:"config",val:": VitDetConfig"}],parametersDescription:[{anchor:"transformers.VitDetModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/pr_30788/en/model_doc/vitdet#transformers.VitDetConfig">VitDetConfig</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/pr_30788/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/vr_30788/src/transformers/models/vitdet/modeling_vitdet.py#L696"}}),H=new we({props:{name:"forward",anchor:"transformers.VitDetModel.forward",parameters:[{name:"pixel_values",val:": Optional = None"},{name:"head_mask",val:": Optional = None"},{name:"output_attentions",val:": Optional = None"},{name:"output_hidden_states",val:": Optional = None"},{name:"return_dict",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.VitDetModel.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/pr_30788/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See <a href="/docs/transformers/pr_30788/en/model_doc/levit#transformers.LevitFeatureExtractor.__call__">ViTImageProcessor.<strong>call</strong>()</a>
for details.`,name:"pixel_values"},{anchor:"transformers.VitDetModel.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.VitDetModel.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.VitDetModel.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.VitDetModel.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/pr_30788/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/vr_30788/src/transformers/models/vitdet/modeling_vitdet.py#L722",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <a
  href="/docs/transformers/pr_30788/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/pr_30788/en/model_doc/vitdet#transformers.VitDetConfig"
>VitDetConfig</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:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/transformers/pr_30788/en/main_classes/output#transformers.modeling_outputs.BaseModelOutput"
>transformers.modeling_outputs.BaseModelOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),z=new Pe({props:{$$slots:{default:[Fe]},$$scope:{ctx:k}}}),E=new Ee({props:{anchor:"transformers.VitDetModel.forward.example",$$slots:{default:[He]},$$scope:{ctx:k}}}),q=new Ge({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/model_doc/vitdet.md"}}),{c(){a=c("meta"),h=r(),d=c("p"),l=r(),_(p.$$.fragment),n=r(),_(f.$$.fragment),Y=r(),Z=c("p"),Z.innerHTML=Me,K=r(),W=c("p"),W.textContent=Te,ee=r(),J=c("p"),J.innerHTML=ye,te=r(),I=c("p"),I.innerHTML=Ve,oe=r(),U=c("p"),U.textContent=Ce,ne=r(),R=c("ul"),R.innerHTML=xe,ae=r(),_(P.$$.fragment),se=r(),g=c("div"),_(G.$$.fragment),pe=r(),B=c("p"),B.innerHTML=De,fe=r(),N=c("p"),N.innerHTML=ke,ue=r(),_(j.$$.fragment),re=r(),_(L.$$.fragment),ie=r(),V=c("div"),_(F.$$.fragment),he=r(),S=c("p"),S.innerHTML=je,ge=r(),y=c("div"),_(H.$$.fragment),_e=r(),A=c("p"),A.innerHTML=ze,be=r(),_(z.$$.fragment),ve=r(),_(E.$$.fragment),le=r(),_(q.$$.fragment),de=r(),X=c("p"),this.h()},l(e){const t=Re("svelte-u9bgzb",document.head);a=m(t,"META",{name:!0,content:!0}),t.forEach(o),h=i(e),d=m(e,"P",{}),O(d).forEach(o),l=i(e),b(p.$$.fragment,e),n=i(e),b(f.$$.fragment,e),Y=i(e),Z=m(e,"P",{"data-svelte-h":!0}),T(Z)!=="svelte-brze68"&&(Z.innerHTML=Me),K=i(e),W=m(e,"P",{"data-svelte-h":!0}),T(W)!=="svelte-vfdo9a"&&(W.textContent=Te),ee=i(e),J=m(e,"P",{"data-svelte-h":!0}),T(J)!=="svelte-dasg8s"&&(J.innerHTML=ye),te=i(e),I=m(e,"P",{"data-svelte-h":!0}),T(I)!=="svelte-14aeur3"&&(I.innerHTML=Ve),oe=i(e),U=m(e,"P",{"data-svelte-h":!0}),T(U)!=="svelte-axv494"&&(U.textContent=Ce),ne=i(e),R=m(e,"UL",{"data-svelte-h":!0}),T(R)!=="svelte-1cc6n3i"&&(R.innerHTML=xe),ae=i(e),b(P.$$.fragment,e),se=i(e),g=m(e,"DIV",{class:!0});var C=O(g);b(G.$$.fragment,C),pe=i(C),B=m(C,"P",{"data-svelte-h":!0}),T(B)!=="svelte-1v238m3"&&(B.innerHTML=De),fe=i(C),N=m(C,"P",{"data-svelte-h":!0}),T(N)!=="svelte-1obt5hj"&&(N.innerHTML=ke),ue=i(C),b(j.$$.fragment,C),C.forEach(o),re=i(e),b(L.$$.fragment,e),ie=i(e),V=m(e,"DIV",{class:!0});var D=O(V);b(F.$$.fragment,D),he=i(D),S=m(D,"P",{"data-svelte-h":!0}),T(S)!=="svelte-1cui7vp"&&(S.innerHTML=je),ge=i(D),y=m(D,"DIV",{class:!0});var x=O(y);b(H.$$.fragment,x),_e=i(x),A=m(x,"P",{"data-svelte-h":!0}),T(A)!=="svelte-1vgkl8j"&&(A.innerHTML=ze),be=i(x),b(z.$$.fragment,x),ve=i(x),b(E.$$.fragment,x),x.forEach(o),D.forEach(o),le=i(e),b(q.$$.fragment,e),de=i(e),X=m(e,"P",{}),O(X).forEach(o),this.h()},h(){Q(a,"name","hf:doc:metadata"),Q(a,"content",Be),Q(g,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Q(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Q(V,"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,t){u(document.head,a),s(e,h,t),s(e,d,t),s(e,l,t),v(p,e,t),s(e,n,t),v(f,e,t),s(e,Y,t),s(e,Z,t),s(e,K,t),s(e,W,t),s(e,ee,t),s(e,J,t),s(e,te,t),s(e,I,t),s(e,oe,t),s(e,U,t),s(e,ne,t),s(e,R,t),s(e,ae,t),v(P,e,t),s(e,se,t),s(e,g,t),v(G,g,null),u(g,pe),u(g,B),u(g,fe),u(g,N),u(g,ue),v(j,g,null),s(e,re,t),v(L,e,t),s(e,ie,t),s(e,V,t),v(F,V,null),u(V,he),u(V,S),u(V,ge),u(V,y),v(H,y,null),u(y,_e),u(y,A),u(y,be),v(z,y,null),u(y,ve),v(E,y,null),s(e,le,t),v(q,e,t),s(e,de,t),s(e,X,t),ce=!0},p(e,[t]){const C={};t&2&&(C.$$scope={dirty:t,ctx:e}),j.$set(C);const D={};t&2&&(D.$$scope={dirty:t,ctx:e}),z.$set(D);const x={};t&2&&(x.$$scope={dirty:t,ctx:e}),E.$set(x)},i(e){ce||(w(p.$$.fragment,e),w(f.$$.fragment,e),w(P.$$.fragment,e),w(G.$$.fragment,e),w(j.$$.fragment,e),w(L.$$.fragment,e),w(F.$$.fragment,e),w(H.$$.fragment,e),w(z.$$.fragment,e),w(E.$$.fragment,e),w(q.$$.fragment,e),ce=!0)},o(e){$(p.$$.fragment,e),$(f.$$.fragment,e),$(P.$$.fragment,e),$(G.$$.fragment,e),$(j.$$.fragment,e),$(L.$$.fragment,e),$(F.$$.fragment,e),$(H.$$.fragment,e),$(z.$$.fragment,e),$(E.$$.fragment,e),$(q.$$.fragment,e),ce=!1},d(e){e&&(o(h),o(d),o(l),o(n),o(Y),o(Z),o(K),o(W),o(ee),o(J),o(te),o(I),o(oe),o(U),o(ne),o(R),o(ae),o(se),o(g),o(re),o(ie),o(V),o(le),o(de),o(X)),o(a),M(p,e),M(f,e),M(P,e),M(G),M(j),M(L,e),M(F),M(H),M(z),M(E),M(q,e)}}}const Be='{"title":"ViTDet","local":"vitdet","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"VitDetConfig","local":"transformers.VitDetConfig","sections":[],"depth":2},{"title":"VitDetModel","local":"transformers.VitDetModel","sections":[],"depth":2}],"depth":1}';function Ne(k){return Je(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class et extends Ie{constructor(a){super(),Ue(this,a,Ne,qe,We,{})}}export{et as component};
