import{S as wl,i as Cl,s as Tl,e as s,k as m,w as C,t as r,M as xl,c as n,d as t,m as h,a,x as T,h as l,b as c,N as Nl,G as e,g as p,y as x,q as N,o as $,B as M,v as $l,L as Es}from"../../chunks/vendor-hf-doc-builder.js";import{T as Oo}from"../../chunks/Tip-hf-doc-builder.js";import{D as ze}from"../../chunks/Docstring-hf-doc-builder.js";import{C as Is}from"../../chunks/CodeBlock-hf-doc-builder.js";import{I as st}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{E as Ms}from"../../chunks/ExampleCodeBlock-hf-doc-builder.js";import{P as Ml}from"../../chunks/PipelineTag-hf-doc-builder.js";function El(k){let d,b,v,g,y;return g=new Is({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(){d=s("p"),b=r("Example:"),v=m(),C(g.$$.fragment)},l(i){d=n(i,"P",{});var f=a(d);b=l(f,"Example:"),f.forEach(t),v=h(i),T(g.$$.fragment,i)},m(i,f){p(i,d,f),e(d,b),p(i,v,f),x(g,i,f),y=!0},p:Es,i(i){y||(N(g.$$.fragment,i),y=!0)},o(i){$(g.$$.fragment,i),y=!1},d(i){i&&t(d),i&&t(v),M(g,i)}}}function Il(k){let d,b,v,g,y;return{c(){d=s("p"),b=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),v=s("code"),g=r("Module"),y=r(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(i){d=n(i,"P",{});var f=a(d);b=l(f,"Although the recipe for forward pass needs to be defined within this function, one should call the "),v=n(f,"CODE",{});var j=a(v);g=l(j,"Module"),j.forEach(t),y=l(f,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),f.forEach(t)},m(i,f){p(i,d,f),e(d,b),e(d,v),e(v,g),e(d,y)},d(i){i&&t(d)}}}function jl(k){let d,b,v,g,y;return g=new Is({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(){d=s("p"),b=r("Example:"),v=m(),C(g.$$.fragment)},l(i){d=n(i,"P",{});var f=a(d);b=l(f,"Example:"),f.forEach(t),v=h(i),T(g.$$.fragment,i)},m(i,f){p(i,d,f),e(d,b),p(i,v,f),x(g,i,f),y=!0},p:Es,i(i){y||(N(g.$$.fragment,i),y=!0)},o(i){$(g.$$.fragment,i),y=!1},d(i){i&&t(d),i&&t(v),M(g,i)}}}function Fl(k){let d,b,v,g,y;return{c(){d=s("p"),b=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),v=s("code"),g=r("Module"),y=r(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(i){d=n(i,"P",{});var f=a(d);b=l(f,"Although the recipe for forward pass needs to be defined within this function, one should call the "),v=n(f,"CODE",{});var j=a(v);g=l(j,"Module"),j.forEach(t),y=l(f,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),f.forEach(t)},m(i,f){p(i,d,f),e(d,b),e(d,v),e(v,g),e(d,y)},d(i){i&&t(d)}}}function kl(k){let d,b,v,g,y;return g=new Is({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(){d=s("p"),b=r("Example:"),v=m(),C(g.$$.fragment)},l(i){d=n(i,"P",{});var f=a(d);b=l(f,"Example:"),f.forEach(t),v=h(i),T(g.$$.fragment,i)},m(i,f){p(i,d,f),e(d,b),p(i,v,f),x(g,i,f),y=!0},p:Es,i(i){y||(N(g.$$.fragment,i),y=!0)},o(i){$(g.$$.fragment,i),y=!1},d(i){i&&t(d),i&&t(v),M(g,i)}}}function Ul(k){let d,b,v,g,y,i,f,j,We,we,z,O,ee,w,Re,G,Ae,Ce,A,Je,te,oe,Xe,Te,B,Be,xe,q,ue,qe,me,F,W,Ne,S,ge,Se,H,Y,Ke,P,K,se,he,Ge,ne,$e,U,D,ae,re,De,V,R,Ve,Z,Le,Qe;return{c(){d=s("p"),b=r("TensorFlow models and layers in "),v=s("code"),g=r("transformers"),y=r(" accept two formats as input:"),i=m(),f=s("ul"),j=s("li"),We=r("having all inputs as keyword arguments (like PyTorch models), or"),we=m(),z=s("li"),O=r("having all inputs as a list, tuple or dict in the first positional argument."),ee=m(),w=s("p"),Re=r(`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 `),G=s("code"),Ae=r("model.fit()"),Ce=r(` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),A=s("code"),Je=r("model.fit()"),te=r(` supports! If, however, you want to use the second
format outside of Keras methods like `),oe=s("code"),Xe=r("fit()"),Te=r(" and "),B=s("code"),Be=r("predict()"),xe=r(`, such as when creating your own layers or models with
the Keras `),q=s("code"),ue=r("Functional"),qe=r(` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),me=m(),F=s("ul"),W=s("li"),Ne=r("a single Tensor with "),S=s("code"),ge=r("pixel_values"),Se=r(" only and nothing else: "),H=s("code"),Y=r("model(pixel_values)"),Ke=m(),P=s("li"),K=r(`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),se=s("code"),he=r("model([pixel_values, attention_mask])"),Ge=r(" or "),ne=s("code"),$e=r("model([pixel_values, attention_mask, token_type_ids])"),U=m(),D=s("li"),ae=r(`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),re=s("code"),De=r('model({"pixel_values": pixel_values, "token_type_ids": token_type_ids})'),V=m(),R=s("p"),Ve=r(`Note that when creating models and layers with
`),Z=s("a"),Le=r("subclassing"),Qe=r(` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),this.h()},l(_){d=n(_,"P",{});var E=a(d);b=l(E,"TensorFlow models and layers in "),v=n(E,"CODE",{});var nt=a(v);g=l(nt,"transformers"),nt.forEach(t),y=l(E," accept two formats as input:"),E.forEach(t),i=h(_),f=n(_,"UL",{});var L=a(f);j=n(L,"LI",{});var at=a(j);We=l(at,"having all inputs as keyword arguments (like PyTorch models), or"),at.forEach(t),we=h(L),z=n(L,"LI",{});var rt=a(z);O=l(rt,"having all inputs as a list, tuple or dict in the first positional argument."),rt.forEach(t),L.forEach(t),ee=h(_),w=n(_,"P",{});var I=a(w);Re=l(I,`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 `),G=n(I,"CODE",{});var le=a(G);Ae=l(le,"model.fit()"),le.forEach(t),Ce=l(I,` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),A=n(I,"CODE",{});var pe=a(A);Je=l(pe,"model.fit()"),pe.forEach(t),te=l(I,` supports! If, however, you want to use the second
format outside of Keras methods like `),oe=n(I,"CODE",{});var Oe=a(oe);Xe=l(Oe,"fit()"),Oe.forEach(t),Te=l(I," and "),B=n(I,"CODE",{});var ve=a(B);Be=l(ve,"predict()"),ve.forEach(t),xe=l(I,`, such as when creating your own layers or models with
the Keras `),q=n(I,"CODE",{});var lt=a(q);ue=l(lt,"Functional"),lt.forEach(t),qe=l(I,` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),I.forEach(t),me=h(_),F=n(_,"UL",{});var X=a(F);W=n(X,"LI",{});var ie=a(W);Ne=l(ie,"a single Tensor with "),S=n(ie,"CODE",{});var et=a(S);ge=l(et,"pixel_values"),et.forEach(t),Se=l(ie," only and nothing else: "),H=n(ie,"CODE",{});var Me=a(H);Y=l(Me,"model(pixel_values)"),Me.forEach(t),ie.forEach(t),Ke=h(X),P=n(X,"LI",{});var ce=a(P);K=l(ce,`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),se=n(ce,"CODE",{});var tt=a(se);he=l(tt,"model([pixel_values, attention_mask])"),tt.forEach(t),Ge=l(ce," or "),ne=n(ce,"CODE",{});var _e=a(ne);$e=l(_e,"model([pixel_values, attention_mask, token_type_ids])"),_e.forEach(t),ce.forEach(t),U=h(X),D=n(X,"LI",{});var Ee=a(D);ae=l(Ee,`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),re=n(Ee,"CODE",{});var fe=a(re);De=l(fe,'model({"pixel_values": pixel_values, "token_type_ids": token_type_ids})'),fe.forEach(t),Ee.forEach(t),X.forEach(t),V=h(_),R=n(_,"P",{});var J=a(R);Ve=l(J,`Note that when creating models and layers with
`),Z=n(J,"A",{href:!0,rel:!0});var Ie=a(Z);Le=l(Ie,"subclassing"),Ie.forEach(t),Qe=l(J,` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),J.forEach(t),this.h()},h(){c(Z,"href","https://keras.io/guides/making_new_layers_and_models_via_subclassing/"),c(Z,"rel","nofollow")},m(_,E){p(_,d,E),e(d,b),e(d,v),e(v,g),e(d,y),p(_,i,E),p(_,f,E),e(f,j),e(j,We),e(f,we),e(f,z),e(z,O),p(_,ee,E),p(_,w,E),e(w,Re),e(w,G),e(G,Ae),e(w,Ce),e(w,A),e(A,Je),e(w,te),e(w,oe),e(oe,Xe),e(w,Te),e(w,B),e(B,Be),e(w,xe),e(w,q),e(q,ue),e(w,qe),p(_,me,E),p(_,F,E),e(F,W),e(W,Ne),e(W,S),e(S,ge),e(W,Se),e(W,H),e(H,Y),e(F,Ke),e(F,P),e(P,K),e(P,se),e(se,he),e(P,Ge),e(P,ne),e(ne,$e),e(F,U),e(F,D),e(D,ae),e(D,re),e(re,De),p(_,V,E),p(_,R,E),e(R,Ve),e(R,Z),e(Z,Le),e(R,Qe)},d(_){_&&t(d),_&&t(i),_&&t(f),_&&t(ee),_&&t(w),_&&t(me),_&&t(F),_&&t(V),_&&t(R)}}}function Zl(k){let d,b,v,g,y;return{c(){d=s("p"),b=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),v=s("code"),g=r("Module"),y=r(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(i){d=n(i,"P",{});var f=a(d);b=l(f,"Although the recipe for forward pass needs to be defined within this function, one should call the "),v=n(f,"CODE",{});var j=a(v);g=l(j,"Module"),j.forEach(t),y=l(f,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),f.forEach(t)},m(i,f){p(i,d,f),e(d,b),e(d,v),e(v,g),e(d,y)},d(i){i&&t(d)}}}function Pl(k){let d,b,v,g,y;return g=new Is({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(){d=s("p"),b=r("Examples:"),v=m(),C(g.$$.fragment)},l(i){d=n(i,"P",{});var f=a(d);b=l(f,"Examples:"),f.forEach(t),v=h(i),T(g.$$.fragment,i)},m(i,f){p(i,d,f),e(d,b),p(i,v,f),x(g,i,f),y=!0},p:Es,i(i){y||(N(g.$$.fragment,i),y=!0)},o(i){$(g.$$.fragment,i),y=!1},d(i){i&&t(d),i&&t(v),M(g,i)}}}function zl(k){let d,b,v,g,y,i,f,j,We,we,z,O,ee,w,Re,G,Ae,Ce,A,Je,te,oe,Xe,Te,B,Be,xe,q,ue,qe,me,F,W,Ne,S,ge,Se,H,Y,Ke,P,K,se,he,Ge,ne,$e,U,D,ae,re,De,V,R,Ve,Z,Le,Qe;return{c(){d=s("p"),b=r("TensorFlow models and layers in "),v=s("code"),g=r("transformers"),y=r(" accept two formats as input:"),i=m(),f=s("ul"),j=s("li"),We=r("having all inputs as keyword arguments (like PyTorch models), or"),we=m(),z=s("li"),O=r("having all inputs as a list, tuple or dict in the first positional argument."),ee=m(),w=s("p"),Re=r(`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 `),G=s("code"),Ae=r("model.fit()"),Ce=r(` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),A=s("code"),Je=r("model.fit()"),te=r(` supports! If, however, you want to use the second
format outside of Keras methods like `),oe=s("code"),Xe=r("fit()"),Te=r(" and "),B=s("code"),Be=r("predict()"),xe=r(`, such as when creating your own layers or models with
the Keras `),q=s("code"),ue=r("Functional"),qe=r(` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),me=m(),F=s("ul"),W=s("li"),Ne=r("a single Tensor with "),S=s("code"),ge=r("pixel_values"),Se=r(" only and nothing else: "),H=s("code"),Y=r("model(pixel_values)"),Ke=m(),P=s("li"),K=r(`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),se=s("code"),he=r("model([pixel_values, attention_mask])"),Ge=r(" or "),ne=s("code"),$e=r("model([pixel_values, attention_mask, token_type_ids])"),U=m(),D=s("li"),ae=r(`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),re=s("code"),De=r('model({"pixel_values": pixel_values, "token_type_ids": token_type_ids})'),V=m(),R=s("p"),Ve=r(`Note that when creating models and layers with
`),Z=s("a"),Le=r("subclassing"),Qe=r(` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),this.h()},l(_){d=n(_,"P",{});var E=a(d);b=l(E,"TensorFlow models and layers in "),v=n(E,"CODE",{});var nt=a(v);g=l(nt,"transformers"),nt.forEach(t),y=l(E," accept two formats as input:"),E.forEach(t),i=h(_),f=n(_,"UL",{});var L=a(f);j=n(L,"LI",{});var at=a(j);We=l(at,"having all inputs as keyword arguments (like PyTorch models), or"),at.forEach(t),we=h(L),z=n(L,"LI",{});var rt=a(z);O=l(rt,"having all inputs as a list, tuple or dict in the first positional argument."),rt.forEach(t),L.forEach(t),ee=h(_),w=n(_,"P",{});var I=a(w);Re=l(I,`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 `),G=n(I,"CODE",{});var le=a(G);Ae=l(le,"model.fit()"),le.forEach(t),Ce=l(I,` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),A=n(I,"CODE",{});var pe=a(A);Je=l(pe,"model.fit()"),pe.forEach(t),te=l(I,` supports! If, however, you want to use the second
format outside of Keras methods like `),oe=n(I,"CODE",{});var Oe=a(oe);Xe=l(Oe,"fit()"),Oe.forEach(t),Te=l(I," and "),B=n(I,"CODE",{});var ve=a(B);Be=l(ve,"predict()"),ve.forEach(t),xe=l(I,`, such as when creating your own layers or models with
the Keras `),q=n(I,"CODE",{});var lt=a(q);ue=l(lt,"Functional"),lt.forEach(t),qe=l(I,` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),I.forEach(t),me=h(_),F=n(_,"UL",{});var X=a(F);W=n(X,"LI",{});var ie=a(W);Ne=l(ie,"a single Tensor with "),S=n(ie,"CODE",{});var et=a(S);ge=l(et,"pixel_values"),et.forEach(t),Se=l(ie," only and nothing else: "),H=n(ie,"CODE",{});var Me=a(H);Y=l(Me,"model(pixel_values)"),Me.forEach(t),ie.forEach(t),Ke=h(X),P=n(X,"LI",{});var ce=a(P);K=l(ce,`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),se=n(ce,"CODE",{});var tt=a(se);he=l(tt,"model([pixel_values, attention_mask])"),tt.forEach(t),Ge=l(ce," or "),ne=n(ce,"CODE",{});var _e=a(ne);$e=l(_e,"model([pixel_values, attention_mask, token_type_ids])"),_e.forEach(t),ce.forEach(t),U=h(X),D=n(X,"LI",{});var Ee=a(D);ae=l(Ee,`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),re=n(Ee,"CODE",{});var fe=a(re);De=l(fe,'model({"pixel_values": pixel_values, "token_type_ids": token_type_ids})'),fe.forEach(t),Ee.forEach(t),X.forEach(t),V=h(_),R=n(_,"P",{});var J=a(R);Ve=l(J,`Note that when creating models and layers with
`),Z=n(J,"A",{href:!0,rel:!0});var Ie=a(Z);Le=l(Ie,"subclassing"),Ie.forEach(t),Qe=l(J,` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),J.forEach(t),this.h()},h(){c(Z,"href","https://keras.io/guides/making_new_layers_and_models_via_subclassing/"),c(Z,"rel","nofollow")},m(_,E){p(_,d,E),e(d,b),e(d,v),e(v,g),e(d,y),p(_,i,E),p(_,f,E),e(f,j),e(j,We),e(f,we),e(f,z),e(z,O),p(_,ee,E),p(_,w,E),e(w,Re),e(w,G),e(G,Ae),e(w,Ce),e(w,A),e(A,Je),e(w,te),e(w,oe),e(oe,Xe),e(w,Te),e(w,B),e(B,Be),e(w,xe),e(w,q),e(q,ue),e(w,qe),p(_,me,E),p(_,F,E),e(F,W),e(W,Ne),e(W,S),e(S,ge),e(W,Se),e(W,H),e(H,Y),e(F,Ke),e(F,P),e(P,K),e(P,se),e(se,he),e(P,Ge),e(P,ne),e(ne,$e),e(F,U),e(F,D),e(D,ae),e(D,re),e(re,De),p(_,V,E),p(_,R,E),e(R,Ve),e(R,Z),e(Z,Le),e(R,Qe)},d(_){_&&t(d),_&&t(i),_&&t(f),_&&t(ee),_&&t(w),_&&t(me),_&&t(F),_&&t(V),_&&t(R)}}}function Wl(k){let d,b,v,g,y;return{c(){d=s("p"),b=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),v=s("code"),g=r("Module"),y=r(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(i){d=n(i,"P",{});var f=a(d);b=l(f,"Although the recipe for forward pass needs to be defined within this function, one should call the "),v=n(f,"CODE",{});var j=a(v);g=l(j,"Module"),j.forEach(t),y=l(f,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),f.forEach(t)},m(i,f){p(i,d,f),e(d,b),e(d,v),e(v,g),e(d,y)},d(i){i&&t(d)}}}function Rl(k){let d,b,v,g,y;return g=new Is({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(){d=s("p"),b=r("Examples:"),v=m(),C(g.$$.fragment)},l(i){d=n(i,"P",{});var f=a(d);b=l(f,"Examples:"),f.forEach(t),v=h(i),T(g.$$.fragment,i)},m(i,f){p(i,d,f),e(d,b),p(i,v,f),x(g,i,f),y=!0},p:Es,i(i){y||(N(g.$$.fragment,i),y=!0)},o(i){$(g.$$.fragment,i),y=!1},d(i){i&&t(d),i&&t(v),M(g,i)}}}function Al(k){let d,b,v,g,y,i,f,j,We,we,z,O,ee,w,Re,G,Ae,Ce,A,Je,te,oe,Xe,Te,B,Be,xe,q,ue,qe,me,F,W,Ne,S,ge,Se,H,Y,Ke,P,K,se,he,Ge,ne,$e,U,D,ae,re,De,V,R,Ve,Z,Le,Qe,_,E,nt,L,at,rt,I,le,pe,Oe,ve,lt,X,ie,et,Me,ce,tt,_e,Ee,fe,J,Ie,dn,mn,Dt,hn,pn,Vt,fn,un,gn,jo,vn,Fo,_n,js,ko,yn,Fs,it,wt,Ho,Lt,bn,Yo,wn,ks,ye,Qt,Cn,ct,Tn,Uo,xn,Nn,Ot,$n,Mn,En,dt,In,Zo,jn,Fn,Po,kn,Un,Zn,Ct,Us,mt,Tt,Ko,Ht,Pn,es,zn,Zs,Yt,Kt,Ps,ht,xt,ts,eo,Wn,os,Rn,zs,He,to,An,ss,Jn,Xn,Nt,oo,Bn,ns,qn,Ws,pt,$t,as,so,Sn,rs,Gn,Rs,Ye,no,Dn,ao,Vn,ro,Ln,Qn,On,je,lo,Hn,ft,Yn,zo,Kn,ea,ls,ta,oa,sa,Mt,na,Et,As,ut,It,is,io,aa,cs,ra,Js,be,co,la,ds,ia,ca,mo,da,ho,ma,ha,pa,Fe,po,fa,gt,ua,Wo,ga,va,ms,_a,ya,ba,jt,wa,Ft,Xs,vt,kt,hs,fo,Ca,ps,Ta,Bs,de,uo,xa,go,Na,Ro,$a,Ma,Ea,vo,Ia,_o,ja,Fa,ka,Ut,Ua,ke,yo,Za,_t,Pa,Ao,za,Wa,fs,Ra,Aa,Ja,Zt,Xa,Pt,qs,yt,zt,us,bo,Ba,gs,qa,Ss,Q,wo,Sa,vs,Ga,Da,Co,Va,Jo,La,Qa,Oa,To,Ha,xo,Ya,Ka,er,Wt,tr,Ue,No,or,bt,sr,Xo,nr,ar,_s,rr,lr,ir,Rt,cr,At,Gs;return i=new st({}),w=new st({}),ve=new st({}),_e=new Ml({props:{pipeline:"image-classification"}}),Lt=new st({}),Qt=new ze({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.31.0/src/transformers/models/convnext/configuration_convnext.py#L36"}}),Ct=new Ms({props:{anchor:"transformers.ConvNextConfig.example",$$slots:{default:[El]},$$scope:{ctx:k}}}),Ht=new st({}),Kt=new ze({props:{name:"class transformers.ConvNextFeatureExtractor",anchor:"transformers.ConvNextFeatureExtractor",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.31.0/src/transformers/models/convnext/feature_extraction_convnext.py#L26"}}),eo=new st({}),to=new ze({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.31.0/src/transformers/models/convnext/image_processing_convnext.py#L50"}}),oo=new ze({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:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ConvNextImageProcessor.preprocess.images",description:`<strong>images</strong> (<code>ImageInput</code>) &#x2014;
Image to preprocess.`,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>ChannelDimension.FIRST</code>: image in (num_channels, height, width) format.</li>
<li><code>ChannelDimension.LAST</code>: image in (height, width, num_channels) format.</li>
</ul>`,name:"data_format"}],source:"https://github.com/huggingface/transformers/blob/v4.31.0/src/transformers/models/convnext/image_processing_convnext.py#L204"}}),so=new st({}),no=new ze({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.31.0/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.31.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.31.0/src/transformers/models/convnext/modeling_convnext.py#L333"}}),lo=new ze({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.31.0/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/v4.31.0/en/model_doc/perceiver#transformers.PerceiverFeatureExtractor.__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.31.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.31.0/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.31.0/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>) \u2014 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>) \u2014 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>) \u2014 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>
`}}),Mt=new Oo({props:{$$slots:{default:[Il]},$$scope:{ctx:k}}}),Et=new Ms({props:{anchor:"transformers.ConvNextModel.forward.example",$$slots:{default:[jl]},$$scope:{ctx:k}}}),io=new st({}),co=new ze({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.31.0/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.31.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.31.0/src/transformers/models/convnext/modeling_convnext.py#L399"}}),po=new ze({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.31.0/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/v4.31.0/en/model_doc/perceiver#transformers.PerceiverFeatureExtractor.__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.31.0/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.31.0/src/transformers/models/convnext/modeling_convnext.py#L414",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.31.0/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.31.0/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) \u2014 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>) \u2014 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>) \u2014 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.31.0/en/main_classes/output#transformers.modeling_outputs.ImageClassifierOutputWithNoAttention"
>transformers.modeling_outputs.ImageClassifierOutputWithNoAttention</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),jt=new Oo({props:{$$slots:{default:[Fl]},$$scope:{ctx:k}}}),Ft=new Ms({props:{anchor:"transformers.ConvNextForImageClassification.forward.example",$$slots:{default:[kl]},$$scope:{ctx:k}}}),fo=new st({}),uo=new ze({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.31.0/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.31.0/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.31.0/src/transformers/models/convnext/modeling_tf_convnext.py#L416"}}),Ut=new Oo({props:{$$slots:{default:[Ul]},$$scope:{ctx:k}}}),yo=new ze({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.31.0/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/v4.31.0/en/model_doc/perceiver#transformers.PerceiverFeatureExtractor.__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.31.0/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.31.0/src/transformers/models/convnext/modeling_tf_convnext.py#L421",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.31.0/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.31.0/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>) \u2014 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>) \u2014 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\u2019re 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>) \u2014 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>) \u2014 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.31.0/en/main_classes/output#transformers.modeling_tf_outputs.TFBaseModelOutputWithPooling"
>transformers.modeling_tf_outputs.TFBaseModelOutputWithPooling</a> or <code>tuple(tf.Tensor)</code></p>
`}}),Zt=new Oo({props:{$$slots:{default:[Zl]},$$scope:{ctx:k}}}),Pt=new Ms({props:{anchor:"transformers.TFConvNextModel.call.example",$$slots:{default:[Pl]},$$scope:{ctx:k}}}),bo=new st({}),wo=new ze({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.31.0/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.31.0/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.31.0/src/transformers/models/convnext/modeling_tf_convnext.py#L483"}}),Wt=new Oo({props:{$$slots:{default:[zl]},$$scope:{ctx:k}}}),No=new ze({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.31.0/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/v4.31.0/en/model_doc/perceiver#transformers.PerceiverFeatureExtractor.__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.31.0/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.31.0/src/transformers/models/convnext/modeling_tf_convnext.py#L498",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.31.0/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.31.0/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) \u2014 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>) \u2014 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>) \u2014 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>) \u2014 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.31.0/en/main_classes/output#transformers.modeling_tf_outputs.TFSequenceClassifierOutput"
>transformers.modeling_tf_outputs.TFSequenceClassifierOutput</a> or <code>tuple(tf.Tensor)</code></p>
`}}),Rt=new Oo({props:{$$slots:{default:[Wl]},$$scope:{ctx:k}}}),At=new Ms({props:{anchor:"transformers.TFConvNextForImageClassification.call.example",$$slots:{default:[Rl]},$$scope:{ctx:k}}}),{c(){d=s("meta"),b=m(),v=s("h1"),g=s("a"),y=s("span"),C(i.$$.fragment),f=m(),j=s("span"),We=r("ConvNeXT"),we=m(),z=s("h2"),O=s("a"),ee=s("span"),C(w.$$.fragment),Re=m(),G=s("span"),Ae=r("Overview"),Ce=m(),A=s("p"),Je=r("The ConvNeXT model was proposed in "),te=s("a"),oe=r("A ConvNet for the 2020s"),Xe=r(` 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.`),Te=m(),B=s("p"),Be=r("The abstract from the paper is the following:"),xe=m(),q=s("p"),ue=s("em"),qe=r(`The \u201CRoaring 20s\u201D 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 \u201Cmodernize\u201D 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.`),me=m(),F=s("p"),W=r("Tips:"),Ne=m(),S=s("ul"),ge=s("li"),Se=r("See the code examples below each model regarding usage."),H=m(),Y=s("img"),P=m(),K=s("small"),se=r("ConvNeXT architecture. Taken from the "),he=s("a"),Ge=r("original paper"),ne=r("."),$e=m(),U=s("p"),D=r("This model was contributed by "),ae=s("a"),re=r("nielsr"),De=r(". TensorFlow version of the model was contributed by "),V=s("a"),R=r("ariG23498"),Ve=r(`,
`),Z=s("a"),Le=r("gante"),Qe=r(", and "),_=s("a"),E=r("sayakpaul"),nt=r(" (equal contribution). The original code can be found "),L=s("a"),at=r("here"),rt=r("."),I=m(),le=s("h2"),pe=s("a"),Oe=s("span"),C(ve.$$.fragment),lt=m(),X=s("span"),ie=r("Resources"),et=m(),Me=s("p"),ce=r("A list of official Hugging Face and community (indicated by \u{1F30E}) resources to help you get started with ConvNeXT."),tt=m(),C(_e.$$.fragment),Ee=m(),fe=s("ul"),J=s("li"),Ie=s("a"),dn=r("ConvNextForImageClassification"),mn=r(" is supported by this "),Dt=s("a"),hn=r("example script"),pn=r(" and "),Vt=s("a"),fn=r("notebook"),un=r("."),gn=m(),jo=s("li"),vn=r("See also: "),Fo=s("a"),_n=r("Image classification task guide"),js=m(),ko=s("p"),yn=r("If you\u2019re interested in submitting a resource to be included here, please feel free to open a Pull Request and we\u2019ll review it! The resource should ideally demonstrate something new instead of duplicating an existing resource."),Fs=m(),it=s("h2"),wt=s("a"),Ho=s("span"),C(Lt.$$.fragment),bn=m(),Yo=s("span"),wn=r("ConvNextConfig"),ks=m(),ye=s("div"),C(Qt.$$.fragment),Cn=m(),ct=s("p"),Tn=r("This is the configuration class to store the configuration of a "),Uo=s("a"),xn=r("ConvNextModel"),Nn=r(`. 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
`),Ot=s("a"),$n=r("facebook/convnext-tiny-224"),Mn=r(" architecture."),En=m(),dt=s("p"),In=r("Configuration objects inherit from "),Zo=s("a"),jn=r("PretrainedConfig"),Fn=r(` and can be used to control the model outputs. Read the
documentation from `),Po=s("a"),kn=r("PretrainedConfig"),Un=r(" for more information."),Zn=m(),C(Ct.$$.fragment),Us=m(),mt=s("h2"),Tt=s("a"),Ko=s("span"),C(Ht.$$.fragment),Pn=m(),es=s("span"),zn=r("ConvNextFeatureExtractor"),Zs=m(),Yt=s("div"),C(Kt.$$.fragment),Ps=m(),ht=s("h2"),xt=s("a"),ts=s("span"),C(eo.$$.fragment),Wn=m(),os=s("span"),Rn=r("ConvNextImageProcessor"),zs=m(),He=s("div"),C(to.$$.fragment),An=m(),ss=s("p"),Jn=r("Constructs a ConvNeXT image processor."),Xn=m(),Nt=s("div"),C(oo.$$.fragment),Bn=m(),ns=s("p"),qn=r("Preprocess an image or batch of images."),Ws=m(),pt=s("h2"),$t=s("a"),as=s("span"),C(so.$$.fragment),Sn=m(),rs=s("span"),Gn=r("ConvNextModel"),Rs=m(),Ye=s("div"),C(no.$$.fragment),Dn=m(),ao=s("p"),Vn=r(`The bare ConvNext model outputting raw features without any specific head on top.
This model is a PyTorch `),ro=s("a"),Ln=r("torch.nn.Module"),Qn=r(` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),On=m(),je=s("div"),C(lo.$$.fragment),Hn=m(),ft=s("p"),Yn=r("The "),zo=s("a"),Kn=r("ConvNextModel"),ea=r(" forward method, overrides the "),ls=s("code"),ta=r("__call__"),oa=r(" special method."),sa=m(),C(Mt.$$.fragment),na=m(),C(Et.$$.fragment),As=m(),ut=s("h2"),It=s("a"),is=s("span"),C(io.$$.fragment),aa=m(),cs=s("span"),ra=r("ConvNextForImageClassification"),Js=m(),be=s("div"),C(co.$$.fragment),la=m(),ds=s("p"),ia=r(`ConvNext Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`),ca=m(),mo=s("p"),da=r("This model is a PyTorch "),ho=s("a"),ma=r("torch.nn.Module"),ha=r(` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),pa=m(),Fe=s("div"),C(po.$$.fragment),fa=m(),gt=s("p"),ua=r("The "),Wo=s("a"),ga=r("ConvNextForImageClassification"),va=r(" forward method, overrides the "),ms=s("code"),_a=r("__call__"),ya=r(" special method."),ba=m(),C(jt.$$.fragment),wa=m(),C(Ft.$$.fragment),Xs=m(),vt=s("h2"),kt=s("a"),hs=s("span"),C(fo.$$.fragment),Ca=m(),ps=s("span"),Ta=r("TFConvNextModel"),Bs=m(),de=s("div"),C(uo.$$.fragment),xa=m(),go=s("p"),Na=r(`The bare ConvNext model outputting raw features without any specific head on top.
This model inherits from `),Ro=s("a"),$a=r("TFPreTrainedModel"),Ma=r(`. 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.)`),Ea=m(),vo=s("p"),Ia=r("This model is also a "),_o=s("a"),ja=r("tf.keras.Model"),Fa=r(` 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.`),ka=m(),C(Ut.$$.fragment),Ua=m(),ke=s("div"),C(yo.$$.fragment),Za=m(),_t=s("p"),Pa=r("The "),Ao=s("a"),za=r("TFConvNextModel"),Wa=r(" forward method, overrides the "),fs=s("code"),Ra=r("__call__"),Aa=r(" special method."),Ja=m(),C(Zt.$$.fragment),Xa=m(),C(Pt.$$.fragment),qs=m(),yt=s("h2"),zt=s("a"),us=s("span"),C(bo.$$.fragment),Ba=m(),gs=s("span"),qa=r("TFConvNextForImageClassification"),Ss=m(),Q=s("div"),C(wo.$$.fragment),Sa=m(),vs=s("p"),Ga=r(`ConvNext Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`),Da=m(),Co=s("p"),Va=r("This model inherits from "),Jo=s("a"),La=r("TFPreTrainedModel"),Qa=r(`. 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.)`),Oa=m(),To=s("p"),Ha=r("This model is also a "),xo=s("a"),Ya=r("tf.keras.Model"),Ka=r(` 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.`),er=m(),C(Wt.$$.fragment),tr=m(),Ue=s("div"),C(No.$$.fragment),or=m(),bt=s("p"),sr=r("The "),Xo=s("a"),nr=r("TFConvNextForImageClassification"),ar=r(" forward method, overrides the "),_s=s("code"),rr=r("__call__"),lr=r(" special method."),ir=m(),C(Rt.$$.fragment),cr=m(),C(At.$$.fragment),this.h()},l(o){const u=xl('[data-svelte="svelte-1phssyn"]',document.head);d=n(u,"META",{name:!0,content:!0}),u.forEach(t),b=h(o),v=n(o,"H1",{class:!0});var $o=a(v);g=n($o,"A",{id:!0,class:!0,href:!0});var ys=a(g);y=n(ys,"SPAN",{});var bs=a(y);T(i.$$.fragment,bs),bs.forEach(t),ys.forEach(t),f=h($o),j=n($o,"SPAN",{});var ws=a(j);We=l(ws,"ConvNeXT"),ws.forEach(t),$o.forEach(t),we=h(o),z=n(o,"H2",{class:!0});var Mo=a(z);O=n(Mo,"A",{id:!0,class:!0,href:!0});var Cs=a(O);ee=n(Cs,"SPAN",{});var Ts=a(ee);T(w.$$.fragment,Ts),Ts.forEach(t),Cs.forEach(t),Re=h(Mo),G=n(Mo,"SPAN",{});var xs=a(G);Ae=l(xs,"Overview"),xs.forEach(t),Mo.forEach(t),Ce=h(o),A=n(o,"P",{});var Eo=a(A);Je=l(Eo,"The ConvNeXT model was proposed in "),te=n(Eo,"A",{href:!0,rel:!0});var Ns=a(te);oe=l(Ns,"A ConvNet for the 2020s"),Ns.forEach(t),Xe=l(Eo,` 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.`),Eo.forEach(t),Te=h(o),B=n(o,"P",{});var $s=a(B);Be=l($s,"The abstract from the paper is the following:"),$s.forEach(t),xe=h(o),q=n(o,"P",{});var mr=a(q);ue=n(mr,"EM",{});var hr=a(ue);qe=l(hr,`The \u201CRoaring 20s\u201D 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 \u201Cmodernize\u201D 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.`),hr.forEach(t),mr.forEach(t),me=h(o),F=n(o,"P",{});var pr=a(F);W=l(pr,"Tips:"),pr.forEach(t),Ne=h(o),S=n(o,"UL",{});var fr=a(S);ge=n(fr,"LI",{});var ur=a(ge);Se=l(ur,"See the code examples below each model regarding usage."),ur.forEach(t),fr.forEach(t),H=h(o),Y=n(o,"IMG",{src:!0,alt:!0,width:!0}),P=h(o),K=n(o,"SMALL",{});var Ds=a(K);se=l(Ds,"ConvNeXT architecture. Taken from the "),he=n(Ds,"A",{href:!0});var gr=a(he);Ge=l(gr,"original paper"),gr.forEach(t),ne=l(Ds,"."),Ds.forEach(t),$e=h(o),U=n(o,"P",{});var Ze=a(U);D=l(Ze,"This model was contributed by "),ae=n(Ze,"A",{href:!0,rel:!0});var vr=a(ae);re=l(vr,"nielsr"),vr.forEach(t),De=l(Ze,". TensorFlow version of the model was contributed by "),V=n(Ze,"A",{href:!0,rel:!0});var _r=a(V);R=l(_r,"ariG23498"),_r.forEach(t),Ve=l(Ze,`,
`),Z=n(Ze,"A",{href:!0,rel:!0});var yr=a(Z);Le=l(yr,"gante"),yr.forEach(t),Qe=l(Ze,", and "),_=n(Ze,"A",{href:!0,rel:!0});var br=a(_);E=l(br,"sayakpaul"),br.forEach(t),nt=l(Ze," (equal contribution). The original code can be found "),L=n(Ze,"A",{href:!0,rel:!0});var wr=a(L);at=l(wr,"here"),wr.forEach(t),rt=l(Ze,"."),Ze.forEach(t),I=h(o),le=n(o,"H2",{class:!0});var Vs=a(le);pe=n(Vs,"A",{id:!0,class:!0,href:!0});var Cr=a(pe);Oe=n(Cr,"SPAN",{});var Tr=a(Oe);T(ve.$$.fragment,Tr),Tr.forEach(t),Cr.forEach(t),lt=h(Vs),X=n(Vs,"SPAN",{});var xr=a(X);ie=l(xr,"Resources"),xr.forEach(t),Vs.forEach(t),et=h(o),Me=n(o,"P",{});var Nr=a(Me);ce=l(Nr,"A list of official Hugging Face and community (indicated by \u{1F30E}) resources to help you get started with ConvNeXT."),Nr.forEach(t),tt=h(o),T(_e.$$.fragment,o),Ee=h(o),fe=n(o,"UL",{});var Ls=a(fe);J=n(Ls,"LI",{});var Io=a(J);Ie=n(Io,"A",{href:!0});var $r=a(Ie);dn=l($r,"ConvNextForImageClassification"),$r.forEach(t),mn=l(Io," is supported by this "),Dt=n(Io,"A",{href:!0,rel:!0});var Mr=a(Dt);hn=l(Mr,"example script"),Mr.forEach(t),pn=l(Io," and "),Vt=n(Io,"A",{href:!0,rel:!0});var Er=a(Vt);fn=l(Er,"notebook"),Er.forEach(t),un=l(Io,"."),Io.forEach(t),gn=h(Ls),jo=n(Ls,"LI",{});var dr=a(jo);vn=l(dr,"See also: "),Fo=n(dr,"A",{href:!0});var Ir=a(Fo);_n=l(Ir,"Image classification task guide"),Ir.forEach(t),dr.forEach(t),Ls.forEach(t),js=h(o),ko=n(o,"P",{});var jr=a(ko);yn=l(jr,"If you\u2019re interested in submitting a resource to be included here, please feel free to open a Pull Request and we\u2019ll review it! The resource should ideally demonstrate something new instead of duplicating an existing resource."),jr.forEach(t),Fs=h(o),it=n(o,"H2",{class:!0});var Qs=a(it);wt=n(Qs,"A",{id:!0,class:!0,href:!0});var Fr=a(wt);Ho=n(Fr,"SPAN",{});var kr=a(Ho);T(Lt.$$.fragment,kr),kr.forEach(t),Fr.forEach(t),bn=h(Qs),Yo=n(Qs,"SPAN",{});var Ur=a(Yo);wn=l(Ur,"ConvNextConfig"),Ur.forEach(t),Qs.forEach(t),ks=h(o),ye=n(o,"DIV",{class:!0});var Jt=a(ye);T(Qt.$$.fragment,Jt),Cn=h(Jt),ct=n(Jt,"P",{});var Bo=a(ct);Tn=l(Bo,"This is the configuration class to store the configuration of a "),Uo=n(Bo,"A",{href:!0});var Zr=a(Uo);xn=l(Zr,"ConvNextModel"),Zr.forEach(t),Nn=l(Bo,`. 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
`),Ot=n(Bo,"A",{href:!0,rel:!0});var Pr=a(Ot);$n=l(Pr,"facebook/convnext-tiny-224"),Pr.forEach(t),Mn=l(Bo," architecture."),Bo.forEach(t),En=h(Jt),dt=n(Jt,"P",{});var qo=a(dt);In=l(qo,"Configuration objects inherit from "),Zo=n(qo,"A",{href:!0});var zr=a(Zo);jn=l(zr,"PretrainedConfig"),zr.forEach(t),Fn=l(qo,` and can be used to control the model outputs. Read the
documentation from `),Po=n(qo,"A",{href:!0});var Wr=a(Po);kn=l(Wr,"PretrainedConfig"),Wr.forEach(t),Un=l(qo," for more information."),qo.forEach(t),Zn=h(Jt),T(Ct.$$.fragment,Jt),Jt.forEach(t),Us=h(o),mt=n(o,"H2",{class:!0});var Os=a(mt);Tt=n(Os,"A",{id:!0,class:!0,href:!0});var Rr=a(Tt);Ko=n(Rr,"SPAN",{});var Ar=a(Ko);T(Ht.$$.fragment,Ar),Ar.forEach(t),Rr.forEach(t),Pn=h(Os),es=n(Os,"SPAN",{});var Jr=a(es);zn=l(Jr,"ConvNextFeatureExtractor"),Jr.forEach(t),Os.forEach(t),Zs=h(o),Yt=n(o,"DIV",{class:!0});var Xr=a(Yt);T(Kt.$$.fragment,Xr),Xr.forEach(t),Ps=h(o),ht=n(o,"H2",{class:!0});var Hs=a(ht);xt=n(Hs,"A",{id:!0,class:!0,href:!0});var Br=a(xt);ts=n(Br,"SPAN",{});var qr=a(ts);T(eo.$$.fragment,qr),qr.forEach(t),Br.forEach(t),Wn=h(Hs),os=n(Hs,"SPAN",{});var Sr=a(os);Rn=l(Sr,"ConvNextImageProcessor"),Sr.forEach(t),Hs.forEach(t),zs=h(o),He=n(o,"DIV",{class:!0});var So=a(He);T(to.$$.fragment,So),An=h(So),ss=n(So,"P",{});var Gr=a(ss);Jn=l(Gr,"Constructs a ConvNeXT image processor."),Gr.forEach(t),Xn=h(So),Nt=n(So,"DIV",{class:!0});var Ys=a(Nt);T(oo.$$.fragment,Ys),Bn=h(Ys),ns=n(Ys,"P",{});var Dr=a(ns);qn=l(Dr,"Preprocess an image or batch of images."),Dr.forEach(t),Ys.forEach(t),So.forEach(t),Ws=h(o),pt=n(o,"H2",{class:!0});var Ks=a(pt);$t=n(Ks,"A",{id:!0,class:!0,href:!0});var Vr=a($t);as=n(Vr,"SPAN",{});var Lr=a(as);T(so.$$.fragment,Lr),Lr.forEach(t),Vr.forEach(t),Sn=h(Ks),rs=n(Ks,"SPAN",{});var Qr=a(rs);Gn=l(Qr,"ConvNextModel"),Qr.forEach(t),Ks.forEach(t),Rs=h(o),Ye=n(o,"DIV",{class:!0});var Go=a(Ye);T(no.$$.fragment,Go),Dn=h(Go),ao=n(Go,"P",{});var en=a(ao);Vn=l(en,`The bare ConvNext model outputting raw features without any specific head on top.
This model is a PyTorch `),ro=n(en,"A",{href:!0,rel:!0});var Or=a(ro);Ln=l(Or,"torch.nn.Module"),Or.forEach(t),Qn=l(en,` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),en.forEach(t),On=h(Go),je=n(Go,"DIV",{class:!0});var Xt=a(je);T(lo.$$.fragment,Xt),Hn=h(Xt),ft=n(Xt,"P",{});var Do=a(ft);Yn=l(Do,"The "),zo=n(Do,"A",{href:!0});var Hr=a(zo);Kn=l(Hr,"ConvNextModel"),Hr.forEach(t),ea=l(Do," forward method, overrides the "),ls=n(Do,"CODE",{});var Yr=a(ls);ta=l(Yr,"__call__"),Yr.forEach(t),oa=l(Do," special method."),Do.forEach(t),sa=h(Xt),T(Mt.$$.fragment,Xt),na=h(Xt),T(Et.$$.fragment,Xt),Xt.forEach(t),Go.forEach(t),As=h(o),ut=n(o,"H2",{class:!0});var tn=a(ut);It=n(tn,"A",{id:!0,class:!0,href:!0});var Kr=a(It);is=n(Kr,"SPAN",{});var el=a(is);T(io.$$.fragment,el),el.forEach(t),Kr.forEach(t),aa=h(tn),cs=n(tn,"SPAN",{});var tl=a(cs);ra=l(tl,"ConvNextForImageClassification"),tl.forEach(t),tn.forEach(t),Js=h(o),be=n(o,"DIV",{class:!0});var Bt=a(be);T(co.$$.fragment,Bt),la=h(Bt),ds=n(Bt,"P",{});var ol=a(ds);ia=l(ol,`ConvNext Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`),ol.forEach(t),ca=h(Bt),mo=n(Bt,"P",{});var on=a(mo);da=l(on,"This model is a PyTorch "),ho=n(on,"A",{href:!0,rel:!0});var sl=a(ho);ma=l(sl,"torch.nn.Module"),sl.forEach(t),ha=l(on,` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),on.forEach(t),pa=h(Bt),Fe=n(Bt,"DIV",{class:!0});var qt=a(Fe);T(po.$$.fragment,qt),fa=h(qt),gt=n(qt,"P",{});var Vo=a(gt);ua=l(Vo,"The "),Wo=n(Vo,"A",{href:!0});var nl=a(Wo);ga=l(nl,"ConvNextForImageClassification"),nl.forEach(t),va=l(Vo," forward method, overrides the "),ms=n(Vo,"CODE",{});var al=a(ms);_a=l(al,"__call__"),al.forEach(t),ya=l(Vo," special method."),Vo.forEach(t),ba=h(qt),T(jt.$$.fragment,qt),wa=h(qt),T(Ft.$$.fragment,qt),qt.forEach(t),Bt.forEach(t),Xs=h(o),vt=n(o,"H2",{class:!0});var sn=a(vt);kt=n(sn,"A",{id:!0,class:!0,href:!0});var rl=a(kt);hs=n(rl,"SPAN",{});var ll=a(hs);T(fo.$$.fragment,ll),ll.forEach(t),rl.forEach(t),Ca=h(sn),ps=n(sn,"SPAN",{});var il=a(ps);Ta=l(il,"TFConvNextModel"),il.forEach(t),sn.forEach(t),Bs=h(o),de=n(o,"DIV",{class:!0});var ot=a(de);T(uo.$$.fragment,ot),xa=h(ot),go=n(ot,"P",{});var nn=a(go);Na=l(nn,`The bare ConvNext model outputting raw features without any specific head on top.
This model inherits from `),Ro=n(nn,"A",{href:!0});var cl=a(Ro);$a=l(cl,"TFPreTrainedModel"),cl.forEach(t),Ma=l(nn,`. 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.)`),nn.forEach(t),Ea=h(ot),vo=n(ot,"P",{});var an=a(vo);Ia=l(an,"This model is also a "),_o=n(an,"A",{href:!0,rel:!0});var dl=a(_o);ja=l(dl,"tf.keras.Model"),dl.forEach(t),Fa=l(an,` 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.`),an.forEach(t),ka=h(ot),T(Ut.$$.fragment,ot),Ua=h(ot),ke=n(ot,"DIV",{class:!0});var St=a(ke);T(yo.$$.fragment,St),Za=h(St),_t=n(St,"P",{});var Lo=a(_t);Pa=l(Lo,"The "),Ao=n(Lo,"A",{href:!0});var ml=a(Ao);za=l(ml,"TFConvNextModel"),ml.forEach(t),Wa=l(Lo," forward method, overrides the "),fs=n(Lo,"CODE",{});var hl=a(fs);Ra=l(hl,"__call__"),hl.forEach(t),Aa=l(Lo," special method."),Lo.forEach(t),Ja=h(St),T(Zt.$$.fragment,St),Xa=h(St),T(Pt.$$.fragment,St),St.forEach(t),ot.forEach(t),qs=h(o),yt=n(o,"H2",{class:!0});var rn=a(yt);zt=n(rn,"A",{id:!0,class:!0,href:!0});var pl=a(zt);us=n(pl,"SPAN",{});var fl=a(us);T(bo.$$.fragment,fl),fl.forEach(t),pl.forEach(t),Ba=h(rn),gs=n(rn,"SPAN",{});var ul=a(gs);qa=l(ul,"TFConvNextForImageClassification"),ul.forEach(t),rn.forEach(t),Ss=h(o),Q=n(o,"DIV",{class:!0});var Pe=a(Q);T(wo.$$.fragment,Pe),Sa=h(Pe),vs=n(Pe,"P",{});var gl=a(vs);Ga=l(gl,`ConvNext Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`),gl.forEach(t),Da=h(Pe),Co=n(Pe,"P",{});var ln=a(Co);Va=l(ln,"This model inherits from "),Jo=n(ln,"A",{href:!0});var vl=a(Jo);La=l(vl,"TFPreTrainedModel"),vl.forEach(t),Qa=l(ln,`. 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.)`),ln.forEach(t),Oa=h(Pe),To=n(Pe,"P",{});var cn=a(To);Ha=l(cn,"This model is also a "),xo=n(cn,"A",{href:!0,rel:!0});var _l=a(xo);Ya=l(_l,"tf.keras.Model"),_l.forEach(t),Ka=l(cn,` 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.`),cn.forEach(t),er=h(Pe),T(Wt.$$.fragment,Pe),tr=h(Pe),Ue=n(Pe,"DIV",{class:!0});var Gt=a(Ue);T(No.$$.fragment,Gt),or=h(Gt),bt=n(Gt,"P",{});var Qo=a(bt);sr=l(Qo,"The "),Xo=n(Qo,"A",{href:!0});var yl=a(Xo);nr=l(yl,"TFConvNextForImageClassification"),yl.forEach(t),ar=l(Qo," forward method, overrides the "),_s=n(Qo,"CODE",{});var bl=a(_s);rr=l(bl,"__call__"),bl.forEach(t),lr=l(Qo," special method."),Qo.forEach(t),ir=h(Gt),T(Rt.$$.fragment,Gt),cr=h(Gt),T(At.$$.fragment,Gt),Gt.forEach(t),Pe.forEach(t),this.h()},h(){c(d,"name","hf:doc:metadata"),c(d,"content",JSON.stringify(Jl)),c(g,"id","convnext"),c(g,"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"),c(g,"href","#convnext"),c(v,"class","relative group"),c(O,"id","overview"),c(O,"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"),c(O,"href","#overview"),c(z,"class","relative group"),c(te,"href","https://arxiv.org/abs/2201.03545"),c(te,"rel","nofollow"),Nl(Y.src,Ke="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/convnext_architecture.jpg")||c(Y,"src",Ke),c(Y,"alt","drawing"),c(Y,"width","600"),c(he,"href","https://arxiv.org/abs/2201.03545"),c(ae,"href","https://huggingface.co/nielsr"),c(ae,"rel","nofollow"),c(V,"href","https://github.com/ariG23498"),c(V,"rel","nofollow"),c(Z,"href","https://github.com/gante"),c(Z,"rel","nofollow"),c(_,"href","https://github.com/sayakpaul"),c(_,"rel","nofollow"),c(L,"href","https://github.com/facebookresearch/ConvNeXt"),c(L,"rel","nofollow"),c(pe,"id","resources"),c(pe,"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"),c(pe,"href","#resources"),c(le,"class","relative group"),c(Ie,"href","/docs/transformers/v4.31.0/en/model_doc/convnext#transformers.ConvNextForImageClassification"),c(Dt,"href","https://github.com/huggingface/transformers/tree/main/examples/pytorch/image-classification"),c(Dt,"rel","nofollow"),c(Vt,"href","https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/image_classification.ipynb"),c(Vt,"rel","nofollow"),c(Fo,"href","../tasks/image_classification"),c(wt,"id","transformers.ConvNextConfig"),c(wt,"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"),c(wt,"href","#transformers.ConvNextConfig"),c(it,"class","relative group"),c(Uo,"href","/docs/transformers/v4.31.0/en/model_doc/convnext#transformers.ConvNextModel"),c(Ot,"href","https://huggingface.co/facebook/convnext-tiny-224"),c(Ot,"rel","nofollow"),c(Zo,"href","/docs/transformers/v4.31.0/en/main_classes/configuration#transformers.PretrainedConfig"),c(Po,"href","/docs/transformers/v4.31.0/en/main_classes/configuration#transformers.PretrainedConfig"),c(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Tt,"id","transformers.ConvNextFeatureExtractor"),c(Tt,"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"),c(Tt,"href","#transformers.ConvNextFeatureExtractor"),c(mt,"class","relative group"),c(Yt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(xt,"id","transformers.ConvNextImageProcessor"),c(xt,"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"),c(xt,"href","#transformers.ConvNextImageProcessor"),c(ht,"class","relative group"),c(Nt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(He,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c($t,"id","transformers.ConvNextModel"),c($t,"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"),c($t,"href","#transformers.ConvNextModel"),c(pt,"class","relative group"),c(ro,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),c(ro,"rel","nofollow"),c(zo,"href","/docs/transformers/v4.31.0/en/model_doc/convnext#transformers.ConvNextModel"),c(je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(It,"id","transformers.ConvNextForImageClassification"),c(It,"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"),c(It,"href","#transformers.ConvNextForImageClassification"),c(ut,"class","relative group"),c(ho,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),c(ho,"rel","nofollow"),c(Wo,"href","/docs/transformers/v4.31.0/en/model_doc/convnext#transformers.ConvNextForImageClassification"),c(Fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(kt,"id","transformers.TFConvNextModel"),c(kt,"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"),c(kt,"href","#transformers.TFConvNextModel"),c(vt,"class","relative group"),c(Ro,"href","/docs/transformers/v4.31.0/en/main_classes/model#transformers.TFPreTrainedModel"),c(_o,"href","https://www.tensorflow.org/api_docs/python/tf/keras/Model"),c(_o,"rel","nofollow"),c(Ao,"href","/docs/transformers/v4.31.0/en/model_doc/convnext#transformers.TFConvNextModel"),c(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(zt,"id","transformers.TFConvNextForImageClassification"),c(zt,"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"),c(zt,"href","#transformers.TFConvNextForImageClassification"),c(yt,"class","relative group"),c(Jo,"href","/docs/transformers/v4.31.0/en/main_classes/model#transformers.TFPreTrainedModel"),c(xo,"href","https://www.tensorflow.org/api_docs/python/tf/keras/Model"),c(xo,"rel","nofollow"),c(Xo,"href","/docs/transformers/v4.31.0/en/model_doc/convnext#transformers.TFConvNextForImageClassification"),c(Ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(o,u){e(document.head,d),p(o,b,u),p(o,v,u),e(v,g),e(g,y),x(i,y,null),e(v,f),e(v,j),e(j,We),p(o,we,u),p(o,z,u),e(z,O),e(O,ee),x(w,ee,null),e(z,Re),e(z,G),e(G,Ae),p(o,Ce,u),p(o,A,u),e(A,Je),e(A,te),e(te,oe),e(A,Xe),p(o,Te,u),p(o,B,u),e(B,Be),p(o,xe,u),p(o,q,u),e(q,ue),e(ue,qe),p(o,me,u),p(o,F,u),e(F,W),p(o,Ne,u),p(o,S,u),e(S,ge),e(ge,Se),p(o,H,u),p(o,Y,u),p(o,P,u),p(o,K,u),e(K,se),e(K,he),e(he,Ge),e(K,ne),p(o,$e,u),p(o,U,u),e(U,D),e(U,ae),e(ae,re),e(U,De),e(U,V),e(V,R),e(U,Ve),e(U,Z),e(Z,Le),e(U,Qe),e(U,_),e(_,E),e(U,nt),e(U,L),e(L,at),e(U,rt),p(o,I,u),p(o,le,u),e(le,pe),e(pe,Oe),x(ve,Oe,null),e(le,lt),e(le,X),e(X,ie),p(o,et,u),p(o,Me,u),e(Me,ce),p(o,tt,u),x(_e,o,u),p(o,Ee,u),p(o,fe,u),e(fe,J),e(J,Ie),e(Ie,dn),e(J,mn),e(J,Dt),e(Dt,hn),e(J,pn),e(J,Vt),e(Vt,fn),e(J,un),e(fe,gn),e(fe,jo),e(jo,vn),e(jo,Fo),e(Fo,_n),p(o,js,u),p(o,ko,u),e(ko,yn),p(o,Fs,u),p(o,it,u),e(it,wt),e(wt,Ho),x(Lt,Ho,null),e(it,bn),e(it,Yo),e(Yo,wn),p(o,ks,u),p(o,ye,u),x(Qt,ye,null),e(ye,Cn),e(ye,ct),e(ct,Tn),e(ct,Uo),e(Uo,xn),e(ct,Nn),e(ct,Ot),e(Ot,$n),e(ct,Mn),e(ye,En),e(ye,dt),e(dt,In),e(dt,Zo),e(Zo,jn),e(dt,Fn),e(dt,Po),e(Po,kn),e(dt,Un),e(ye,Zn),x(Ct,ye,null),p(o,Us,u),p(o,mt,u),e(mt,Tt),e(Tt,Ko),x(Ht,Ko,null),e(mt,Pn),e(mt,es),e(es,zn),p(o,Zs,u),p(o,Yt,u),x(Kt,Yt,null),p(o,Ps,u),p(o,ht,u),e(ht,xt),e(xt,ts),x(eo,ts,null),e(ht,Wn),e(ht,os),e(os,Rn),p(o,zs,u),p(o,He,u),x(to,He,null),e(He,An),e(He,ss),e(ss,Jn),e(He,Xn),e(He,Nt),x(oo,Nt,null),e(Nt,Bn),e(Nt,ns),e(ns,qn),p(o,Ws,u),p(o,pt,u),e(pt,$t),e($t,as),x(so,as,null),e(pt,Sn),e(pt,rs),e(rs,Gn),p(o,Rs,u),p(o,Ye,u),x(no,Ye,null),e(Ye,Dn),e(Ye,ao),e(ao,Vn),e(ao,ro),e(ro,Ln),e(ao,Qn),e(Ye,On),e(Ye,je),x(lo,je,null),e(je,Hn),e(je,ft),e(ft,Yn),e(ft,zo),e(zo,Kn),e(ft,ea),e(ft,ls),e(ls,ta),e(ft,oa),e(je,sa),x(Mt,je,null),e(je,na),x(Et,je,null),p(o,As,u),p(o,ut,u),e(ut,It),e(It,is),x(io,is,null),e(ut,aa),e(ut,cs),e(cs,ra),p(o,Js,u),p(o,be,u),x(co,be,null),e(be,la),e(be,ds),e(ds,ia),e(be,ca),e(be,mo),e(mo,da),e(mo,ho),e(ho,ma),e(mo,ha),e(be,pa),e(be,Fe),x(po,Fe,null),e(Fe,fa),e(Fe,gt),e(gt,ua),e(gt,Wo),e(Wo,ga),e(gt,va),e(gt,ms),e(ms,_a),e(gt,ya),e(Fe,ba),x(jt,Fe,null),e(Fe,wa),x(Ft,Fe,null),p(o,Xs,u),p(o,vt,u),e(vt,kt),e(kt,hs),x(fo,hs,null),e(vt,Ca),e(vt,ps),e(ps,Ta),p(o,Bs,u),p(o,de,u),x(uo,de,null),e(de,xa),e(de,go),e(go,Na),e(go,Ro),e(Ro,$a),e(go,Ma),e(de,Ea),e(de,vo),e(vo,Ia),e(vo,_o),e(_o,ja),e(vo,Fa),e(de,ka),x(Ut,de,null),e(de,Ua),e(de,ke),x(yo,ke,null),e(ke,Za),e(ke,_t),e(_t,Pa),e(_t,Ao),e(Ao,za),e(_t,Wa),e(_t,fs),e(fs,Ra),e(_t,Aa),e(ke,Ja),x(Zt,ke,null),e(ke,Xa),x(Pt,ke,null),p(o,qs,u),p(o,yt,u),e(yt,zt),e(zt,us),x(bo,us,null),e(yt,Ba),e(yt,gs),e(gs,qa),p(o,Ss,u),p(o,Q,u),x(wo,Q,null),e(Q,Sa),e(Q,vs),e(vs,Ga),e(Q,Da),e(Q,Co),e(Co,Va),e(Co,Jo),e(Jo,La),e(Co,Qa),e(Q,Oa),e(Q,To),e(To,Ha),e(To,xo),e(xo,Ya),e(To,Ka),e(Q,er),x(Wt,Q,null),e(Q,tr),e(Q,Ue),x(No,Ue,null),e(Ue,or),e(Ue,bt),e(bt,sr),e(bt,Xo),e(Xo,nr),e(bt,ar),e(bt,_s),e(_s,rr),e(bt,lr),e(Ue,ir),x(Rt,Ue,null),e(Ue,cr),x(At,Ue,null),Gs=!0},p(o,[u]){const $o={};u&2&&($o.$$scope={dirty:u,ctx:o}),Ct.$set($o);const ys={};u&2&&(ys.$$scope={dirty:u,ctx:o}),Mt.$set(ys);const bs={};u&2&&(bs.$$scope={dirty:u,ctx:o}),Et.$set(bs);const ws={};u&2&&(ws.$$scope={dirty:u,ctx:o}),jt.$set(ws);const Mo={};u&2&&(Mo.$$scope={dirty:u,ctx:o}),Ft.$set(Mo);const Cs={};u&2&&(Cs.$$scope={dirty:u,ctx:o}),Ut.$set(Cs);const Ts={};u&2&&(Ts.$$scope={dirty:u,ctx:o}),Zt.$set(Ts);const xs={};u&2&&(xs.$$scope={dirty:u,ctx:o}),Pt.$set(xs);const Eo={};u&2&&(Eo.$$scope={dirty:u,ctx:o}),Wt.$set(Eo);const Ns={};u&2&&(Ns.$$scope={dirty:u,ctx:o}),Rt.$set(Ns);const $s={};u&2&&($s.$$scope={dirty:u,ctx:o}),At.$set($s)},i(o){Gs||(N(i.$$.fragment,o),N(w.$$.fragment,o),N(ve.$$.fragment,o),N(_e.$$.fragment,o),N(Lt.$$.fragment,o),N(Qt.$$.fragment,o),N(Ct.$$.fragment,o),N(Ht.$$.fragment,o),N(Kt.$$.fragment,o),N(eo.$$.fragment,o),N(to.$$.fragment,o),N(oo.$$.fragment,o),N(so.$$.fragment,o),N(no.$$.fragment,o),N(lo.$$.fragment,o),N(Mt.$$.fragment,o),N(Et.$$.fragment,o),N(io.$$.fragment,o),N(co.$$.fragment,o),N(po.$$.fragment,o),N(jt.$$.fragment,o),N(Ft.$$.fragment,o),N(fo.$$.fragment,o),N(uo.$$.fragment,o),N(Ut.$$.fragment,o),N(yo.$$.fragment,o),N(Zt.$$.fragment,o),N(Pt.$$.fragment,o),N(bo.$$.fragment,o),N(wo.$$.fragment,o),N(Wt.$$.fragment,o),N(No.$$.fragment,o),N(Rt.$$.fragment,o),N(At.$$.fragment,o),Gs=!0)},o(o){$(i.$$.fragment,o),$(w.$$.fragment,o),$(ve.$$.fragment,o),$(_e.$$.fragment,o),$(Lt.$$.fragment,o),$(Qt.$$.fragment,o),$(Ct.$$.fragment,o),$(Ht.$$.fragment,o),$(Kt.$$.fragment,o),$(eo.$$.fragment,o),$(to.$$.fragment,o),$(oo.$$.fragment,o),$(so.$$.fragment,o),$(no.$$.fragment,o),$(lo.$$.fragment,o),$(Mt.$$.fragment,o),$(Et.$$.fragment,o),$(io.$$.fragment,o),$(co.$$.fragment,o),$(po.$$.fragment,o),$(jt.$$.fragment,o),$(Ft.$$.fragment,o),$(fo.$$.fragment,o),$(uo.$$.fragment,o),$(Ut.$$.fragment,o),$(yo.$$.fragment,o),$(Zt.$$.fragment,o),$(Pt.$$.fragment,o),$(bo.$$.fragment,o),$(wo.$$.fragment,o),$(Wt.$$.fragment,o),$(No.$$.fragment,o),$(Rt.$$.fragment,o),$(At.$$.fragment,o),Gs=!1},d(o){t(d),o&&t(b),o&&t(v),M(i),o&&t(we),o&&t(z),M(w),o&&t(Ce),o&&t(A),o&&t(Te),o&&t(B),o&&t(xe),o&&t(q),o&&t(me),o&&t(F),o&&t(Ne),o&&t(S),o&&t(H),o&&t(Y),o&&t(P),o&&t(K),o&&t($e),o&&t(U),o&&t(I),o&&t(le),M(ve),o&&t(et),o&&t(Me),o&&t(tt),M(_e,o),o&&t(Ee),o&&t(fe),o&&t(js),o&&t(ko),o&&t(Fs),o&&t(it),M(Lt),o&&t(ks),o&&t(ye),M(Qt),M(Ct),o&&t(Us),o&&t(mt),M(Ht),o&&t(Zs),o&&t(Yt),M(Kt),o&&t(Ps),o&&t(ht),M(eo),o&&t(zs),o&&t(He),M(to),M(oo),o&&t(Ws),o&&t(pt),M(so),o&&t(Rs),o&&t(Ye),M(no),M(lo),M(Mt),M(Et),o&&t(As),o&&t(ut),M(io),o&&t(Js),o&&t(be),M(co),M(po),M(jt),M(Ft),o&&t(Xs),o&&t(vt),M(fo),o&&t(Bs),o&&t(de),M(uo),M(Ut),M(yo),M(Zt),M(Pt),o&&t(qs),o&&t(yt),M(bo),o&&t(Ss),o&&t(Q),M(wo),M(Wt),M(No),M(Rt),M(At)}}}const Jl={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 Xl(k){return $l(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ql extends wl{constructor(d){super();Cl(this,d,Xl,Al,Tl,{})}}export{Ql as default,Jl as metadata};
