import{S as fd,i as md,s as gd,e as a,k as p,w as v,t as l,M as ud,c as s,d as o,m as h,a as n,x as w,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 Dt}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(),v(m.$$.fragment)},l(r){d=s(r,"P",{});var f=n(d);b=i(f,"Example:"),f.forEach(o),u=h(r),w(m.$$.fragment,r)},m(r,f){_(r,d,f),e(d,b),_(r,u,f),M(m,r,f),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 vd(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 f=n(d);b=i(f,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(f,"CODE",{});var R=n(u);m=i(R,"Module"),R.forEach(o),y=i(f,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),f.forEach(o)},m(r,f){_(r,d,f),e(d,b),e(d,u),e(u,m),e(d,y)},d(r){r&&o(d)}}}function wd(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(),v(m.$$.fragment)},l(r){d=s(r,"P",{});var f=n(d);b=i(f,"Example:"),f.forEach(o),u=h(r),w(m.$$.fragment,r)},m(r,f){_(r,d,f),e(d,b),_(r,u,f),M(m,r,f),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 f=n(d);b=i(f,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(f,"CODE",{});var R=n(u);m=i(R,"Module"),R.forEach(o),y=i(f,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),f.forEach(o)},m(r,f){_(r,d,f),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(),v(m.$$.fragment)},l(r){d=s(r,"P",{});var f=n(d);b=i(f,"Example:"),f.forEach(o),u=h(r),w(m.$$.fragment,r)},m(r,f){_(r,d,f),e(d,b),_(r,u,f),M(m,r,f),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 f=n(d);b=i(f,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(f,"CODE",{});var R=n(u);m=i(R,"Module"),R.forEach(o),y=i(f,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),f.forEach(o)},m(r,f){_(r,d,f),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(),v(m.$$.fragment)},l(r){d=s(r,"P",{});var f=n(d);b=i(f,"Example:"),f.forEach(o),u=h(r),w(m.$$.fragment,r)},m(r,f){_(r,d,f),e(d,b),_(r,u,f),M(m,r,f),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 f=n(d);b=i(f,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(f,"CODE",{});var R=n(u);m=i(R,"Module"),R.forEach(o),y=i(f,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),f.forEach(o)},m(r,f){_(r,d,f),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(),v(m.$$.fragment)},l(r){d=s(r,"P",{});var f=n(d);b=i(f,"Example:"),f.forEach(o),u=h(r),w(m.$$.fragment,r)},m(r,f){_(r,d,f),e(d,b),_(r,u,f),M(m,r,f),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 f=n(d);b=i(f,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(f,"CODE",{});var R=n(u);m=i(R,"Module"),R.forEach(o),y=i(f,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),f.forEach(o)},m(r,f){_(r,d,f),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(),v(m.$$.fragment)},l(r){d=s(r,"P",{});var f=n(d);b=i(f,"Examples:"),f.forEach(o),u=h(r),w(m.$$.fragment,r)},m(r,f){_(r,d,f),e(d,b),_(r,u,f),M(m,r,f),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 f=n(d);b=i(f,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(f,"CODE",{});var R=n(u);m=i(R,"Module"),R.forEach(o),y=i(f,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),f.forEach(o)},m(r,f){_(r,d,f),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(),v(m.$$.fragment)},l(r){d=s(r,"P",{});var f=n(d);b=i(f,"Example:"),f.forEach(o),u=h(r),w(m.$$.fragment,r)},m(r,f){_(r,d,f),e(d,b),_(r,u,f),M(m,r,f),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,f,R,Ms,xa,L,fe,Io,He,$s,Co,Ts,Ia,me,Ns,Le,Fs,Rs,Ca,eo,js,Ua,to,Js,ka,oo,Uo,Es,Za,ao,xs,Wa,ge,De,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,D,_e,ko,st,Hs,Zo,Ls,Ga,no,Ds,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,hn,po,fn,mn,ct,gn,un,_n,ee,yn,ho,bn,vn,fo,wn,Mn,$n,ve,Ya,te,we,Ao,pt,Tn,Go,Nn,qa,B,ht,Fn,ft,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,vt,Qn,se,Hn,go,Ln,Dn,Xo,On,Kn,er,Ne,tr,Fe,La,ne,Re,Yo,wt,or,qo,ar,Da,V,Mt,sr,Qo,nr,rr,P,$t,lr,re,ir,uo,dr,cr,Ho,pr,hr,fr,je,mr,Je,Oa,le,Ee,Lo,Tt,gr,Do,ur,Ka,S,Nt,_r,Oo,yr,br,A,Ft,vr,ie,wr,_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,Lr,G,Zt,Dr,ce,Or,ia,Kr,el,da,tl,ol,al,Ue,sl,ke,os,pe,Ze,ca,Wt,nl,pa,rl,as,J,Pt,ll,ha,il,dl,At,cl,bo,pl,hl,fl,Gt,ml,zt,gl,ul,_l,fa,yl,bl,Y,ma,Bt,vl,wl,ga,Vt,Ml,$l,ua,St,Tl,Nl,_a,Xt,Fl,Rl,z,Yt,jl,he,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.30.0/src/transformers/models/regnet/configuration_regnet.py#L28"}}),ve=new Dt({props:{anchor:"transformers.RegNetConfig.example",$$slots:{default:[bd]},$$scope:{ctx:F}}}),pt=new H({}),ht=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.30.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.30.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.30.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.30.0/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/v4.30.0/en/model_doc/layoutlmv2#transformers.LayoutLMv2FeatureExtractor.__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.30.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.30.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.30.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:[vd]},$$scope:{ctx:F}}}),$e=new Dt({props:{anchor:"transformers.RegNetModel.forward.example",$$slots:{default:[wd]},$$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.30.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.30.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.30.0/src/transformers/models/regnet/modeling_regnet.py#L385"}}),vt=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.30.0/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/v4.30.0/en/model_doc/layoutlmv2#transformers.LayoutLMv2FeatureExtractor.__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.30.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.30.0/src/transformers/models/regnet/modeling_regnet.py#L398",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.30.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.30.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.30.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 Dt({props:{anchor:"transformers.RegNetForImageClassification.forward.example",$$slots:{default:[$d]},$$scope:{ctx:F}}}),wt=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.30.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.30.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.30.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:" = 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.30.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.30.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.30.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.30.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 Dt({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.30.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.30.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.30.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:": Tensor = None"},{name:"labels",val:": Tensor = None"},{name:"output_hidden_states",val:": bool = None"},{name:"return_dict",val:": bool = None"},{name:"training",val:" = 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.30.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.30.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.30.0/src/transformers/models/regnet/modeling_tf_regnet.py#L440",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.30.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.30.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.30.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 Dt({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.30.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.30.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.30.0/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/v4.30.0/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/v4.30.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.30.0/src/transformers/models/regnet/modeling_flax_regnet.py#L596",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.30.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.30.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 Dt({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.30.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.30.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.30.0/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/v4.30.0/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/v4.30.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.30.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 Dt({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"),v(r.$$.fragment),f=p(),R=a("span"),Ms=l("RegNet"),xa=p(),L=a("h2"),fe=a("a"),Io=a("span"),v(He.$$.fragment),$s=p(),Co=a("span"),Ts=l("Overview"),Ia=p(),me=a("p"),Ns=l("The RegNet model was proposed in "),Le=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"),De=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(),D=a("h2"),_e=a("a"),ko=a("span"),v(st.$$.fragment),Hs=p(),Zo=a("span"),Ls=l("Resources"),Ga=p(),no=a("p"),Ds=l("A list of official Hugging Face and community (indicated by \u{1F30E}) resources to help you get started with RegNet."),za=p(),v(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"),v(it.$$.fragment),dn=p(),Po=a("span"),cn=l("RegNetConfig"),Xa=p(),C=a("div"),v(dt.$$.fragment),pn=p(),K=a("p"),hn=l("This is the configuration class to store the configuration of a "),po=a("a"),fn=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 "),ho=a("a"),bn=l("PretrainedConfig"),vn=l(` and can be used to control the model outputs. Read the
documentation from `),fo=a("a"),wn=l("PretrainedConfig"),Mn=l(" for more information."),$n=p(),v(ve.$$.fragment),Ya=p(),te=a("h2"),we=a("a"),Ao=a("span"),v(pt.$$.fragment),Tn=p(),Go=a("span"),Nn=l("RegNetModel"),qa=p(),B=a("div"),v(ht.$$.fragment),Fn=p(),ft=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"),v(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(),v(Me.$$.fragment),Pn=p(),v($e.$$.fragment),Qa=p(),ae=a("h2"),Te=a("a"),Bo=a("span"),v(ut.$$.fragment),An=p(),Vo=a("span"),Gn=l("RegNetForImageClassification"),Ha=p(),U=a("div"),v(_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"),v(vt.$$.fragment),Qn=p(),se=a("p"),Hn=l("The "),go=a("a"),Ln=l("RegNetForImageClassification"),Dn=l(" forward method, overrides the "),Xo=a("code"),On=l("__call__"),Kn=l(" special method."),er=p(),v(Ne.$$.fragment),tr=p(),v(Fe.$$.fragment),La=p(),ne=a("h2"),Re=a("a"),Yo=a("span"),v(wt.$$.fragment),or=p(),qo=a("span"),ar=l("TFRegNetModel"),Da=p(),V=a("div"),v(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"),v($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__"),hr=l(" special method."),fr=p(),v(je.$$.fragment),mr=p(),v(Je.$$.fragment),Oa=p(),le=a("h2"),Ee=a("a"),Lo=a("span"),v(Tt.$$.fragment),gr=p(),Do=a("span"),ur=l("TFRegNetForImageClassification"),Ka=p(),S=a("div"),v(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"),v(Ft.$$.fragment),vr=p(),ie=a("p"),wr=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(),v(xe.$$.fragment),Rr=p(),v(Ie.$$.fragment),es=p(),de=a("h2"),Ce=a("a"),ea=a("span"),v(Rt.$$.fragment),jr=p(),ta=a("span"),Jr=l("FlaxRegNetModel"),ts=p(),j=a("div"),v(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"),Lr=p(),G=a("div"),v(Zt.$$.fragment),Dr=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(),v(Ue.$$.fragment),sl=p(),v(ke.$$.fragment),os=p(),pe=a("h2"),Ze=a("a"),ca=a("span"),v(Wt.$$.fragment),nl=p(),pa=a("span"),rl=l("FlaxRegNetForImageClassification"),as=p(),J=a("div"),v(Pt.$$.fragment),ll=p(),ha=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"),hl=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)`),fl=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(),fa=a("p"),yl=l("Finally, this model supports inherent JAX features such as:"),bl=p(),Y=a("ul"),ma=a("li"),Bt=a("a"),vl=l("Just-In-Time (JIT) compilation"),wl=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"),v(Yt.$$.fragment),jl=p(),he=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(),v(We.$$.fragment),kl=p(),v(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=h(t),u=s(t,"H1",{class:!0});var qt=n(u);m=s(qt,"A",{id:!0,class:!0,href:!0});var va=n(m);y=s(va,"SPAN",{});var wa=n(y);w(r.$$.fragment,wa),wa.forEach(o),va.forEach(o),f=h(qt),R=s(qt,"SPAN",{});var Ma=n(R);Ms=i(Ma,"RegNet"),Ma.forEach(o),qt.forEach(o),xa=h(t),L=s(t,"H2",{class:!0});var Qt=n(L);fe=s(Qt,"A",{id:!0,class:!0,href:!0});var $a=n(fe);Io=s($a,"SPAN",{});var Ta=n(Io);w(He.$$.fragment,Ta),Ta.forEach(o),$a.forEach(o),$s=h(Qt),Co=s(Qt,"SPAN",{});var Na=n(Co);Ts=i(Na,"Overview"),Na.forEach(o),Qt.forEach(o),Ia=h(t),me=s(t,"P",{});var Ht=n(me);Ns=i(Ht,"The RegNet model was proposed in "),Le=s(Ht,"A",{href:!0,rel:!0});var Fa=n(Le);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=h(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=h(t),to=s(t,"P",{});var ja=n(to);Js=i(ja,"The abstract from the paper is the following:"),ja.forEach(o),ka=h(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=h(t),ao=s(t,"P",{});var Pl=n(ao);xs=i(Pl,"Tips:"),Pl.forEach(o),Wa=h(t),ge=s(t,"UL",{});var ns=n(ge);De=s(ns,"LI",{});var rs=n(De);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=h(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=h(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=h(t),D=s(t,"H2",{class:!0});var ls=n(D);_e=s(ls,"A",{id:!0,class:!0,href:!0});var Yl=n(_e);ko=s(Yl,"SPAN",{});var ql=n(ko);w(st.$$.fragment,ql),ql.forEach(o),Yl.forEach(o),Hs=h(ls),Zo=s(ls,"SPAN",{});var Ql=n(Zo);Ls=i(Ql,"Resources"),Ql.forEach(o),ls.forEach(o),Ga=h(t),no=s(t,"P",{});var Hl=n(no);Ds=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=h(t),w(nt.$$.fragment,t),Ba=h(t),ye=s(t,"UL",{});var is=n(ye);q=s(is,"LI",{});var Lt=n(q);ro=s(Lt,"A",{href:!0});var Ll=n(ro);Os=i(Ll,"RegNetForImageClassification"),Ll.forEach(o),Ks=i(Lt," is supported by this "),rt=s(Lt,"A",{href:!0,rel:!0});var Dl=n(rt);en=i(Dl,"example script"),Dl.forEach(o),tn=i(Lt," and "),lt=s(Lt,"A",{href:!0,rel:!0});var Ol=n(lt);on=i(Ol,"notebook"),Ol.forEach(o),an=i(Lt,"."),Lt.forEach(o),sn=h(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=h(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=h(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);w(it.$$.fragment,oi),oi.forEach(o),ti.forEach(o),dn=h(ds),Po=s(ds,"SPAN",{});var ai=n(Po);cn=i(ai,"RegNetConfig"),ai.forEach(o),ds.forEach(o),Xa=h(t),C=s(t,"DIV",{class:!0});var Ae=n(C);w(dt.$$.fragment,Ae),pn=h(Ae),K=s(Ae,"P",{});var vo=n(K);hn=i(vo,"This is the configuration class to store the configuration of a "),po=s(vo,"A",{href:!0});var si=n(po);fn=i(si,"RegNetModel"),si.forEach(o),mn=i(vo,`. 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(vo,"A",{href:!0,rel:!0});var ni=n(ct);gn=i(ni,"facebook/regnet-y-040"),ni.forEach(o),un=i(vo," architecture."),vo.forEach(o),_n=h(Ae),ee=s(Ae,"P",{});var wo=n(ee);yn=i(wo,"Configuration objects inherit from "),ho=s(wo,"A",{href:!0});var ri=n(ho);bn=i(ri,"PretrainedConfig"),ri.forEach(o),vn=i(wo,` and can be used to control the model outputs. Read the
documentation from `),fo=s(wo,"A",{href:!0});var li=n(fo);wn=i(li,"PretrainedConfig"),li.forEach(o),Mn=i(wo," for more information."),wo.forEach(o),$n=h(Ae),w(ve.$$.fragment,Ae),Ae.forEach(o),Ya=h(t),te=s(t,"H2",{class:!0});var cs=n(te);we=s(cs,"A",{id:!0,class:!0,href:!0});var ii=n(we);Ao=s(ii,"SPAN",{});var di=n(Ao);w(pt.$$.fragment,di),di.forEach(o),ii.forEach(o),Tn=h(cs),Go=s(cs,"SPAN",{});var ci=n(Go);Nn=i(ci,"RegNetModel"),ci.forEach(o),cs.forEach(o),qa=h(t),B=s(t,"DIV",{class:!0});var Mo=n(B);w(ht.$$.fragment,Mo),Fn=h(Mo),ft=s(Mo,"P",{});var ps=n(ft);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=h(Mo),Z=s(Mo,"DIV",{class:!0});var Ge=n(Z);w(gt.$$.fragment,Ge),xn=h(Ge),oe=s(Ge,"P",{});var $o=n(oe);In=i($o,"The "),mo=s($o,"A",{href:!0});var hi=n(mo);Cn=i(hi,"RegNetModel"),hi.forEach(o),Un=i($o," forward method, overrides the "),zo=s($o,"CODE",{});var fi=n(zo);kn=i(fi,"__call__"),fi.forEach(o),Zn=i($o," special method."),$o.forEach(o),Wn=h(Ge),w(Me.$$.fragment,Ge),Pn=h(Ge),w($e.$$.fragment,Ge),Ge.forEach(o),Mo.forEach(o),Qa=h(t),ae=s(t,"H2",{class:!0});var hs=n(ae);Te=s(hs,"A",{id:!0,class:!0,href:!0});var mi=n(Te);Bo=s(mi,"SPAN",{});var gi=n(Bo);w(ut.$$.fragment,gi),gi.forEach(o),mi.forEach(o),An=h(hs),Vo=s(hs,"SPAN",{});var ui=n(Vo);Gn=i(ui,"RegNetForImageClassification"),ui.forEach(o),hs.forEach(o),Ha=h(t),U=s(t,"DIV",{class:!0});var ze=n(U);w(_t.$$.fragment,ze),zn=h(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=h(ze),yt=s(ze,"P",{});var fs=n(yt);Sn=i(fs,"This model is a PyTorch "),bt=s(fs,"A",{href:!0,rel:!0});var yi=n(bt);Xn=i(yi,"torch.nn.Module"),yi.forEach(o),Yn=i(fs,` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),fs.forEach(o),qn=h(ze),W=s(ze,"DIV",{class:!0});var Be=n(W);w(vt.$$.fragment,Be),Qn=h(Be),se=s(Be,"P",{});var To=n(se);Hn=i(To,"The "),go=s(To,"A",{href:!0});var bi=n(go);Ln=i(bi,"RegNetForImageClassification"),bi.forEach(o),Dn=i(To," forward method, overrides the "),Xo=s(To,"CODE",{});var vi=n(Xo);On=i(vi,"__call__"),vi.forEach(o),Kn=i(To," special method."),To.forEach(o),er=h(Be),w(Ne.$$.fragment,Be),tr=h(Be),w(Fe.$$.fragment,Be),Be.forEach(o),ze.forEach(o),La=h(t),ne=s(t,"H2",{class:!0});var ms=n(ne);Re=s(ms,"A",{id:!0,class:!0,href:!0});var wi=n(Re);Yo=s(wi,"SPAN",{});var Mi=n(Yo);w(wt.$$.fragment,Mi),Mi.forEach(o),wi.forEach(o),or=h(ms),qo=s(ms,"SPAN",{});var $i=n(qo);ar=i($i,"TFRegNetModel"),$i.forEach(o),ms.forEach(o),Da=h(t),V=s(t,"DIV",{class:!0});var No=n(V);w(Mt.$$.fragment,No),sr=h(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=h(No),P=s(No,"DIV",{class:!0});var Ve=n(P);w($t.$$.fragment,Ve),lr=h(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),hr=i(Fo," special method."),Fo.forEach(o),fr=h(Ve),w(je.$$.fragment,Ve),mr=h(Ve),w(Je.$$.fragment,Ve),Ve.forEach(o),No.forEach(o),Oa=h(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);Lo=s(Ri,"SPAN",{});var ji=n(Lo);w(Tt.$$.fragment,ji),ji.forEach(o),Ri.forEach(o),gr=h(gs),Do=s(gs,"SPAN",{});var Ji=n(Do);ur=i(Ji,"TFRegNetForImageClassification"),Ji.forEach(o),gs.forEach(o),Ka=h(t),S=s(t,"DIV",{class:!0});var Ro=n(S);w(Nt.$$.fragment,Ro),_r=h(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=h(Ro),A=s(Ro,"DIV",{class:!0});var Se=n(A);w(Ft.$$.fragment,Se),vr=h(Se),ie=s(Se,"P",{});var jo=n(ie);wr=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=h(Se),w(xe.$$.fragment,Se),Rr=h(Se),w(Ie.$$.fragment,Se),Se.forEach(o),Ro.forEach(o),es=h(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);w(Rt.$$.fragment,Ui),Ui.forEach(o),Ci.forEach(o),jr=h(us),ta=s(us,"SPAN",{});var ki=n(ta);Jr=i(ki,"FlaxRegNetModel"),ki.forEach(o),us.forEach(o),ts=h(t),j=s(t,"DIV",{class:!0});var x=n(j);w(jt.$$.fragment,x),Er=h(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=h(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=h(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=h(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=h(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=h(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=h(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=h(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),Lr=h(x),G=s(x,"DIV",{class:!0});var Ye=n(G);w(Zt.$$.fragment,Ye),Dr=h(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=h(Ye),w(Ue.$$.fragment,Ye),sl=h(Ye),w(ke.$$.fragment,Ye),Ye.forEach(o),x.forEach(o),os=h(t),pe=s(t,"H2",{class:!0});var bs=n(pe);Ze=s(bs,"A",{id:!0,class:!0,href:!0});var Li=n(Ze);ca=s(Li,"SPAN",{});var Di=n(ca);w(Wt.$$.fragment,Di),Di.forEach(o),Li.forEach(o),nl=h(bs),pa=s(bs,"SPAN",{});var Oi=n(pa);rl=i(Oi,"FlaxRegNetForImageClassification"),Oi.forEach(o),bs.forEach(o),as=h(t),J=s(t,"DIV",{class:!0});var I=n(J);w(Pt.$$.fragment,I),ll=h(I),ha=s(I,"P",{});var Ki=n(ha);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=h(I),At=s(I,"P",{});var vs=n(At);cl=i(vs,"This model inherits from "),bo=s(vs,"A",{href:!0});var ed=n(bo);pl=i(ed,"FlaxPreTrainedModel"),ed.forEach(o),hl=i(vs,`. 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)`),vs.forEach(o),fl=h(I),Gt=s(I,"P",{});var ws=n(Gt);ml=i(ws,"This model is also a Flax Linen "),zt=s(ws,"A",{href:!0,rel:!0});var td=n(zt);gl=i(td,"flax.linen.Module"),td.forEach(o),ul=i(ws,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),ws.forEach(o),_l=h(I),fa=s(I,"P",{});var od=n(fa);yl=i(od,"Finally, this model supports inherent JAX features such as:"),od.forEach(o),bl=h(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);vl=i(sd,"Just-In-Time (JIT) compilation"),sd.forEach(o),ad.forEach(o),wl=h(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=h(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=h(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=h(I),z=s(I,"DIV",{class:!0});var Qe=n(z);w(Yt.$$.fragment,Qe),jl=h(Qe),he=s(Qe,"P",{});var Eo=n(he);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 hd=n(ba);Il=i(hd,"__call__"),hd.forEach(o),Cl=i(Eo," special method."),Eo.forEach(o),Ul=h(Qe),w(We.$$.fragment,Qe),kl=h(Qe),w(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(fe,"id","overview"),c(fe,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(fe,"href","#overview"),c(L,"class","relative group"),c(Le,"href","https://arxiv.org/abs/2003.13678"),c(Le,"rel","nofollow"),c(so,"href","/docs/transformers/v4.30.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(D,"class","relative group"),c(ro,"href","/docs/transformers/v4.30.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.30.0/en/model_doc/regnet#transformers.RegNetModel"),c(ct,"href","https://huggingface.co/facebook/regnet-y-040"),c(ct,"rel","nofollow"),c(ho,"href","/docs/transformers/v4.30.0/en/main_classes/configuration#transformers.PretrainedConfig"),c(fo,"href","/docs/transformers/v4.30.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(we,"id","transformers.RegNetModel"),c(we,"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(we,"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.30.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.30.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.30.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.30.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.30.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.30.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,f),e(u,R),e(R,Ms),_(t,xa,g),_(t,L,g),e(L,fe),e(fe,Io),M(He,Io,null),e(L,$s),e(L,Co),e(Co,Ts),_(t,Ia,g),_(t,me,g),e(me,Ns),e(me,Le),e(Le,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,De),e(De,Is),e(De,so),e(so,Cs),e(De,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,D,g),e(D,_e),e(_e,ko),M(st,ko,null),e(D,Hs),e(D,Zo),e(Zo,Ls),_(t,Ga,g),_(t,no,g),e(no,Ds),_(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,hn),e(K,po),e(po,fn),e(K,mn),e(K,ct),e(ct,gn),e(K,un),e(C,_n),e(C,ee),e(ee,yn),e(ee,ho),e(ho,bn),e(ee,vn),e(ee,fo),e(fo,wn),e(ee,Mn),e(C,$n),M(ve,C,null),_(t,Ya,g),_(t,te,g),e(te,we),e(we,Ao),M(pt,Ao,null),e(te,Tn),e(te,Go),e(Go,Nn),_(t,qa,g),_(t,B,g),M(ht,B,null),e(B,Fn),e(B,ft),e(ft,Rn),e(ft,mt),e(mt,jn),e(ft,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(vt,W,null),e(W,Qn),e(W,se),e(se,Hn),e(se,go),e(go,Ln),e(se,Dn),e(se,Xo),e(Xo,On),e(se,Kn),e(W,er),M(Ne,W,null),e(W,tr),M(Fe,W,null),_(t,La,g),_(t,ne,g),e(ne,Re),e(Re,Yo),M(wt,Yo,null),e(ne,or),e(ne,qo),e(qo,ar),_(t,Da,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,hr),e(P,fr),M(je,P,null),e(P,mr),M(Je,P,null),_(t,Oa,g),_(t,le,g),e(le,Ee),e(Ee,Lo),M(Tt,Lo,null),e(le,gr),e(le,Do),e(Do,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,vr),e(A,ie),e(ie,wr),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,Lr),e(j,G),M(Zt,G,null),e(G,Dr),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,ha),e(ha,il),e(J,dl),e(J,At),e(At,cl),e(At,bo),e(bo,pl),e(At,hl),e(J,fl),e(J,Gt),e(Gt,ml),e(Gt,zt),e(zt,gl),e(Gt,ul),e(J,_l),e(J,fa),e(fa,yl),e(J,bl),e(J,Y),e(Y,ma),e(ma,Bt),e(Bt,vl),e(Y,wl),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,he),e(he,Jl),e(he,ya),e(ya,El),e(he,xl),e(he,ba),e(ba,Il),e(he,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}),ve.$set(qt);const va={};g&2&&(va.$$scope={dirty:g,ctx:t}),Me.$set(va);const wa={};g&2&&(wa.$$scope={dirty:g,ctx:t}),$e.$set(wa);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),$(ve.$$.fragment,t),$(pt.$$.fragment,t),$(ht.$$.fragment,t),$(gt.$$.fragment,t),$(Me.$$.fragment,t),$($e.$$.fragment,t),$(ut.$$.fragment,t),$(_t.$$.fragment,t),$(vt.$$.fragment,t),$(Ne.$$.fragment,t),$(Fe.$$.fragment,t),$(wt.$$.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(ve.$$.fragment,t),T(pt.$$.fragment,t),T(ht.$$.fragment,t),T(gt.$$.fragment,t),T(Me.$$.fragment,t),T($e.$$.fragment,t),T(ut.$$.fragment,t),T(_t.$$.fragment,t),T(vt.$$.fragment,t),T(Ne.$$.fragment,t),T(Fe.$$.fragment,t),T(wt.$$.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(L),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(D),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(ve),t&&o(Ya),t&&o(te),N(pt),t&&o(qa),t&&o(B),N(ht),N(gt),N(Me),N($e),t&&o(Qa),t&&o(ae),N(ut),t&&o(Ha),t&&o(U),N(_t),N(vt),N(Ne),N(Fe),t&&o(La),t&&o(ne),N(wt),t&&o(Da),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 fd{constructor(d){super();md(this,d,Ud,Id,gd,{})}}export{Bd as default,Cd as metadata};
