import{s as $s,f as Ns,o as js,n as S}from"../chunks/scheduler.9bc65507.js";import{S as Is,i as Fs,g as o,s as c,u as b,A as ks,h as n,f as t,c as d,j as g,v as y,y as f,k as h,o as a,a as l,w as C,d as x,t as w,x as T}from"../chunks/index.78c82d43.js";import{T as Lt}from"../chunks/Tip.87d55b76.js";import{D as B}from"../chunks/Docstring.f3d04bd2.js";import{C as so}from"../chunks/CodeBlock.48618ec2.js";import{I as V}from"../chunks/IconCopyLink.bedaa44d.js";import{E as no}from"../chunks/ExampleCodeBlock.872b014d.js";import{P as Us}from"../chunks/PipelineTag.75b0f707.js";function Zs(j){let s,M="Example:",p,m,_;return m=new so({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMENvbnZOZXh0Q29uZmlnJTJDJTIwQ29udk5leHRNb2RlbCUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBDb252TmV4dCUyMGNvbnZuZXh0LXRpbnktMjI0JTIwc3R5bGUlMjBjb25maWd1cmF0aW9uJTBBY29uZmlndXJhdGlvbiUyMCUzRCUyMENvbnZOZXh0Q29uZmlnKCklMEElMEElMjMlMjBJbml0aWFsaXppbmclMjBhJTIwbW9kZWwlMjAod2l0aCUyMHJhbmRvbSUyMHdlaWdodHMpJTIwZnJvbSUyMHRoZSUyMGNvbnZuZXh0LXRpbnktMjI0JTIwc3R5bGUlMjBjb25maWd1cmF0aW9uJTBBbW9kZWwlMjAlM0QlMjBDb252TmV4dE1vZGVsKGNvbmZpZ3VyYXRpb24pJTBBJTBBJTIzJTIwQWNjZXNzaW5nJTIwdGhlJTIwbW9kZWwlMjBjb25maWd1cmF0aW9uJTBBY29uZmlndXJhdGlvbiUyMCUzRCUyMG1vZGVsLmNvbmZpZw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> ConvNextConfig, ConvNextModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a ConvNext convnext-tiny-224 style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = ConvNextConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model (with random weights) from the convnext-tiny-224 style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = ConvNextModel(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(){s=o("p"),s.textContent=M,p=c(),b(m.$$.fragment)},l(r){s=n(r,"P",{"data-svelte-h":!0}),f(s)!=="svelte-11lpom8"&&(s.textContent=M),p=d(r),y(m.$$.fragment,r)},m(r,v){l(r,s,v),l(r,p,v),C(m,r,v),_=!0},p:S,i(r){_||(x(m.$$.fragment,r),_=!0)},o(r){w(m.$$.fragment,r),_=!1},d(r){r&&(t(s),t(p)),T(m,r)}}}function zs(j){let s,M=`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(){s=o("p"),s.innerHTML=M},l(p){s=n(p,"P",{"data-svelte-h":!0}),f(s)!=="svelte-fincs2"&&(s.innerHTML=M)},m(p,m){l(p,s,m)},p:S,d(p){p&&t(s)}}}function Ws(j){let s,M="Example:",p,m,_;return m=new so({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMENvbnZOZXh0TW9kZWwlMEFpbXBvcnQlMjB0b3JjaCUwQWZyb20lMjBkYXRhc2V0cyUyMGltcG9ydCUyMGxvYWRfZGF0YXNldCUwQSUwQWRhdGFzZXQlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyaHVnZ2luZ2ZhY2UlMkZjYXRzLWltYWdlJTIyKSUwQWltYWdlJTIwJTNEJTIwZGF0YXNldCU1QiUyMnRlc3QlMjIlNUQlNUIlMjJpbWFnZSUyMiU1RCU1QjAlNUQlMEElMEFpbWFnZV9wcm9jZXNzb3IlMjAlM0QlMjBBdXRvSW1hZ2VQcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMmZhY2Vib29rJTJGY29udm5leHQtdGlueS0yMjQlMjIpJTBBbW9kZWwlMjAlM0QlMjBDb252TmV4dE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRmNvbnZuZXh0LXRpbnktMjI0JTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMGltYWdlX3Byb2Nlc3NvcihpbWFnZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBJTBBd2l0aCUyMHRvcmNoLm5vX2dyYWQoKSUzQSUwQSUyMCUyMCUyMCUyMG91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyklMEElMEFsYXN0X2hpZGRlbl9zdGF0ZXMlMjAlM0QlMjBvdXRwdXRzLmxhc3RfaGlkZGVuX3N0YXRlJTBBbGlzdChsYXN0X2hpZGRlbl9zdGF0ZXMuc2hhcGUp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, ConvNextModel
<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;facebook/convnext-tiny-224&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = ConvNextModel.from_pretrained(<span class="hljs-string">&quot;facebook/convnext-tiny-224&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">768</span>, <span class="hljs-number">7</span>, <span class="hljs-number">7</span>]`}}),{c(){s=o("p"),s.textContent=M,p=c(),b(m.$$.fragment)},l(r){s=n(r,"P",{"data-svelte-h":!0}),f(s)!=="svelte-11lpom8"&&(s.textContent=M),p=d(r),y(m.$$.fragment,r)},m(r,v){l(r,s,v),l(r,p,v),C(m,r,v),_=!0},p:S,i(r){_||(x(m.$$.fragment,r),_=!0)},o(r){w(m.$$.fragment,r),_=!1},d(r){r&&(t(s),t(p)),T(m,r)}}}function Ps(j){let s,M=`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(){s=o("p"),s.innerHTML=M},l(p){s=n(p,"P",{"data-svelte-h":!0}),f(s)!=="svelte-fincs2"&&(s.innerHTML=M)},m(p,m){l(p,s,m)},p:S,d(p){p&&t(s)}}}function Rs(j){let s,M="Example:",p,m,_;return m=new so({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMENvbnZOZXh0Rm9ySW1hZ2VDbGFzc2lmaWNhdGlvbiUwQWltcG9ydCUyMHRvcmNoJTBBZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJodWdnaW5nZmFjZSUyRmNhdHMtaW1hZ2UlMjIpJTBBaW1hZ2UlMjAlM0QlMjBkYXRhc2V0JTVCJTIydGVzdCUyMiU1RCU1QiUyMmltYWdlJTIyJTVEJTVCMCU1RCUwQSUwQWltYWdlX3Byb2Nlc3NvciUyMCUzRCUyMEF1dG9JbWFnZVByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIyZmFjZWJvb2slMkZjb252bmV4dC10aW55LTIyNCUyMiklMEFtb2RlbCUyMCUzRCUyMENvbnZOZXh0Rm9ySW1hZ2VDbGFzc2lmaWNhdGlvbi5mcm9tX3ByZXRyYWluZWQoJTIyZmFjZWJvb2slMkZjb252bmV4dC10aW55LTIyNCUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjBpbWFnZV9wcm9jZXNzb3IoaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQSUwQXdpdGglMjB0b3JjaC5ub19ncmFkKCklM0ElMEElMjAlMjAlMjAlMjBsb2dpdHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cykubG9naXRzJTBBJTBBJTIzJTIwbW9kZWwlMjBwcmVkaWN0cyUyMG9uZSUyMG9mJTIwdGhlJTIwMTAwMCUyMEltYWdlTmV0JTIwY2xhc3NlcyUwQXByZWRpY3RlZF9sYWJlbCUyMCUzRCUyMGxvZ2l0cy5hcmdtYXgoLTEpLml0ZW0oKSUwQXByaW50KG1vZGVsLmNvbmZpZy5pZDJsYWJlbCU1QnByZWRpY3RlZF9sYWJlbCU1RCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, ConvNextForImageClassification
<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;facebook/convnext-tiny-224&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = ConvNextForImageClassification.from_pretrained(<span class="hljs-string">&quot;facebook/convnext-tiny-224&quot;</span>)

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

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> torch.no_grad():
<span class="hljs-meta">... </span>    logits = model(**inputs).logits

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># model predicts one of the 1000 ImageNet classes</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_label = logits.argmax(-<span class="hljs-number">1</span>).item()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(model.config.id2label[predicted_label])
tabby, tabby cat`}}),{c(){s=o("p"),s.textContent=M,p=c(),b(m.$$.fragment)},l(r){s=n(r,"P",{"data-svelte-h":!0}),f(s)!=="svelte-11lpom8"&&(s.textContent=M),p=d(r),y(m.$$.fragment,r)},m(r,v){l(r,s,v),l(r,p,v),C(m,r,v),_=!0},p:S,i(r){_||(x(m.$$.fragment,r),_=!0)},o(r){w(m.$$.fragment,r),_=!1},d(r){r&&(t(s),t(p)),T(m,r)}}}function Es(j){let s,M="TensorFlow models and layers in <code>transformers</code> accept two formats as input:",p,m,_="<li>having all inputs as keyword arguments (like PyTorch models), or</li> <li>having all inputs as a list, tuple or dict in the first positional argument.</li>",r,v,z=`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like <code>model.fit()</code> things should “just work” for you - just
pass your inputs and labels in any format that <code>model.fit()</code> supports! If, however, you want to use the second
format outside of Keras methods like <code>fit()</code> and <code>predict()</code>, such as when creating your own layers or models with
the Keras <code>Functional</code> API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`,W,I,ne=`<li>a single Tensor with <code>pixel_values</code> only and nothing else: <code>model(pixel_values)</code></li> <li>a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
<code>model([pixel_values, attention_mask])</code> or <code>model([pixel_values, attention_mask, token_type_ids])</code></li> <li>a dictionary with one or several input Tensors associated to the input names given in the docstring:
<code>model({&quot;pixel_values&quot;: pixel_values, &quot;token_type_ids&quot;: token_type_ids})</code></li>`,U,N,Z=`Note that when creating models and layers with
<a href="https://keras.io/guides/making_new_layers_and_models_via_subclassing/" rel="nofollow">subclassing</a> then you don’t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`;return{c(){s=o("p"),s.innerHTML=M,p=c(),m=o("ul"),m.innerHTML=_,r=c(),v=o("p"),v.innerHTML=z,W=c(),I=o("ul"),I.innerHTML=ne,U=c(),N=o("p"),N.innerHTML=Z},l(u){s=n(u,"P",{"data-svelte-h":!0}),f(s)!=="svelte-1ajbfxg"&&(s.innerHTML=M),p=d(u),m=n(u,"UL",{"data-svelte-h":!0}),f(m)!=="svelte-qm1t26"&&(m.innerHTML=_),r=d(u),v=n(u,"P",{"data-svelte-h":!0}),f(v)!=="svelte-1v9qsc5"&&(v.innerHTML=z),W=d(u),I=n(u,"UL",{"data-svelte-h":!0}),f(I)!=="svelte-99h8aq"&&(I.innerHTML=ne),U=d(u),N=n(u,"P",{"data-svelte-h":!0}),f(N)!=="svelte-1an3odd"&&(N.innerHTML=Z)},m(u,$){l(u,s,$),l(u,p,$),l(u,m,$),l(u,r,$),l(u,v,$),l(u,W,$),l(u,I,$),l(u,U,$),l(u,N,$)},p:S,d(u){u&&(t(s),t(p),t(m),t(r),t(v),t(W),t(I),t(U),t(N))}}}function Js(j){let s,M=`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(){s=o("p"),s.innerHTML=M},l(p){s=n(p,"P",{"data-svelte-h":!0}),f(s)!=="svelte-fincs2"&&(s.innerHTML=M)},m(p,m){l(p,s,m)},p:S,d(p){p&&t(s)}}}function Ls(j){let s,M="Examples:",p,m,_;return m=new so({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFRGQ29udk5leHRNb2RlbCUwQWZyb20lMjBQSUwlMjBpbXBvcnQlMjBJbWFnZSUwQWltcG9ydCUyMHJlcXVlc3RzJTBBJTBBdXJsJTIwJTNEJTIwJTIyaHR0cCUzQSUyRiUyRmltYWdlcy5jb2NvZGF0YXNldC5vcmclMkZ2YWwyMDE3JTJGMDAwMDAwMDM5NzY5LmpwZyUyMiUwQWltYWdlJTIwJTNEJTIwSW1hZ2Uub3BlbihyZXF1ZXN0cy5nZXQodXJsJTJDJTIwc3RyZWFtJTNEVHJ1ZSkucmF3KSUwQSUwQWltYWdlX3Byb2Nlc3NvciUyMCUzRCUyMEF1dG9JbWFnZVByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIyZmFjZWJvb2slMkZjb252bmV4dC10aW55LTIyNCUyMiklMEFtb2RlbCUyMCUzRCUyMFRGQ29udk5leHRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyZmFjZWJvb2slMkZjb252bmV4dC10aW55LTIyNCUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjBpbWFnZV9wcm9jZXNzb3IoaW1hZ2VzJTNEaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnRmJTIyKSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyklMEFsYXN0X2hpZGRlbl9zdGF0ZXMlMjAlM0QlMjBvdXRwdXRzLmxhc3RfaGlkZGVuX3N0YXRl",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, TFConvNextModel
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> PIL <span class="hljs-keyword">import</span> Image
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> requests

<span class="hljs-meta">&gt;&gt;&gt; </span>url = <span class="hljs-string">&quot;http://images.cocodataset.org/val2017/000000039769.jpg&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>image = Image.<span class="hljs-built_in">open</span>(requests.get(url, stream=<span class="hljs-literal">True</span>).raw)

<span class="hljs-meta">&gt;&gt;&gt; </span>image_processor = AutoImageProcessor.from_pretrained(<span class="hljs-string">&quot;facebook/convnext-tiny-224&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFConvNextModel.from_pretrained(<span class="hljs-string">&quot;facebook/convnext-tiny-224&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = image_processor(images=image, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>last_hidden_states = outputs.last_hidden_state`}}),{c(){s=o("p"),s.textContent=M,p=c(),b(m.$$.fragment)},l(r){s=n(r,"P",{"data-svelte-h":!0}),f(s)!=="svelte-kvfsh7"&&(s.textContent=M),p=d(r),y(m.$$.fragment,r)},m(r,v){l(r,s,v),l(r,p,v),C(m,r,v),_=!0},p:S,i(r){_||(x(m.$$.fragment,r),_=!0)},o(r){w(m.$$.fragment,r),_=!1},d(r){r&&(t(s),t(p)),T(m,r)}}}function qs(j){let s,M="TensorFlow models and layers in <code>transformers</code> accept two formats as input:",p,m,_="<li>having all inputs as keyword arguments (like PyTorch models), or</li> <li>having all inputs as a list, tuple or dict in the first positional argument.</li>",r,v,z=`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like <code>model.fit()</code> things should “just work” for you - just
pass your inputs and labels in any format that <code>model.fit()</code> supports! If, however, you want to use the second
format outside of Keras methods like <code>fit()</code> and <code>predict()</code>, such as when creating your own layers or models with
the Keras <code>Functional</code> API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`,W,I,ne=`<li>a single Tensor with <code>pixel_values</code> only and nothing else: <code>model(pixel_values)</code></li> <li>a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
<code>model([pixel_values, attention_mask])</code> or <code>model([pixel_values, attention_mask, token_type_ids])</code></li> <li>a dictionary with one or several input Tensors associated to the input names given in the docstring:
<code>model({&quot;pixel_values&quot;: pixel_values, &quot;token_type_ids&quot;: token_type_ids})</code></li>`,U,N,Z=`Note that when creating models and layers with
<a href="https://keras.io/guides/making_new_layers_and_models_via_subclassing/" rel="nofollow">subclassing</a> then you don’t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`;return{c(){s=o("p"),s.innerHTML=M,p=c(),m=o("ul"),m.innerHTML=_,r=c(),v=o("p"),v.innerHTML=z,W=c(),I=o("ul"),I.innerHTML=ne,U=c(),N=o("p"),N.innerHTML=Z},l(u){s=n(u,"P",{"data-svelte-h":!0}),f(s)!=="svelte-1ajbfxg"&&(s.innerHTML=M),p=d(u),m=n(u,"UL",{"data-svelte-h":!0}),f(m)!=="svelte-qm1t26"&&(m.innerHTML=_),r=d(u),v=n(u,"P",{"data-svelte-h":!0}),f(v)!=="svelte-1v9qsc5"&&(v.innerHTML=z),W=d(u),I=n(u,"UL",{"data-svelte-h":!0}),f(I)!=="svelte-99h8aq"&&(I.innerHTML=ne),U=d(u),N=n(u,"P",{"data-svelte-h":!0}),f(N)!=="svelte-1an3odd"&&(N.innerHTML=Z)},m(u,$){l(u,s,$),l(u,p,$),l(u,m,$),l(u,r,$),l(u,v,$),l(u,W,$),l(u,I,$),l(u,U,$),l(u,N,$)},p:S,d(u){u&&(t(s),t(p),t(m),t(r),t(v),t(W),t(I),t(U),t(N))}}}function Hs(j){let s,M=`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(){s=o("p"),s.innerHTML=M},l(p){s=n(p,"P",{"data-svelte-h":!0}),f(s)!=="svelte-fincs2"&&(s.innerHTML=M)},m(p,m){l(p,s,m)},p:S,d(p){p&&t(s)}}}function Bs(j){let s,M="Examples:",p,m,_;return m=new so({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFRGQ29udk5leHRGb3JJbWFnZUNsYXNzaWZpY2F0aW9uJTBBaW1wb3J0JTIwdGVuc29yZmxvdyUyMGFzJTIwdGYlMEFmcm9tJTIwUElMJTIwaW1wb3J0JTIwSW1hZ2UlMEFpbXBvcnQlMjByZXF1ZXN0cyUwQSUwQXVybCUyMCUzRCUyMCUyMmh0dHAlM0ElMkYlMkZpbWFnZXMuY29jb2RhdGFzZXQub3JnJTJGdmFsMjAxNyUyRjAwMDAwMDAzOTc2OS5qcGclMjIlMEFpbWFnZSUyMCUzRCUyMEltYWdlLm9wZW4ocmVxdWVzdHMuZ2V0KHVybCUyQyUyMHN0cmVhbSUzRFRydWUpLnJhdyklMEElMEFpbWFnZV9wcm9jZXNzb3IlMjAlM0QlMjBBdXRvSW1hZ2VQcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMmZhY2Vib29rJTJGY29udm5leHQtdGlueS0yMjQlMjIpJTBBbW9kZWwlMjAlM0QlMjBURkNvbnZOZXh0Rm9ySW1hZ2VDbGFzc2lmaWNhdGlvbi5mcm9tX3ByZXRyYWluZWQoJTIyZmFjZWJvb2slMkZjb252bmV4dC10aW55LTIyNCUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjBpbWFnZV9wcm9jZXNzb3IoaW1hZ2VzJTNEaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnRmJTIyKSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyklMEFsb2dpdHMlMjAlM0QlMjBvdXRwdXRzLmxvZ2l0cyUwQSUyMyUyMG1vZGVsJTIwcHJlZGljdHMlMjBvbmUlMjBvZiUyMHRoZSUyMDEwMDAlMjBJbWFnZU5ldCUyMGNsYXNzZXMlMEFwcmVkaWN0ZWRfY2xhc3NfaWR4JTIwJTNEJTIwdGYubWF0aC5hcmdtYXgobG9naXRzJTJDJTIwYXhpcyUzRC0xKSU1QjAlNUQlMEFwcmludCglMjJQcmVkaWN0ZWQlMjBjbGFzcyUzQSUyMiUyQyUyMG1vZGVsLmNvbmZpZy5pZDJsYWJlbCU1QmludChwcmVkaWN0ZWRfY2xhc3NfaWR4KSU1RCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, TFConvNextForImageClassification
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> tensorflow <span class="hljs-keyword">as</span> tf
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> PIL <span class="hljs-keyword">import</span> Image
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> requests

<span class="hljs-meta">&gt;&gt;&gt; </span>url = <span class="hljs-string">&quot;http://images.cocodataset.org/val2017/000000039769.jpg&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>image = Image.<span class="hljs-built_in">open</span>(requests.get(url, stream=<span class="hljs-literal">True</span>).raw)

<span class="hljs-meta">&gt;&gt;&gt; </span>image_processor = AutoImageProcessor.from_pretrained(<span class="hljs-string">&quot;facebook/convnext-tiny-224&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFConvNextForImageClassification.from_pretrained(<span class="hljs-string">&quot;facebook/convnext-tiny-224&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = image_processor(images=image, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.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_class_idx = tf.math.argmax(logits, axis=-<span class="hljs-number">1</span>)[<span class="hljs-number">0</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;Predicted class:&quot;</span>, model.config.id2label[<span class="hljs-built_in">int</span>(predicted_class_idx)])`}}),{c(){s=o("p"),s.textContent=M,p=c(),b(m.$$.fragment)},l(r){s=n(r,"P",{"data-svelte-h":!0}),f(s)!=="svelte-kvfsh7"&&(s.textContent=M),p=d(r),y(m.$$.fragment,r)},m(r,v){l(r,s,v),l(r,p,v),C(m,r,v),_=!0},p:S,i(r){_||(x(m.$$.fragment,r),_=!0)},o(r){w(m.$$.fragment,r),_=!1},d(r){r&&(t(s),t(p)),T(m,r)}}}function As(j){let s,M,p,m,_,r,v,z,W,I,ne="ConvNeXT",U,N,Z,u,$,Ho,ht,Fn="Overview",ao,ke,kn=`The ConvNeXT model was proposed in <a href="https://arxiv.org/abs/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.`,ro,Ue,Un="The abstract from the paper is the following:",lo,Ze,Zn=`<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>`,io,ze,zn="Tips:",co,We,Wn="<li>See the code examples below each model regarding usage.</li>",mo,se,Pn,po,Pe,Rn='ConvNeXT architecture. Taken from the <a href="https://arxiv.org/abs/2201.03545">original paper</a>.',ho,Re,En=`This model was contributed by <a href="https://huggingface.co/nielsr" rel="nofollow">nielsr</a>. TensorFlow version of the model was contributed by <a href="https://github.com/ariG23498" rel="nofollow">ariG23498</a>,
<a href="https://github.com/gante" rel="nofollow">gante</a>, and <a href="https://github.com/sayakpaul" rel="nofollow">sayakpaul</a> (equal contribution). The original code can be found <a href="https://github.com/facebookresearch/ConvNeXt" rel="nofollow">here</a>.`,fo,Q,ae,qt,Ee,Bo,ft,Jn="Resources",uo,Je,Ln="A list of official Hugging Face and community (indicated by 🌎) resources to help you get started with ConvNeXT.",go,Le,vo,qe,qn='<li><a href="/docs/transformers/v4.33.3/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>',_o,He,Hn="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.",bo,D,re,Ht,Be,Ao,ut,Bn="ConvNextConfig",yo,P,Ae,Xo,gt,An=`This is the configuration class to store the configuration of a <a href="/docs/transformers/v4.33.3/en/model_doc/convnext#transformers.ConvNextModel">ConvNextModel</a>. It is used to instantiate an
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 ConvNeXT
<a href="https://huggingface.co/facebook/convnext-tiny-224" rel="nofollow">facebook/convnext-tiny-224</a> architecture.`,So,vt,Xn=`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.`,Go,le,Co,Y,ie,Bt,Xe,Vo,_t,Sn="ConvNextFeatureExtractor",xo,Se,Ge,wo,O,ce,At,Ve,Qo,bt,Gn="ConvNextImageProcessor",To,A,Qe,Do,yt,Vn="Constructs a ConvNeXT image processor.",Yo,de,De,Oo,Ct,Qn="Preprocess an image or batch of images.",Mo,K,me,Xt,Ye,Ko,xt,Dn="ConvNextModel",$o,X,Oe,en,wt,Yn=`The bare ConvNext 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.`,tn,E,Ke,on,Tt,On='The <a href="/docs/transformers/v4.33.3/en/model_doc/convnext#transformers.ConvNextModel">ConvNextModel</a> forward method, overrides the <code>__call__</code> special method.',nn,pe,sn,he,No,ee,fe,St,et,an,Mt,Kn="ConvNextForImageClassification",jo,R,tt,rn,$t,es=`ConvNext Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`,ln,Nt,ts=`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.`,cn,J,ot,dn,jt,os='The <a href="/docs/transformers/v4.33.3/en/model_doc/convnext#transformers.ConvNextForImageClassification">ConvNextForImageClassification</a> forward method, overrides the <code>__call__</code> special method.',mn,ue,pn,ge,Io,te,ve,Gt,nt,hn,It,ns="TFConvNextModel",Fo,k,st,fn,Ft,ss=`The bare ConvNext model outputting raw features without any specific head on top.
This model inherits from <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`,un,kt,as=`This model is also a <a href="https://www.tensorflow.org/api_docs/python/tf/keras/Model" rel="nofollow">tf.keras.Model</a> subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`,gn,_e,vn,L,at,_n,Ut,rs='The <a href="/docs/transformers/v4.33.3/en/model_doc/convnext#transformers.TFConvNextModel">TFConvNextModel</a> forward method, overrides the <code>__call__</code> special method.',bn,be,yn,ye,ko,oe,Ce,Vt,rt,Cn,Zt,ls="TFConvNextForImageClassification",Uo,F,lt,xn,zt,is=`ConvNext Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`,wn,Wt,cs=`This model inherits from <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`,Tn,Pt,ds=`This model is also a <a href="https://www.tensorflow.org/api_docs/python/tf/keras/Model" rel="nofollow">tf.keras.Model</a> subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`,Mn,xe,$n,q,it,Nn,Rt,ms='The <a href="/docs/transformers/v4.33.3/en/model_doc/convnext#transformers.TFConvNextForImageClassification">TFConvNextForImageClassification</a> forward method, overrides the <code>__call__</code> special method.',jn,we,In,Te,Zo,Qt,zo;return z=new V({}),$=new V({}),Ee=new V({}),Le=new Us({props:{pipeline:"image-classification"}}),Be=new V({}),Ae=new B({props:{name:"class transformers.ConvNextConfig",anchor:"transformers.ConvNextConfig",parameters:[{name:"num_channels",val:" = 3"},{name:"patch_size",val:" = 4"},{name:"num_stages",val:" = 4"},{name:"hidden_sizes",val:" = None"},{name:"depths",val:" = None"},{name:"hidden_act",val:" = 'gelu'"},{name:"initializer_range",val:" = 0.02"},{name:"layer_norm_eps",val:" = 1e-12"},{name:"layer_scale_init_value",val:" = 1e-06"},{name:"drop_path_rate",val:" = 0.0"},{name:"image_size",val:" = 224"},{name:"out_features",val:" = None"},{name:"out_indices",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ConvNextConfig.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.ConvNextConfig.patch_size",description:`<strong>patch_size</strong> (<code>int</code>, optional, defaults to 4) &#x2014;
Patch size to use in the patch embedding layer.`,name:"patch_size"},{anchor:"transformers.ConvNextConfig.num_stages",description:`<strong>num_stages</strong> (<code>int</code>, optional, defaults to 4) &#x2014;
The number of stages in the model.`,name:"num_stages"},{anchor:"transformers.ConvNextConfig.hidden_sizes",description:`<strong>hidden_sizes</strong> (<code>List[int]</code>, <em>optional</em>, defaults to [96, 192, 384, 768]) &#x2014;
Dimensionality (hidden size) at each stage.`,name:"hidden_sizes"},{anchor:"transformers.ConvNextConfig.depths",description:`<strong>depths</strong> (<code>List[int]</code>, <em>optional</em>, defaults to [3, 3, 9, 3]) &#x2014;
Depth (number of blocks) for each stage.`,name:"depths"},{anchor:"transformers.ConvNextConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code> or <code>function</code>, <em>optional</em>, defaults to <code>&quot;gelu&quot;</code>) &#x2014;
The non-linear activation function (function or string) in 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.ConvNextConfig.initializer_range",description:`<strong>initializer_range</strong> (<code>float</code>, <em>optional</em>, defaults to 0.02) &#x2014;
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.`,name:"initializer_range"},{anchor:"transformers.ConvNextConfig.layer_norm_eps",description:`<strong>layer_norm_eps</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-12) &#x2014;
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 1e-6) &#x2014;
The initial value for the layer scale.`,name:"layer_scale_init_value"},{anchor:"transformers.ConvNextConfig.drop_path_rate",description:`<strong>drop_path_rate</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The drop rate for stochastic depth.`,name:"drop_path_rate"},{anchor:"transformers.ConvNextConfig.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.ConvNextConfig.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/convnext/configuration_convnext.py#L36"}}),le=new no({props:{anchor:"transformers.ConvNextConfig.example",$$slots:{default:[Zs]},$$scope:{ctx:j}}}),Xe=new V({}),Ge=new B({props:{name:"class transformers.ConvNextFeatureExtractor",anchor:"transformers.ConvNextFeatureExtractor",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/convnext/feature_extraction_convnext.py#L26"}}),Ve=new V({}),Qe=new B({props:{name:"class transformers.ConvNextImageProcessor",anchor:"transformers.ConvNextImageProcessor",parameters:[{name:"do_resize",val:": bool = True"},{name:"size",val:": typing.Dict[str, int] = None"},{name:"crop_pct",val:": float = None"},{name:"resample",val:": Resampling = <Resampling.BILINEAR: 2>"},{name:"do_rescale",val:": bool = True"},{name:"rescale_factor",val:": typing.Union[int, float] = 0.00392156862745098"},{name:"do_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:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ConvNextImageProcessor.do_resize",description:`<strong>do_resize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Controls whether to resize the image&#x2019;s (height, width) dimensions to the specified <code>size</code>. Can be overriden
by <code>do_resize</code> in the <code>preprocess</code> method.`,name:"do_resize"},{anchor:"transformers.ConvNextImageProcessor.size",description:`<strong>size</strong> (<code>Dict[str, int]</code> <em>optional</em>, defaults to <code>{&quot;shortest_edge&quot; -- 384}</code>):
Resolution of the output image after <code>resize</code> is applied. If <code>size[&quot;shortest_edge&quot;]</code> &gt;= 384, the image is
resized to <code>(size[&quot;shortest_edge&quot;], size[&quot;shortest_edge&quot;])</code>. Otherwise, the smaller edge of the image will
be matched to <code>int(size[&quot;shortest_edge&quot;]/crop_pct)</code>, after which the image is cropped to
<code>(size[&quot;shortest_edge&quot;], size[&quot;shortest_edge&quot;])</code>. Only has an effect if <code>do_resize</code> is set to <code>True</code>. Can
be overriden by <code>size</code> in the <code>preprocess</code> method.`,name:"size"},{anchor:"transformers.ConvNextImageProcessor.crop_pct",description:`<strong>crop_pct</strong> (<code>float</code> <em>optional</em>, defaults to 224 / 256) &#x2014;
Percentage of the image to crop. Only has an effect if <code>do_resize</code> is <code>True</code> and size &lt; 384. Can be
overriden by <code>crop_pct</code> in the <code>preprocess</code> method.`,name:"crop_pct"},{anchor:"transformers.ConvNextImageProcessor.resample",description:`<strong>resample</strong> (<code>PILImageResampling</code>, <em>optional</em>, defaults to <code>PILImageResampling.BILINEAR</code>) &#x2014;
Resampling filter to use if resizing the image. Can be overriden by <code>resample</code> in the <code>preprocess</code> method.`,name:"resample"},{anchor:"transformers.ConvNextImageProcessor.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 overriden by <code>do_rescale</code> in
the <code>preprocess</code> method.`,name:"do_rescale"},{anchor:"transformers.ConvNextImageProcessor.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 overriden by <code>rescale_factor</code> in the <code>preprocess</code>
method.`,name:"rescale_factor"},{anchor:"transformers.ConvNextImageProcessor.do_normalize",description:`<strong>do_normalize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to normalize the image. Can be overridden by the <code>do_normalize</code> parameter in the <code>preprocess</code>
method.`,name:"do_normalize"},{anchor:"transformers.ConvNextImageProcessor.image_mean",description:`<strong>image_mean</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>IMAGENET_STANDARD_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.ConvNextImageProcessor.image_std",description:`<strong>image_std</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>IMAGENET_STANDARD_STD</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:"image_std"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/convnext/image_processing_convnext.py#L50"}}),De=new B({props:{name:"preprocess",anchor:"transformers.ConvNextImageProcessor.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:"crop_pct",val:": float = None"},{name:"resample",val:": Resampling = 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:"return_tensors",val:": typing.Union[str, transformers.utils.generic.TensorType, NoneType] = None"},{name:"data_format",val:": ChannelDimension = <ChannelDimension.FIRST: 'channels_first'>"},{name:"input_data_format",val:": typing.Union[str, transformers.image_utils.ChannelDimension, NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ConvNextImageProcessor.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.ConvNextImageProcessor.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.ConvNextImageProcessor.preprocess.size",description:`<strong>size</strong> (<code>Dict[str, int]</code>, <em>optional</em>, defaults to <code>self.size</code>) &#x2014;
Size of the output image after <code>resize</code> has been applied. If <code>size[&quot;shortest_edge&quot;]</code> &gt;= 384, the image
is resized to <code>(size[&quot;shortest_edge&quot;], size[&quot;shortest_edge&quot;])</code>. Otherwise, the smaller edge of the
image will be matched to <code>int(size[&quot;shortest_edge&quot;]/ crop_pct)</code>, after which the image is cropped to
<code>(size[&quot;shortest_edge&quot;], size[&quot;shortest_edge&quot;])</code>. Only has an effect if <code>do_resize</code> is set to <code>True</code>.`,name:"size"},{anchor:"transformers.ConvNextImageProcessor.preprocess.crop_pct",description:`<strong>crop_pct</strong> (<code>float</code>, <em>optional</em>, defaults to <code>self.crop_pct</code>) &#x2014;
Percentage of the image to crop if size &lt; 384.`,name:"crop_pct"},{anchor:"transformers.ConvNextImageProcessor.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 <code>PILImageResampling</code>, filters. Only
has an effect if <code>do_resize</code> is set to <code>True</code>.`,name:"resample"},{anchor:"transformers.ConvNextImageProcessor.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 values between [0 - 1].`,name:"do_rescale"},{anchor:"transformers.ConvNextImageProcessor.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.ConvNextImageProcessor.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.ConvNextImageProcessor.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.`,name:"image_mean"},{anchor:"transformers.ConvNextImageProcessor.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.`,name:"image_std"},{anchor:"transformers.ConvNextImageProcessor.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.ConvNextImageProcessor.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.ConvNextImageProcessor.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/convnext/image_processing_convnext.py#L185"}}),Ye=new V({}),Oe=new B({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/v4.33.3/en/model_doc/convnext#transformers.ConvNextConfig">ConvNextConfig</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/convnext/modeling_convnext.py#L333"}}),Ke=new B({props:{name:"forward",anchor:"transformers.ConvNextModel.forward",parameters:[{name:"pixel_values",val:": FloatTensor = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.ConvNextModel.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__">ConvNextImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.ConvNextModel.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.ConvNextModel.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/convnext/modeling_convnext.py#L347",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/convnext#transformers.ConvNextConfig"
>ConvNextConfig</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>
`}}),pe=new Lt({props:{$$slots:{default:[zs]},$$scope:{ctx:j}}}),he=new no({props:{anchor:"transformers.ConvNextModel.forward.example",$$slots:{default:[Ws]},$$scope:{ctx:j}}}),et=new V({}),tt=new B({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/v4.33.3/en/model_doc/convnext#transformers.ConvNextConfig">ConvNextConfig</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/convnext/modeling_convnext.py#L399"}}),ot=new B({props:{name:"forward",anchor:"transformers.ConvNextForImageClassification.forward",parameters:[{name:"pixel_values",val:": 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.ConvNextForImageClassification.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__">ConvNextImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.ConvNextForImageClassification.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.ConvNextForImageClassification.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.ConvNextForImageClassification.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for computing the image classification/regression loss. Indices should be in <code>[0, ..., config.num_labels - 1]</code>. If <code>config.num_labels == 1</code> a regression loss is computed (Mean-Square loss), If
<code>config.num_labels &gt; 1</code> a classification loss is computed (Cross-Entropy).`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/convnext/modeling_convnext.py#L414",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/convnext#transformers.ConvNextConfig"
>ConvNextConfig</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>
`}}),ue=new Lt({props:{$$slots:{default:[Ps]},$$scope:{ctx:j}}}),ge=new no({props:{anchor:"transformers.ConvNextForImageClassification.forward.example",$$slots:{default:[Rs]},$$scope:{ctx:j}}}),nt=new V({}),st=new B({props:{name:"class transformers.TFConvNextModel",anchor:"transformers.TFConvNextModel",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFConvNextModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/convnext#transformers.ConvNextConfig">ConvNextConfig</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.TFPreTrainedModel.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/convnext/modeling_tf_convnext.py#L416"}}),_e=new Lt({props:{$$slots:{default:[Es]},$$scope:{ctx:j}}}),at=new B({props:{name:"call",anchor:"transformers.TFConvNextModel.call",parameters:[{name:"pixel_values",val:": TFModelInputType | None = None"},{name:"output_hidden_states",val:": Optional[bool] = None"},{name:"return_dict",val:": Optional[bool] = None"},{name:"training",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TFConvNextModel.call.pixel_values",description:`<strong>pixel_values</strong> (<code>np.ndarray</code>, <code>tf.Tensor</code>, <code>List[tf.Tensor]</code> \`<code>Dict[str, tf.Tensor]</code> or <code>Dict[str, np.ndarray]</code> and each example must have the shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Pixel values. Pixel values can be obtained using <a href="/docs/transformers/v4.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__">ConvNextImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.TFConvNextModel.call.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail. This argument can be used only in eager mode, in graph mode the value in the config will be
used instead.`,name:"output_hidden_states"},{anchor:"transformers.TFConvNextModel.call.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple. This argument can be used in
eager mode, in graph mode the value will always be set to True.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/convnext/modeling_tf_convnext.py#L421",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.modeling_tf_outputs.TFBaseModelOutputWithPooling"
>transformers.modeling_tf_outputs.TFBaseModelOutputWithPooling</a> or a tuple of <code>tf.Tensor</code> (if
<code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various elements depending on the
configuration (<a
  href="/docs/transformers/v4.33.3/en/model_doc/convnext#transformers.ConvNextConfig"
>ConvNextConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>last_hidden_state</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>) — Sequence of hidden-states at the output of the last layer of the model.</p>
</li>
<li>
<p><strong>pooler_output</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, hidden_size)</code>) — Last layer hidden-state of the first token of the sequence (classification token) further processed by a
Linear layer and a Tanh activation function. The Linear layer weights are trained from the next sentence
prediction (classification) objective during pretraining.</p>
<p>This output is usually <em>not</em> a good summary of the semantic content of the input, you’re often better with
averaging or pooling the sequence of hidden-states for the whole input sequence.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) — Tuple of <code>tf.Tensor</code> (one for the output of the embeddings + one for the output of each layer) of shape
<code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) — Tuple of <code>tf.Tensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.modeling_tf_outputs.TFBaseModelOutputWithPooling"
>transformers.modeling_tf_outputs.TFBaseModelOutputWithPooling</a> or <code>tuple(tf.Tensor)</code></p>
`}}),be=new Lt({props:{$$slots:{default:[Js]},$$scope:{ctx:j}}}),ye=new no({props:{anchor:"transformers.TFConvNextModel.call.example",$$slots:{default:[Ls]},$$scope:{ctx:j}}}),rt=new V({}),lt=new B({props:{name:"class transformers.TFConvNextForImageClassification",anchor:"transformers.TFConvNextForImageClassification",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFConvNextForImageClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/convnext#transformers.ConvNextConfig">ConvNextConfig</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.TFPreTrainedModel.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/convnext/modeling_tf_convnext.py#L483"}}),xe=new Lt({props:{$$slots:{default:[qs]},$$scope:{ctx:j}}}),it=new B({props:{name:"call",anchor:"transformers.TFConvNextForImageClassification.call",parameters:[{name:"pixel_values",val:": TFModelInputType | None = None"},{name:"output_hidden_states",val:": Optional[bool] = None"},{name:"return_dict",val:": Optional[bool] = None"},{name:"labels",val:": np.ndarray | tf.Tensor | None = None"},{name:"training",val:": Optional[bool] = False"}],parametersDescription:[{anchor:"transformers.TFConvNextForImageClassification.call.pixel_values",description:`<strong>pixel_values</strong> (<code>np.ndarray</code>, <code>tf.Tensor</code>, <code>List[tf.Tensor]</code> \`<code>Dict[str, tf.Tensor]</code> or <code>Dict[str, np.ndarray]</code> and each example must have the shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Pixel values. Pixel values can be obtained using <a href="/docs/transformers/v4.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__">ConvNextImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.TFConvNextForImageClassification.call.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail. This argument can be used only in eager mode, in graph mode the value in the config will be
used instead.`,name:"output_hidden_states"},{anchor:"transformers.TFConvNextForImageClassification.call.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple. This argument can be used in
eager mode, in graph mode the value will always be set to True.`,name:"return_dict"},{anchor:"transformers.TFConvNextForImageClassification.call.labels",description:`<strong>labels</strong> (<code>tf.Tensor</code> or <code>np.ndarray</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for computing the image classification/regression loss. Indices should be in <code>[0, ..., config.num_labels - 1]</code>. If <code>config.num_labels == 1</code> a regression loss is computed (Mean-Square loss), If
<code>config.num_labels &gt; 1</code> a classification loss is computed (Cross-Entropy).`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/convnext/modeling_tf_convnext.py#L498",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.modeling_tf_outputs.TFSequenceClassifierOutput"
>transformers.modeling_tf_outputs.TFSequenceClassifierOutput</a> or a tuple of <code>tf.Tensor</code> (if
<code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various elements depending on the
configuration (<a
  href="/docs/transformers/v4.33.3/en/model_doc/convnext#transformers.ConvNextConfig"
>ConvNextConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, )</code>, <em>optional</em>, returned when <code>labels</code> is provided) — Classification (or regression if config.num_labels==1) loss.</p>
</li>
<li>
<p><strong>logits</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, config.num_labels)</code>) — Classification (or regression if config.num_labels==1) scores (before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) — Tuple of <code>tf.Tensor</code> (one for the output of the embeddings + one for the output of each layer) of shape
<code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) — Tuple of <code>tf.Tensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.modeling_tf_outputs.TFSequenceClassifierOutput"
>transformers.modeling_tf_outputs.TFSequenceClassifierOutput</a> or <code>tuple(tf.Tensor)</code></p>
`}}),we=new Lt({props:{$$slots:{default:[Hs]},$$scope:{ctx:j}}}),Te=new no({props:{anchor:"transformers.TFConvNextForImageClassification.call.example",$$slots:{default:[Bs]},$$scope:{ctx:j}}}),{c(){s=o("meta"),M=c(),p=o("p"),m=c(),_=o("h1"),r=o("a"),v=o("span"),b(z.$$.fragment),W=c(),I=o("span"),I.textContent=ne,U=c(),N=o("h2"),Z=o("a"),u=o("span"),b($.$$.fragment),Ho=c(),ht=o("span"),ht.textContent=Fn,ao=c(),ke=o("p"),ke.innerHTML=kn,ro=c(),Ue=o("p"),Ue.textContent=Un,lo=c(),Ze=o("p"),Ze.innerHTML=Zn,io=c(),ze=o("p"),ze.textContent=zn,co=c(),We=o("ul"),We.innerHTML=Wn,mo=c(),se=o("img"),po=c(),Pe=o("small"),Pe.innerHTML=Rn,ho=c(),Re=o("p"),Re.innerHTML=En,fo=c(),Q=o("h2"),ae=o("a"),qt=o("span"),b(Ee.$$.fragment),Bo=c(),ft=o("span"),ft.textContent=Jn,uo=c(),Je=o("p"),Je.textContent=Ln,go=c(),b(Le.$$.fragment),vo=c(),qe=o("ul"),qe.innerHTML=qn,_o=c(),He=o("p"),He.textContent=Hn,bo=c(),D=o("h2"),re=o("a"),Ht=o("span"),b(Be.$$.fragment),Ao=c(),ut=o("span"),ut.textContent=Bn,yo=c(),P=o("div"),b(Ae.$$.fragment),Xo=c(),gt=o("p"),gt.innerHTML=An,So=c(),vt=o("p"),vt.innerHTML=Xn,Go=c(),b(le.$$.fragment),Co=c(),Y=o("h2"),ie=o("a"),Bt=o("span"),b(Xe.$$.fragment),Vo=c(),_t=o("span"),_t.textContent=Sn,xo=c(),Se=o("div"),b(Ge.$$.fragment),wo=c(),O=o("h2"),ce=o("a"),At=o("span"),b(Ve.$$.fragment),Qo=c(),bt=o("span"),bt.textContent=Gn,To=c(),A=o("div"),b(Qe.$$.fragment),Do=c(),yt=o("p"),yt.textContent=Vn,Yo=c(),de=o("div"),b(De.$$.fragment),Oo=c(),Ct=o("p"),Ct.textContent=Qn,Mo=c(),K=o("h2"),me=o("a"),Xt=o("span"),b(Ye.$$.fragment),Ko=c(),xt=o("span"),xt.textContent=Dn,$o=c(),X=o("div"),b(Oe.$$.fragment),en=c(),wt=o("p"),wt.innerHTML=Yn,tn=c(),E=o("div"),b(Ke.$$.fragment),on=c(),Tt=o("p"),Tt.innerHTML=On,nn=c(),b(pe.$$.fragment),sn=c(),b(he.$$.fragment),No=c(),ee=o("h2"),fe=o("a"),St=o("span"),b(et.$$.fragment),an=c(),Mt=o("span"),Mt.textContent=Kn,jo=c(),R=o("div"),b(tt.$$.fragment),rn=c(),$t=o("p"),$t.textContent=es,ln=c(),Nt=o("p"),Nt.innerHTML=ts,cn=c(),J=o("div"),b(ot.$$.fragment),dn=c(),jt=o("p"),jt.innerHTML=os,mn=c(),b(ue.$$.fragment),pn=c(),b(ge.$$.fragment),Io=c(),te=o("h2"),ve=o("a"),Gt=o("span"),b(nt.$$.fragment),hn=c(),It=o("span"),It.textContent=ns,Fo=c(),k=o("div"),b(st.$$.fragment),fn=c(),Ft=o("p"),Ft.innerHTML=ss,un=c(),kt=o("p"),kt.innerHTML=as,gn=c(),b(_e.$$.fragment),vn=c(),L=o("div"),b(at.$$.fragment),_n=c(),Ut=o("p"),Ut.innerHTML=rs,bn=c(),b(be.$$.fragment),yn=c(),b(ye.$$.fragment),ko=c(),oe=o("h2"),Ce=o("a"),Vt=o("span"),b(rt.$$.fragment),Cn=c(),Zt=o("span"),Zt.textContent=ls,Uo=c(),F=o("div"),b(lt.$$.fragment),xn=c(),zt=o("p"),zt.textContent=is,wn=c(),Wt=o("p"),Wt.innerHTML=cs,Tn=c(),Pt=o("p"),Pt.innerHTML=ds,Mn=c(),b(xe.$$.fragment),$n=c(),q=o("div"),b(it.$$.fragment),Nn=c(),Rt=o("p"),Rt.innerHTML=ms,jn=c(),b(we.$$.fragment),In=c(),b(Te.$$.fragment),Zo=c(),Qt=o("p"),this.h()},l(e){const i=ks("svelte-1phssyn",document.head);s=n(i,"META",{name:!0,content:!0}),i.forEach(t),M=d(e),p=n(e,"P",{}),g(p).forEach(t),m=d(e),_=n(e,"H1",{class:!0});var ct=g(_);r=n(ct,"A",{id:!0,class:!0,href:!0});var Dt=g(r);v=n(Dt,"SPAN",{});var Yt=g(v);y(z.$$.fragment,Yt),Yt.forEach(t),Dt.forEach(t),W=d(ct),I=n(ct,"SPAN",{"data-svelte-h":!0}),f(I)!=="svelte-5m584c"&&(I.textContent=ne),ct.forEach(t),U=d(e),N=n(e,"H2",{class:!0});var dt=g(N);Z=n(dt,"A",{id:!0,class:!0,href:!0});var Ot=g(Z);u=n(Ot,"SPAN",{});var Kt=g(u);y($.$$.fragment,Kt),Kt.forEach(t),Ot.forEach(t),Ho=d(dt),ht=n(dt,"SPAN",{"data-svelte-h":!0}),f(ht)!=="svelte-1jsw1pg"&&(ht.textContent=Fn),dt.forEach(t),ao=d(e),ke=n(e,"P",{"data-svelte-h":!0}),f(ke)!=="svelte-1m8plns"&&(ke.innerHTML=kn),ro=d(e),Ue=n(e,"P",{"data-svelte-h":!0}),f(Ue)!=="svelte-vfdo9a"&&(Ue.textContent=Un),lo=d(e),Ze=n(e,"P",{"data-svelte-h":!0}),f(Ze)!=="svelte-1bctlxd"&&(Ze.innerHTML=Zn),io=d(e),ze=n(e,"P",{"data-svelte-h":!0}),f(ze)!=="svelte-axv494"&&(ze.textContent=zn),co=d(e),We=n(e,"UL",{"data-svelte-h":!0}),f(We)!=="svelte-n2rynk"&&(We.innerHTML=Wn),mo=d(e),se=n(e,"IMG",{src:!0,alt:!0,width:!0}),po=d(e),Pe=n(e,"SMALL",{"data-svelte-h":!0}),f(Pe)!=="svelte-dowkk3"&&(Pe.innerHTML=Rn),ho=d(e),Re=n(e,"P",{"data-svelte-h":!0}),f(Re)!=="svelte-u3e1xt"&&(Re.innerHTML=En),fo=d(e),Q=n(e,"H2",{class:!0});var mt=g(Q);ae=n(mt,"A",{id:!0,class:!0,href:!0});var eo=g(ae);qt=n(eo,"SPAN",{});var to=g(qt);y(Ee.$$.fragment,to),to.forEach(t),eo.forEach(t),Bo=d(mt),ft=n(mt,"SPAN",{"data-svelte-h":!0}),f(ft)!=="svelte-w4zzv6"&&(ft.textContent=Jn),mt.forEach(t),uo=d(e),Je=n(e,"P",{"data-svelte-h":!0}),f(Je)!=="svelte-11wcl3s"&&(Je.textContent=Ln),go=d(e),y(Le.$$.fragment,e),vo=d(e),qe=n(e,"UL",{"data-svelte-h":!0}),f(qe)!=="svelte-1lgle6s"&&(qe.innerHTML=qn),_o=d(e),He=n(e,"P",{"data-svelte-h":!0}),f(He)!=="svelte-1xesile"&&(He.textContent=Hn),bo=d(e),D=n(e,"H2",{class:!0});var pt=g(D);re=n(pt,"A",{id:!0,class:!0,href:!0});var oo=g(re);Ht=n(oo,"SPAN",{});var ps=g(Ht);y(Be.$$.fragment,ps),ps.forEach(t),oo.forEach(t),Ao=d(pt),ut=n(pt,"SPAN",{"data-svelte-h":!0}),f(ut)!=="svelte-1bu2izi"&&(ut.textContent=Bn),pt.forEach(t),yo=d(e),P=n(e,"DIV",{class:!0});var Me=g(P);y(Ae.$$.fragment,Me),Xo=d(Me),gt=n(Me,"P",{"data-svelte-h":!0}),f(gt)!=="svelte-1dboolw"&&(gt.innerHTML=An),So=d(Me),vt=n(Me,"P",{"data-svelte-h":!0}),f(vt)!=="svelte-cfh5wl"&&(vt.innerHTML=Xn),Go=d(Me),y(le.$$.fragment,Me),Me.forEach(t),Co=d(e),Y=n(e,"H2",{class:!0});var Wo=g(Y);ie=n(Wo,"A",{id:!0,class:!0,href:!0});var hs=g(ie);Bt=n(hs,"SPAN",{});var fs=g(Bt);y(Xe.$$.fragment,fs),fs.forEach(t),hs.forEach(t),Vo=d(Wo),_t=n(Wo,"SPAN",{"data-svelte-h":!0}),f(_t)!=="svelte-19gwam2"&&(_t.textContent=Sn),Wo.forEach(t),xo=d(e),Se=n(e,"DIV",{class:!0});var us=g(Se);y(Ge.$$.fragment,us),us.forEach(t),wo=d(e),O=n(e,"H2",{class:!0});var Po=g(O);ce=n(Po,"A",{id:!0,class:!0,href:!0});var gs=g(ce);At=n(gs,"SPAN",{});var vs=g(At);y(Ve.$$.fragment,vs),vs.forEach(t),gs.forEach(t),Qo=d(Po),bt=n(Po,"SPAN",{"data-svelte-h":!0}),f(bt)!=="svelte-r7qtbh"&&(bt.textContent=Gn),Po.forEach(t),To=d(e),A=n(e,"DIV",{class:!0});var Et=g(A);y(Qe.$$.fragment,Et),Do=d(Et),yt=n(Et,"P",{"data-svelte-h":!0}),f(yt)!=="svelte-12gun77"&&(yt.textContent=Vn),Yo=d(Et),de=n(Et,"DIV",{class:!0});var Ro=g(de);y(De.$$.fragment,Ro),Oo=d(Ro),Ct=n(Ro,"P",{"data-svelte-h":!0}),f(Ct)!=="svelte-1x3yxsa"&&(Ct.textContent=Qn),Ro.forEach(t),Et.forEach(t),Mo=d(e),K=n(e,"H2",{class:!0});var Eo=g(K);me=n(Eo,"A",{id:!0,class:!0,href:!0});var _s=g(me);Xt=n(_s,"SPAN",{});var bs=g(Xt);y(Ye.$$.fragment,bs),bs.forEach(t),_s.forEach(t),Ko=d(Eo),xt=n(Eo,"SPAN",{"data-svelte-h":!0}),f(xt)!=="svelte-2ld953"&&(xt.textContent=Dn),Eo.forEach(t),$o=d(e),X=n(e,"DIV",{class:!0});var Jt=g(X);y(Oe.$$.fragment,Jt),en=d(Jt),wt=n(Jt,"P",{"data-svelte-h":!0}),f(wt)!=="svelte-22827l"&&(wt.innerHTML=Yn),tn=d(Jt),E=n(Jt,"DIV",{class:!0});var $e=g(E);y(Ke.$$.fragment,$e),on=d($e),Tt=n($e,"P",{"data-svelte-h":!0}),f(Tt)!=="svelte-u3p74m"&&(Tt.innerHTML=On),nn=d($e),y(pe.$$.fragment,$e),sn=d($e),y(he.$$.fragment,$e),$e.forEach(t),Jt.forEach(t),No=d(e),ee=n(e,"H2",{class:!0});var Jo=g(ee);fe=n(Jo,"A",{id:!0,class:!0,href:!0});var ys=g(fe);St=n(ys,"SPAN",{});var Cs=g(St);y(et.$$.fragment,Cs),Cs.forEach(t),ys.forEach(t),an=d(Jo),Mt=n(Jo,"SPAN",{"data-svelte-h":!0}),f(Mt)!=="svelte-1rz2r7g"&&(Mt.textContent=Kn),Jo.forEach(t),jo=d(e),R=n(e,"DIV",{class:!0});var Ne=g(R);y(tt.$$.fragment,Ne),rn=d(Ne),$t=n(Ne,"P",{"data-svelte-h":!0}),f($t)!=="svelte-xy24s5"&&($t.textContent=es),ln=d(Ne),Nt=n(Ne,"P",{"data-svelte-h":!0}),f(Nt)!=="svelte-1gjh92c"&&(Nt.innerHTML=ts),cn=d(Ne),J=n(Ne,"DIV",{class:!0});var je=g(J);y(ot.$$.fragment,je),dn=d(je),jt=n(je,"P",{"data-svelte-h":!0}),f(jt)!=="svelte-8qzqvo"&&(jt.innerHTML=os),mn=d(je),y(ue.$$.fragment,je),pn=d(je),y(ge.$$.fragment,je),je.forEach(t),Ne.forEach(t),Io=d(e),te=n(e,"H2",{class:!0});var Lo=g(te);ve=n(Lo,"A",{id:!0,class:!0,href:!0});var xs=g(ve);Gt=n(xs,"SPAN",{});var ws=g(Gt);y(nt.$$.fragment,ws),ws.forEach(t),xs.forEach(t),hn=d(Lo),It=n(Lo,"SPAN",{"data-svelte-h":!0}),f(It)!=="svelte-hlh35d"&&(It.textContent=ns),Lo.forEach(t),Fo=d(e),k=n(e,"DIV",{class:!0});var G=g(k);y(st.$$.fragment,G),fn=d(G),Ft=n(G,"P",{"data-svelte-h":!0}),f(Ft)!=="svelte-zyx3nh"&&(Ft.innerHTML=ss),un=d(G),kt=n(G,"P",{"data-svelte-h":!0}),f(kt)!=="svelte-1ivrf8m"&&(kt.innerHTML=as),gn=d(G),y(_e.$$.fragment,G),vn=d(G),L=n(G,"DIV",{class:!0});var Ie=g(L);y(at.$$.fragment,Ie),_n=d(Ie),Ut=n(Ie,"P",{"data-svelte-h":!0}),f(Ut)!=="svelte-2rljku"&&(Ut.innerHTML=rs),bn=d(Ie),y(be.$$.fragment,Ie),yn=d(Ie),y(ye.$$.fragment,Ie),Ie.forEach(t),G.forEach(t),ko=d(e),oe=n(e,"H2",{class:!0});var qo=g(oe);Ce=n(qo,"A",{id:!0,class:!0,href:!0});var Ts=g(Ce);Vt=n(Ts,"SPAN",{});var Ms=g(Vt);y(rt.$$.fragment,Ms),Ms.forEach(t),Ts.forEach(t),Cn=d(qo),Zt=n(qo,"SPAN",{"data-svelte-h":!0}),f(Zt)!=="svelte-1lvpvhe"&&(Zt.textContent=ls),qo.forEach(t),Uo=d(e),F=n(e,"DIV",{class:!0});var H=g(F);y(lt.$$.fragment,H),xn=d(H),zt=n(H,"P",{"data-svelte-h":!0}),f(zt)!=="svelte-xy24s5"&&(zt.textContent=is),wn=d(H),Wt=n(H,"P",{"data-svelte-h":!0}),f(Wt)!=="svelte-1e9g3w8"&&(Wt.innerHTML=cs),Tn=d(H),Pt=n(H,"P",{"data-svelte-h":!0}),f(Pt)!=="svelte-1ivrf8m"&&(Pt.innerHTML=ds),Mn=d(H),y(xe.$$.fragment,H),$n=d(H),q=n(H,"DIV",{class:!0});var Fe=g(q);y(it.$$.fragment,Fe),Nn=d(Fe),Rt=n(Fe,"P",{"data-svelte-h":!0}),f(Rt)!=="svelte-1mpey7s"&&(Rt.innerHTML=ms),jn=d(Fe),y(we.$$.fragment,Fe),In=d(Fe),y(Te.$$.fragment,Fe),Fe.forEach(t),H.forEach(t),Zo=d(e),Qt=n(e,"P",{}),g(Qt).forEach(t),this.h()},h(){h(s,"name","hf:doc:metadata"),h(s,"content",JSON.stringify(Xs)),h(r,"id","convnext"),h(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"),h(r,"href","#convnext"),h(_,"class","relative group"),h(Z,"id","overview"),h(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"),h(Z,"href","#overview"),h(N,"class","relative group"),Ns(se.src,Pn="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/convnext_architecture.jpg")||h(se,"src",Pn),h(se,"alt","drawing"),h(se,"width","600"),h(ae,"id","resources"),h(ae,"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"),h(ae,"href","#resources"),h(Q,"class","relative group"),h(re,"id","transformers.ConvNextConfig"),h(re,"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"),h(re,"href","#transformers.ConvNextConfig"),h(D,"class","relative group"),h(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ie,"id","transformers.ConvNextFeatureExtractor"),h(ie,"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"),h(ie,"href","#transformers.ConvNextFeatureExtractor"),h(Y,"class","relative group"),h(Se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ce,"id","transformers.ConvNextImageProcessor"),h(ce,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(ce,"href","#transformers.ConvNextImageProcessor"),h(O,"class","relative group"),h(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(me,"id","transformers.ConvNextModel"),h(me,"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"),h(me,"href","#transformers.ConvNextModel"),h(K,"class","relative group"),h(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(fe,"id","transformers.ConvNextForImageClassification"),h(fe,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(fe,"href","#transformers.ConvNextForImageClassification"),h(ee,"class","relative group"),h(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ve,"id","transformers.TFConvNextModel"),h(ve,"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"),h(ve,"href","#transformers.TFConvNextModel"),h(te,"class","relative group"),h(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Ce,"id","transformers.TFConvNextForImageClassification"),h(Ce,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Ce,"href","#transformers.TFConvNextForImageClassification"),h(oe,"class","relative group"),h(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(F,"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,i){a(document.head,s),l(e,M,i),l(e,p,i),l(e,m,i),l(e,_,i),a(_,r),a(r,v),C(z,v,null),a(_,W),a(_,I),l(e,U,i),l(e,N,i),a(N,Z),a(Z,u),C($,u,null),a(N,Ho),a(N,ht),l(e,ao,i),l(e,ke,i),l(e,ro,i),l(e,Ue,i),l(e,lo,i),l(e,Ze,i),l(e,io,i),l(e,ze,i),l(e,co,i),l(e,We,i),l(e,mo,i),l(e,se,i),l(e,po,i),l(e,Pe,i),l(e,ho,i),l(e,Re,i),l(e,fo,i),l(e,Q,i),a(Q,ae),a(ae,qt),C(Ee,qt,null),a(Q,Bo),a(Q,ft),l(e,uo,i),l(e,Je,i),l(e,go,i),C(Le,e,i),l(e,vo,i),l(e,qe,i),l(e,_o,i),l(e,He,i),l(e,bo,i),l(e,D,i),a(D,re),a(re,Ht),C(Be,Ht,null),a(D,Ao),a(D,ut),l(e,yo,i),l(e,P,i),C(Ae,P,null),a(P,Xo),a(P,gt),a(P,So),a(P,vt),a(P,Go),C(le,P,null),l(e,Co,i),l(e,Y,i),a(Y,ie),a(ie,Bt),C(Xe,Bt,null),a(Y,Vo),a(Y,_t),l(e,xo,i),l(e,Se,i),C(Ge,Se,null),l(e,wo,i),l(e,O,i),a(O,ce),a(ce,At),C(Ve,At,null),a(O,Qo),a(O,bt),l(e,To,i),l(e,A,i),C(Qe,A,null),a(A,Do),a(A,yt),a(A,Yo),a(A,de),C(De,de,null),a(de,Oo),a(de,Ct),l(e,Mo,i),l(e,K,i),a(K,me),a(me,Xt),C(Ye,Xt,null),a(K,Ko),a(K,xt),l(e,$o,i),l(e,X,i),C(Oe,X,null),a(X,en),a(X,wt),a(X,tn),a(X,E),C(Ke,E,null),a(E,on),a(E,Tt),a(E,nn),C(pe,E,null),a(E,sn),C(he,E,null),l(e,No,i),l(e,ee,i),a(ee,fe),a(fe,St),C(et,St,null),a(ee,an),a(ee,Mt),l(e,jo,i),l(e,R,i),C(tt,R,null),a(R,rn),a(R,$t),a(R,ln),a(R,Nt),a(R,cn),a(R,J),C(ot,J,null),a(J,dn),a(J,jt),a(J,mn),C(ue,J,null),a(J,pn),C(ge,J,null),l(e,Io,i),l(e,te,i),a(te,ve),a(ve,Gt),C(nt,Gt,null),a(te,hn),a(te,It),l(e,Fo,i),l(e,k,i),C(st,k,null),a(k,fn),a(k,Ft),a(k,un),a(k,kt),a(k,gn),C(_e,k,null),a(k,vn),a(k,L),C(at,L,null),a(L,_n),a(L,Ut),a(L,bn),C(be,L,null),a(L,yn),C(ye,L,null),l(e,ko,i),l(e,oe,i),a(oe,Ce),a(Ce,Vt),C(rt,Vt,null),a(oe,Cn),a(oe,Zt),l(e,Uo,i),l(e,F,i),C(lt,F,null),a(F,xn),a(F,zt),a(F,wn),a(F,Wt),a(F,Tn),a(F,Pt),a(F,Mn),C(xe,F,null),a(F,$n),a(F,q),C(it,q,null),a(q,Nn),a(q,Rt),a(q,jn),C(we,q,null),a(q,In),C(Te,q,null),l(e,Zo,i),l(e,Qt,i),zo=!0},p(e,[i]){const ct={};i&2&&(ct.$$scope={dirty:i,ctx:e}),le.$set(ct);const Dt={};i&2&&(Dt.$$scope={dirty:i,ctx:e}),pe.$set(Dt);const Yt={};i&2&&(Yt.$$scope={dirty:i,ctx:e}),he.$set(Yt);const dt={};i&2&&(dt.$$scope={dirty:i,ctx:e}),ue.$set(dt);const Ot={};i&2&&(Ot.$$scope={dirty:i,ctx:e}),ge.$set(Ot);const Kt={};i&2&&(Kt.$$scope={dirty:i,ctx:e}),_e.$set(Kt);const mt={};i&2&&(mt.$$scope={dirty:i,ctx:e}),be.$set(mt);const eo={};i&2&&(eo.$$scope={dirty:i,ctx:e}),ye.$set(eo);const to={};i&2&&(to.$$scope={dirty:i,ctx:e}),xe.$set(to);const pt={};i&2&&(pt.$$scope={dirty:i,ctx:e}),we.$set(pt);const oo={};i&2&&(oo.$$scope={dirty:i,ctx:e}),Te.$set(oo)},i(e){zo||(x(z.$$.fragment,e),x($.$$.fragment,e),x(Ee.$$.fragment,e),x(Le.$$.fragment,e),x(Be.$$.fragment,e),x(Ae.$$.fragment,e),x(le.$$.fragment,e),x(Xe.$$.fragment,e),x(Ge.$$.fragment,e),x(Ve.$$.fragment,e),x(Qe.$$.fragment,e),x(De.$$.fragment,e),x(Ye.$$.fragment,e),x(Oe.$$.fragment,e),x(Ke.$$.fragment,e),x(pe.$$.fragment,e),x(he.$$.fragment,e),x(et.$$.fragment,e),x(tt.$$.fragment,e),x(ot.$$.fragment,e),x(ue.$$.fragment,e),x(ge.$$.fragment,e),x(nt.$$.fragment,e),x(st.$$.fragment,e),x(_e.$$.fragment,e),x(at.$$.fragment,e),x(be.$$.fragment,e),x(ye.$$.fragment,e),x(rt.$$.fragment,e),x(lt.$$.fragment,e),x(xe.$$.fragment,e),x(it.$$.fragment,e),x(we.$$.fragment,e),x(Te.$$.fragment,e),zo=!0)},o(e){w(z.$$.fragment,e),w($.$$.fragment,e),w(Ee.$$.fragment,e),w(Le.$$.fragment,e),w(Be.$$.fragment,e),w(Ae.$$.fragment,e),w(le.$$.fragment,e),w(Xe.$$.fragment,e),w(Ge.$$.fragment,e),w(Ve.$$.fragment,e),w(Qe.$$.fragment,e),w(De.$$.fragment,e),w(Ye.$$.fragment,e),w(Oe.$$.fragment,e),w(Ke.$$.fragment,e),w(pe.$$.fragment,e),w(he.$$.fragment,e),w(et.$$.fragment,e),w(tt.$$.fragment,e),w(ot.$$.fragment,e),w(ue.$$.fragment,e),w(ge.$$.fragment,e),w(nt.$$.fragment,e),w(st.$$.fragment,e),w(_e.$$.fragment,e),w(at.$$.fragment,e),w(be.$$.fragment,e),w(ye.$$.fragment,e),w(rt.$$.fragment,e),w(lt.$$.fragment,e),w(xe.$$.fragment,e),w(it.$$.fragment,e),w(we.$$.fragment,e),w(Te.$$.fragment,e),zo=!1},d(e){e&&(t(M),t(p),t(m),t(_),t(U),t(N),t(ao),t(ke),t(ro),t(Ue),t(lo),t(Ze),t(io),t(ze),t(co),t(We),t(mo),t(se),t(po),t(Pe),t(ho),t(Re),t(fo),t(Q),t(uo),t(Je),t(go),t(vo),t(qe),t(_o),t(He),t(bo),t(D),t(yo),t(P),t(Co),t(Y),t(xo),t(Se),t(wo),t(O),t(To),t(A),t(Mo),t(K),t($o),t(X),t(No),t(ee),t(jo),t(R),t(Io),t(te),t(Fo),t(k),t(ko),t(oe),t(Uo),t(F),t(Zo),t(Qt)),t(s),T(z),T($),T(Ee),T(Le,e),T(Be),T(Ae),T(le),T(Xe),T(Ge),T(Ve),T(Qe),T(De),T(Ye),T(Oe),T(Ke),T(pe),T(he),T(et),T(tt),T(ot),T(ue),T(ge),T(nt),T(st),T(_e),T(at),T(be),T(ye),T(rt),T(lt),T(xe),T(it),T(we),T(Te)}}}const Xs={local:"convnext",sections:[{local:"overview",title:"Overview"},{local:"resources",title:"Resources"},{local:"transformers.ConvNextConfig",title:"ConvNextConfig"},{local:"transformers.ConvNextFeatureExtractor",title:"ConvNextFeatureExtractor"},{local:"transformers.ConvNextImageProcessor",title:"ConvNextImageProcessor"},{local:"transformers.ConvNextModel",title:"ConvNextModel"},{local:"transformers.ConvNextForImageClassification",title:"ConvNextForImageClassification"},{local:"transformers.TFConvNextModel",title:"TFConvNextModel"},{local:"transformers.TFConvNextForImageClassification",title:"TFConvNextForImageClassification"}],title:"ConvNeXT"};function Ss(j){return js(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ta extends Is{constructor(s){super(),Fs(this,s,Ss,As,$s,{})}}export{ta as component};
