import{S as hd,i as md,s as gd,e as a,k as p,w,t as l,M as ud,c as s,d as o,m as f,a as n,x as v,h as i,b as c,G as e,g as _,y as M,q as $,o as T,B as N,v as _d,L as Ot}from"../../chunks/vendor-hf-doc-builder.js";import{T as xo}from"../../chunks/Tip-hf-doc-builder.js";import{D as k}from"../../chunks/Docstring-hf-doc-builder.js";import{C as Kt}from"../../chunks/CodeBlock-hf-doc-builder.js";import{I as H}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{E as Lt}from"../../chunks/ExampleCodeBlock-hf-doc-builder.js";import{P as yd}from"../../chunks/PipelineTag-hf-doc-builder.js";function bd(F){let d,b,u,m,y;return m=new Kt({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFJlZ05ldENvbmZpZyUyQyUyMFJlZ05ldE1vZGVsJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMFJlZ05ldCUyMHJlZ25ldC15LTQwJTIwc3R5bGUlMjBjb25maWd1cmF0aW9uJTBBY29uZmlndXJhdGlvbiUyMCUzRCUyMFJlZ05ldENvbmZpZygpJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMG1vZGVsJTIwZnJvbSUyMHRoZSUyMHJlZ25ldC15LTQwJTIwc3R5bGUlMjBjb25maWd1cmF0aW9uJTBBbW9kZWwlMjAlM0QlMjBSZWdOZXRNb2RlbChjb25maWd1cmF0aW9uKSUwQSUyMyUyMEFjY2Vzc2luZyUyMHRoZSUyMG1vZGVsJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBtb2RlbC5jb25maWc=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> RegNetConfig, RegNetModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a RegNet regnet-y-40 style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = RegNetConfig()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model from the regnet-y-40 style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = RegNetModel(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=a("p"),b=l("Example:"),u=p(),w(m.$$.fragment)},l(r){d=s(r,"P",{});var h=n(d);b=i(h,"Example:"),h.forEach(o),u=f(r),v(m.$$.fragment,r)},m(r,h){_(r,d,h),e(d,b),_(r,u,h),M(m,r,h),y=!0},p:Ot,i(r){y||($(m.$$.fragment,r),y=!0)},o(r){T(m.$$.fragment,r),y=!1},d(r){r&&o(d),r&&o(u),N(m,r)}}}function wd(F){let d,b,u,m,y;return{c(){d=a("p"),b=l("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=a("code"),m=l("Module"),y=l(`
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(r){d=s(r,"P",{});var h=n(d);b=i(h,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(h,"CODE",{});var R=n(u);m=i(R,"Module"),R.forEach(o),y=i(h,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),h.forEach(o)},m(r,h){_(r,d,h),e(d,b),e(d,u),e(u,m),e(d,y)},d(r){r&&o(d)}}}function vd(F){let d,b,u,m,y;return m=new Kt({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFJlZ05ldE1vZGVsJTBBaW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGF0YXNldHMlMjBpbXBvcnQlMjBsb2FkX2RhdGFzZXQlMEElMEFkYXRhc2V0JTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMmh1Z2dpbmdmYWNlJTJGY2F0cy1pbWFnZSUyMiklMEFpbWFnZSUyMCUzRCUyMGRhdGFzZXQlNUIlMjJ0ZXN0JTIyJTVEJTVCJTIyaW1hZ2UlMjIlNUQlNUIwJTVEJTBBJTBBaW1hZ2VfcHJvY2Vzc29yJTIwJTNEJTIwQXV0b0ltYWdlUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRnJlZ25ldC15LTA0MCUyMiklMEFtb2RlbCUyMCUzRCUyMFJlZ05ldE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRnJlZ25ldC15LTA0MCUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjBpbWFnZV9wcm9jZXNzb3IoaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQSUwQXdpdGglMjB0b3JjaC5ub19ncmFkKCklM0ElMEElMjAlMjAlMjAlMjBvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpJTBBJTBBbGFzdF9oaWRkZW5fc3RhdGVzJTIwJTNEJTIwb3V0cHV0cy5sYXN0X2hpZGRlbl9zdGF0ZSUwQWxpc3QobGFzdF9oaWRkZW5fc3RhdGVzLnNoYXBlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, RegNetModel
<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/regnet-y-040&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = RegNetModel.from_pretrained(<span class="hljs-string">&quot;facebook/regnet-y-040&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">1088</span>, <span class="hljs-number">7</span>, <span class="hljs-number">7</span>]`}}),{c(){d=a("p"),b=l("Example:"),u=p(),w(m.$$.fragment)},l(r){d=s(r,"P",{});var h=n(d);b=i(h,"Example:"),h.forEach(o),u=f(r),v(m.$$.fragment,r)},m(r,h){_(r,d,h),e(d,b),_(r,u,h),M(m,r,h),y=!0},p:Ot,i(r){y||($(m.$$.fragment,r),y=!0)},o(r){T(m.$$.fragment,r),y=!1},d(r){r&&o(d),r&&o(u),N(m,r)}}}function Md(F){let d,b,u,m,y;return{c(){d=a("p"),b=l("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=a("code"),m=l("Module"),y=l(`
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(r){d=s(r,"P",{});var h=n(d);b=i(h,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(h,"CODE",{});var R=n(u);m=i(R,"Module"),R.forEach(o),y=i(h,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),h.forEach(o)},m(r,h){_(r,d,h),e(d,b),e(d,u),e(u,m),e(d,y)},d(r){r&&o(d)}}}function $d(F){let d,b,u,m,y;return m=new Kt({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFJlZ05ldEZvckltYWdlQ2xhc3NpZmljYXRpb24lMEFpbXBvcnQlMjB0b3JjaCUwQWZyb20lMjBkYXRhc2V0cyUyMGltcG9ydCUyMGxvYWRfZGF0YXNldCUwQSUwQWRhdGFzZXQlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyaHVnZ2luZ2ZhY2UlMkZjYXRzLWltYWdlJTIyKSUwQWltYWdlJTIwJTNEJTIwZGF0YXNldCU1QiUyMnRlc3QlMjIlNUQlNUIlMjJpbWFnZSUyMiU1RCU1QjAlNUQlMEElMEFpbWFnZV9wcm9jZXNzb3IlMjAlM0QlMjBBdXRvSW1hZ2VQcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMmZhY2Vib29rJTJGcmVnbmV0LXktMDQwJTIyKSUwQW1vZGVsJTIwJTNEJTIwUmVnTmV0Rm9ySW1hZ2VDbGFzc2lmaWNhdGlvbi5mcm9tX3ByZXRyYWluZWQoJTIyZmFjZWJvb2slMkZyZWduZXQteS0wNDAlMjIpJTBBJTBBaW5wdXRzJTIwJTNEJTIwaW1hZ2VfcHJvY2Vzc29yKGltYWdlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEElMEF3aXRoJTIwdG9yY2gubm9fZ3JhZCgpJTNBJTBBJTIwJTIwJTIwJTIwbG9naXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpLmxvZ2l0cyUwQSUwQSUyMyUyMG1vZGVsJTIwcHJlZGljdHMlMjBvbmUlMjBvZiUyMHRoZSUyMDEwMDAlMjBJbWFnZU5ldCUyMGNsYXNzZXMlMEFwcmVkaWN0ZWRfbGFiZWwlMjAlM0QlMjBsb2dpdHMuYXJnbWF4KC0xKS5pdGVtKCklMEFwcmludChtb2RlbC5jb25maWcuaWQybGFiZWwlNUJwcmVkaWN0ZWRfbGFiZWwlNUQp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, RegNetForImageClassification
<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/regnet-y-040&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = RegNetForImageClassification.from_pretrained(<span class="hljs-string">&quot;facebook/regnet-y-040&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=a("p"),b=l("Example:"),u=p(),w(m.$$.fragment)},l(r){d=s(r,"P",{});var h=n(d);b=i(h,"Example:"),h.forEach(o),u=f(r),v(m.$$.fragment,r)},m(r,h){_(r,d,h),e(d,b),_(r,u,h),M(m,r,h),y=!0},p:Ot,i(r){y||($(m.$$.fragment,r),y=!0)},o(r){T(m.$$.fragment,r),y=!1},d(r){r&&o(d),r&&o(u),N(m,r)}}}function Td(F){let d,b,u,m,y;return{c(){d=a("p"),b=l("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=a("code"),m=l("Module"),y=l(`
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(r){d=s(r,"P",{});var h=n(d);b=i(h,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(h,"CODE",{});var R=n(u);m=i(R,"Module"),R.forEach(o),y=i(h,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),h.forEach(o)},m(r,h){_(r,d,h),e(d,b),e(d,u),e(u,m),e(d,y)},d(r){r&&o(d)}}}function Nd(F){let d,b,u,m,y;return m=new Kt({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFRGUmVnTmV0TW9kZWwlMEFmcm9tJTIwZGF0YXNldHMlMjBpbXBvcnQlMjBsb2FkX2RhdGFzZXQlMEElMEFkYXRhc2V0JTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMmh1Z2dpbmdmYWNlJTJGY2F0cy1pbWFnZSUyMiklMEFpbWFnZSUyMCUzRCUyMGRhdGFzZXQlNUIlMjJ0ZXN0JTIyJTVEJTVCJTIyaW1hZ2UlMjIlNUQlNUIwJTVEJTBBJTBBaW1hZ2VfcHJvY2Vzc29yJTIwJTNEJTIwQXV0b0ltYWdlUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRnJlZ25ldC15LTA0MCUyMiklMEFtb2RlbCUyMCUzRCUyMFRGUmVnTmV0TW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMmZhY2Vib29rJTJGcmVnbmV0LXktMDQwJTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMGltYWdlX3Byb2Nlc3NvcihpbWFnZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIydGYlMjIpJTBBb3V0cHV0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzKSUwQSUwQWxhc3RfaGlkZGVuX3N0YXRlcyUyMCUzRCUyMG91dHB1dHMubGFzdF9oaWRkZW5fc3RhdGUlMEFsaXN0KGxhc3RfaGlkZGVuX3N0YXRlcy5zaGFwZSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, TFRegNetModel
<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/regnet-y-040&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFRegNetModel.from_pretrained(<span class="hljs-string">&quot;facebook/regnet-y-040&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = image_processor(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
<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">1088</span>, <span class="hljs-number">7</span>, <span class="hljs-number">7</span>]`}}),{c(){d=a("p"),b=l("Example:"),u=p(),w(m.$$.fragment)},l(r){d=s(r,"P",{});var h=n(d);b=i(h,"Example:"),h.forEach(o),u=f(r),v(m.$$.fragment,r)},m(r,h){_(r,d,h),e(d,b),_(r,u,h),M(m,r,h),y=!0},p:Ot,i(r){y||($(m.$$.fragment,r),y=!0)},o(r){T(m.$$.fragment,r),y=!1},d(r){r&&o(d),r&&o(u),N(m,r)}}}function Fd(F){let d,b,u,m,y;return{c(){d=a("p"),b=l("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=a("code"),m=l("Module"),y=l(`
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(r){d=s(r,"P",{});var h=n(d);b=i(h,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(h,"CODE",{});var R=n(u);m=i(R,"Module"),R.forEach(o),y=i(h,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),h.forEach(o)},m(r,h){_(r,d,h),e(d,b),e(d,u),e(u,m),e(d,y)},d(r){r&&o(d)}}}function Rd(F){let d,b,u,m,y;return m=new Kt({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFRGUmVnTmV0Rm9ySW1hZ2VDbGFzc2lmaWNhdGlvbiUwQWltcG9ydCUyMHRlbnNvcmZsb3clMjBhcyUyMHRmJTBBZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJodWdnaW5nZmFjZSUyRmNhdHMtaW1hZ2UlMjIpJTBBaW1hZ2UlMjAlM0QlMjBkYXRhc2V0JTVCJTIydGVzdCUyMiU1RCU1QiUyMmltYWdlJTIyJTVEJTVCMCU1RCUwQSUwQWltYWdlX3Byb2Nlc3NvciUyMCUzRCUyMEF1dG9JbWFnZVByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIyZmFjZWJvb2slMkZyZWduZXQteS0wNDAlMjIpJTBBbW9kZWwlMjAlM0QlMjBURlJlZ05ldEZvckltYWdlQ2xhc3NpZmljYXRpb24uZnJvbV9wcmV0cmFpbmVkKCUyMmZhY2Vib29rJTJGcmVnbmV0LXktMDQwJTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMGltYWdlX3Byb2Nlc3NvcihpbWFnZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIydGYlMjIpJTBBbG9naXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpLmxvZ2l0cyUwQSUwQSUyMyUyMG1vZGVsJTIwcHJlZGljdHMlMjBvbmUlMjBvZiUyMHRoZSUyMDEwMDAlMjBJbWFnZU5ldCUyMGNsYXNzZXMlMEFwcmVkaWN0ZWRfbGFiZWwlMjAlM0QlMjBpbnQodGYubWF0aC5hcmdtYXgobG9naXRzJTJDJTIwYXhpcyUzRC0xKSklMEFwcmludChtb2RlbC5jb25maWcuaWQybGFiZWwlNUJwcmVkaWN0ZWRfbGFiZWwlNUQp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, TFRegNetForImageClassification
<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> 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/regnet-y-040&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFRegNetForImageClassification.from_pretrained(<span class="hljs-string">&quot;facebook/regnet-y-040&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = image_processor(image, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </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 = <span class="hljs-built_in">int</span>(tf.math.argmax(logits, axis=-<span class="hljs-number">1</span>))
<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=a("p"),b=l("Example:"),u=p(),w(m.$$.fragment)},l(r){d=s(r,"P",{});var h=n(d);b=i(h,"Example:"),h.forEach(o),u=f(r),v(m.$$.fragment,r)},m(r,h){_(r,d,h),e(d,b),_(r,u,h),M(m,r,h),y=!0},p:Ot,i(r){y||($(m.$$.fragment,r),y=!0)},o(r){T(m.$$.fragment,r),y=!1},d(r){r&&o(d),r&&o(u),N(m,r)}}}function jd(F){let d,b,u,m,y;return{c(){d=a("p"),b=l("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=a("code"),m=l("Module"),y=l(`
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(r){d=s(r,"P",{});var h=n(d);b=i(h,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(h,"CODE",{});var R=n(u);m=i(R,"Module"),R.forEach(o),y=i(h,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),h.forEach(o)},m(r,h){_(r,d,h),e(d,b),e(d,u),e(u,m),e(d,y)},d(r){r&&o(d)}}}function Jd(F){let d,b,u,m,y;return m=new Kt({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMEZsYXhSZWdOZXRNb2RlbCUwQWZyb20lMjBQSUwlMjBpbXBvcnQlMjBJbWFnZSUwQWltcG9ydCUyMHJlcXVlc3RzJTBBJTBBdXJsJTIwJTNEJTIwJTIyaHR0cCUzQSUyRiUyRmltYWdlcy5jb2NvZGF0YXNldC5vcmclMkZ2YWwyMDE3JTJGMDAwMDAwMDM5NzY5LmpwZyUyMiUwQWltYWdlJTIwJTNEJTIwSW1hZ2Uub3BlbihyZXF1ZXN0cy5nZXQodXJsJTJDJTIwc3RyZWFtJTNEVHJ1ZSkucmF3KSUwQSUwQWltYWdlX3Byb2Nlc3NvciUyMCUzRCUyMEF1dG9JbWFnZVByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIyZmFjZWJvb2slMkZyZWduZXQteS0wNDAlMjIpJTBBbW9kZWwlMjAlM0QlMjBGbGF4UmVnTmV0TW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMmZhY2Vib29rJTJGcmVnbmV0LXktMDQwJTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMGltYWdlX3Byb2Nlc3NvcihpbWFnZXMlM0RpbWFnZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIybnAlMjIpJTBBb3V0cHV0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzKSUwQWxhc3RfaGlkZGVuX3N0YXRlcyUyMCUzRCUyMG91dHB1dHMubGFzdF9oaWRkZW5fc3RhdGU=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, FlaxRegNetModel
<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/regnet-y-040&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxRegNetModel.from_pretrained(<span class="hljs-string">&quot;facebook/regnet-y-040&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = image_processor(images=image, return_tensors=<span class="hljs-string">&quot;np&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=a("p"),b=l("Examples:"),u=p(),w(m.$$.fragment)},l(r){d=s(r,"P",{});var h=n(d);b=i(h,"Examples:"),h.forEach(o),u=f(r),v(m.$$.fragment,r)},m(r,h){_(r,d,h),e(d,b),_(r,u,h),M(m,r,h),y=!0},p:Ot,i(r){y||($(m.$$.fragment,r),y=!0)},o(r){T(m.$$.fragment,r),y=!1},d(r){r&&o(d),r&&o(u),N(m,r)}}}function Ed(F){let d,b,u,m,y;return{c(){d=a("p"),b=l("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=a("code"),m=l("Module"),y=l(`
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(r){d=s(r,"P",{});var h=n(d);b=i(h,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(h,"CODE",{});var R=n(u);m=i(R,"Module"),R.forEach(o),y=i(h,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),h.forEach(o)},m(r,h){_(r,d,h),e(d,b),e(d,u),e(u,m),e(d,y)},d(r){r&&o(d)}}}function xd(F){let d,b,u,m,y;return m=new Kt({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMEZsYXhSZWdOZXRGb3JJbWFnZUNsYXNzaWZpY2F0aW9uJTBBZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwamF4JTBBaW1wb3J0JTIwcmVxdWVzdHMlMEElMEF1cmwlMjAlM0QlMjAlMjJodHRwJTNBJTJGJTJGaW1hZ2VzLmNvY29kYXRhc2V0Lm9yZyUyRnZhbDIwMTclMkYwMDAwMDAwMzk3NjkuanBnJTIyJTBBaW1hZ2UlMjAlM0QlMjBJbWFnZS5vcGVuKHJlcXVlc3RzLmdldCh1cmwlMkMlMjBzdHJlYW0lM0RUcnVlKS5yYXcpJTBBJTBBaW1hZ2VfcHJvY2Vzc29yJTIwJTNEJTIwQXV0b0ltYWdlUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRnJlZ25ldC15LTA0MCUyMiklMEFtb2RlbCUyMCUzRCUyMEZsYXhSZWdOZXRGb3JJbWFnZUNsYXNzaWZpY2F0aW9uLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRnJlZ25ldC15LTA0MCUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjBpbWFnZV9wcm9jZXNzb3IoaW1hZ2VzJTNEaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMm5wJTIyKSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyklMEFsb2dpdHMlMjAlM0QlMjBvdXRwdXRzLmxvZ2l0cyUwQSUwQSUyMyUyMG1vZGVsJTIwcHJlZGljdHMlMjBvbmUlMjBvZiUyMHRoZSUyMDEwMDAlMjBJbWFnZU5ldCUyMGNsYXNzZXMlMEFwcmVkaWN0ZWRfY2xhc3NfaWR4JTIwJTNEJTIwamF4Lm51bXB5LmFyZ21heChsb2dpdHMlMkMlMjBheGlzJTNELTEpJTBBcHJpbnQoJTIyUHJlZGljdGVkJTIwY2xhc3MlM0ElMjIlMkMlMjBtb2RlbC5jb25maWcuaWQybGFiZWwlNUJwcmVkaWN0ZWRfY2xhc3NfaWR4Lml0ZW0oKSU1RCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, FlaxRegNetForImageClassification
<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> jax
<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/regnet-y-040&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxRegNetForImageClassification.from_pretrained(<span class="hljs-string">&quot;facebook/regnet-y-040&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = image_processor(images=image, return_tensors=<span class="hljs-string">&quot;np&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 = jax.numpy.argmax(logits, axis=-<span class="hljs-number">1</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[predicted_class_idx.item()])`}}),{c(){d=a("p"),b=l("Example:"),u=p(),w(m.$$.fragment)},l(r){d=s(r,"P",{});var h=n(d);b=i(h,"Example:"),h.forEach(o),u=f(r),v(m.$$.fragment,r)},m(r,h){_(r,d,h),e(d,b),_(r,u,h),M(m,r,h),y=!0},p:Ot,i(r){y||($(m.$$.fragment,r),y=!0)},o(r){T(m.$$.fragment,r),y=!1},d(r){r&&o(d),r&&o(u),N(m,r)}}}function Id(F){let d,b,u,m,y,r,h,R,Ms,xa,D,he,Io,He,$s,Co,Ts,Ia,me,Ns,De,Fs,Rs,Ca,eo,js,Ua,to,Js,ka,oo,Uo,Es,Za,ao,xs,Wa,ge,Le,Is,so,Cs,Us,ks,ue,Zs,Oe,Ws,Ps,Ke,As,Pa,E,Gs,et,zs,Bs,tt,Vs,Ss,ot,Xs,Ys,at,qs,Qs,Aa,L,_e,ko,st,Hs,Zo,Ds,Ga,no,Ls,za,nt,Ba,ye,q,ro,Os,Ks,rt,en,tn,lt,on,an,sn,lo,nn,io,rn,Va,co,ln,Sa,O,be,Wo,it,dn,Po,cn,Xa,C,dt,pn,K,fn,po,hn,mn,ct,gn,un,_n,ee,yn,fo,bn,wn,ho,vn,Mn,$n,we,Ya,te,ve,Ao,pt,Tn,Go,Nn,qa,B,ft,Fn,ht,Rn,mt,jn,Jn,En,Z,gt,xn,oe,In,mo,Cn,Un,zo,kn,Zn,Wn,Me,Pn,$e,Qa,ae,Te,Bo,ut,An,Vo,Gn,Ha,U,_t,zn,So,Bn,Vn,yt,Sn,bt,Xn,Yn,qn,W,wt,Qn,se,Hn,go,Dn,Ln,Xo,On,Kn,er,Ne,tr,Fe,Da,ne,Re,Yo,vt,or,qo,ar,La,V,Mt,sr,Qo,nr,rr,P,$t,lr,re,ir,uo,dr,cr,Ho,pr,fr,hr,je,mr,Je,Oa,le,Ee,Do,Tt,gr,Lo,ur,Ka,S,Nt,_r,Oo,yr,br,A,Ft,wr,ie,vr,_o,Mr,$r,Ko,Tr,Nr,Fr,xe,Rr,Ie,es,de,Ce,ea,Rt,jr,ta,Jr,ts,j,jt,Er,oa,xr,Ir,Jt,Cr,yo,Ur,kr,Zr,Et,Wr,xt,Pr,Ar,Gr,aa,zr,Br,X,sa,It,Vr,Sr,na,Ct,Xr,Yr,ra,Ut,qr,Qr,la,kt,Hr,Dr,G,Zt,Lr,ce,Or,ia,Kr,el,da,tl,ol,al,Ue,sl,ke,os,pe,Ze,ca,Wt,nl,pa,rl,as,J,Pt,ll,fa,il,dl,At,cl,bo,pl,fl,hl,Gt,ml,zt,gl,ul,_l,ha,yl,bl,Y,ma,Bt,wl,vl,ga,Vt,Ml,$l,ua,St,Tl,Nl,_a,Xt,Fl,Rl,z,Yt,jl,fe,Jl,ya,El,xl,ba,Il,Cl,Ul,We,kl,Pe,ss;return r=new H({}),He=new H({}),st=new H({}),nt=new yd({props:{pipeline:"image-classification"}}),it=new H({}),dt=new k({props:{name:"class transformers.RegNetConfig",anchor:"transformers.RegNetConfig",parameters:[{name:"num_channels",val:" = 3"},{name:"embedding_size",val:" = 32"},{name:"hidden_sizes",val:" = [128, 192, 512, 1088]"},{name:"depths",val:" = [2, 6, 12, 2]"},{name:"groups_width",val:" = 64"},{name:"layer_type",val:" = 'y'"},{name:"hidden_act",val:" = 'relu'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.RegNetConfig.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.RegNetConfig.embedding_size",description:`<strong>embedding_size</strong> (<code>int</code>, <em>optional</em>, defaults to 64) &#x2014;
Dimensionality (hidden size) for the embedding layer.`,name:"embedding_size"},{anchor:"transformers.RegNetConfig.hidden_sizes",description:`<strong>hidden_sizes</strong> (<code>List[int]</code>, <em>optional</em>, defaults to <code>[256, 512, 1024, 2048]</code>) &#x2014;
Dimensionality (hidden size) at each stage.`,name:"hidden_sizes"},{anchor:"transformers.RegNetConfig.depths",description:`<strong>depths</strong> (<code>List[int]</code>, <em>optional</em>, defaults to <code>[3, 4, 6, 3]</code>) &#x2014;
Depth (number of layers) for each stage.`,name:"depths"},{anchor:"transformers.RegNetConfig.layer_type",description:`<strong>layer_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;y&quot;</code>) &#x2014;
The layer to use, it can be either <code>&quot;x&quot; or </code>&#x201C;y&#x201D;<code>. An </code>x<code>layer is a ResNet&apos;s BottleNeck layer with</code>reduction<code>fixed to</code>1<code>. While a </code>y<code>layer is a</code>x\` but with squeeze and excitation. Please refer to the
paper for a detailed explanation of how these layers were constructed.`,name:"layer_type"},{anchor:"transformers.RegNetConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;relu&quot;</code>) &#x2014;
The non-linear activation function in each block. If string, <code>&quot;gelu&quot;</code>, <code>&quot;relu&quot;</code>, <code>&quot;selu&quot;</code> and <code>&quot;gelu_new&quot;</code>
are supported.`,name:"hidden_act"},{anchor:"transformers.RegNetConfig.downsample_in_first_stage",description:`<strong>downsample_in_first_stage</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, the first stage will downsample the inputs using a <code>stride</code> of 2.`,name:"downsample_in_first_stage"}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/regnet/configuration_regnet.py#L28"}}),we=new Lt({props:{anchor:"transformers.RegNetConfig.example",$$slots:{default:[bd]},$$scope:{ctx:F}}}),pt=new H({}),ft=new k({props:{name:"class transformers.RegNetModel",anchor:"transformers.RegNetModel",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.RegNetModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.0/en/model_doc/regnet#transformers.RegNetConfig">RegNetConfig</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.33.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.33.0/src/transformers/models/regnet/modeling_regnet.py#L331"}}),gt=new k({props:{name:"forward",anchor:"transformers.RegNetModel.forward",parameters:[{name:"pixel_values",val:": Tensor"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.RegNetModel.forward.pixel_values",description:`<strong>pixel_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Pixel values. Pixel values can be obtained using <a href="/docs/transformers/v4.33.0/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/v4.33.0/en/model_doc/donut#transformers.DonutFeatureExtractor.__call__">ConvNextImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.RegNetModel.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.RegNetModel.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.33.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.33.0/src/transformers/models/regnet/modeling_regnet.py#L341",returnDescription:`
<p>A <code>transformers.modeling_outputs.BaseModelOutputWithPoolingAndNoAttention</code> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.33.0/en/model_doc/regnet#transformers.RegNetConfig"
>RegNetConfig</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>
`}}),Me=new xo({props:{$$slots:{default:[wd]},$$scope:{ctx:F}}}),$e=new Lt({props:{anchor:"transformers.RegNetModel.forward.example",$$slots:{default:[vd]},$$scope:{ctx:F}}}),ut=new H({}),_t=new k({props:{name:"class transformers.RegNetForImageClassification",anchor:"transformers.RegNetForImageClassification",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.RegNetForImageClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.0/en/model_doc/regnet#transformers.RegNetConfig">RegNetConfig</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.33.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.33.0/src/transformers/models/regnet/modeling_regnet.py#L385"}}),wt=new k({props:{name:"forward",anchor:"transformers.RegNetForImageClassification.forward",parameters:[{name:"pixel_values",val:": typing.Optional[torch.FloatTensor] = None"},{name:"labels",val:": typing.Optional[torch.LongTensor] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.RegNetForImageClassification.forward.pixel_values",description:`<strong>pixel_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Pixel values. Pixel values can be obtained using <a href="/docs/transformers/v4.33.0/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/v4.33.0/en/model_doc/donut#transformers.DonutFeatureExtractor.__call__">ConvNextImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.RegNetForImageClassification.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.RegNetForImageClassification.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.33.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.RegNetForImageClassification.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for computing the image classification/regression loss. Indices should be in <code>[0, ..., config.num_labels - 1]</code>. If <code>config.num_labels &gt; 1</code> a classification loss is computed (Cross-Entropy).`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/regnet/modeling_regnet.py#L398",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.33.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.33.0/en/model_doc/regnet#transformers.RegNetConfig"
>RegNetConfig</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.33.0/en/main_classes/output#transformers.modeling_outputs.ImageClassifierOutputWithNoAttention"
>transformers.modeling_outputs.ImageClassifierOutputWithNoAttention</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Ne=new xo({props:{$$slots:{default:[Md]},$$scope:{ctx:F}}}),Fe=new Lt({props:{anchor:"transformers.RegNetForImageClassification.forward.example",$$slots:{default:[$d]},$$scope:{ctx:F}}}),vt=new H({}),Mt=new k({props:{name:"class transformers.TFRegNetModel",anchor:"transformers.TFRegNetModel",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFRegNetModel.This",description:`<strong>This</strong> model is a Tensorflow &#x2014;
[tf.keras.layers.Layer](https &#x2014;//<a href="http://www.tensorflow.org/api_docs/python/tf/keras/layers/Layer" rel="nofollow">www.tensorflow.org/api_docs/python/tf/keras/layers/Layer</a>) sub-class. Use it as a`,name:"This"},{anchor:"transformers.TFRegNetModel.regular",description:`<strong>regular</strong> Tensorflow Module and refer to the Tensorflow documentation for all matter related to general usage and &#x2014;
behavior. &#x2014;
config (<a href="/docs/transformers/v4.33.0/en/model_doc/regnet#transformers.RegNetConfig">RegNetConfig</a>): Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.33.0/en/main_classes/model#transformers.TFPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"regular"}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/regnet/modeling_tf_regnet.py#L380"}}),$t=new k({props:{name:"call",anchor:"transformers.TFRegNetModel.call",parameters:[{name:"pixel_values",val:": Tensor"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"training",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TFRegNetModel.call.pixel_values",description:`<strong>pixel_values</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Pixel values. Pixel values can be obtained using <a href="/docs/transformers/v4.33.0/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<code>ConveNextImageProcessor.__call__</code> for details.`,name:"pixel_values"},{anchor:"transformers.TFRegNetModel.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.`,name:"output_hidden_states"},{anchor:"transformers.TFRegNetModel.call.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.33.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.33.0/src/transformers/models/regnet/modeling_tf_regnet.py#L385",returnDescription:`
<p>A <code>transformers.modeling_tf_outputs.TFBaseModelOutputWithPoolingAndNoAttention</code> or a tuple of <code>tf.Tensor</code> (if
<code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various elements depending on the
configuration (<a
  href="/docs/transformers/v4.33.0/en/model_doc/regnet#transformers.RegNetConfig"
>RegNetConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>last_hidden_state</strong> (<code>tf.Tensor</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>tf.Tensor</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(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, 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_tf_outputs.TFBaseModelOutputWithPoolingAndNoAttention</code> or <code>tuple(tf.Tensor)</code></p>
`}}),je=new xo({props:{$$slots:{default:[Td]},$$scope:{ctx:F}}}),Je=new Lt({props:{anchor:"transformers.TFRegNetModel.call.example",$$slots:{default:[Nd]},$$scope:{ctx:F}}}),Tt=new H({}),Nt=new k({props:{name:"class transformers.TFRegNetForImageClassification",anchor:"transformers.TFRegNetForImageClassification",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFRegNetForImageClassification.This",description:`<strong>This</strong> model is a Tensorflow &#x2014;
[tf.keras.layers.Layer](https &#x2014;//<a href="http://www.tensorflow.org/api_docs/python/tf/keras/layers/Layer" rel="nofollow">www.tensorflow.org/api_docs/python/tf/keras/layers/Layer</a>) sub-class. Use it as a`,name:"This"},{anchor:"transformers.TFRegNetForImageClassification.regular",description:`<strong>regular</strong> Tensorflow Module and refer to the Tensorflow documentation for all matter related to general usage and &#x2014;
behavior. &#x2014;
config (<a href="/docs/transformers/v4.33.0/en/model_doc/regnet#transformers.RegNetConfig">RegNetConfig</a>): Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.33.0/en/main_classes/model#transformers.TFPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"regular"}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/regnet/modeling_tf_regnet.py#L429"}}),Ft=new k({props:{name:"call",anchor:"transformers.TFRegNetForImageClassification.call",parameters:[{name:"pixel_values",val:": typing.Optional[tensorflow.python.framework.ops.Tensor] = None"},{name:"labels",val:": typing.Optional[tensorflow.python.framework.ops.Tensor] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"training",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TFRegNetForImageClassification.call.pixel_values",description:`<strong>pixel_values</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Pixel values. Pixel values can be obtained using <a href="/docs/transformers/v4.33.0/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<code>ConveNextImageProcessor.__call__</code> for details.`,name:"pixel_values"},{anchor:"transformers.TFRegNetForImageClassification.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.`,name:"output_hidden_states"},{anchor:"transformers.TFRegNetForImageClassification.call.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.33.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.TFRegNetForImageClassification.call.labels",description:`<strong>labels</strong> (<code>tf.Tensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for computing the image classification/regression loss. Indices should be in <code>[0, ..., config.num_labels - 1]</code>. If <code>config.num_labels &gt; 1</code> a classification loss is computed (Cross-Entropy).`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/regnet/modeling_tf_regnet.py#L440",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.33.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.33.0/en/model_doc/regnet#transformers.RegNetConfig"
>RegNetConfig</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.33.0/en/main_classes/output#transformers.modeling_tf_outputs.TFSequenceClassifierOutput"
>transformers.modeling_tf_outputs.TFSequenceClassifierOutput</a> or <code>tuple(tf.Tensor)</code></p>
`}}),xe=new xo({props:{$$slots:{default:[Fd]},$$scope:{ctx:F}}}),Ie=new Lt({props:{anchor:"transformers.TFRegNetForImageClassification.call.example",$$slots:{default:[Rd]},$$scope:{ctx:F}}}),Rt=new H({}),jt=new k({props:{name:"class transformers.FlaxRegNetModel",anchor:"transformers.FlaxRegNetModel",parameters:[{name:"config",val:": RegNetConfig"},{name:"input_shape",val:" = (1, 224, 224, 3)"},{name:"seed",val:": int = 0"},{name:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"_do_init",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FlaxRegNetModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.0/en/model_doc/regnet#transformers.RegNetConfig">RegNetConfig</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.33.0/en/main_classes/model#transformers.FlaxPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"},{anchor:"transformers.FlaxRegNetModel.dtype",description:`<strong>dtype</strong> (<code>jax.numpy.dtype</code>, <em>optional</em>, defaults to <code>jax.numpy.float32</code>) &#x2014;
The data type of the computation. Can be one of <code>jax.numpy.float32</code>, <code>jax.numpy.float16</code> (on GPUs) and
<code>jax.numpy.bfloat16</code> (on TPUs).</p>
<p>This can be used to enable mixed-precision training or half-precision inference on GPUs or TPUs. If
specified all the computation will be performed with the given <code>dtype</code>.</p>
<p><strong>Note that this only specifies the dtype of the computation and does not influence the dtype of model
parameters.</strong></p>
<p>If you wish to change the dtype of the model parameters, see <a href="/docs/transformers/v4.33.0/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/v4.33.0/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/regnet/modeling_flax_regnet.py#L689"}}),Zt=new k({props:{name:"__call__",anchor:"transformers.FlaxRegNetModel.__call__",parameters:[{name:"pixel_values",val:""},{name:"params",val:": dict = None"},{name:"train",val:": bool = False"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/regnet/modeling_flax_regnet.py#L596",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.33.0/en/main_classes/output#transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPooling"
>transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPooling</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 (<code>&lt;class 'transformers.models.regnet.configuration_regnet.RegNetConfig'&gt;</code>) and inputs.</p>
<ul>
<li>
<p><strong>last_hidden_state</strong> (<code>jnp.ndarray</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>jnp.ndarray</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>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(jnp.ndarray)</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>jnp.ndarray</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(jnp.ndarray)</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>jnp.ndarray</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.33.0/en/main_classes/output#transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPooling"
>transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPooling</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Ue=new xo({props:{$$slots:{default:[jd]},$$scope:{ctx:F}}}),ke=new Lt({props:{anchor:"transformers.FlaxRegNetModel.__call__.example",$$slots:{default:[Jd]},$$scope:{ctx:F}}}),Wt=new H({}),Pt=new k({props:{name:"class transformers.FlaxRegNetForImageClassification",anchor:"transformers.FlaxRegNetForImageClassification",parameters:[{name:"config",val:": RegNetConfig"},{name:"input_shape",val:" = (1, 224, 224, 3)"},{name:"seed",val:": int = 0"},{name:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"_do_init",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FlaxRegNetForImageClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.0/en/model_doc/regnet#transformers.RegNetConfig">RegNetConfig</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.33.0/en/main_classes/model#transformers.FlaxPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"},{anchor:"transformers.FlaxRegNetForImageClassification.dtype",description:`<strong>dtype</strong> (<code>jax.numpy.dtype</code>, <em>optional</em>, defaults to <code>jax.numpy.float32</code>) &#x2014;
The data type of the computation. Can be one of <code>jax.numpy.float32</code>, <code>jax.numpy.float16</code> (on GPUs) and
<code>jax.numpy.bfloat16</code> (on TPUs).</p>
<p>This can be used to enable mixed-precision training or half-precision inference on GPUs or TPUs. If
specified all the computation will be performed with the given <code>dtype</code>.</p>
<p><strong>Note that this only specifies the dtype of the computation and does not influence the dtype of model
parameters.</strong></p>
<p>If you wish to change the dtype of the model parameters, see <a href="/docs/transformers/v4.33.0/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/v4.33.0/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/regnet/modeling_flax_regnet.py#L782"}}),Yt=new k({props:{name:"__call__",anchor:"transformers.FlaxRegNetForImageClassification.__call__",parameters:[{name:"pixel_values",val:""},{name:"params",val:": dict = None"},{name:"train",val:": bool = False"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/regnet/modeling_flax_regnet.py#L596",returnDescription:`
<p>A <code>transformers.modeling_flax_outputs.FlaxImageClassifierOutputWithNoAttention</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 (<code>&lt;class 'transformers.models.regnet.configuration_regnet.RegNetConfig'&gt;</code>) and inputs.</p>
<ul>
<li><strong>logits</strong> (<code>jnp.ndarray</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(jnp.ndarray)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when</li>
<li><strong><code>config.output_hidden_states=True</code>):</strong>
Tuple of <code>jnp.ndarray</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><code>transformers.modeling_flax_outputs.FlaxImageClassifierOutputWithNoAttention</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),We=new xo({props:{$$slots:{default:[Ed]},$$scope:{ctx:F}}}),Pe=new Lt({props:{anchor:"transformers.FlaxRegNetForImageClassification.__call__.example",$$slots:{default:[xd]},$$scope:{ctx:F}}}),{c(){d=a("meta"),b=p(),u=a("h1"),m=a("a"),y=a("span"),w(r.$$.fragment),h=p(),R=a("span"),Ms=l("RegNet"),xa=p(),D=a("h2"),he=a("a"),Io=a("span"),w(He.$$.fragment),$s=p(),Co=a("span"),Ts=l("Overview"),Ia=p(),me=a("p"),Ns=l("The RegNet model was proposed in "),De=a("a"),Fs=l("Designing Network Design Spaces"),Rs=l(" by Ilija Radosavovic, Raj Prateek Kosaraju, Ross Girshick, Kaiming He, Piotr Doll\xE1r."),Ca=p(),eo=a("p"),js=l("The authors design search spaces to perform Neural Architecture Search (NAS). They first start from a high dimensional search space and iteratively reduce the search space by empirically applying constraints based on the best-performing models sampled by the current search space."),Ua=p(),to=a("p"),Js=l("The abstract from the paper is the following:"),ka=p(),oo=a("p"),Uo=a("em"),Es=l("In this work, we present a new network design paradigm. Our goal is to help advance the understanding of network design and discover design principles that generalize across settings. Instead of focusing on designing individual network instances, we design network design spaces that parametrize populations of networks. The overall process is analogous to classic manual design of networks, but elevated to the design space level. Using our methodology we explore the structure aspect of network design and arrive at a low-dimensional design space consisting of simple, regular networks that we call RegNet. The core insight of the RegNet parametrization is surprisingly simple: widths and depths of good networks can be explained by a quantized linear function. We analyze the RegNet design space and arrive at interesting findings that do not match the current practice of network design. The RegNet design space provides simple and fast networks that work well across a wide range of flop regimes. Under comparable training settings and flops, the RegNet models outperform the popular EfficientNet models while being up to 5x faster on GPUs."),Za=p(),ao=a("p"),xs=l("Tips:"),Wa=p(),ge=a("ul"),Le=a("li"),Is=l("One can use "),so=a("a"),Cs=l("AutoImageProcessor"),Us=l(" to prepare images for the model."),ks=p(),ue=a("li"),Zs=l("The huge 10B model from "),Oe=a("a"),Ws=l("Self-supervised Pretraining of Visual Features in the Wild"),Ps=l(", trained on one billion Instagram images, is available on the "),Ke=a("a"),As=l("hub"),Pa=p(),E=a("p"),Gs=l("This model was contributed by "),et=a("a"),zs=l("Francesco"),Bs=l(`. The TensorFlow version of the model
was contributed by `),tt=a("a"),Vs=l("sayakpaul"),Ss=l(" and "),ot=a("a"),Xs=l("ariG23498"),Ys=l(`.
The original code can be found `),at=a("a"),qs=l("here"),Qs=l("."),Aa=p(),L=a("h2"),_e=a("a"),ko=a("span"),w(st.$$.fragment),Hs=p(),Zo=a("span"),Ds=l("Resources"),Ga=p(),no=a("p"),Ls=l("A list of official Hugging Face and community (indicated by \u{1F30E}) resources to help you get started with RegNet."),za=p(),w(nt.$$.fragment),Ba=p(),ye=a("ul"),q=a("li"),ro=a("a"),Os=l("RegNetForImageClassification"),Ks=l(" is supported by this "),rt=a("a"),en=l("example script"),tn=l(" and "),lt=a("a"),on=l("notebook"),an=l("."),sn=p(),lo=a("li"),nn=l("See also: "),io=a("a"),rn=l("Image classification task guide"),Va=p(),co=a("p"),ln=l("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."),Sa=p(),O=a("h2"),be=a("a"),Wo=a("span"),w(it.$$.fragment),dn=p(),Po=a("span"),cn=l("RegNetConfig"),Xa=p(),C=a("div"),w(dt.$$.fragment),pn=p(),K=a("p"),fn=l("This is the configuration class to store the configuration of a "),po=a("a"),hn=l("RegNetModel"),mn=l(`. It is used to instantiate a RegNet
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 RegNet
`),ct=a("a"),gn=l("facebook/regnet-y-040"),un=l(" architecture."),_n=p(),ee=a("p"),yn=l("Configuration objects inherit from "),fo=a("a"),bn=l("PretrainedConfig"),wn=l(` and can be used to control the model outputs. Read the
documentation from `),ho=a("a"),vn=l("PretrainedConfig"),Mn=l(" for more information."),$n=p(),w(we.$$.fragment),Ya=p(),te=a("h2"),ve=a("a"),Ao=a("span"),w(pt.$$.fragment),Tn=p(),Go=a("span"),Nn=l("RegNetModel"),qa=p(),B=a("div"),w(ft.$$.fragment),Fn=p(),ht=a("p"),Rn=l(`The bare RegNet model outputting raw features without any specific head on top.
This model is a PyTorch `),mt=a("a"),jn=l("torch.nn.Module"),Jn=l(` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),En=p(),Z=a("div"),w(gt.$$.fragment),xn=p(),oe=a("p"),In=l("The "),mo=a("a"),Cn=l("RegNetModel"),Un=l(" forward method, overrides the "),zo=a("code"),kn=l("__call__"),Zn=l(" special method."),Wn=p(),w(Me.$$.fragment),Pn=p(),w($e.$$.fragment),Qa=p(),ae=a("h2"),Te=a("a"),Bo=a("span"),w(ut.$$.fragment),An=p(),Vo=a("span"),Gn=l("RegNetForImageClassification"),Ha=p(),U=a("div"),w(_t.$$.fragment),zn=p(),So=a("p"),Bn=l(`RegNet Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`),Vn=p(),yt=a("p"),Sn=l("This model is a PyTorch "),bt=a("a"),Xn=l("torch.nn.Module"),Yn=l(` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),qn=p(),W=a("div"),w(wt.$$.fragment),Qn=p(),se=a("p"),Hn=l("The "),go=a("a"),Dn=l("RegNetForImageClassification"),Ln=l(" forward method, overrides the "),Xo=a("code"),On=l("__call__"),Kn=l(" special method."),er=p(),w(Ne.$$.fragment),tr=p(),w(Fe.$$.fragment),Da=p(),ne=a("h2"),Re=a("a"),Yo=a("span"),w(vt.$$.fragment),or=p(),qo=a("span"),ar=l("TFRegNetModel"),La=p(),V=a("div"),w(Mt.$$.fragment),sr=p(),Qo=a("p"),nr=l("The bare RegNet model outputting raw features without any specific head on top."),rr=p(),P=a("div"),w($t.$$.fragment),lr=p(),re=a("p"),ir=l("The "),uo=a("a"),dr=l("TFRegNetModel"),cr=l(" forward method, overrides the "),Ho=a("code"),pr=l("__call__"),fr=l(" special method."),hr=p(),w(je.$$.fragment),mr=p(),w(Je.$$.fragment),Oa=p(),le=a("h2"),Ee=a("a"),Do=a("span"),w(Tt.$$.fragment),gr=p(),Lo=a("span"),ur=l("TFRegNetForImageClassification"),Ka=p(),S=a("div"),w(Nt.$$.fragment),_r=p(),Oo=a("p"),yr=l(`RegNet Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`),br=p(),A=a("div"),w(Ft.$$.fragment),wr=p(),ie=a("p"),vr=l("The "),_o=a("a"),Mr=l("TFRegNetForImageClassification"),$r=l(" forward method, overrides the "),Ko=a("code"),Tr=l("__call__"),Nr=l(" special method."),Fr=p(),w(xe.$$.fragment),Rr=p(),w(Ie.$$.fragment),es=p(),de=a("h2"),Ce=a("a"),ea=a("span"),w(Rt.$$.fragment),jr=p(),ta=a("span"),Jr=l("FlaxRegNetModel"),ts=p(),j=a("div"),w(jt.$$.fragment),Er=p(),oa=a("p"),xr=l("The bare RegNet model outputting raw features without any specific head on top."),Ir=p(),Jt=a("p"),Cr=l("This model inherits from "),yo=a("a"),Ur=l("FlaxPreTrainedModel"),kr=l(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading, saving and converting weights from PyTorch models)`),Zr=p(),Et=a("p"),Wr=l("This model is also a Flax Linen "),xt=a("a"),Pr=l("flax.linen.Module"),Ar=l(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),Gr=p(),aa=a("p"),zr=l("Finally, this model supports inherent JAX features such as:"),Br=p(),X=a("ul"),sa=a("li"),It=a("a"),Vr=l("Just-In-Time (JIT) compilation"),Sr=p(),na=a("li"),Ct=a("a"),Xr=l("Automatic Differentiation"),Yr=p(),ra=a("li"),Ut=a("a"),qr=l("Vectorization"),Qr=p(),la=a("li"),kt=a("a"),Hr=l("Parallelization"),Dr=p(),G=a("div"),w(Zt.$$.fragment),Lr=p(),ce=a("p"),Or=l("The "),ia=a("code"),Kr=l("FlaxRegNetPreTrainedModel"),el=l(" forward method, overrides the "),da=a("code"),tl=l("__call__"),ol=l(" special method."),al=p(),w(Ue.$$.fragment),sl=p(),w(ke.$$.fragment),os=p(),pe=a("h2"),Ze=a("a"),ca=a("span"),w(Wt.$$.fragment),nl=p(),pa=a("span"),rl=l("FlaxRegNetForImageClassification"),as=p(),J=a("div"),w(Pt.$$.fragment),ll=p(),fa=a("p"),il=l(`RegNet Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`),dl=p(),At=a("p"),cl=l("This model inherits from "),bo=a("a"),pl=l("FlaxPreTrainedModel"),fl=l(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading, saving and converting weights from PyTorch models)`),hl=p(),Gt=a("p"),ml=l("This model is also a Flax Linen "),zt=a("a"),gl=l("flax.linen.Module"),ul=l(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),_l=p(),ha=a("p"),yl=l("Finally, this model supports inherent JAX features such as:"),bl=p(),Y=a("ul"),ma=a("li"),Bt=a("a"),wl=l("Just-In-Time (JIT) compilation"),vl=p(),ga=a("li"),Vt=a("a"),Ml=l("Automatic Differentiation"),$l=p(),ua=a("li"),St=a("a"),Tl=l("Vectorization"),Nl=p(),_a=a("li"),Xt=a("a"),Fl=l("Parallelization"),Rl=p(),z=a("div"),w(Yt.$$.fragment),jl=p(),fe=a("p"),Jl=l("The "),ya=a("code"),El=l("FlaxRegNetPreTrainedModel"),xl=l(" forward method, overrides the "),ba=a("code"),Il=l("__call__"),Cl=l(" special method."),Ul=p(),w(We.$$.fragment),kl=p(),w(Pe.$$.fragment),this.h()},l(t){const g=ud('[data-svelte="svelte-1phssyn"]',document.head);d=s(g,"META",{name:!0,content:!0}),g.forEach(o),b=f(t),u=s(t,"H1",{class:!0});var qt=n(u);m=s(qt,"A",{id:!0,class:!0,href:!0});var wa=n(m);y=s(wa,"SPAN",{});var va=n(y);v(r.$$.fragment,va),va.forEach(o),wa.forEach(o),h=f(qt),R=s(qt,"SPAN",{});var Ma=n(R);Ms=i(Ma,"RegNet"),Ma.forEach(o),qt.forEach(o),xa=f(t),D=s(t,"H2",{class:!0});var Qt=n(D);he=s(Qt,"A",{id:!0,class:!0,href:!0});var $a=n(he);Io=s($a,"SPAN",{});var Ta=n(Io);v(He.$$.fragment,Ta),Ta.forEach(o),$a.forEach(o),$s=f(Qt),Co=s(Qt,"SPAN",{});var Na=n(Co);Ts=i(Na,"Overview"),Na.forEach(o),Qt.forEach(o),Ia=f(t),me=s(t,"P",{});var Ht=n(me);Ns=i(Ht,"The RegNet model was proposed in "),De=s(Ht,"A",{href:!0,rel:!0});var Fa=n(De);Fs=i(Fa,"Designing Network Design Spaces"),Fa.forEach(o),Rs=i(Ht," by Ilija Radosavovic, Raj Prateek Kosaraju, Ross Girshick, Kaiming He, Piotr Doll\xE1r."),Ht.forEach(o),Ca=f(t),eo=s(t,"P",{});var Ra=n(eo);js=i(Ra,"The authors design search spaces to perform Neural Architecture Search (NAS). They first start from a high dimensional search space and iteratively reduce the search space by empirically applying constraints based on the best-performing models sampled by the current search space."),Ra.forEach(o),Ua=f(t),to=s(t,"P",{});var ja=n(to);Js=i(ja,"The abstract from the paper is the following:"),ja.forEach(o),ka=f(t),oo=s(t,"P",{});var Ja=n(oo);Uo=s(Ja,"EM",{});var Wl=n(Uo);Es=i(Wl,"In this work, we present a new network design paradigm. Our goal is to help advance the understanding of network design and discover design principles that generalize across settings. Instead of focusing on designing individual network instances, we design network design spaces that parametrize populations of networks. The overall process is analogous to classic manual design of networks, but elevated to the design space level. Using our methodology we explore the structure aspect of network design and arrive at a low-dimensional design space consisting of simple, regular networks that we call RegNet. The core insight of the RegNet parametrization is surprisingly simple: widths and depths of good networks can be explained by a quantized linear function. We analyze the RegNet design space and arrive at interesting findings that do not match the current practice of network design. The RegNet design space provides simple and fast networks that work well across a wide range of flop regimes. Under comparable training settings and flops, the RegNet models outperform the popular EfficientNet models while being up to 5x faster on GPUs."),Wl.forEach(o),Ja.forEach(o),Za=f(t),ao=s(t,"P",{});var Pl=n(ao);xs=i(Pl,"Tips:"),Pl.forEach(o),Wa=f(t),ge=s(t,"UL",{});var ns=n(ge);Le=s(ns,"LI",{});var rs=n(Le);Is=i(rs,"One can use "),so=s(rs,"A",{href:!0});var Al=n(so);Cs=i(Al,"AutoImageProcessor"),Al.forEach(o),Us=i(rs," to prepare images for the model."),rs.forEach(o),ks=f(ns),ue=s(ns,"LI",{});var Ea=n(ue);Zs=i(Ea,"The huge 10B model from "),Oe=s(Ea,"A",{href:!0,rel:!0});var Gl=n(Oe);Ws=i(Gl,"Self-supervised Pretraining of Visual Features in the Wild"),Gl.forEach(o),Ps=i(Ea,", trained on one billion Instagram images, is available on the "),Ke=s(Ea,"A",{href:!0,rel:!0});var zl=n(Ke);As=i(zl,"hub"),zl.forEach(o),Ea.forEach(o),ns.forEach(o),Pa=f(t),E=s(t,"P",{});var Q=n(E);Gs=i(Q,"This model was contributed by "),et=s(Q,"A",{href:!0,rel:!0});var Bl=n(et);zs=i(Bl,"Francesco"),Bl.forEach(o),Bs=i(Q,`. The TensorFlow version of the model
was contributed by `),tt=s(Q,"A",{href:!0,rel:!0});var Vl=n(tt);Vs=i(Vl,"sayakpaul"),Vl.forEach(o),Ss=i(Q," and "),ot=s(Q,"A",{href:!0,rel:!0});var Sl=n(ot);Xs=i(Sl,"ariG23498"),Sl.forEach(o),Ys=i(Q,`.
The original code can be found `),at=s(Q,"A",{href:!0,rel:!0});var Xl=n(at);qs=i(Xl,"here"),Xl.forEach(o),Qs=i(Q,"."),Q.forEach(o),Aa=f(t),L=s(t,"H2",{class:!0});var ls=n(L);_e=s(ls,"A",{id:!0,class:!0,href:!0});var Yl=n(_e);ko=s(Yl,"SPAN",{});var ql=n(ko);v(st.$$.fragment,ql),ql.forEach(o),Yl.forEach(o),Hs=f(ls),Zo=s(ls,"SPAN",{});var Ql=n(Zo);Ds=i(Ql,"Resources"),Ql.forEach(o),ls.forEach(o),Ga=f(t),no=s(t,"P",{});var Hl=n(no);Ls=i(Hl,"A list of official Hugging Face and community (indicated by \u{1F30E}) resources to help you get started with RegNet."),Hl.forEach(o),za=f(t),v(nt.$$.fragment,t),Ba=f(t),ye=s(t,"UL",{});var is=n(ye);q=s(is,"LI",{});var Dt=n(q);ro=s(Dt,"A",{href:!0});var Dl=n(ro);Os=i(Dl,"RegNetForImageClassification"),Dl.forEach(o),Ks=i(Dt," is supported by this "),rt=s(Dt,"A",{href:!0,rel:!0});var Ll=n(rt);en=i(Ll,"example script"),Ll.forEach(o),tn=i(Dt," and "),lt=s(Dt,"A",{href:!0,rel:!0});var Ol=n(lt);on=i(Ol,"notebook"),Ol.forEach(o),an=i(Dt,"."),Dt.forEach(o),sn=f(is),lo=s(is,"LI",{});var Zl=n(lo);nn=i(Zl,"See also: "),io=s(Zl,"A",{href:!0});var Kl=n(io);rn=i(Kl,"Image classification task guide"),Kl.forEach(o),Zl.forEach(o),is.forEach(o),Va=f(t),co=s(t,"P",{});var ei=n(co);ln=i(ei,"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."),ei.forEach(o),Sa=f(t),O=s(t,"H2",{class:!0});var ds=n(O);be=s(ds,"A",{id:!0,class:!0,href:!0});var ti=n(be);Wo=s(ti,"SPAN",{});var oi=n(Wo);v(it.$$.fragment,oi),oi.forEach(o),ti.forEach(o),dn=f(ds),Po=s(ds,"SPAN",{});var ai=n(Po);cn=i(ai,"RegNetConfig"),ai.forEach(o),ds.forEach(o),Xa=f(t),C=s(t,"DIV",{class:!0});var Ae=n(C);v(dt.$$.fragment,Ae),pn=f(Ae),K=s(Ae,"P",{});var wo=n(K);fn=i(wo,"This is the configuration class to store the configuration of a "),po=s(wo,"A",{href:!0});var si=n(po);hn=i(si,"RegNetModel"),si.forEach(o),mn=i(wo,`. It is used to instantiate a RegNet
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 RegNet
`),ct=s(wo,"A",{href:!0,rel:!0});var ni=n(ct);gn=i(ni,"facebook/regnet-y-040"),ni.forEach(o),un=i(wo," architecture."),wo.forEach(o),_n=f(Ae),ee=s(Ae,"P",{});var vo=n(ee);yn=i(vo,"Configuration objects inherit from "),fo=s(vo,"A",{href:!0});var ri=n(fo);bn=i(ri,"PretrainedConfig"),ri.forEach(o),wn=i(vo,` and can be used to control the model outputs. Read the
documentation from `),ho=s(vo,"A",{href:!0});var li=n(ho);vn=i(li,"PretrainedConfig"),li.forEach(o),Mn=i(vo," for more information."),vo.forEach(o),$n=f(Ae),v(we.$$.fragment,Ae),Ae.forEach(o),Ya=f(t),te=s(t,"H2",{class:!0});var cs=n(te);ve=s(cs,"A",{id:!0,class:!0,href:!0});var ii=n(ve);Ao=s(ii,"SPAN",{});var di=n(Ao);v(pt.$$.fragment,di),di.forEach(o),ii.forEach(o),Tn=f(cs),Go=s(cs,"SPAN",{});var ci=n(Go);Nn=i(ci,"RegNetModel"),ci.forEach(o),cs.forEach(o),qa=f(t),B=s(t,"DIV",{class:!0});var Mo=n(B);v(ft.$$.fragment,Mo),Fn=f(Mo),ht=s(Mo,"P",{});var ps=n(ht);Rn=i(ps,`The bare RegNet model outputting raw features without any specific head on top.
This model is a PyTorch `),mt=s(ps,"A",{href:!0,rel:!0});var pi=n(mt);jn=i(pi,"torch.nn.Module"),pi.forEach(o),Jn=i(ps,` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),ps.forEach(o),En=f(Mo),Z=s(Mo,"DIV",{class:!0});var Ge=n(Z);v(gt.$$.fragment,Ge),xn=f(Ge),oe=s(Ge,"P",{});var $o=n(oe);In=i($o,"The "),mo=s($o,"A",{href:!0});var fi=n(mo);Cn=i(fi,"RegNetModel"),fi.forEach(o),Un=i($o," forward method, overrides the "),zo=s($o,"CODE",{});var hi=n(zo);kn=i(hi,"__call__"),hi.forEach(o),Zn=i($o," special method."),$o.forEach(o),Wn=f(Ge),v(Me.$$.fragment,Ge),Pn=f(Ge),v($e.$$.fragment,Ge),Ge.forEach(o),Mo.forEach(o),Qa=f(t),ae=s(t,"H2",{class:!0});var fs=n(ae);Te=s(fs,"A",{id:!0,class:!0,href:!0});var mi=n(Te);Bo=s(mi,"SPAN",{});var gi=n(Bo);v(ut.$$.fragment,gi),gi.forEach(o),mi.forEach(o),An=f(fs),Vo=s(fs,"SPAN",{});var ui=n(Vo);Gn=i(ui,"RegNetForImageClassification"),ui.forEach(o),fs.forEach(o),Ha=f(t),U=s(t,"DIV",{class:!0});var ze=n(U);v(_t.$$.fragment,ze),zn=f(ze),So=s(ze,"P",{});var _i=n(So);Bn=i(_i,`RegNet Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`),_i.forEach(o),Vn=f(ze),yt=s(ze,"P",{});var hs=n(yt);Sn=i(hs,"This model is a PyTorch "),bt=s(hs,"A",{href:!0,rel:!0});var yi=n(bt);Xn=i(yi,"torch.nn.Module"),yi.forEach(o),Yn=i(hs,` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),hs.forEach(o),qn=f(ze),W=s(ze,"DIV",{class:!0});var Be=n(W);v(wt.$$.fragment,Be),Qn=f(Be),se=s(Be,"P",{});var To=n(se);Hn=i(To,"The "),go=s(To,"A",{href:!0});var bi=n(go);Dn=i(bi,"RegNetForImageClassification"),bi.forEach(o),Ln=i(To," forward method, overrides the "),Xo=s(To,"CODE",{});var wi=n(Xo);On=i(wi,"__call__"),wi.forEach(o),Kn=i(To," special method."),To.forEach(o),er=f(Be),v(Ne.$$.fragment,Be),tr=f(Be),v(Fe.$$.fragment,Be),Be.forEach(o),ze.forEach(o),Da=f(t),ne=s(t,"H2",{class:!0});var ms=n(ne);Re=s(ms,"A",{id:!0,class:!0,href:!0});var vi=n(Re);Yo=s(vi,"SPAN",{});var Mi=n(Yo);v(vt.$$.fragment,Mi),Mi.forEach(o),vi.forEach(o),or=f(ms),qo=s(ms,"SPAN",{});var $i=n(qo);ar=i($i,"TFRegNetModel"),$i.forEach(o),ms.forEach(o),La=f(t),V=s(t,"DIV",{class:!0});var No=n(V);v(Mt.$$.fragment,No),sr=f(No),Qo=s(No,"P",{});var Ti=n(Qo);nr=i(Ti,"The bare RegNet model outputting raw features without any specific head on top."),Ti.forEach(o),rr=f(No),P=s(No,"DIV",{class:!0});var Ve=n(P);v($t.$$.fragment,Ve),lr=f(Ve),re=s(Ve,"P",{});var Fo=n(re);ir=i(Fo,"The "),uo=s(Fo,"A",{href:!0});var Ni=n(uo);dr=i(Ni,"TFRegNetModel"),Ni.forEach(o),cr=i(Fo," forward method, overrides the "),Ho=s(Fo,"CODE",{});var Fi=n(Ho);pr=i(Fi,"__call__"),Fi.forEach(o),fr=i(Fo," special method."),Fo.forEach(o),hr=f(Ve),v(je.$$.fragment,Ve),mr=f(Ve),v(Je.$$.fragment,Ve),Ve.forEach(o),No.forEach(o),Oa=f(t),le=s(t,"H2",{class:!0});var gs=n(le);Ee=s(gs,"A",{id:!0,class:!0,href:!0});var Ri=n(Ee);Do=s(Ri,"SPAN",{});var ji=n(Do);v(Tt.$$.fragment,ji),ji.forEach(o),Ri.forEach(o),gr=f(gs),Lo=s(gs,"SPAN",{});var Ji=n(Lo);ur=i(Ji,"TFRegNetForImageClassification"),Ji.forEach(o),gs.forEach(o),Ka=f(t),S=s(t,"DIV",{class:!0});var Ro=n(S);v(Nt.$$.fragment,Ro),_r=f(Ro),Oo=s(Ro,"P",{});var Ei=n(Oo);yr=i(Ei,`RegNet Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`),Ei.forEach(o),br=f(Ro),A=s(Ro,"DIV",{class:!0});var Se=n(A);v(Ft.$$.fragment,Se),wr=f(Se),ie=s(Se,"P",{});var jo=n(ie);vr=i(jo,"The "),_o=s(jo,"A",{href:!0});var xi=n(_o);Mr=i(xi,"TFRegNetForImageClassification"),xi.forEach(o),$r=i(jo," forward method, overrides the "),Ko=s(jo,"CODE",{});var Ii=n(Ko);Tr=i(Ii,"__call__"),Ii.forEach(o),Nr=i(jo," special method."),jo.forEach(o),Fr=f(Se),v(xe.$$.fragment,Se),Rr=f(Se),v(Ie.$$.fragment,Se),Se.forEach(o),Ro.forEach(o),es=f(t),de=s(t,"H2",{class:!0});var us=n(de);Ce=s(us,"A",{id:!0,class:!0,href:!0});var Ci=n(Ce);ea=s(Ci,"SPAN",{});var Ui=n(ea);v(Rt.$$.fragment,Ui),Ui.forEach(o),Ci.forEach(o),jr=f(us),ta=s(us,"SPAN",{});var ki=n(ta);Jr=i(ki,"FlaxRegNetModel"),ki.forEach(o),us.forEach(o),ts=f(t),j=s(t,"DIV",{class:!0});var x=n(j);v(jt.$$.fragment,x),Er=f(x),oa=s(x,"P",{});var Zi=n(oa);xr=i(Zi,"The bare RegNet model outputting raw features without any specific head on top."),Zi.forEach(o),Ir=f(x),Jt=s(x,"P",{});var _s=n(Jt);Cr=i(_s,"This model inherits from "),yo=s(_s,"A",{href:!0});var Wi=n(yo);Ur=i(Wi,"FlaxPreTrainedModel"),Wi.forEach(o),kr=i(_s,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading, saving and converting weights from PyTorch models)`),_s.forEach(o),Zr=f(x),Et=s(x,"P",{});var ys=n(Et);Wr=i(ys,"This model is also a Flax Linen "),xt=s(ys,"A",{href:!0,rel:!0});var Pi=n(xt);Pr=i(Pi,"flax.linen.Module"),Pi.forEach(o),Ar=i(ys,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),ys.forEach(o),Gr=f(x),aa=s(x,"P",{});var Ai=n(aa);zr=i(Ai,"Finally, this model supports inherent JAX features such as:"),Ai.forEach(o),Br=f(x),X=s(x,"UL",{});var Xe=n(X);sa=s(Xe,"LI",{});var Gi=n(sa);It=s(Gi,"A",{href:!0,rel:!0});var zi=n(It);Vr=i(zi,"Just-In-Time (JIT) compilation"),zi.forEach(o),Gi.forEach(o),Sr=f(Xe),na=s(Xe,"LI",{});var Bi=n(na);Ct=s(Bi,"A",{href:!0,rel:!0});var Vi=n(Ct);Xr=i(Vi,"Automatic Differentiation"),Vi.forEach(o),Bi.forEach(o),Yr=f(Xe),ra=s(Xe,"LI",{});var Si=n(ra);Ut=s(Si,"A",{href:!0,rel:!0});var Xi=n(Ut);qr=i(Xi,"Vectorization"),Xi.forEach(o),Si.forEach(o),Qr=f(Xe),la=s(Xe,"LI",{});var Yi=n(la);kt=s(Yi,"A",{href:!0,rel:!0});var qi=n(kt);Hr=i(qi,"Parallelization"),qi.forEach(o),Yi.forEach(o),Xe.forEach(o),Dr=f(x),G=s(x,"DIV",{class:!0});var Ye=n(G);v(Zt.$$.fragment,Ye),Lr=f(Ye),ce=s(Ye,"P",{});var Jo=n(ce);Or=i(Jo,"The "),ia=s(Jo,"CODE",{});var Qi=n(ia);Kr=i(Qi,"FlaxRegNetPreTrainedModel"),Qi.forEach(o),el=i(Jo," forward method, overrides the "),da=s(Jo,"CODE",{});var Hi=n(da);tl=i(Hi,"__call__"),Hi.forEach(o),ol=i(Jo," special method."),Jo.forEach(o),al=f(Ye),v(Ue.$$.fragment,Ye),sl=f(Ye),v(ke.$$.fragment,Ye),Ye.forEach(o),x.forEach(o),os=f(t),pe=s(t,"H2",{class:!0});var bs=n(pe);Ze=s(bs,"A",{id:!0,class:!0,href:!0});var Di=n(Ze);ca=s(Di,"SPAN",{});var Li=n(ca);v(Wt.$$.fragment,Li),Li.forEach(o),Di.forEach(o),nl=f(bs),pa=s(bs,"SPAN",{});var Oi=n(pa);rl=i(Oi,"FlaxRegNetForImageClassification"),Oi.forEach(o),bs.forEach(o),as=f(t),J=s(t,"DIV",{class:!0});var I=n(J);v(Pt.$$.fragment,I),ll=f(I),fa=s(I,"P",{});var Ki=n(fa);il=i(Ki,`RegNet Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`),Ki.forEach(o),dl=f(I),At=s(I,"P",{});var ws=n(At);cl=i(ws,"This model inherits from "),bo=s(ws,"A",{href:!0});var ed=n(bo);pl=i(ed,"FlaxPreTrainedModel"),ed.forEach(o),fl=i(ws,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading, saving and converting weights from PyTorch models)`),ws.forEach(o),hl=f(I),Gt=s(I,"P",{});var vs=n(Gt);ml=i(vs,"This model is also a Flax Linen "),zt=s(vs,"A",{href:!0,rel:!0});var td=n(zt);gl=i(td,"flax.linen.Module"),td.forEach(o),ul=i(vs,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),vs.forEach(o),_l=f(I),ha=s(I,"P",{});var od=n(ha);yl=i(od,"Finally, this model supports inherent JAX features such as:"),od.forEach(o),bl=f(I),Y=s(I,"UL",{});var qe=n(Y);ma=s(qe,"LI",{});var ad=n(ma);Bt=s(ad,"A",{href:!0,rel:!0});var sd=n(Bt);wl=i(sd,"Just-In-Time (JIT) compilation"),sd.forEach(o),ad.forEach(o),vl=f(qe),ga=s(qe,"LI",{});var nd=n(ga);Vt=s(nd,"A",{href:!0,rel:!0});var rd=n(Vt);Ml=i(rd,"Automatic Differentiation"),rd.forEach(o),nd.forEach(o),$l=f(qe),ua=s(qe,"LI",{});var ld=n(ua);St=s(ld,"A",{href:!0,rel:!0});var id=n(St);Tl=i(id,"Vectorization"),id.forEach(o),ld.forEach(o),Nl=f(qe),_a=s(qe,"LI",{});var dd=n(_a);Xt=s(dd,"A",{href:!0,rel:!0});var cd=n(Xt);Fl=i(cd,"Parallelization"),cd.forEach(o),dd.forEach(o),qe.forEach(o),Rl=f(I),z=s(I,"DIV",{class:!0});var Qe=n(z);v(Yt.$$.fragment,Qe),jl=f(Qe),fe=s(Qe,"P",{});var Eo=n(fe);Jl=i(Eo,"The "),ya=s(Eo,"CODE",{});var pd=n(ya);El=i(pd,"FlaxRegNetPreTrainedModel"),pd.forEach(o),xl=i(Eo," forward method, overrides the "),ba=s(Eo,"CODE",{});var fd=n(ba);Il=i(fd,"__call__"),fd.forEach(o),Cl=i(Eo," special method."),Eo.forEach(o),Ul=f(Qe),v(We.$$.fragment,Qe),kl=f(Qe),v(Pe.$$.fragment,Qe),Qe.forEach(o),I.forEach(o),this.h()},h(){c(d,"name","hf:doc:metadata"),c(d,"content",JSON.stringify(Cd)),c(m,"id","regnet"),c(m,"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(m,"href","#regnet"),c(u,"class","relative group"),c(he,"id","overview"),c(he,"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(he,"href","#overview"),c(D,"class","relative group"),c(De,"href","https://arxiv.org/abs/2003.13678"),c(De,"rel","nofollow"),c(so,"href","/docs/transformers/v4.33.0/en/model_doc/auto#transformers.AutoImageProcessor"),c(Oe,"href","https://arxiv.org/abs/2103.01988"),c(Oe,"rel","nofollow"),c(Ke,"href","https://huggingface.co/facebook/regnet-y-10b-seer"),c(Ke,"rel","nofollow"),c(et,"href","https://huggingface.co/Francesco"),c(et,"rel","nofollow"),c(tt,"href","https://huggingface.com/sayakpaul"),c(tt,"rel","nofollow"),c(ot,"href","https://huggingface.com/ariG23498"),c(ot,"rel","nofollow"),c(at,"href","https://github.com/facebookresearch/pycls"),c(at,"rel","nofollow"),c(_e,"id","resources"),c(_e,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(_e,"href","#resources"),c(L,"class","relative group"),c(ro,"href","/docs/transformers/v4.33.0/en/model_doc/regnet#transformers.RegNetForImageClassification"),c(rt,"href","https://github.com/huggingface/transformers/tree/main/examples/pytorch/image-classification"),c(rt,"rel","nofollow"),c(lt,"href","https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/image_classification.ipynb"),c(lt,"rel","nofollow"),c(io,"href","../tasks/image_classification"),c(be,"id","transformers.RegNetConfig"),c(be,"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(be,"href","#transformers.RegNetConfig"),c(O,"class","relative group"),c(po,"href","/docs/transformers/v4.33.0/en/model_doc/regnet#transformers.RegNetModel"),c(ct,"href","https://huggingface.co/facebook/regnet-y-040"),c(ct,"rel","nofollow"),c(fo,"href","/docs/transformers/v4.33.0/en/main_classes/configuration#transformers.PretrainedConfig"),c(ho,"href","/docs/transformers/v4.33.0/en/main_classes/configuration#transformers.PretrainedConfig"),c(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ve,"id","transformers.RegNetModel"),c(ve,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(ve,"href","#transformers.RegNetModel"),c(te,"class","relative group"),c(mt,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),c(mt,"rel","nofollow"),c(mo,"href","/docs/transformers/v4.33.0/en/model_doc/regnet#transformers.RegNetModel"),c(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Te,"id","transformers.RegNetForImageClassification"),c(Te,"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(Te,"href","#transformers.RegNetForImageClassification"),c(ae,"class","relative group"),c(bt,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),c(bt,"rel","nofollow"),c(go,"href","/docs/transformers/v4.33.0/en/model_doc/regnet#transformers.RegNetForImageClassification"),c(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Re,"id","transformers.TFRegNetModel"),c(Re,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(Re,"href","#transformers.TFRegNetModel"),c(ne,"class","relative group"),c(uo,"href","/docs/transformers/v4.33.0/en/model_doc/regnet#transformers.TFRegNetModel"),c(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Ee,"id","transformers.TFRegNetForImageClassification"),c(Ee,"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(Ee,"href","#transformers.TFRegNetForImageClassification"),c(le,"class","relative group"),c(_o,"href","/docs/transformers/v4.33.0/en/model_doc/regnet#transformers.TFRegNetForImageClassification"),c(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Ce,"id","transformers.FlaxRegNetModel"),c(Ce,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(Ce,"href","#transformers.FlaxRegNetModel"),c(de,"class","relative group"),c(yo,"href","/docs/transformers/v4.33.0/en/main_classes/model#transformers.FlaxPreTrainedModel"),c(xt,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),c(xt,"rel","nofollow"),c(It,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),c(It,"rel","nofollow"),c(Ct,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),c(Ct,"rel","nofollow"),c(Ut,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),c(Ut,"rel","nofollow"),c(kt,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),c(kt,"rel","nofollow"),c(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Ze,"id","transformers.FlaxRegNetForImageClassification"),c(Ze,"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(Ze,"href","#transformers.FlaxRegNetForImageClassification"),c(pe,"class","relative group"),c(bo,"href","/docs/transformers/v4.33.0/en/main_classes/model#transformers.FlaxPreTrainedModel"),c(zt,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),c(zt,"rel","nofollow"),c(Bt,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),c(Bt,"rel","nofollow"),c(Vt,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),c(Vt,"rel","nofollow"),c(St,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),c(St,"rel","nofollow"),c(Xt,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),c(Xt,"rel","nofollow"),c(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(t,g){e(document.head,d),_(t,b,g),_(t,u,g),e(u,m),e(m,y),M(r,y,null),e(u,h),e(u,R),e(R,Ms),_(t,xa,g),_(t,D,g),e(D,he),e(he,Io),M(He,Io,null),e(D,$s),e(D,Co),e(Co,Ts),_(t,Ia,g),_(t,me,g),e(me,Ns),e(me,De),e(De,Fs),e(me,Rs),_(t,Ca,g),_(t,eo,g),e(eo,js),_(t,Ua,g),_(t,to,g),e(to,Js),_(t,ka,g),_(t,oo,g),e(oo,Uo),e(Uo,Es),_(t,Za,g),_(t,ao,g),e(ao,xs),_(t,Wa,g),_(t,ge,g),e(ge,Le),e(Le,Is),e(Le,so),e(so,Cs),e(Le,Us),e(ge,ks),e(ge,ue),e(ue,Zs),e(ue,Oe),e(Oe,Ws),e(ue,Ps),e(ue,Ke),e(Ke,As),_(t,Pa,g),_(t,E,g),e(E,Gs),e(E,et),e(et,zs),e(E,Bs),e(E,tt),e(tt,Vs),e(E,Ss),e(E,ot),e(ot,Xs),e(E,Ys),e(E,at),e(at,qs),e(E,Qs),_(t,Aa,g),_(t,L,g),e(L,_e),e(_e,ko),M(st,ko,null),e(L,Hs),e(L,Zo),e(Zo,Ds),_(t,Ga,g),_(t,no,g),e(no,Ls),_(t,za,g),M(nt,t,g),_(t,Ba,g),_(t,ye,g),e(ye,q),e(q,ro),e(ro,Os),e(q,Ks),e(q,rt),e(rt,en),e(q,tn),e(q,lt),e(lt,on),e(q,an),e(ye,sn),e(ye,lo),e(lo,nn),e(lo,io),e(io,rn),_(t,Va,g),_(t,co,g),e(co,ln),_(t,Sa,g),_(t,O,g),e(O,be),e(be,Wo),M(it,Wo,null),e(O,dn),e(O,Po),e(Po,cn),_(t,Xa,g),_(t,C,g),M(dt,C,null),e(C,pn),e(C,K),e(K,fn),e(K,po),e(po,hn),e(K,mn),e(K,ct),e(ct,gn),e(K,un),e(C,_n),e(C,ee),e(ee,yn),e(ee,fo),e(fo,bn),e(ee,wn),e(ee,ho),e(ho,vn),e(ee,Mn),e(C,$n),M(we,C,null),_(t,Ya,g),_(t,te,g),e(te,ve),e(ve,Ao),M(pt,Ao,null),e(te,Tn),e(te,Go),e(Go,Nn),_(t,qa,g),_(t,B,g),M(ft,B,null),e(B,Fn),e(B,ht),e(ht,Rn),e(ht,mt),e(mt,jn),e(ht,Jn),e(B,En),e(B,Z),M(gt,Z,null),e(Z,xn),e(Z,oe),e(oe,In),e(oe,mo),e(mo,Cn),e(oe,Un),e(oe,zo),e(zo,kn),e(oe,Zn),e(Z,Wn),M(Me,Z,null),e(Z,Pn),M($e,Z,null),_(t,Qa,g),_(t,ae,g),e(ae,Te),e(Te,Bo),M(ut,Bo,null),e(ae,An),e(ae,Vo),e(Vo,Gn),_(t,Ha,g),_(t,U,g),M(_t,U,null),e(U,zn),e(U,So),e(So,Bn),e(U,Vn),e(U,yt),e(yt,Sn),e(yt,bt),e(bt,Xn),e(yt,Yn),e(U,qn),e(U,W),M(wt,W,null),e(W,Qn),e(W,se),e(se,Hn),e(se,go),e(go,Dn),e(se,Ln),e(se,Xo),e(Xo,On),e(se,Kn),e(W,er),M(Ne,W,null),e(W,tr),M(Fe,W,null),_(t,Da,g),_(t,ne,g),e(ne,Re),e(Re,Yo),M(vt,Yo,null),e(ne,or),e(ne,qo),e(qo,ar),_(t,La,g),_(t,V,g),M(Mt,V,null),e(V,sr),e(V,Qo),e(Qo,nr),e(V,rr),e(V,P),M($t,P,null),e(P,lr),e(P,re),e(re,ir),e(re,uo),e(uo,dr),e(re,cr),e(re,Ho),e(Ho,pr),e(re,fr),e(P,hr),M(je,P,null),e(P,mr),M(Je,P,null),_(t,Oa,g),_(t,le,g),e(le,Ee),e(Ee,Do),M(Tt,Do,null),e(le,gr),e(le,Lo),e(Lo,ur),_(t,Ka,g),_(t,S,g),M(Nt,S,null),e(S,_r),e(S,Oo),e(Oo,yr),e(S,br),e(S,A),M(Ft,A,null),e(A,wr),e(A,ie),e(ie,vr),e(ie,_o),e(_o,Mr),e(ie,$r),e(ie,Ko),e(Ko,Tr),e(ie,Nr),e(A,Fr),M(xe,A,null),e(A,Rr),M(Ie,A,null),_(t,es,g),_(t,de,g),e(de,Ce),e(Ce,ea),M(Rt,ea,null),e(de,jr),e(de,ta),e(ta,Jr),_(t,ts,g),_(t,j,g),M(jt,j,null),e(j,Er),e(j,oa),e(oa,xr),e(j,Ir),e(j,Jt),e(Jt,Cr),e(Jt,yo),e(yo,Ur),e(Jt,kr),e(j,Zr),e(j,Et),e(Et,Wr),e(Et,xt),e(xt,Pr),e(Et,Ar),e(j,Gr),e(j,aa),e(aa,zr),e(j,Br),e(j,X),e(X,sa),e(sa,It),e(It,Vr),e(X,Sr),e(X,na),e(na,Ct),e(Ct,Xr),e(X,Yr),e(X,ra),e(ra,Ut),e(Ut,qr),e(X,Qr),e(X,la),e(la,kt),e(kt,Hr),e(j,Dr),e(j,G),M(Zt,G,null),e(G,Lr),e(G,ce),e(ce,Or),e(ce,ia),e(ia,Kr),e(ce,el),e(ce,da),e(da,tl),e(ce,ol),e(G,al),M(Ue,G,null),e(G,sl),M(ke,G,null),_(t,os,g),_(t,pe,g),e(pe,Ze),e(Ze,ca),M(Wt,ca,null),e(pe,nl),e(pe,pa),e(pa,rl),_(t,as,g),_(t,J,g),M(Pt,J,null),e(J,ll),e(J,fa),e(fa,il),e(J,dl),e(J,At),e(At,cl),e(At,bo),e(bo,pl),e(At,fl),e(J,hl),e(J,Gt),e(Gt,ml),e(Gt,zt),e(zt,gl),e(Gt,ul),e(J,_l),e(J,ha),e(ha,yl),e(J,bl),e(J,Y),e(Y,ma),e(ma,Bt),e(Bt,wl),e(Y,vl),e(Y,ga),e(ga,Vt),e(Vt,Ml),e(Y,$l),e(Y,ua),e(ua,St),e(St,Tl),e(Y,Nl),e(Y,_a),e(_a,Xt),e(Xt,Fl),e(J,Rl),e(J,z),M(Yt,z,null),e(z,jl),e(z,fe),e(fe,Jl),e(fe,ya),e(ya,El),e(fe,xl),e(fe,ba),e(ba,Il),e(fe,Cl),e(z,Ul),M(We,z,null),e(z,kl),M(Pe,z,null),ss=!0},p(t,[g]){const qt={};g&2&&(qt.$$scope={dirty:g,ctx:t}),we.$set(qt);const wa={};g&2&&(wa.$$scope={dirty:g,ctx:t}),Me.$set(wa);const va={};g&2&&(va.$$scope={dirty:g,ctx:t}),$e.$set(va);const Ma={};g&2&&(Ma.$$scope={dirty:g,ctx:t}),Ne.$set(Ma);const Qt={};g&2&&(Qt.$$scope={dirty:g,ctx:t}),Fe.$set(Qt);const $a={};g&2&&($a.$$scope={dirty:g,ctx:t}),je.$set($a);const Ta={};g&2&&(Ta.$$scope={dirty:g,ctx:t}),Je.$set(Ta);const Na={};g&2&&(Na.$$scope={dirty:g,ctx:t}),xe.$set(Na);const Ht={};g&2&&(Ht.$$scope={dirty:g,ctx:t}),Ie.$set(Ht);const Fa={};g&2&&(Fa.$$scope={dirty:g,ctx:t}),Ue.$set(Fa);const Ra={};g&2&&(Ra.$$scope={dirty:g,ctx:t}),ke.$set(Ra);const ja={};g&2&&(ja.$$scope={dirty:g,ctx:t}),We.$set(ja);const Ja={};g&2&&(Ja.$$scope={dirty:g,ctx:t}),Pe.$set(Ja)},i(t){ss||($(r.$$.fragment,t),$(He.$$.fragment,t),$(st.$$.fragment,t),$(nt.$$.fragment,t),$(it.$$.fragment,t),$(dt.$$.fragment,t),$(we.$$.fragment,t),$(pt.$$.fragment,t),$(ft.$$.fragment,t),$(gt.$$.fragment,t),$(Me.$$.fragment,t),$($e.$$.fragment,t),$(ut.$$.fragment,t),$(_t.$$.fragment,t),$(wt.$$.fragment,t),$(Ne.$$.fragment,t),$(Fe.$$.fragment,t),$(vt.$$.fragment,t),$(Mt.$$.fragment,t),$($t.$$.fragment,t),$(je.$$.fragment,t),$(Je.$$.fragment,t),$(Tt.$$.fragment,t),$(Nt.$$.fragment,t),$(Ft.$$.fragment,t),$(xe.$$.fragment,t),$(Ie.$$.fragment,t),$(Rt.$$.fragment,t),$(jt.$$.fragment,t),$(Zt.$$.fragment,t),$(Ue.$$.fragment,t),$(ke.$$.fragment,t),$(Wt.$$.fragment,t),$(Pt.$$.fragment,t),$(Yt.$$.fragment,t),$(We.$$.fragment,t),$(Pe.$$.fragment,t),ss=!0)},o(t){T(r.$$.fragment,t),T(He.$$.fragment,t),T(st.$$.fragment,t),T(nt.$$.fragment,t),T(it.$$.fragment,t),T(dt.$$.fragment,t),T(we.$$.fragment,t),T(pt.$$.fragment,t),T(ft.$$.fragment,t),T(gt.$$.fragment,t),T(Me.$$.fragment,t),T($e.$$.fragment,t),T(ut.$$.fragment,t),T(_t.$$.fragment,t),T(wt.$$.fragment,t),T(Ne.$$.fragment,t),T(Fe.$$.fragment,t),T(vt.$$.fragment,t),T(Mt.$$.fragment,t),T($t.$$.fragment,t),T(je.$$.fragment,t),T(Je.$$.fragment,t),T(Tt.$$.fragment,t),T(Nt.$$.fragment,t),T(Ft.$$.fragment,t),T(xe.$$.fragment,t),T(Ie.$$.fragment,t),T(Rt.$$.fragment,t),T(jt.$$.fragment,t),T(Zt.$$.fragment,t),T(Ue.$$.fragment,t),T(ke.$$.fragment,t),T(Wt.$$.fragment,t),T(Pt.$$.fragment,t),T(Yt.$$.fragment,t),T(We.$$.fragment,t),T(Pe.$$.fragment,t),ss=!1},d(t){o(d),t&&o(b),t&&o(u),N(r),t&&o(xa),t&&o(D),N(He),t&&o(Ia),t&&o(me),t&&o(Ca),t&&o(eo),t&&o(Ua),t&&o(to),t&&o(ka),t&&o(oo),t&&o(Za),t&&o(ao),t&&o(Wa),t&&o(ge),t&&o(Pa),t&&o(E),t&&o(Aa),t&&o(L),N(st),t&&o(Ga),t&&o(no),t&&o(za),N(nt,t),t&&o(Ba),t&&o(ye),t&&o(Va),t&&o(co),t&&o(Sa),t&&o(O),N(it),t&&o(Xa),t&&o(C),N(dt),N(we),t&&o(Ya),t&&o(te),N(pt),t&&o(qa),t&&o(B),N(ft),N(gt),N(Me),N($e),t&&o(Qa),t&&o(ae),N(ut),t&&o(Ha),t&&o(U),N(_t),N(wt),N(Ne),N(Fe),t&&o(Da),t&&o(ne),N(vt),t&&o(La),t&&o(V),N(Mt),N($t),N(je),N(Je),t&&o(Oa),t&&o(le),N(Tt),t&&o(Ka),t&&o(S),N(Nt),N(Ft),N(xe),N(Ie),t&&o(es),t&&o(de),N(Rt),t&&o(ts),t&&o(j),N(jt),N(Zt),N(Ue),N(ke),t&&o(os),t&&o(pe),N(Wt),t&&o(as),t&&o(J),N(Pt),N(Yt),N(We),N(Pe)}}}const Cd={local:"regnet",sections:[{local:"overview",title:"Overview"},{local:"resources",title:"Resources"},{local:"transformers.RegNetConfig",title:"RegNetConfig"},{local:"transformers.RegNetModel",title:"RegNetModel"},{local:"transformers.RegNetForImageClassification",title:"RegNetForImageClassification"},{local:"transformers.TFRegNetModel",title:"TFRegNetModel"},{local:"transformers.TFRegNetForImageClassification",title:"TFRegNetForImageClassification"},{local:"transformers.FlaxRegNetModel",title:"FlaxRegNetModel"},{local:"transformers.FlaxRegNetForImageClassification",title:"FlaxRegNetForImageClassification"}],title:"RegNet"};function Ud(F){return _d(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Bd extends hd{constructor(d){super();md(this,d,Ud,Id,gd,{})}}export{Bd as default,Cd as metadata};
