Buckets:
| import{s as mn,b as dn,o as pn,n as Be}from"../chunks/scheduler.31fdf58d.js";import{S as gn,i as fn,e as c,s as o,c as g,h as hn,a as m,d as n,b as s,f as F,j as x,g as f,k as M,l,m as r,n as h,t as u,o as v,p as _}from"../chunks/index.2f76fdf0.js";import{T as cn}from"../chunks/Tip.8d349121.js";import{C as un}from"../chunks/CopyLLMTxtMenu.53b607bf.js";import{D as R}from"../chunks/Docstring.7acc6835.js";import{C as Ht}from"../chunks/CodeBlock.e52df5d6.js";import{E as Wt}from"../chunks/ExampleCodeBlock.f9704f52.js";import{P as vn}from"../chunks/PipelineTag.37119c44.js";import{H as A,E as _n}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.08750ec0.js";function xn(P){let a,b="Example:",d,p,C;return p=new Ht({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMENvbnZOZXh0Q29uZmlnJTJDJTIwQ29udk5leHRNb2RlbCUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBDb252TmV4dCUyMGNvbnZuZXh0LXRpbnktMjI0JTIwc3R5bGUlMjBjb25maWd1cmF0aW9uJTBBY29uZmlndXJhdGlvbiUyMCUzRCUyMENvbnZOZXh0Q29uZmlnKCklMEElMEElMjMlMjBJbml0aWFsaXppbmclMjBhJTIwbW9kZWwlMjAod2l0aCUyMHJhbmRvbSUyMHdlaWdodHMpJTIwZnJvbSUyMHRoZSUyMGNvbnZuZXh0LXRpbnktMjI0JTIwc3R5bGUlMjBjb25maWd1cmF0aW9uJTBBbW9kZWwlMjAlM0QlMjBDb252TmV4dE1vZGVsKGNvbmZpZ3VyYXRpb24pJTBBJTBBJTIzJTIwQWNjZXNzaW5nJTIwdGhlJTIwbW9kZWwlMjBjb25maWd1cmF0aW9uJTBBY29uZmlndXJhdGlvbiUyMCUzRCUyMG1vZGVsLmNvbmZpZw==",highlighted:`<span class="hljs-meta">>>> </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> ConvNextConfig, ConvNextModel | |
| <span class="hljs-meta">>>> </span><span class="hljs-comment"># Initializing a ConvNext convnext-tiny-224 style configuration</span> | |
| <span class="hljs-meta">>>> </span>configuration = ConvNextConfig() | |
| <span class="hljs-meta">>>> </span><span class="hljs-comment"># Initializing a model (with random weights) from the convnext-tiny-224 style configuration</span> | |
| <span class="hljs-meta">>>> </span>model = ConvNextModel(configuration) | |
| <span class="hljs-meta">>>> </span><span class="hljs-comment"># Accessing the model configuration</span> | |
| <span class="hljs-meta">>>> </span>configuration = model.config`,lang:"python",wrap:!1}}),{c(){a=c("p"),a.textContent=b,d=o(),g(p.$$.fragment)},l(i){a=m(i,"P",{"data-svelte-h":!0}),x(a)!=="svelte-11lpom8"&&(a.textContent=b),d=s(i),f(p.$$.fragment,i)},m(i,$){r(i,a,$),r(i,d,$),h(p,i,$),C=!0},p:Be,i(i){C||(u(p.$$.fragment,i),C=!0)},o(i){v(p.$$.fragment,i),C=!1},d(i){i&&(n(a),n(d)),_(p,i)}}}function Cn(P){let a,b=`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=b},l(d){a=m(d,"P",{"data-svelte-h":!0}),x(a)!=="svelte-fincs2"&&(a.innerHTML=b)},m(d,p){r(d,a,p)},p:Be,d(d){d&&n(a)}}}function bn(P){let a,b="Example:",d,p,C;return p=new Ht({props:{code:"",highlighted:"",lang:"python",wrap:!1}}),{c(){a=c("p"),a.textContent=b,d=o(),g(p.$$.fragment)},l(i){a=m(i,"P",{"data-svelte-h":!0}),x(a)!=="svelte-11lpom8"&&(a.textContent=b),d=s(i),f(p.$$.fragment,i)},m(i,$){r(i,a,$),r(i,d,$),h(p,i,$),C=!0},p:Be,i(i){C||(u(p.$$.fragment,i),C=!0)},o(i){v(p.$$.fragment,i),C=!1},d(i){i&&(n(a),n(d)),_(p,i)}}}function $n(P){let a,b=`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=b},l(d){a=m(d,"P",{"data-svelte-h":!0}),x(a)!=="svelte-fincs2"&&(a.innerHTML=b)},m(d,p){r(d,a,p)},p:Be,d(d){d&&n(a)}}}function yn(P){let a,b="Example:",d,p,C;return p=new Ht({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMENvbnZOZXh0Rm9ySW1hZ2VDbGFzc2lmaWNhdGlvbiUwQWltcG9ydCUyMHRvcmNoJTBBZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJodWdnaW5nZmFjZSUyRmNhdHMtaW1hZ2UlMjIpJTBBaW1hZ2UlMjAlM0QlMjBkYXRhc2V0JTVCJTIydGVzdCUyMiU1RCU1QiUyMmltYWdlJTIyJTVEJTVCMCU1RCUwQSUwQWltYWdlX3Byb2Nlc3NvciUyMCUzRCUyMEF1dG9JbWFnZVByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIyZmFjZWJvb2slMkZjb252bmV4dC10aW55LTIyNCUyMiklMEFtb2RlbCUyMCUzRCUyMENvbnZOZXh0Rm9ySW1hZ2VDbGFzc2lmaWNhdGlvbi5mcm9tX3ByZXRyYWluZWQoJTIyZmFjZWJvb2slMkZjb252bmV4dC10aW55LTIyNCUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjBpbWFnZV9wcm9jZXNzb3IoaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQSUwQXdpdGglMjB0b3JjaC5ub19ncmFkKCklM0ElMEElMjAlMjAlMjAlMjBsb2dpdHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cykubG9naXRzJTBBJTBBJTIzJTIwbW9kZWwlMjBwcmVkaWN0cyUyMG9uZSUyMG9mJTIwdGhlJTIwMTAwMCUyMEltYWdlTmV0JTIwY2xhc3NlcyUwQXByZWRpY3RlZF9sYWJlbCUyMCUzRCUyMGxvZ2l0cy5hcmdtYXgoLTEpLml0ZW0oKSUwQXByaW50KG1vZGVsLmNvbmZpZy5pZDJsYWJlbCU1QnByZWRpY3RlZF9sYWJlbCU1RCk=",highlighted:`<span class="hljs-meta">>>> </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, ConvNextForImageClassification | |
| <span class="hljs-meta">>>> </span><span class="hljs-keyword">import</span> torch | |
| <span class="hljs-meta">>>> </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset | |
| <span class="hljs-meta">>>> </span>dataset = load_dataset(<span class="hljs-string">"huggingface/cats-image"</span>) | |
| <span class="hljs-meta">>>> </span>image = dataset[<span class="hljs-string">"test"</span>][<span class="hljs-string">"image"</span>][<span class="hljs-number">0</span>] | |
| <span class="hljs-meta">>>> </span>image_processor = AutoImageProcessor.from_pretrained(<span class="hljs-string">"facebook/convnext-tiny-224"</span>) | |
| <span class="hljs-meta">>>> </span>model = ConvNextForImageClassification.from_pretrained(<span class="hljs-string">"facebook/convnext-tiny-224"</span>) | |
| <span class="hljs-meta">>>> </span>inputs = image_processor(image, return_tensors=<span class="hljs-string">"pt"</span>) | |
| <span class="hljs-meta">>>> </span><span class="hljs-keyword">with</span> torch.no_grad(): | |
| <span class="hljs-meta">... </span> logits = model(**inputs).logits | |
| <span class="hljs-meta">>>> </span><span class="hljs-comment"># model predicts one of the 1000 ImageNet classes</span> | |
| <span class="hljs-meta">>>> </span>predicted_label = logits.argmax(-<span class="hljs-number">1</span>).item() | |
| <span class="hljs-meta">>>> </span><span class="hljs-built_in">print</span>(model.config.id2label[predicted_label]) | |
| ...`,lang:"python",wrap:!1}}),{c(){a=c("p"),a.textContent=b,d=o(),g(p.$$.fragment)},l(i){a=m(i,"P",{"data-svelte-h":!0}),x(a)!=="svelte-11lpom8"&&(a.textContent=b),d=s(i),f(p.$$.fragment,i)},m(i,$){r(i,a,$),r(i,d,$),h(p,i,$),C=!0},p:Be,i(i){C||(u(p.$$.fragment,i),C=!0)},o(i){v(p.$$.fragment,i),C=!1},d(i){i&&(n(a),n(d)),_(p,i)}}}function wn(P){let a,b,d,p,C,i="<em>This model was published in HF papers on 2022-01-10 and contributed to Hugging Face Transformers on 2022-02-07.</em>",$,S,Ee,q,De,Y,Ge,Q,Jt=`The ConvNeXT model was proposed in <a href="https://huggingface.co/papers/2201.03545" rel="nofollow">A ConvNet for the 2020s</a> by Zhuang Liu, Hanzi Mao, Chao-Yuan Wu, Christoph Feichtenhofer, Trevor Darrell, Saining Xie. | |
| ConvNeXT is a pure convolutional model (ConvNet), inspired by the design of Vision Transformers, that claims to outperform them.`,Xe,K,Rt="The abstract from the paper is the following:",Ve,O,Bt=`<em>The “Roaring 20s” of visual recognition began with the introduction of Vision Transformers (ViTs), which quickly superseded ConvNets as the state-of-the-art image classification model. | |
| A vanilla ViT, on the other hand, faces difficulties when applied to general computer vision tasks such as object detection and semantic segmentation. It is the hierarchical Transformers | |
| (e.g., Swin Transformers) that reintroduced several ConvNet priors, making Transformers practically viable as a generic vision backbone and demonstrating remarkable performance on a wide | |
| variety of vision tasks. However, the effectiveness of such hybrid approaches is still largely credited to the intrinsic superiority of Transformers, rather than the inherent inductive | |
| biases of convolutions. In this work, we reexamine the design spaces and test the limits of what a pure ConvNet can achieve. We gradually “modernize” a standard ResNet toward the design | |
| of a vision Transformer, and discover several key components that contribute to the performance difference along the way. The outcome of this exploration is a family of pure ConvNet models | |
| dubbed ConvNeXt. Constructed entirely from standard ConvNet modules, ConvNeXts compete favorably with Transformers in terms of accuracy and scalability, achieving 87.8% ImageNet top-1 accuracy | |
| and outperforming Swin Transformers on COCO detection and ADE20K segmentation, while maintaining the simplicity and efficiency of standard ConvNets.</em>`,Ae,B,Et,Se,ee,Dt='ConvNeXT architecture. Taken from the <a href="https://huggingface.co/papers/2201.03545">original paper</a>.',qe,te,Gt='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/ConvNeXt" rel="nofollow">here</a>.',Ye,ne,Qe,oe,Xt="A list of official Hugging Face and community (indicated by 🌎) resources to help you get started with ConvNeXT.",Ke,se,Oe,re,Vt='<li><a href="/docs/transformers/pr_43265/en/model_doc/convnext#transformers.ConvNextForImageClassification">ConvNextForImageClassification</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>',et,ae,At="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.",tt,ie,nt,I,le,ft,$e,St=`This is the configuration class to store the configuration of a ConvNextModel. It is used to instantiate a Convnext | |
| 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 <a href="https://huggingface.co/facebook/convnext-tiny-224" rel="nofollow">facebook/convnext-tiny-224</a>`,ht,ye,qt=`Configuration objects inherit from <a href="/docs/transformers/pr_43265/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_43265/en/main_classes/configuration#transformers.PreTrainedConfig">PreTrainedConfig</a> for more information.`,ut,E,ot,ce,st,k,me,vt,we,Yt="Constructs a ConvNextImageProcessor image processor.",_t,Te,de,rt,pe,at,U,ge,xt,Ne,Qt="Constructs a ConvNextImageProcessor image processor.",Ct,Me,fe,it,he,lt,y,ue,bt,Ie,Kt="The bare Convnext Model outputting raw hidden-states without any specific head on top.",$t,Pe,Ot=`This model inherits from <a href="/docs/transformers/pr_43265/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a>. Check the superclass documentation for the generic methods the | |
| library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads | |
| etc.)`,yt,ke,en=`This model is also 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,T,ve,Tt,Ue,tn='The <a href="/docs/transformers/pr_43265/en/model_doc/convnext#transformers.ConvNextModel">ConvNextModel</a> forward method, overrides the <code>__call__</code> special method.',Nt,D,Mt,je,nn=`<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>`,It,G,ct,_e,mt,w,xe,Pt,Fe,on=`ConvNext Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for | |
| ImageNet.`,kt,Le,sn=`This model inherits from <a href="/docs/transformers/pr_43265/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a>. Check the superclass documentation for the generic methods the | |
| library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads | |
| etc.)`,Ut,Ze,rn=`This model is also 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.`,jt,N,Ce,Ft,ze,an='The <a href="/docs/transformers/pr_43265/en/model_doc/convnext#transformers.ConvNextForImageClassification">ConvNextForImageClassification</a> forward method, overrides the <code>__call__</code> special method.',Lt,X,Zt,We,ln=`<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>`,zt,V,dt,be,pt,He,gt;return S=new un({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),q=new A({props:{title:"ConvNeXT",local:"convnext",headingTag:"h1"}}),Y=new A({props:{title:"Overview",local:"overview",headingTag:"h2"}}),ne=new A({props:{title:"Resources",local:"resources",headingTag:"h2"}}),se=new vn({props:{pipeline:"image-classification"}}),ie=new A({props:{title:"ConvNextConfig",local:"transformers.ConvNextConfig",headingTag:"h2"}}),le=new R({props:{name:"class transformers.ConvNextConfig",anchor:"transformers.ConvNextConfig",parameters:[{name:"transformers_version",val:": str | None = None"},{name:"architectures",val:": list[str] | None = None"},{name:"output_hidden_states",val:": bool | None = False"},{name:"return_dict",val:": bool | None = True"},{name:"dtype",val:": typing.Union[str, ForwardRef('torch.dtype'), NoneType] = None"},{name:"chunk_size_feed_forward",val:": int = 0"},{name:"is_encoder_decoder",val:": bool = False"},{name:"id2label",val:": dict[int, str] | dict[str, str] | None = None"},{name:"label2id",val:": dict[str, int] | dict[str, str] | None = None"},{name:"problem_type",val:": typing.Optional[typing.Literal['regression', 'single_label_classification', 'multi_label_classification']] = None"},{name:"num_channels",val:": int = 3"},{name:"patch_size",val:": int | list[int] | tuple[int, int] = 4"},{name:"num_stages",val:": int = 4"},{name:"hidden_sizes",val:": list[int] | tuple[int, ...] | None = (96, 192, 384, 768)"},{name:"depths",val:": list[int] | tuple[int, ...] | None = (3, 3, 9, 3)"},{name:"hidden_act",val:": str = 'gelu'"},{name:"initializer_range",val:": float = 0.02"},{name:"layer_norm_eps",val:": float = 1e-12"},{name:"layer_scale_init_value",val:": float = 1e-06"},{name:"drop_path_rate",val:": float | int = 0.0"},{name:"image_size",val:": int | list[int] | tuple[int, int] = 224"},{name:"_out_features",val:": list[str] | None = None"},{name:"_out_indices",val:": list[int] | None = None"}],parametersDescription:[{anchor:"transformers.ConvNextConfig.num_channels",description:`<strong>num_channels</strong> (<code>int</code>, <em>optional</em>, defaults to <code>3</code>) — | |
| The number of input channels.`,name:"num_channels"},{anchor:"transformers.ConvNextConfig.patch_size",description:`<strong>patch_size</strong> (<code>Union[int, list[int], tuple[int, int]]</code>, <em>optional</em>, defaults to <code>4</code>) — | |
| The size (resolution) of each patch.`,name:"patch_size"},{anchor:"transformers.ConvNextConfig.num_stages",description:`<strong>num_stages</strong> (<code>int</code>, <em>optional</em>, defaults to 4) — | |
| The number of stages in the model.`,name:"num_stages"},{anchor:"transformers.ConvNextConfig.hidden_sizes",description:`<strong>hidden_sizes</strong> (<code>Union[list[int], tuple[int, ...]]</code>, <em>optional</em>, defaults to <code>(96, 192, 384, 768)</code>) — | |
| Dimensionality (hidden size) at each stage of the model.`,name:"hidden_sizes"},{anchor:"transformers.ConvNextConfig.depths",description:`<strong>depths</strong> (<code>Union[list[int], tuple[int, ...]]</code>, <em>optional</em>, defaults to <code>(3, 3, 9, 3)</code>) — | |
| Depth of each layer in the Transformer.`,name:"depths"},{anchor:"transformers.ConvNextConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code>, <em>optional</em>, defaults to <code>gelu</code>) — | |
| The non-linear activation function (function or string) in the decoder. For example, <code>"gelu"</code>, | |
| <code>"relu"</code>, <code>"silu"</code>, etc.`,name:"hidden_act"},{anchor:"transformers.ConvNextConfig.initializer_range",description:`<strong>initializer_range</strong> (<code>float</code>, <em>optional</em>, defaults to <code>0.02</code>) — | |
| The standard deviation of the truncated_normal_initializer for initializing all weight matrices.`,name:"initializer_range"},{anchor:"transformers.ConvNextConfig.layer_norm_eps",description:`<strong>layer_norm_eps</strong> (<code>float</code>, <em>optional</em>, defaults to <code>1e-12</code>) — | |
| The epsilon used by the layer normalization layers.`,name:"layer_norm_eps"},{anchor:"transformers.ConvNextConfig.layer_scale_init_value",description:`<strong>layer_scale_init_value</strong> (<code>float</code>, <em>optional</em>, defaults to <code>1e-06</code>) — | |
| Scale to use in the self-attention layers. 0.1 for base, 1e-6 for large. Set 0 to disable layer scale.`,name:"layer_scale_init_value"},{anchor:"transformers.ConvNextConfig.drop_path_rate",description:`<strong>drop_path_rate</strong> (<code>Union[float, int]</code>, <em>optional</em>, defaults to <code>0.0</code>) — | |
| Drop path rate for the patch fusion.`,name:"drop_path_rate"},{anchor:"transformers.ConvNextConfig.image_size",description:`<strong>image_size</strong> (<code>Union[int, list[int], tuple[int, int]]</code>, <em>optional</em>, defaults to <code>224</code>) — | |
| The size (resolution) of each image.`,name:"image_size"}],source:"https://github.com/huggingface/transformers/blob/vr_43265/src/transformers/models/convnext/configuration_convnext.py#L25"}}),E=new Wt({props:{anchor:"transformers.ConvNextConfig.example",$$slots:{default:[xn]},$$scope:{ctx:P}}}),ce=new A({props:{title:"ConvNextImageProcessor",local:"transformers.ConvNextImageProcessor",headingTag:"h2"}}),me=new R({props:{name:"class transformers.ConvNextImageProcessor",anchor:"transformers.ConvNextImageProcessor",parameters:[{name:"**kwargs",val:": typing_extensions.Unpack[transformers.models.convnext.image_processing_convnext.ConvNextImageProcessorKwargs]"}],parametersDescription:[{anchor:"transformers.ConvNextImageProcessor.crop_pct",description:`<strong>crop_pct</strong> (<code>float</code>, <em>kwargs</em>, <em>optional</em>, defaults to <code>self.crop_pct</code>) — | |
| Percentage of the image to crop. Only has an effect if size < 384.`,name:"crop_pct"},{anchor:"transformers.ConvNextImageProcessor.*kwargs",description:`*<strong>*kwargs</strong> (<a href="/docs/transformers/pr_43265/en/main_classes/processors#transformers.ImagesKwargs">ImagesKwargs</a>, <em>optional</em>) — | |
| Additional image preprocessing options. Model-specific kwargs are listed above; see the TypedDict class | |
| for the complete list of supported arguments.`,name:"*kwargs"}],source:"https://github.com/huggingface/transformers/blob/vr_43265/src/transformers/models/convnext/image_processing_convnext.py#L43"}}),de=new R({props:{name:"preprocess",anchor:"transformers.ConvNextImageProcessor.preprocess",parameters:[{name:"images",val:": typing.Union[ForwardRef('PIL.Image.Image'), numpy.ndarray, ForwardRef('torch.Tensor'), list['PIL.Image.Image'], list[numpy.ndarray], list['torch.Tensor']]"},{name:"*args",val:""},{name:"**kwargs",val:": typing_extensions.Unpack[transformers.processing_utils.ImagesKwargs]"}],parametersDescription:[{anchor:"transformers.ConvNextImageProcessor.preprocess.images",description:`<strong>images</strong> (<code>Union[PIL.Image.Image, numpy.ndarray, torch.Tensor, list[PIL.Image.Image], list[numpy.ndarray], list[torch.Tensor]]</code>) — | |
| 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.ConvNextImageProcessor.preprocess.return_tensors",description:`<strong>return_tensors</strong> (<code>str</code> or <a href="/docs/transformers/pr_43265/en/internal/file_utils#transformers.TensorType">TensorType</a>, <em>optional</em>) — | |
| Returns stacked tensors if set to <code>'pt'</code>, otherwise returns a list of tensors.`,name:"return_tensors"},{anchor:"transformers.ConvNextImageProcessor.preprocess.*kwargs",description:`*<strong>*kwargs</strong> (<a href="/docs/transformers/pr_43265/en/main_classes/processors#transformers.ImagesKwargs">ImagesKwargs</a>, <em>optional</em>) — | |
| Additional image preprocessing options. Model-specific kwargs are listed above; see the TypedDict class | |
| for the complete list of supported arguments.`,name:"*kwargs"}],source:"https://github.com/huggingface/transformers/blob/vr_43265/src/transformers/image_processing_utils.py#L382",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <ul> | |
| <li><strong>data</strong> (<code>dict</code>) — Dictionary of lists/arrays/tensors returned by the <strong>call</strong> method (‘pixel_values’, etc.).</li> | |
| <li><strong>tensor_type</strong> (<code>Union[None, str, TensorType]</code>, <em>optional</em>) — You can give a tensor_type here to convert the lists of integers in PyTorch/Numpy Tensors at | |
| initialization.</li> | |
| </ul> | |
| `,returnType:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p><code>~image_processing_base.BatchFeature</code></p> | |
| `}}),pe=new A({props:{title:"ConvNextImageProcessorPil",local:"transformers.ConvNextImageProcessorPil",headingTag:"h2"}}),ge=new R({props:{name:"class transformers.ConvNextImageProcessorPil",anchor:"transformers.ConvNextImageProcessorPil",parameters:[{name:"**kwargs",val:": typing_extensions.Unpack[transformers.models.convnext.image_processing_pil_convnext.ConvNextImageProcessorKwargs]"}],parametersDescription:[{anchor:"transformers.ConvNextImageProcessorPil.crop_pct",description:`<strong>crop_pct</strong> (<code>float</code>, <em>kwargs</em>, <em>optional</em>, defaults to <code>self.crop_pct</code>) — | |
| Percentage of the image to crop. Only has an effect if size < 384.`,name:"crop_pct"},{anchor:"transformers.ConvNextImageProcessorPil.*kwargs",description:`*<strong>*kwargs</strong> (<a href="/docs/transformers/pr_43265/en/main_classes/processors#transformers.ImagesKwargs">ImagesKwargs</a>, <em>optional</em>) — | |
| Additional image preprocessing options. Model-specific kwargs are listed above; see the TypedDict class | |
| for the complete list of supported arguments.`,name:"*kwargs"}],source:"https://github.com/huggingface/transformers/blob/vr_43265/src/transformers/models/convnext/image_processing_pil_convnext.py#L43"}}),fe=new R({props:{name:"preprocess",anchor:"transformers.ConvNextImageProcessorPil.preprocess",parameters:[{name:"images",val:": typing.Union[ForwardRef('PIL.Image.Image'), numpy.ndarray, ForwardRef('torch.Tensor'), list['PIL.Image.Image'], list[numpy.ndarray], list['torch.Tensor']]"},{name:"*args",val:""},{name:"**kwargs",val:": typing_extensions.Unpack[transformers.processing_utils.ImagesKwargs]"}],parametersDescription:[{anchor:"transformers.ConvNextImageProcessorPil.preprocess.images",description:`<strong>images</strong> (<code>Union[PIL.Image.Image, numpy.ndarray, torch.Tensor, list[PIL.Image.Image], list[numpy.ndarray], list[torch.Tensor]]</code>) — | |
| 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.ConvNextImageProcessorPil.preprocess.return_tensors",description:`<strong>return_tensors</strong> (<code>str</code> or <a href="/docs/transformers/pr_43265/en/internal/file_utils#transformers.TensorType">TensorType</a>, <em>optional</em>) — | |
| Returns stacked tensors if set to <code>'pt'</code>, otherwise returns a list of tensors.`,name:"return_tensors"},{anchor:"transformers.ConvNextImageProcessorPil.preprocess.*kwargs",description:`*<strong>*kwargs</strong> (<a href="/docs/transformers/pr_43265/en/main_classes/processors#transformers.ImagesKwargs">ImagesKwargs</a>, <em>optional</em>) — | |
| Additional image preprocessing options. Model-specific kwargs are listed above; see the TypedDict class | |
| for the complete list of supported arguments.`,name:"*kwargs"}],source:"https://github.com/huggingface/transformers/blob/vr_43265/src/transformers/image_processing_utils.py#L382",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <ul> | |
| <li><strong>data</strong> (<code>dict</code>) — Dictionary of lists/arrays/tensors returned by the <strong>call</strong> method (‘pixel_values’, etc.).</li> | |
| <li><strong>tensor_type</strong> (<code>Union[None, str, TensorType]</code>, <em>optional</em>) — You can give a tensor_type here to convert the lists of integers in PyTorch/Numpy Tensors at | |
| initialization.</li> | |
| </ul> | |
| `,returnType:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p><code>~image_processing_base.BatchFeature</code></p> | |
| `}}),he=new A({props:{title:"ConvNextModel",local:"transformers.ConvNextModel",headingTag:"h2"}}),ue=new R({props:{name:"class transformers.ConvNextModel",anchor:"transformers.ConvNextModel",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.ConvNextModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/pr_43265/en/model_doc/convnext#transformers.ConvNextModel">ConvNextModel</a>) — | |
| 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_43265/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_43265/src/transformers/models/convnext/modeling_convnext.py#L251"}}),ve=new R({props:{name:"forward",anchor:"transformers.ConvNextModel.forward",parameters:[{name:"pixel_values",val:": torch.FloatTensor | None = None"},{name:"**kwargs",val:": typing_extensions.Unpack[transformers.utils.generic.TransformersKwargs]"}],parametersDescription:[{anchor:"transformers.ConvNextModel.forward.pixel_values",description:`<strong>pixel_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, image_size, image_size)</code>, <em>optional</em>) — | |
| The tensors corresponding to the input images. Pixel values can be obtained using | |
| <a href="/docs/transformers/pr_43265/en/model_doc/convnext#transformers.ConvNextImageProcessor">ConvNextImageProcessor</a>. See <code>ConvNextImageProcessor.__call__()</code> for details (<code>processor_class</code> uses | |
| <a href="/docs/transformers/pr_43265/en/model_doc/convnext#transformers.ConvNextImageProcessor">ConvNextImageProcessor</a> for processing images).`,name:"pixel_values"}],source:"https://github.com/huggingface/transformers/blob/vr_43265/src/transformers/models/convnext/modeling_convnext.py#L265",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p>A <code>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/pr_43265/en/model_doc/convnext#transformers.ConvNextConfig" | |
| >ConvNextConfig</a>) and inputs.</p> | |
| `,returnType:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p><code>BaseModelOutputWithPoolingAndNoAttention</code> or <code>tuple(torch.FloatTensor)</code></p> | |
| `}}),D=new cn({props:{$$slots:{default:[Cn]},$$scope:{ctx:P}}}),G=new Wt({props:{anchor:"transformers.ConvNextModel.forward.example",$$slots:{default:[bn]},$$scope:{ctx:P}}}),_e=new A({props:{title:"ConvNextForImageClassification",local:"transformers.ConvNextForImageClassification",headingTag:"h2"}}),xe=new R({props:{name:"class transformers.ConvNextForImageClassification",anchor:"transformers.ConvNextForImageClassification",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.ConvNextForImageClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/pr_43265/en/model_doc/convnext#transformers.ConvNextForImageClassification">ConvNextForImageClassification</a>) — | |
| 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_43265/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_43265/src/transformers/models/convnext/modeling_convnext.py#L293"}}),Ce=new R({props:{name:"forward",anchor:"transformers.ConvNextForImageClassification.forward",parameters:[{name:"pixel_values",val:": torch.FloatTensor | None = None"},{name:"labels",val:": torch.LongTensor | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ConvNextForImageClassification.forward.pixel_values",description:`<strong>pixel_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, image_size, image_size)</code>, <em>optional</em>) — | |
| The tensors corresponding to the input images. Pixel values can be obtained using | |
| <a href="/docs/transformers/pr_43265/en/model_doc/convnext#transformers.ConvNextImageProcessor">ConvNextImageProcessor</a>. See <code>ConvNextImageProcessor.__call__()</code> for details (<code>processor_class</code> uses | |
| <a href="/docs/transformers/pr_43265/en/model_doc/convnext#transformers.ConvNextImageProcessor">ConvNextImageProcessor</a> for processing images).`,name:"pixel_values"},{anchor:"transformers.ConvNextForImageClassification.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) — | |
| Labels for computing the image classification/regression loss. Indices should be in <code>[0, ..., config.num_labels - 1]</code>. If <code>config.num_labels == 1</code> a regression loss is computed (Mean-Square loss), If | |
| <code>config.num_labels > 1</code> a classification loss is computed (Cross-Entropy).`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/vr_43265/src/transformers/models/convnext/modeling_convnext.py#L311",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p>A <a | |
| href="/docs/transformers/pr_43265/en/main_classes/output#transformers.modeling_outputs.ImageClassifierOutputWithNoAttention" | |
| >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/pr_43265/en/model_doc/convnext#transformers.ConvNextConfig" | |
| >ConvNextConfig</a>) and inputs.</p> | |
| `,returnType:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p><a | |
| href="/docs/transformers/pr_43265/en/main_classes/output#transformers.modeling_outputs.ImageClassifierOutputWithNoAttention" | |
| >ImageClassifierOutputWithNoAttention</a> or <code>tuple(torch.FloatTensor)</code></p> | |
| `}}),X=new cn({props:{$$slots:{default:[$n]},$$scope:{ctx:P}}}),V=new Wt({props:{anchor:"transformers.ConvNextForImageClassification.forward.example",$$slots:{default:[yn]},$$scope:{ctx:P}}}),be=new _n({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/model_doc/convnext.md"}}),{c(){a=c("meta"),b=o(),d=c("p"),p=o(),C=c("p"),C.innerHTML=i,$=o(),g(S.$$.fragment),Ee=o(),g(q.$$.fragment),De=o(),g(Y.$$.fragment),Ge=o(),Q=c("p"),Q.innerHTML=Jt,Xe=o(),K=c("p"),K.textContent=Rt,Ve=o(),O=c("p"),O.innerHTML=Bt,Ae=o(),B=c("img"),Se=o(),ee=c("small"),ee.innerHTML=Dt,qe=o(),te=c("p"),te.innerHTML=Gt,Ye=o(),g(ne.$$.fragment),Qe=o(),oe=c("p"),oe.textContent=Xt,Ke=o(),g(se.$$.fragment),Oe=o(),re=c("ul"),re.innerHTML=Vt,et=o(),ae=c("p"),ae.textContent=At,tt=o(),g(ie.$$.fragment),nt=o(),I=c("div"),g(le.$$.fragment),ft=o(),$e=c("p"),$e.innerHTML=St,ht=o(),ye=c("p"),ye.innerHTML=qt,ut=o(),g(E.$$.fragment),ot=o(),g(ce.$$.fragment),st=o(),k=c("div"),g(me.$$.fragment),vt=o(),we=c("p"),we.textContent=Yt,_t=o(),Te=c("div"),g(de.$$.fragment),rt=o(),g(pe.$$.fragment),at=o(),U=c("div"),g(ge.$$.fragment),xt=o(),Ne=c("p"),Ne.textContent=Qt,Ct=o(),Me=c("div"),g(fe.$$.fragment),it=o(),g(he.$$.fragment),lt=o(),y=c("div"),g(ue.$$.fragment),bt=o(),Ie=c("p"),Ie.textContent=Kt,$t=o(),Pe=c("p"),Pe.innerHTML=Ot,yt=o(),ke=c("p"),ke.innerHTML=en,wt=o(),T=c("div"),g(ve.$$.fragment),Tt=o(),Ue=c("p"),Ue.innerHTML=tn,Nt=o(),g(D.$$.fragment),Mt=o(),je=c("ul"),je.innerHTML=nn,It=o(),g(G.$$.fragment),ct=o(),g(_e.$$.fragment),mt=o(),w=c("div"),g(xe.$$.fragment),Pt=o(),Fe=c("p"),Fe.textContent=on,kt=o(),Le=c("p"),Le.innerHTML=sn,Ut=o(),Ze=c("p"),Ze.innerHTML=rn,jt=o(),N=c("div"),g(Ce.$$.fragment),Ft=o(),ze=c("p"),ze.innerHTML=an,Lt=o(),g(X.$$.fragment),Zt=o(),We=c("ul"),We.innerHTML=ln,zt=o(),g(V.$$.fragment),dt=o(),g(be.$$.fragment),pt=o(),He=c("p"),this.h()},l(e){const t=hn("svelte-u9bgzb",document.head);a=m(t,"META",{name:!0,content:!0}),t.forEach(n),b=s(e),d=m(e,"P",{}),F(d).forEach(n),p=s(e),C=m(e,"P",{"data-svelte-h":!0}),x(C)!=="svelte-hjzmxv"&&(C.innerHTML=i),$=s(e),f(S.$$.fragment,e),Ee=s(e),f(q.$$.fragment,e),De=s(e),f(Y.$$.fragment,e),Ge=s(e),Q=m(e,"P",{"data-svelte-h":!0}),x(Q)!=="svelte-1b9lczp"&&(Q.innerHTML=Jt),Xe=s(e),K=m(e,"P",{"data-svelte-h":!0}),x(K)!=="svelte-vfdo9a"&&(K.textContent=Rt),Ve=s(e),O=m(e,"P",{"data-svelte-h":!0}),x(O)!=="svelte-1bctlxd"&&(O.innerHTML=Bt),Ae=s(e),B=m(e,"IMG",{src:!0,alt:!0,width:!0}),Se=s(e),ee=m(e,"SMALL",{"data-svelte-h":!0}),x(ee)!=="svelte-1ed36ey"&&(ee.innerHTML=Dt),qe=s(e),te=m(e,"P",{"data-svelte-h":!0}),x(te)!=="svelte-yap4kh"&&(te.innerHTML=Gt),Ye=s(e),f(ne.$$.fragment,e),Qe=s(e),oe=m(e,"P",{"data-svelte-h":!0}),x(oe)!=="svelte-11wcl3s"&&(oe.textContent=Xt),Ke=s(e),f(se.$$.fragment,e),Oe=s(e),re=m(e,"UL",{"data-svelte-h":!0}),x(re)!=="svelte-1c13vb2"&&(re.innerHTML=Vt),et=s(e),ae=m(e,"P",{"data-svelte-h":!0}),x(ae)!=="svelte-1xesile"&&(ae.textContent=At),tt=s(e),f(ie.$$.fragment,e),nt=s(e),I=m(e,"DIV",{class:!0});var j=F(I);f(le.$$.fragment,j),ft=s(j),$e=m(j,"P",{"data-svelte-h":!0}),x($e)!=="svelte-1fc5ztk"&&($e.innerHTML=St),ht=s(j),ye=m(j,"P",{"data-svelte-h":!0}),x(ye)!=="svelte-1e8815j"&&(ye.innerHTML=qt),ut=s(j),f(E.$$.fragment,j),j.forEach(n),ot=s(e),f(ce.$$.fragment,e),st=s(e),k=m(e,"DIV",{class:!0});var H=F(k);f(me.$$.fragment,H),vt=s(H),we=m(H,"P",{"data-svelte-h":!0}),x(we)!=="svelte-crgurw"&&(we.textContent=Yt),_t=s(H),Te=m(H,"DIV",{class:!0});var Je=F(Te);f(de.$$.fragment,Je),Je.forEach(n),H.forEach(n),rt=s(e),f(pe.$$.fragment,e),at=s(e),U=m(e,"DIV",{class:!0});var J=F(U);f(ge.$$.fragment,J),xt=s(J),Ne=m(J,"P",{"data-svelte-h":!0}),x(Ne)!=="svelte-crgurw"&&(Ne.textContent=Qt),Ct=s(J),Me=m(J,"DIV",{class:!0});var Re=F(Me);f(fe.$$.fragment,Re),Re.forEach(n),J.forEach(n),it=s(e),f(he.$$.fragment,e),lt=s(e),y=m(e,"DIV",{class:!0});var L=F(y);f(ue.$$.fragment,L),bt=s(L),Ie=m(L,"P",{"data-svelte-h":!0}),x(Ie)!=="svelte-1osmtmr"&&(Ie.textContent=Kt),$t=s(L),Pe=m(L,"P",{"data-svelte-h":!0}),x(Pe)!=="svelte-1gb3c10"&&(Pe.innerHTML=Ot),yt=s(L),ke=m(L,"P",{"data-svelte-h":!0}),x(ke)!=="svelte-hswkmf"&&(ke.innerHTML=en),wt=s(L),T=m(L,"DIV",{class:!0});var Z=F(T);f(ve.$$.fragment,Z),Tt=s(Z),Ue=m(Z,"P",{"data-svelte-h":!0}),x(Ue)!=="svelte-1u5x2ci"&&(Ue.innerHTML=tn),Nt=s(Z),f(D.$$.fragment,Z),Mt=s(Z),je=m(Z,"UL",{"data-svelte-h":!0}),x(je)!=="svelte-eij2o0"&&(je.innerHTML=nn),It=s(Z),f(G.$$.fragment,Z),Z.forEach(n),L.forEach(n),ct=s(e),f(_e.$$.fragment,e),mt=s(e),w=m(e,"DIV",{class:!0});var z=F(w);f(xe.$$.fragment,z),Pt=s(z),Fe=m(z,"P",{"data-svelte-h":!0}),x(Fe)!=="svelte-xy24s5"&&(Fe.textContent=on),kt=s(z),Le=m(z,"P",{"data-svelte-h":!0}),x(Le)!=="svelte-1gb3c10"&&(Le.innerHTML=sn),Ut=s(z),Ze=m(z,"P",{"data-svelte-h":!0}),x(Ze)!=="svelte-hswkmf"&&(Ze.innerHTML=rn),jt=s(z),N=m(z,"DIV",{class:!0});var W=F(N);f(Ce.$$.fragment,W),Ft=s(W),ze=m(W,"P",{"data-svelte-h":!0}),x(ze)!=="svelte-1q7onx4"&&(ze.innerHTML=an),Lt=s(W),f(X.$$.fragment,W),Zt=s(W),We=m(W,"UL",{"data-svelte-h":!0}),x(We)!=="svelte-vktwmr"&&(We.innerHTML=ln),zt=s(W),f(V.$$.fragment,W),W.forEach(n),z.forEach(n),dt=s(e),f(be.$$.fragment,e),pt=s(e),He=m(e,"P",{}),F(He).forEach(n),this.h()},h(){M(a,"name","hf:doc:metadata"),M(a,"content",Tn),dn(B.src,Et="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/convnext_architecture.jpg")||M(B,"src",Et),M(B,"alt","drawing"),M(B,"width","600"),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(Te,"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(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(y,"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(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,t){l(document.head,a),r(e,b,t),r(e,d,t),r(e,p,t),r(e,C,t),r(e,$,t),h(S,e,t),r(e,Ee,t),h(q,e,t),r(e,De,t),h(Y,e,t),r(e,Ge,t),r(e,Q,t),r(e,Xe,t),r(e,K,t),r(e,Ve,t),r(e,O,t),r(e,Ae,t),r(e,B,t),r(e,Se,t),r(e,ee,t),r(e,qe,t),r(e,te,t),r(e,Ye,t),h(ne,e,t),r(e,Qe,t),r(e,oe,t),r(e,Ke,t),h(se,e,t),r(e,Oe,t),r(e,re,t),r(e,et,t),r(e,ae,t),r(e,tt,t),h(ie,e,t),r(e,nt,t),r(e,I,t),h(le,I,null),l(I,ft),l(I,$e),l(I,ht),l(I,ye),l(I,ut),h(E,I,null),r(e,ot,t),h(ce,e,t),r(e,st,t),r(e,k,t),h(me,k,null),l(k,vt),l(k,we),l(k,_t),l(k,Te),h(de,Te,null),r(e,rt,t),h(pe,e,t),r(e,at,t),r(e,U,t),h(ge,U,null),l(U,xt),l(U,Ne),l(U,Ct),l(U,Me),h(fe,Me,null),r(e,it,t),h(he,e,t),r(e,lt,t),r(e,y,t),h(ue,y,null),l(y,bt),l(y,Ie),l(y,$t),l(y,Pe),l(y,yt),l(y,ke),l(y,wt),l(y,T),h(ve,T,null),l(T,Tt),l(T,Ue),l(T,Nt),h(D,T,null),l(T,Mt),l(T,je),l(T,It),h(G,T,null),r(e,ct,t),h(_e,e,t),r(e,mt,t),r(e,w,t),h(xe,w,null),l(w,Pt),l(w,Fe),l(w,kt),l(w,Le),l(w,Ut),l(w,Ze),l(w,jt),l(w,N),h(Ce,N,null),l(N,Ft),l(N,ze),l(N,Lt),h(X,N,null),l(N,Zt),l(N,We),l(N,zt),h(V,N,null),r(e,dt,t),h(be,e,t),r(e,pt,t),r(e,He,t),gt=!0},p(e,[t]){const j={};t&2&&(j.$$scope={dirty:t,ctx:e}),E.$set(j);const H={};t&2&&(H.$$scope={dirty:t,ctx:e}),D.$set(H);const Je={};t&2&&(Je.$$scope={dirty:t,ctx:e}),G.$set(Je);const J={};t&2&&(J.$$scope={dirty:t,ctx:e}),X.$set(J);const Re={};t&2&&(Re.$$scope={dirty:t,ctx:e}),V.$set(Re)},i(e){gt||(u(S.$$.fragment,e),u(q.$$.fragment,e),u(Y.$$.fragment,e),u(ne.$$.fragment,e),u(se.$$.fragment,e),u(ie.$$.fragment,e),u(le.$$.fragment,e),u(E.$$.fragment,e),u(ce.$$.fragment,e),u(me.$$.fragment,e),u(de.$$.fragment,e),u(pe.$$.fragment,e),u(ge.$$.fragment,e),u(fe.$$.fragment,e),u(he.$$.fragment,e),u(ue.$$.fragment,e),u(ve.$$.fragment,e),u(D.$$.fragment,e),u(G.$$.fragment,e),u(_e.$$.fragment,e),u(xe.$$.fragment,e),u(Ce.$$.fragment,e),u(X.$$.fragment,e),u(V.$$.fragment,e),u(be.$$.fragment,e),gt=!0)},o(e){v(S.$$.fragment,e),v(q.$$.fragment,e),v(Y.$$.fragment,e),v(ne.$$.fragment,e),v(se.$$.fragment,e),v(ie.$$.fragment,e),v(le.$$.fragment,e),v(E.$$.fragment,e),v(ce.$$.fragment,e),v(me.$$.fragment,e),v(de.$$.fragment,e),v(pe.$$.fragment,e),v(ge.$$.fragment,e),v(fe.$$.fragment,e),v(he.$$.fragment,e),v(ue.$$.fragment,e),v(ve.$$.fragment,e),v(D.$$.fragment,e),v(G.$$.fragment,e),v(_e.$$.fragment,e),v(xe.$$.fragment,e),v(Ce.$$.fragment,e),v(X.$$.fragment,e),v(V.$$.fragment,e),v(be.$$.fragment,e),gt=!1},d(e){e&&(n(b),n(d),n(p),n(C),n($),n(Ee),n(De),n(Ge),n(Q),n(Xe),n(K),n(Ve),n(O),n(Ae),n(B),n(Se),n(ee),n(qe),n(te),n(Ye),n(Qe),n(oe),n(Ke),n(Oe),n(re),n(et),n(ae),n(tt),n(nt),n(I),n(ot),n(st),n(k),n(rt),n(at),n(U),n(it),n(lt),n(y),n(ct),n(mt),n(w),n(dt),n(pt),n(He)),n(a),_(S,e),_(q,e),_(Y,e),_(ne,e),_(se,e),_(ie,e),_(le),_(E),_(ce,e),_(me),_(de),_(pe,e),_(ge),_(fe),_(he,e),_(ue),_(ve),_(D),_(G),_(_e,e),_(xe),_(Ce),_(X),_(V),_(be,e)}}}const Tn='{"title":"ConvNeXT","local":"convnext","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"Resources","local":"resources","sections":[],"depth":2},{"title":"ConvNextConfig","local":"transformers.ConvNextConfig","sections":[],"depth":2},{"title":"ConvNextImageProcessor","local":"transformers.ConvNextImageProcessor","sections":[],"depth":2},{"title":"ConvNextImageProcessorPil","local":"transformers.ConvNextImageProcessorPil","sections":[],"depth":2},{"title":"ConvNextModel","local":"transformers.ConvNextModel","sections":[],"depth":2},{"title":"ConvNextForImageClassification","local":"transformers.ConvNextForImageClassification","sections":[],"depth":2}],"depth":1}';function Nn(P){return pn(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class zn extends gn{constructor(a){super(),fn(this,a,Nn,wn,mn,{})}}export{zn as component}; | |
Xet Storage Details
- Size:
- 44.4 kB
- Xet hash:
- e48c0e47cd2146e3dbf41760043c92ada15e91cda8d50eb930bde6bdc16177ed
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.