import{s as Lo,o as Ao,n as ot}from"../chunks/scheduler.9bc65507.js";import{S as So,i as qo,g as o,s as l,u as _,A as Go,h as n,f as t,c,j as f,v as b,y as g,k as m,o as a,a as i,w as v,d as y,t as w,x as C}from"../chunks/index.78c82d43.js";import{T as Wo}from"../chunks/Tip.87d55b76.js";import{D as Be}from"../chunks/Docstring.f3d04bd2.js";import{C as oo}from"../chunks/CodeBlock.48618ec2.js";import{I as xe}from"../chunks/IconCopyLink.bedaa44d.js";import{E as to}from"../chunks/ExampleCodeBlock.872b014d.js";import{P as Ho}from"../chunks/PipelineTag.75b0f707.js";function Vo(x){let d,$="Example:",p,h,u;return h=new oo({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEJpdENvbmZpZyUyQyUyMEJpdE1vZGVsJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMEJpVCUyMGJpdC01MCUyMHN0eWxlJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBCaXRDb25maWcoKSUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBtb2RlbCUyMCh3aXRoJTIwcmFuZG9tJTIwd2VpZ2h0cyklMjBmcm9tJTIwdGhlJTIwYml0LTUwJTIwc3R5bGUlMjBjb25maWd1cmF0aW9uJTBBbW9kZWwlMjAlM0QlMjBCaXRNb2RlbChjb25maWd1cmF0aW9uKSUwQSUwQSUyMyUyMEFjY2Vzc2luZyUyMHRoZSUyMG1vZGVsJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBtb2RlbC5jb25maWc=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> BitConfig, BitModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a BiT bit-50 style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = BitConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model (with random weights) from the bit-50 style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BitModel(configuration)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Accessing the model configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = model.config`}}),{c(){d=o("p"),d.textContent=$,p=l(),_(h.$$.fragment)},l(r){d=n(r,"P",{"data-svelte-h":!0}),g(d)!=="svelte-11lpom8"&&(d.textContent=$),p=c(r),b(h.$$.fragment,r)},m(r,T){i(r,d,T),i(r,p,T),v(h,r,T),u=!0},p:ot,i(r){u||(y(h.$$.fragment,r),u=!0)},o(r){w(h.$$.fragment,r),u=!1},d(r){r&&(t(d),t(p)),C(h,r)}}}function Xo(x){let d,$=`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(){d=o("p"),d.innerHTML=$},l(p){d=n(p,"P",{"data-svelte-h":!0}),g(d)!=="svelte-fincs2"&&(d.innerHTML=$)},m(p,h){i(p,d,h)},p:ot,d(p){p&&t(d)}}}function Qo(x){let d,$="Example:",p,h,u;return h=new oo({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMEJpdE1vZGVsJTBBaW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGF0YXNldHMlMjBpbXBvcnQlMjBsb2FkX2RhdGFzZXQlMEElMEFkYXRhc2V0JTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMmh1Z2dpbmdmYWNlJTJGY2F0cy1pbWFnZSUyMiklMEFpbWFnZSUyMCUzRCUyMGRhdGFzZXQlNUIlMjJ0ZXN0JTIyJTVEJTVCJTIyaW1hZ2UlMjIlNUQlNUIwJTVEJTBBJTBBaW1hZ2VfcHJvY2Vzc29yJTIwJTNEJTIwQXV0b0ltYWdlUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJnb29nbGUlMkZiaXQtNTAlMjIpJTBBbW9kZWwlMjAlM0QlMjBCaXRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyZ29vZ2xlJTJGYml0LTUwJTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMGltYWdlX3Byb2Nlc3NvcihpbWFnZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBJTBBd2l0aCUyMHRvcmNoLm5vX2dyYWQoKSUzQSUwQSUyMCUyMCUyMCUyMG91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyklMEElMEFsYXN0X2hpZGRlbl9zdGF0ZXMlMjAlM0QlMjBvdXRwdXRzLmxhc3RfaGlkZGVuX3N0YXRlJTBBbGlzdChsYXN0X2hpZGRlbl9zdGF0ZXMuc2hhcGUp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, BitModel
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;huggingface/cats-image&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image = dataset[<span class="hljs-string">&quot;test&quot;</span>][<span class="hljs-string">&quot;image&quot;</span>][<span class="hljs-number">0</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span>image_processor = AutoImageProcessor.from_pretrained(<span class="hljs-string">&quot;google/bit-50&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BitModel.from_pretrained(<span class="hljs-string">&quot;google/bit-50&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">2048</span>, <span class="hljs-number">7</span>, <span class="hljs-number">7</span>]`}}),{c(){d=o("p"),d.textContent=$,p=l(),_(h.$$.fragment)},l(r){d=n(r,"P",{"data-svelte-h":!0}),g(d)!=="svelte-11lpom8"&&(d.textContent=$),p=c(r),b(h.$$.fragment,r)},m(r,T){i(r,d,T),i(r,p,T),v(h,r,T),u=!0},p:ot,i(r){u||(y(h.$$.fragment,r),u=!0)},o(r){w(h.$$.fragment,r),u=!1},d(r){r&&(t(d),t(p)),C(h,r)}}}function Yo(x){let d,$=`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(){d=o("p"),d.innerHTML=$},l(p){d=n(p,"P",{"data-svelte-h":!0}),g(d)!=="svelte-fincs2"&&(d.innerHTML=$)},m(p,h){i(p,d,h)},p:ot,d(p){p&&t(d)}}}function Do(x){let d,$="Example:",p,h,u;return h=new oo({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMEJpdEZvckltYWdlQ2xhc3NpZmljYXRpb24lMEFpbXBvcnQlMjB0b3JjaCUwQWZyb20lMjBkYXRhc2V0cyUyMGltcG9ydCUyMGxvYWRfZGF0YXNldCUwQSUwQWRhdGFzZXQlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyaHVnZ2luZ2ZhY2UlMkZjYXRzLWltYWdlJTIyKSUwQWltYWdlJTIwJTNEJTIwZGF0YXNldCU1QiUyMnRlc3QlMjIlNUQlNUIlMjJpbWFnZSUyMiU1RCU1QjAlNUQlMEElMEFpbWFnZV9wcm9jZXNzb3IlMjAlM0QlMjBBdXRvSW1hZ2VQcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMmdvb2dsZSUyRmJpdC01MCUyMiklMEFtb2RlbCUyMCUzRCUyMEJpdEZvckltYWdlQ2xhc3NpZmljYXRpb24uZnJvbV9wcmV0cmFpbmVkKCUyMmdvb2dsZSUyRmJpdC01MCUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjBpbWFnZV9wcm9jZXNzb3IoaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQSUwQXdpdGglMjB0b3JjaC5ub19ncmFkKCklM0ElMEElMjAlMjAlMjAlMjBsb2dpdHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cykubG9naXRzJTBBJTBBJTIzJTIwbW9kZWwlMjBwcmVkaWN0cyUyMG9uZSUyMG9mJTIwdGhlJTIwMTAwMCUyMEltYWdlTmV0JTIwY2xhc3NlcyUwQXByZWRpY3RlZF9sYWJlbCUyMCUzRCUyMGxvZ2l0cy5hcmdtYXgoLTEpLml0ZW0oKSUwQXByaW50KG1vZGVsLmNvbmZpZy5pZDJsYWJlbCU1QnByZWRpY3RlZF9sYWJlbCU1RCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, BitForImageClassification
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;huggingface/cats-image&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image = dataset[<span class="hljs-string">&quot;test&quot;</span>][<span class="hljs-string">&quot;image&quot;</span>][<span class="hljs-number">0</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span>image_processor = AutoImageProcessor.from_pretrained(<span class="hljs-string">&quot;google/bit-50&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BitForImageClassification.from_pretrained(<span class="hljs-string">&quot;google/bit-50&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])
tiger cat`}}),{c(){d=o("p"),d.textContent=$,p=l(),_(h.$$.fragment)},l(r){d=n(r,"P",{"data-svelte-h":!0}),g(d)!=="svelte-11lpom8"&&(d.textContent=$),p=c(r),b(h.$$.fragment,r)},m(r,T){i(r,d,T),i(r,p,T),v(h,r,T),u=!0},p:ot,i(r){u||(y(h.$$.fragment,r),u=!0)},o(r){w(h.$$.fragment,r),u=!1},d(r){r&&(t(d),t(p)),C(h,r)}}}function Oo(x){let d,$,p,h,u,r,T,ee,Pt,Ie,no="Big Transfer (BiT)",nt,U,E,He,te,Ut,je,so="Overview",st,oe,ao=`The BiT model was proposed in <a href="https://arxiv.org/abs/1912.11370" rel="nofollow">Big Transfer (BiT): General Visual Representation Learning</a> by Alexander Kolesnikov, Lucas Beyer, Xiaohua Zhai, Joan Puigcerver, Jessica Yung, Sylvain Gelly, Neil Houlsby.
BiT is a simple recipe for scaling up pre-training of <a href="resnet">ResNet</a>-like architectures (specifically, ResNetv2). The method results in significant improvements for transfer learning.`,at,ne,ro="The abstract from the paper is the following:",rt,se,io="<em>Transfer of pre-trained representations improves sample efficiency and simplifies hyperparameter tuning when training deep neural networks for vision. We revisit the paradigm of pre-training on large supervised datasets and fine-tuning the model on a target task. We scale up pre-training, and propose a simple recipe that we call Big Transfer (BiT). By combining a few carefully selected components, and transferring using a simple heuristic, we achieve strong performance on over 20 datasets. BiT performs well across a surprisingly wide range of data regimes — from 1 example per class to 1M total examples. BiT achieves 87.5% top-1 accuracy on ILSVRC-2012, 99.4% on CIFAR-10, and 76.3% on the 19 task Visual Task Adaptation Benchmark (VTAB). On small datasets, BiT attains 76.8% on ILSVRC-2012 with 10 examples per class, and 97.0% on CIFAR-10 with 10 examples per class. We conduct detailed analysis of the main components that lead to high transfer performance.</em>",it,ae,lo="Tips:",lt,re,co=`<li>BiT models are equivalent to ResNetv2 in terms of architecture, except that: 1) all batch normalization layers are replaced by <a href="https://arxiv.org/abs/1803.08494" rel="nofollow">group normalization</a>,
2) <a href="https://arxiv.org/abs/1903.10520" rel="nofollow">weight standardization</a> is used for convolutional layers. The authors show that the combination of both is useful for training with large batch sizes, and has a significant
impact on transfer learning.</li>`,ct,ie,mo=`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/google-research/big_transfer" rel="nofollow">here</a>.`,dt,N,Z,Ve,le,Nt,ze,po="Resources",mt,ce,ho="A list of official Hugging Face and community (indicated by 🌎) resources to help you get started with BiT.",pt,de,ht,me,fo='<li><a href="/docs/transformers/v4.33.3/en/model_doc/bit#transformers.BitForImageClassification">BitForImageClassification</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>',ft,pe,go="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.",gt,k,W,Xe,he,kt,Pe,uo="BitConfig",ut,M,fe,Ft,Ue,_o=`This is the configuration class to store the configuration of a <a href="/docs/transformers/v4.33.3/en/model_doc/bit#transformers.BitModel">BitModel</a>. It is used to instantiate an BiT
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 BiT
<a href="https://huggingface.co/google/bit-50" rel="nofollow">google/bit-50</a> architecture.`,Rt,Ne,bo=`Configuration objects inherit from <a href="/docs/transformers/v4.33.3/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.33.3/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,Jt,L,_t,F,A,Qe,ge,Et,ke,vo="BitImageProcessor",bt,z,ue,Zt,Fe,yo="Constructs a BiT image processor.",Wt,S,_e,Lt,Re,wo="Preprocess an image or batch of images.",vt,R,q,Ye,be,At,Je,Co="BitModel",yt,P,ve,St,Ee,$o=`The bare BiT model outputting raw features 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.`,qt,I,ye,Gt,Ze,To='The <a href="/docs/transformers/v4.33.3/en/model_doc/bit#transformers.BitModel">BitModel</a> forward method, overrides the <code>__call__</code> special method.',Ht,G,Vt,H,wt,J,V,De,we,Xt,We,Mo="BitForImageClassification",Ct,B,Ce,Qt,Le,Bo=`BiT Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`,Yt,Ae,xo=`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.`,Dt,j,$e,Ot,Se,Io='The <a href="/docs/transformers/v4.33.3/en/model_doc/bit#transformers.BitForImageClassification">BitForImageClassification</a> forward method, overrides the <code>__call__</code> special method.',Kt,X,eo,Q,$t,Oe,Tt;return ee=new xe({}),te=new xe({}),le=new xe({}),de=new Ho({props:{pipeline:"image-classification"}}),he=new xe({}),fe=new Be({props:{name:"class transformers.BitConfig",anchor:"transformers.BitConfig",parameters:[{name:"num_channels",val:" = 3"},{name:"embedding_size",val:" = 64"},{name:"hidden_sizes",val:" = [256, 512, 1024, 2048]"},{name:"depths",val:" = [3, 4, 6, 3]"},{name:"layer_type",val:" = 'preactivation'"},{name:"hidden_act",val:" = 'relu'"},{name:"global_padding",val:" = None"},{name:"num_groups",val:" = 32"},{name:"drop_path_rate",val:" = 0.0"},{name:"embedding_dynamic_padding",val:" = False"},{name:"output_stride",val:" = 32"},{name:"width_factor",val:" = 1"},{name:"out_features",val:" = None"},{name:"out_indices",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.BitConfig.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.BitConfig.embedding_size",description:`<strong>embedding_size</strong> (<code>int</code>, <em>optional</em>, defaults to 64) &#x2014;
Dimensionality (hidden size) for the embedding layer.`,name:"embedding_size"},{anchor:"transformers.BitConfig.hidden_sizes",description:`<strong>hidden_sizes</strong> (<code>List[int]</code>, <em>optional</em>, defaults to <code>[256, 512, 1024, 2048]</code>) &#x2014;
Dimensionality (hidden size) at each stage.`,name:"hidden_sizes"},{anchor:"transformers.BitConfig.depths",description:`<strong>depths</strong> (<code>List[int]</code>, <em>optional</em>, defaults to <code>[3, 4, 6, 3]</code>) &#x2014;
Depth (number of layers) for each stage.`,name:"depths"},{anchor:"transformers.BitConfig.layer_type",description:`<strong>layer_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;preactivation&quot;</code>) &#x2014;
The layer to use, it can be either <code>&quot;preactivation&quot;</code> or <code>&quot;bottleneck&quot;</code>.`,name:"layer_type"},{anchor:"transformers.BitConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;relu&quot;</code>) &#x2014;
The non-linear activation function in each block. 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.BitConfig.global_padding",description:`<strong>global_padding</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Padding strategy to use for the convolutional layers. Can be either <code>&quot;valid&quot;</code>, <code>&quot;same&quot;</code>, or <code>None</code>.`,name:"global_padding"},{anchor:"transformers.BitConfig.num_groups",description:`<strong>num_groups</strong> (<code>int</code>, <em>optional</em>, defaults to <code>32</code>) &#x2014;
Number of groups used for the <code>BitGroupNormActivation</code> layers.`,name:"num_groups"},{anchor:"transformers.BitConfig.drop_path_rate",description:`<strong>drop_path_rate</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The drop path rate for the stochastic depth.`,name:"drop_path_rate"},{anchor:"transformers.BitConfig.embedding_dynamic_padding",description:`<strong>embedding_dynamic_padding</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to make use of dynamic padding for the embedding layer.`,name:"embedding_dynamic_padding"},{anchor:"transformers.BitConfig.output_stride",description:`<strong>output_stride</strong> (<code>int</code>, <em>optional</em>, defaults to 32) &#x2014;
The output stride of the model.`,name:"output_stride"},{anchor:"transformers.BitConfig.width_factor",description:`<strong>width_factor</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The width factor for the model.`,name:"width_factor"},{anchor:"transformers.BitConfig.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.`,name:"out_features"},{anchor:"transformers.BitConfig.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.`,name:"out_indices"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/bit/configuration_bit.py#L29"}}),L=new to({props:{anchor:"transformers.BitConfig.example",$$slots:{default:[Vo]},$$scope:{ctx:x}}}),ge=new xe({}),ue=new Be({props:{name:"class transformers.BitImageProcessor",anchor:"transformers.BitImageProcessor",parameters:[{name:"do_resize",val:": bool = True"},{name:"size",val:": typing.Dict[str, int] = None"},{name:"resample",val:": Resampling = <Resampling.BICUBIC: 3>"},{name:"do_center_crop",val:": bool = True"},{name:"crop_size",val:": typing.Dict[str, int] = None"},{name:"do_rescale",val:": bool = True"},{name:"rescale_factor",val:": typing.Union[int, float] = 0.00392156862745098"},{name:"do_normalize",val:": bool = True"},{name:"image_mean",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"image_std",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"do_convert_rgb",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.BitImageProcessor.do_resize",description:`<strong>do_resize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to resize the image&#x2019;s (height, width) dimensions to the specified <code>size</code>. Can be overridden by
<code>do_resize</code> in the <code>preprocess</code> method.`,name:"do_resize"},{anchor:"transformers.BitImageProcessor.size",description:`<strong>size</strong> (<code>Dict[str, int]</code> <em>optional</em>, defaults to <code>{&quot;shortest_edge&quot; -- 224}</code>):
Size of the image after resizing. The shortest edge of the image is resized to size[&#x201C;shortest_edge&#x201D;], with
the longest edge resized to keep the input aspect ratio. Can be overridden by <code>size</code> in the <code>preprocess</code>
method.`,name:"size"},{anchor:"transformers.BitImageProcessor.resample",description:`<strong>resample</strong> (<code>PILImageResampling</code>, <em>optional</em>, defaults to <code>PILImageResampling.BICUBIC</code>) &#x2014;
Resampling filter to use if resizing the image. Can be overridden by <code>resample</code> in the <code>preprocess</code> method.`,name:"resample"},{anchor:"transformers.BitImageProcessor.do_center_crop",description:`<strong>do_center_crop</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to center crop the image to the specified <code>crop_size</code>. Can be overridden by <code>do_center_crop</code> in the
<code>preprocess</code> method.`,name:"do_center_crop"},{anchor:"transformers.BitImageProcessor.crop_size",description:`<strong>crop_size</strong> (<code>Dict[str, int]</code> <em>optional</em>, defaults to 224) &#x2014;
Size of the output image after applying <code>center_crop</code>. Can be overridden by <code>crop_size</code> in the <code>preprocess</code>
method.`,name:"crop_size"},{anchor:"transformers.BitImageProcessor.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 <code>do_rescale</code> in
the <code>preprocess</code> method.`,name:"do_rescale"},{anchor:"transformers.BitImageProcessor.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 <code>rescale_factor</code> in the <code>preprocess</code>
method.
do_normalize &#x2014;
Whether to normalize the image. Can be overridden by <code>do_normalize</code> in the <code>preprocess</code> method.`,name:"rescale_factor"},{anchor:"transformers.BitImageProcessor.image_mean",description:`<strong>image_mean</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>OPENAI_CLIP_MEAN</code>) &#x2014;
Mean to use if normalizing the image. This is a float or list of floats the length of the number of
channels in the image. Can be overridden by the <code>image_mean</code> parameter in the <code>preprocess</code> method.`,name:"image_mean"},{anchor:"transformers.BitImageProcessor.image_std",description:`<strong>image_std</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>OPENAI_CLIP_MEAN</code>) &#x2014;
Image standard deviation.`,name:"image_std"},{anchor:"transformers.BitImageProcessor.do_convert_rgb",description:`<strong>do_convert_rgb</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Standard deviation to use if normalizing the image. This is a float or list of floats the length of the
number of channels in the image. Can be overridden by the <code>image_std</code> parameter in the <code>preprocess</code> method.`,name:"do_convert_rgb"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/bit/image_processing_bit.py#L50"}}),_e=new Be({props:{name:"preprocess",anchor:"transformers.BitImageProcessor.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_center_crop",val:": bool = None"},{name:"crop_size",val:": int = None"},{name:"do_rescale",val:": bool = None"},{name:"rescale_factor",val:": float = None"},{name:"do_normalize",val:": bool = None"},{name:"image_mean",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"image_std",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"do_convert_rgb",val:": bool = None"},{name:"return_tensors",val:": typing.Union[str, transformers.utils.generic.TensorType, NoneType] = None"},{name:"data_format",val:": typing.Optional[transformers.image_utils.ChannelDimension] = <ChannelDimension.FIRST: 'channels_first'>"},{name:"input_data_format",val:": typing.Union[str, transformers.image_utils.ChannelDimension, NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.BitImageProcessor.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.BitImageProcessor.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.BitImageProcessor.preprocess.size",description:`<strong>size</strong> (<code>Dict[str, int]</code>, <em>optional</em>, defaults to <code>self.size</code>) &#x2014;
Size of the image after resizing. Shortest edge of the image is resized to size[&#x201C;shortest_edge&#x201D;], with
the longest edge resized to keep the input aspect ratio.`,name:"size"},{anchor:"transformers.BitImageProcessor.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.BitImageProcessor.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.BitImageProcessor.preprocess.crop_size",description:`<strong>crop_size</strong> (<code>Dict[str, int]</code>, <em>optional</em>, defaults to <code>self.crop_size</code>) &#x2014;
Size of the center crop. Only has an effect if <code>do_center_crop</code> is set to <code>True</code>.`,name:"crop_size"},{anchor:"transformers.BitImageProcessor.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.`,name:"do_rescale"},{anchor:"transformers.BitImageProcessor.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.BitImageProcessor.preprocess.do_normalize",description:`<strong>do_normalize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_normalize</code>) &#x2014;
Whether to normalize the image.`,name:"do_normalize"},{anchor:"transformers.BitImageProcessor.preprocess.image_mean",description:`<strong>image_mean</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>self.image_mean</code>) &#x2014;
Image mean to use for normalization. Only has an effect if <code>do_normalize</code> is set to <code>True</code>.`,name:"image_mean"},{anchor:"transformers.BitImageProcessor.preprocess.image_std",description:`<strong>image_std</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>self.image_std</code>) &#x2014;
Image standard deviation to use for normalization. Only has an effect if <code>do_normalize</code> is set to
<code>True</code>.`,name:"image_std"},{anchor:"transformers.BitImageProcessor.preprocess.do_convert_rgb",description:`<strong>do_convert_rgb</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_convert_rgb</code>) &#x2014;
Whether to convert the image to RGB.`,name:"do_convert_rgb"},{anchor:"transformers.BitImageProcessor.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.BitImageProcessor.preprocess.data_format",description:`<strong>data_format</strong> (<code>ChannelDimension</code> or <code>str</code>, <em>optional</em>, defaults to <code>ChannelDimension.FIRST</code>) &#x2014;
The channel dimension format for the output image. Can be one of:<ul>
<li><code>&quot;channels_first&quot;</code> or <code>ChannelDimension.FIRST</code>: image in (num_channels, height, width) format.</li>
<li><code>&quot;channels_last&quot;</code> or <code>ChannelDimension.LAST</code>: image in (height, width, num_channels) format.</li>
<li>Unset: Use the channel dimension format of the input image.</li>
</ul>`,name:"data_format"},{anchor:"transformers.BitImageProcessor.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.33.3/src/transformers/models/bit/image_processing_bit.py#L164"}}),be=new xe({}),ve=new Be({props:{name:"class transformers.BitModel",anchor:"transformers.BitModel",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.BitModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/bit#transformers.BitConfig">BitConfig</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.33.3/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.33.3/src/transformers/models/bit/modeling_bit.py#L706"}}),ye=new Be({props:{name:"forward",anchor:"transformers.BitModel.forward",parameters:[{name:"pixel_values",val:": Tensor"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.BitModel.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.33.3/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See <a href="/docs/transformers/v4.33.3/en/model_doc/mobilevit#transformers.MobileViTFeatureExtractor.__call__">BitImageProcessor.<strong>call</strong>()</a>
for details.`,name:"pixel_values"},{anchor:"transformers.BitModel.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.BitModel.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.33.3/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.33.3/src/transformers/models/bit/modeling_bit.py#L724",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.33.3/en/model_doc/bit#transformers.BitConfig"
>BitConfig</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>
`}}),G=new Wo({props:{$$slots:{default:[Xo]},$$scope:{ctx:x}}}),H=new to({props:{anchor:"transformers.BitModel.forward.example",$$slots:{default:[Qo]},$$scope:{ctx:x}}}),we=new xe({}),Ce=new Be({props:{name:"class transformers.BitForImageClassification",anchor:"transformers.BitForImageClassification",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.BitForImageClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/bit#transformers.BitConfig">BitConfig</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.33.3/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.33.3/src/transformers/models/bit/modeling_bit.py#L769"}}),$e=new Be({props:{name:"forward",anchor:"transformers.BitForImageClassification.forward",parameters:[{name:"pixel_values",val:": typing.Optional[torch.FloatTensor] = None"},{name:"labels",val:": typing.Optional[torch.LongTensor] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.BitForImageClassification.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.33.3/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See <a href="/docs/transformers/v4.33.3/en/model_doc/mobilevit#transformers.MobileViTFeatureExtractor.__call__">BitImageProcessor.<strong>call</strong>()</a>
for details.`,name:"pixel_values"},{anchor:"transformers.BitForImageClassification.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.BitForImageClassification.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.33.3/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.BitForImageClassification.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 &gt; 1</code> a classification loss is computed (Cross-Entropy).`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/bit/modeling_bit.py#L782",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.33.3/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.33.3/en/model_doc/bit#transformers.BitConfig"
>BitConfig</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.33.3/en/main_classes/output#transformers.modeling_outputs.ImageClassifierOutputWithNoAttention"
>transformers.modeling_outputs.ImageClassifierOutputWithNoAttention</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),X=new Wo({props:{$$slots:{default:[Yo]},$$scope:{ctx:x}}}),Q=new to({props:{anchor:"transformers.BitForImageClassification.forward.example",$$slots:{default:[Do]},$$scope:{ctx:x}}}),{c(){d=o("meta"),$=l(),p=o("p"),h=l(),u=o("h1"),r=o("a"),T=o("span"),_(ee.$$.fragment),Pt=l(),Ie=o("span"),Ie.textContent=no,nt=l(),U=o("h2"),E=o("a"),He=o("span"),_(te.$$.fragment),Ut=l(),je=o("span"),je.textContent=so,st=l(),oe=o("p"),oe.innerHTML=ao,at=l(),ne=o("p"),ne.textContent=ro,rt=l(),se=o("p"),se.innerHTML=io,it=l(),ae=o("p"),ae.textContent=lo,lt=l(),re=o("ul"),re.innerHTML=co,ct=l(),ie=o("p"),ie.innerHTML=mo,dt=l(),N=o("h2"),Z=o("a"),Ve=o("span"),_(le.$$.fragment),Nt=l(),ze=o("span"),ze.textContent=po,mt=l(),ce=o("p"),ce.textContent=ho,pt=l(),_(de.$$.fragment),ht=l(),me=o("ul"),me.innerHTML=fo,ft=l(),pe=o("p"),pe.textContent=go,gt=l(),k=o("h2"),W=o("a"),Xe=o("span"),_(he.$$.fragment),kt=l(),Pe=o("span"),Pe.textContent=uo,ut=l(),M=o("div"),_(fe.$$.fragment),Ft=l(),Ue=o("p"),Ue.innerHTML=_o,Rt=l(),Ne=o("p"),Ne.innerHTML=bo,Jt=l(),_(L.$$.fragment),_t=l(),F=o("h2"),A=o("a"),Qe=o("span"),_(ge.$$.fragment),Et=l(),ke=o("span"),ke.textContent=vo,bt=l(),z=o("div"),_(ue.$$.fragment),Zt=l(),Fe=o("p"),Fe.textContent=yo,Wt=l(),S=o("div"),_(_e.$$.fragment),Lt=l(),Re=o("p"),Re.textContent=wo,vt=l(),R=o("h2"),q=o("a"),Ye=o("span"),_(be.$$.fragment),At=l(),Je=o("span"),Je.textContent=Co,yt=l(),P=o("div"),_(ve.$$.fragment),St=l(),Ee=o("p"),Ee.innerHTML=$o,qt=l(),I=o("div"),_(ye.$$.fragment),Gt=l(),Ze=o("p"),Ze.innerHTML=To,Ht=l(),_(G.$$.fragment),Vt=l(),_(H.$$.fragment),wt=l(),J=o("h2"),V=o("a"),De=o("span"),_(we.$$.fragment),Xt=l(),We=o("span"),We.textContent=Mo,Ct=l(),B=o("div"),_(Ce.$$.fragment),Qt=l(),Le=o("p"),Le.textContent=Bo,Yt=l(),Ae=o("p"),Ae.innerHTML=xo,Dt=l(),j=o("div"),_($e.$$.fragment),Ot=l(),Se=o("p"),Se.innerHTML=Io,Kt=l(),_(X.$$.fragment),eo=l(),_(Q.$$.fragment),$t=l(),Oe=o("p"),this.h()},l(e){const s=Go("svelte-1phssyn",document.head);d=n(s,"META",{name:!0,content:!0}),s.forEach(t),$=c(e),p=n(e,"P",{}),f(p).forEach(t),h=c(e),u=n(e,"H1",{class:!0});var Te=f(u);r=n(Te,"A",{id:!0,class:!0,href:!0});var Ke=f(r);T=n(Ke,"SPAN",{});var et=f(T);b(ee.$$.fragment,et),et.forEach(t),Ke.forEach(t),Pt=c(Te),Ie=n(Te,"SPAN",{"data-svelte-h":!0}),g(Ie)!=="svelte-1c9ecf4"&&(Ie.textContent=no),Te.forEach(t),nt=c(e),U=n(e,"H2",{class:!0});var Me=f(U);E=n(Me,"A",{id:!0,class:!0,href:!0});var tt=f(E);He=n(tt,"SPAN",{});var jo=f(He);b(te.$$.fragment,jo),jo.forEach(t),tt.forEach(t),Ut=c(Me),je=n(Me,"SPAN",{"data-svelte-h":!0}),g(je)!=="svelte-1jsw1pg"&&(je.textContent=so),Me.forEach(t),st=c(e),oe=n(e,"P",{"data-svelte-h":!0}),g(oe)!=="svelte-2l65fw"&&(oe.innerHTML=ao),at=c(e),ne=n(e,"P",{"data-svelte-h":!0}),g(ne)!=="svelte-vfdo9a"&&(ne.textContent=ro),rt=c(e),se=n(e,"P",{"data-svelte-h":!0}),g(se)!=="svelte-ea79tk"&&(se.innerHTML=io),it=c(e),ae=n(e,"P",{"data-svelte-h":!0}),g(ae)!=="svelte-axv494"&&(ae.textContent=lo),lt=c(e),re=n(e,"UL",{"data-svelte-h":!0}),g(re)!=="svelte-7gnaj2"&&(re.innerHTML=co),ct=c(e),ie=n(e,"P",{"data-svelte-h":!0}),g(ie)!=="svelte-114mxy8"&&(ie.innerHTML=mo),dt=c(e),N=n(e,"H2",{class:!0});var Mt=f(N);Z=n(Mt,"A",{id:!0,class:!0,href:!0});var zo=f(Z);Ve=n(zo,"SPAN",{});var Po=f(Ve);b(le.$$.fragment,Po),Po.forEach(t),zo.forEach(t),Nt=c(Mt),ze=n(Mt,"SPAN",{"data-svelte-h":!0}),g(ze)!=="svelte-w4zzv6"&&(ze.textContent=po),Mt.forEach(t),mt=c(e),ce=n(e,"P",{"data-svelte-h":!0}),g(ce)!=="svelte-jm9112"&&(ce.textContent=ho),pt=c(e),b(de.$$.fragment,e),ht=c(e),me=n(e,"UL",{"data-svelte-h":!0}),g(me)!=="svelte-1jb6lru"&&(me.innerHTML=fo),ft=c(e),pe=n(e,"P",{"data-svelte-h":!0}),g(pe)!=="svelte-1xesile"&&(pe.textContent=go),gt=c(e),k=n(e,"H2",{class:!0});var Bt=f(k);W=n(Bt,"A",{id:!0,class:!0,href:!0});var Uo=f(W);Xe=n(Uo,"SPAN",{});var No=f(Xe);b(he.$$.fragment,No),No.forEach(t),Uo.forEach(t),kt=c(Bt),Pe=n(Bt,"SPAN",{"data-svelte-h":!0}),g(Pe)!=="svelte-1qc0lli"&&(Pe.textContent=uo),Bt.forEach(t),ut=c(e),M=n(e,"DIV",{class:!0});var Y=f(M);b(fe.$$.fragment,Y),Ft=c(Y),Ue=n(Y,"P",{"data-svelte-h":!0}),g(Ue)!=="svelte-x6rrzg"&&(Ue.innerHTML=_o),Rt=c(Y),Ne=n(Y,"P",{"data-svelte-h":!0}),g(Ne)!=="svelte-cfh5wl"&&(Ne.innerHTML=bo),Jt=c(Y),b(L.$$.fragment,Y),Y.forEach(t),_t=c(e),F=n(e,"H2",{class:!0});var xt=f(F);A=n(xt,"A",{id:!0,class:!0,href:!0});var ko=f(A);Qe=n(ko,"SPAN",{});var Fo=f(Qe);b(ge.$$.fragment,Fo),Fo.forEach(t),ko.forEach(t),Et=c(xt),ke=n(xt,"SPAN",{"data-svelte-h":!0}),g(ke)!=="svelte-112006b"&&(ke.textContent=vo),xt.forEach(t),bt=c(e),z=n(e,"DIV",{class:!0});var qe=f(z);b(ue.$$.fragment,qe),Zt=c(qe),Fe=n(qe,"P",{"data-svelte-h":!0}),g(Fe)!=="svelte-zncq1j"&&(Fe.textContent=yo),Wt=c(qe),S=n(qe,"DIV",{class:!0});var It=f(S);b(_e.$$.fragment,It),Lt=c(It),Re=n(It,"P",{"data-svelte-h":!0}),g(Re)!=="svelte-1x3yxsa"&&(Re.textContent=wo),It.forEach(t),qe.forEach(t),vt=c(e),R=n(e,"H2",{class:!0});var jt=f(R);q=n(jt,"A",{id:!0,class:!0,href:!0});var Ro=f(q);Ye=n(Ro,"SPAN",{});var Jo=f(Ye);b(be.$$.fragment,Jo),Jo.forEach(t),Ro.forEach(t),At=c(jt),Je=n(jt,"SPAN",{"data-svelte-h":!0}),g(Je)!=="svelte-lyhok9"&&(Je.textContent=Co),jt.forEach(t),yt=c(e),P=n(e,"DIV",{class:!0});var Ge=f(P);b(ve.$$.fragment,Ge),St=c(Ge),Ee=n(Ge,"P",{"data-svelte-h":!0}),g(Ee)!=="svelte-1fxsgvt"&&(Ee.innerHTML=$o),qt=c(Ge),I=n(Ge,"DIV",{class:!0});var D=f(I);b(ye.$$.fragment,D),Gt=c(D),Ze=n(D,"P",{"data-svelte-h":!0}),g(Ze)!=="svelte-1v40ljg"&&(Ze.innerHTML=To),Ht=c(D),b(G.$$.fragment,D),Vt=c(D),b(H.$$.fragment,D),D.forEach(t),Ge.forEach(t),wt=c(e),J=n(e,"H2",{class:!0});var zt=f(J);V=n(zt,"A",{id:!0,class:!0,href:!0});var Eo=f(V);De=n(Eo,"SPAN",{});var Zo=f(De);b(we.$$.fragment,Zo),Zo.forEach(t),Eo.forEach(t),Xt=c(zt),We=n(zt,"SPAN",{"data-svelte-h":!0}),g(We)!=="svelte-ui5814"&&(We.textContent=Mo),zt.forEach(t),Ct=c(e),B=n(e,"DIV",{class:!0});var O=f(B);b(Ce.$$.fragment,O),Qt=c(O),Le=n(O,"P",{"data-svelte-h":!0}),g(Le)!=="svelte-a01xtz"&&(Le.textContent=Bo),Yt=c(O),Ae=n(O,"P",{"data-svelte-h":!0}),g(Ae)!=="svelte-1gjh92c"&&(Ae.innerHTML=xo),Dt=c(O),j=n(O,"DIV",{class:!0});var K=f(j);b($e.$$.fragment,K),Ot=c(K),Se=n(K,"P",{"data-svelte-h":!0}),g(Se)!=="svelte-fs09os"&&(Se.innerHTML=Io),Kt=c(K),b(X.$$.fragment,K),eo=c(K),b(Q.$$.fragment,K),K.forEach(t),O.forEach(t),$t=c(e),Oe=n(e,"P",{}),f(Oe).forEach(t),this.h()},h(){m(d,"name","hf:doc:metadata"),m(d,"content",JSON.stringify(Ko)),m(r,"id","big-transfer-bit"),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","#big-transfer-bit"),m(u,"class","relative group"),m(E,"id","overview"),m(E,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),m(E,"href","#overview"),m(U,"class","relative group"),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(N,"class","relative group"),m(W,"id","transformers.BitConfig"),m(W,"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(W,"href","#transformers.BitConfig"),m(k,"class","relative group"),m(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(A,"id","transformers.BitImageProcessor"),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","#transformers.BitImageProcessor"),m(F,"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(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(q,"id","transformers.BitModel"),m(q,"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(q,"href","#transformers.BitModel"),m(R,"class","relative group"),m(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(V,"id","transformers.BitForImageClassification"),m(V,"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(V,"href","#transformers.BitForImageClassification"),m(J,"class","relative group"),m(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(B,"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,s){a(document.head,d),i(e,$,s),i(e,p,s),i(e,h,s),i(e,u,s),a(u,r),a(r,T),v(ee,T,null),a(u,Pt),a(u,Ie),i(e,nt,s),i(e,U,s),a(U,E),a(E,He),v(te,He,null),a(U,Ut),a(U,je),i(e,st,s),i(e,oe,s),i(e,at,s),i(e,ne,s),i(e,rt,s),i(e,se,s),i(e,it,s),i(e,ae,s),i(e,lt,s),i(e,re,s),i(e,ct,s),i(e,ie,s),i(e,dt,s),i(e,N,s),a(N,Z),a(Z,Ve),v(le,Ve,null),a(N,Nt),a(N,ze),i(e,mt,s),i(e,ce,s),i(e,pt,s),v(de,e,s),i(e,ht,s),i(e,me,s),i(e,ft,s),i(e,pe,s),i(e,gt,s),i(e,k,s),a(k,W),a(W,Xe),v(he,Xe,null),a(k,kt),a(k,Pe),i(e,ut,s),i(e,M,s),v(fe,M,null),a(M,Ft),a(M,Ue),a(M,Rt),a(M,Ne),a(M,Jt),v(L,M,null),i(e,_t,s),i(e,F,s),a(F,A),a(A,Qe),v(ge,Qe,null),a(F,Et),a(F,ke),i(e,bt,s),i(e,z,s),v(ue,z,null),a(z,Zt),a(z,Fe),a(z,Wt),a(z,S),v(_e,S,null),a(S,Lt),a(S,Re),i(e,vt,s),i(e,R,s),a(R,q),a(q,Ye),v(be,Ye,null),a(R,At),a(R,Je),i(e,yt,s),i(e,P,s),v(ve,P,null),a(P,St),a(P,Ee),a(P,qt),a(P,I),v(ye,I,null),a(I,Gt),a(I,Ze),a(I,Ht),v(G,I,null),a(I,Vt),v(H,I,null),i(e,wt,s),i(e,J,s),a(J,V),a(V,De),v(we,De,null),a(J,Xt),a(J,We),i(e,Ct,s),i(e,B,s),v(Ce,B,null),a(B,Qt),a(B,Le),a(B,Yt),a(B,Ae),a(B,Dt),a(B,j),v($e,j,null),a(j,Ot),a(j,Se),a(j,Kt),v(X,j,null),a(j,eo),v(Q,j,null),i(e,$t,s),i(e,Oe,s),Tt=!0},p(e,[s]){const Te={};s&2&&(Te.$$scope={dirty:s,ctx:e}),L.$set(Te);const Ke={};s&2&&(Ke.$$scope={dirty:s,ctx:e}),G.$set(Ke);const et={};s&2&&(et.$$scope={dirty:s,ctx:e}),H.$set(et);const Me={};s&2&&(Me.$$scope={dirty:s,ctx:e}),X.$set(Me);const tt={};s&2&&(tt.$$scope={dirty:s,ctx:e}),Q.$set(tt)},i(e){Tt||(y(ee.$$.fragment,e),y(te.$$.fragment,e),y(le.$$.fragment,e),y(de.$$.fragment,e),y(he.$$.fragment,e),y(fe.$$.fragment,e),y(L.$$.fragment,e),y(ge.$$.fragment,e),y(ue.$$.fragment,e),y(_e.$$.fragment,e),y(be.$$.fragment,e),y(ve.$$.fragment,e),y(ye.$$.fragment,e),y(G.$$.fragment,e),y(H.$$.fragment,e),y(we.$$.fragment,e),y(Ce.$$.fragment,e),y($e.$$.fragment,e),y(X.$$.fragment,e),y(Q.$$.fragment,e),Tt=!0)},o(e){w(ee.$$.fragment,e),w(te.$$.fragment,e),w(le.$$.fragment,e),w(de.$$.fragment,e),w(he.$$.fragment,e),w(fe.$$.fragment,e),w(L.$$.fragment,e),w(ge.$$.fragment,e),w(ue.$$.fragment,e),w(_e.$$.fragment,e),w(be.$$.fragment,e),w(ve.$$.fragment,e),w(ye.$$.fragment,e),w(G.$$.fragment,e),w(H.$$.fragment,e),w(we.$$.fragment,e),w(Ce.$$.fragment,e),w($e.$$.fragment,e),w(X.$$.fragment,e),w(Q.$$.fragment,e),Tt=!1},d(e){e&&(t($),t(p),t(h),t(u),t(nt),t(U),t(st),t(oe),t(at),t(ne),t(rt),t(se),t(it),t(ae),t(lt),t(re),t(ct),t(ie),t(dt),t(N),t(mt),t(ce),t(pt),t(ht),t(me),t(ft),t(pe),t(gt),t(k),t(ut),t(M),t(_t),t(F),t(bt),t(z),t(vt),t(R),t(yt),t(P),t(wt),t(J),t(Ct),t(B),t($t),t(Oe)),t(d),C(ee),C(te),C(le),C(de,e),C(he),C(fe),C(L),C(ge),C(ue),C(_e),C(be),C(ve),C(ye),C(G),C(H),C(we),C(Ce),C($e),C(X),C(Q)}}}const Ko={local:"big-transfer-bit",sections:[{local:"overview",title:"Overview"},{local:"resources",title:"Resources"},{local:"transformers.BitConfig",title:"BitConfig"},{local:"transformers.BitImageProcessor",title:"BitImageProcessor"},{local:"transformers.BitModel",title:"BitModel"},{local:"transformers.BitForImageClassification",title:"BitForImageClassification"}],title:"Big Transfer (BiT)"};function en(x){return Ao(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class dn extends So{constructor(d){super(),qo(this,d,en,Oo,Lo,{})}}export{dn as component};
