import{S as cr,i as fr,s as pr,e as a,k as m,w as b,t as l,M as gr,c as r,d as o,m as u,a as n,x as $,h as i,b as c,G as e,g as _,y,q as N,o as T,B as R,v as hr,L as Jt}from"../../chunks/vendor-hf-doc-builder.js";import{T as ko}from"../../chunks/Tip-hf-doc-builder.js";import{D as X}from"../../chunks/Docstring-hf-doc-builder.js";import{C as Qt}from"../../chunks/CodeBlock-hf-doc-builder.js";import{I as Ze}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{E as Kt}from"../../chunks/ExampleCodeBlock-hf-doc-builder.js";function mr(k){let d,w,h,p,v;return p=new Qt({props:{code:`from transformers import RegNetConfig, RegNetModel

# Initializing a RegNet regnet-y-40 style configuration
configuration = RegNetConfig()
# Initializing a model from the regnet-y-40 style configuration
model = RegNetModel(configuration)
# Accessing the model configuration
configuration = model.config`,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"),w=l("Example:"),h=m(),b(p.$$.fragment)},l(s){d=r(s,"P",{});var f=n(d);w=i(f,"Example:"),f.forEach(o),h=u(s),$(p.$$.fragment,s)},m(s,f){_(s,d,f),e(d,w),_(s,h,f),y(p,s,f),v=!0},p:Jt,i(s){v||(N(p.$$.fragment,s),v=!0)},o(s){T(p.$$.fragment,s),v=!1},d(s){s&&o(d),s&&o(h),R(p,s)}}}function ur(k){let d,w,h,p,v;return{c(){d=a("p"),w=l("Although the recipe for forward pass needs to be defined within this function, one should call the "),h=a("code"),p=l("Module"),v=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(s){d=r(s,"P",{});var f=n(d);w=i(f,"Although the recipe for forward pass needs to be defined within this function, one should call the "),h=r(f,"CODE",{});var x=n(h);p=i(x,"Module"),x.forEach(o),v=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(s,f){_(s,d,f),e(d,w),e(d,h),e(h,p),e(d,v)},d(s){s&&o(d)}}}function _r(k){let d,w,h,p,v;return p=new Qt({props:{code:`from transformers import AutoImageProcessor, RegNetModel
import torch
from datasets import load_dataset

dataset = load_dataset("huggingface/cats-image")
image = dataset["test"]["image"][0]

feature_extractor = AutoImageProcessor.from_pretrained("facebook/regnet-y-040")
model = RegNetModel.from_pretrained("facebook/regnet-y-040")

inputs = feature_extractor(image, return_tensors="pt")

with torch.no_grad():
    outputs = model(**inputs)

last_hidden_states = outputs.last_hidden_state
list(last_hidden_states.shape)`,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>feature_extractor = 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 = feature_extractor(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"),w=l("Example:"),h=m(),b(p.$$.fragment)},l(s){d=r(s,"P",{});var f=n(d);w=i(f,"Example:"),f.forEach(o),h=u(s),$(p.$$.fragment,s)},m(s,f){_(s,d,f),e(d,w),_(s,h,f),y(p,s,f),v=!0},p:Jt,i(s){v||(N(p.$$.fragment,s),v=!0)},o(s){T(p.$$.fragment,s),v=!1},d(s){s&&o(d),s&&o(h),R(p,s)}}}function vr(k){let d,w,h,p,v;return{c(){d=a("p"),w=l("Although the recipe for forward pass needs to be defined within this function, one should call the "),h=a("code"),p=l("Module"),v=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(s){d=r(s,"P",{});var f=n(d);w=i(f,"Although the recipe for forward pass needs to be defined within this function, one should call the "),h=r(f,"CODE",{});var x=n(h);p=i(x,"Module"),x.forEach(o),v=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(s,f){_(s,d,f),e(d,w),e(d,h),e(h,p),e(d,v)},d(s){s&&o(d)}}}function wr(k){let d,w,h,p,v;return p=new Qt({props:{code:`from transformers import AutoImageProcessor, RegNetForImageClassification
import torch
from datasets import load_dataset

dataset = load_dataset("huggingface/cats-image")
image = dataset["test"]["image"][0]

feature_extractor = AutoImageProcessor.from_pretrained("facebook/regnet-y-040")
model = RegNetForImageClassification.from_pretrained("facebook/regnet-y-040")

inputs = feature_extractor(image, return_tensors="pt")

with torch.no_grad():
    logits = model(**inputs).logits

# model predicts one of the 1000 ImageNet classes
predicted_label = logits.argmax(-1).item()
print(model.config.id2label[predicted_label])`,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>feature_extractor = 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 = feature_extractor(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"),w=l("Example:"),h=m(),b(p.$$.fragment)},l(s){d=r(s,"P",{});var f=n(d);w=i(f,"Example:"),f.forEach(o),h=u(s),$(p.$$.fragment,s)},m(s,f){_(s,d,f),e(d,w),_(s,h,f),y(p,s,f),v=!0},p:Jt,i(s){v||(N(p.$$.fragment,s),v=!0)},o(s){T(p.$$.fragment,s),v=!1},d(s){s&&o(d),s&&o(h),R(p,s)}}}function br(k){let d,w,h,p,v;return{c(){d=a("p"),w=l("Although the recipe for forward pass needs to be defined within this function, one should call the "),h=a("code"),p=l("Module"),v=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(s){d=r(s,"P",{});var f=n(d);w=i(f,"Although the recipe for forward pass needs to be defined within this function, one should call the "),h=r(f,"CODE",{});var x=n(h);p=i(x,"Module"),x.forEach(o),v=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(s,f){_(s,d,f),e(d,w),e(d,h),e(h,p),e(d,v)},d(s){s&&o(d)}}}function $r(k){let d,w,h,p,v;return p=new Qt({props:{code:`from transformers import AutoImageProcessor, TFRegNetModel
from datasets import load_dataset

dataset = load_dataset("huggingface/cats-image")
image = dataset["test"]["image"][0]

feature_extractor = AutoImageProcessor.from_pretrained("facebook/regnet-y-040")
model = TFRegNetModel.from_pretrained("facebook/regnet-y-040")

inputs = feature_extractor(image, return_tensors="tf")
outputs = model(**inputs)

last_hidden_states = outputs.last_hidden_state
list(last_hidden_states.shape)`,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>feature_extractor = 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 = feature_extractor(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"),w=l("Example:"),h=m(),b(p.$$.fragment)},l(s){d=r(s,"P",{});var f=n(d);w=i(f,"Example:"),f.forEach(o),h=u(s),$(p.$$.fragment,s)},m(s,f){_(s,d,f),e(d,w),_(s,h,f),y(p,s,f),v=!0},p:Jt,i(s){v||(N(p.$$.fragment,s),v=!0)},o(s){T(p.$$.fragment,s),v=!1},d(s){s&&o(d),s&&o(h),R(p,s)}}}function yr(k){let d,w,h,p,v;return{c(){d=a("p"),w=l("Although the recipe for forward pass needs to be defined within this function, one should call the "),h=a("code"),p=l("Module"),v=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(s){d=r(s,"P",{});var f=n(d);w=i(f,"Although the recipe for forward pass needs to be defined within this function, one should call the "),h=r(f,"CODE",{});var x=n(h);p=i(x,"Module"),x.forEach(o),v=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(s,f){_(s,d,f),e(d,w),e(d,h),e(h,p),e(d,v)},d(s){s&&o(d)}}}function Nr(k){let d,w,h,p,v;return p=new Qt({props:{code:`from transformers import AutoImageProcessor, TFRegNetForImageClassification
import tensorflow as tf
from datasets import load_dataset

dataset = load_dataset("huggingface/cats-image")
image = dataset["test"]["image"][0]

feature_extractor = AutoImageProcessor.from_pretrained("facebook/regnet-y-040")
model = TFRegNetForImageClassification.from_pretrained("facebook/regnet-y-040")

inputs = feature_extractor(image, return_tensors="tf")
logits = model(**inputs).logits

# model predicts one of the 1000 ImageNet classes
predicted_label = int(tf.math.argmax(logits, axis=-1))
print(model.config.id2label[predicted_label])`,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>feature_extractor = 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 = feature_extractor(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"),w=l("Example:"),h=m(),b(p.$$.fragment)},l(s){d=r(s,"P",{});var f=n(d);w=i(f,"Example:"),f.forEach(o),h=u(s),$(p.$$.fragment,s)},m(s,f){_(s,d,f),e(d,w),_(s,h,f),y(p,s,f),v=!0},p:Jt,i(s){v||(N(p.$$.fragment,s),v=!0)},o(s){T(p.$$.fragment,s),v=!1},d(s){s&&o(d),s&&o(h),R(p,s)}}}function Tr(k){let d,w,h,p,v,s,f,x,xo,Xt,D,Y,$t,ye,jo,yt,Fo,Yt,Z,Io,Ne,Co,Eo,Zt,et,Po,eo,tt,Ao,to,ot,Nt,Mo,oo,st,qo,so,ee,Te,zo,at,Oo,Do,So,te,Lo,Re,Wo,Uo,ke,Ho,ao,j,Vo,xe,Bo,Go,je,Ko,Jo,Fe,Qo,Xo,Ie,Yo,Zo,ro,S,oe,Tt,Ce,es,Rt,ts,no,F,Ee,os,L,ss,rt,as,rs,Pe,ns,ls,is,W,ds,nt,cs,fs,lt,ps,gs,hs,se,lo,U,ae,kt,Ae,ms,xt,us,io,M,Me,_s,qe,vs,ze,ws,bs,$s,C,Oe,ys,H,Ns,it,Ts,Rs,jt,ks,xs,js,re,Fs,ne,co,V,le,Ft,De,Is,It,Cs,fo,I,Se,Es,Ct,Ps,As,Le,Ms,We,qs,zs,Os,E,Ue,Ds,B,Ss,dt,Ls,Ws,Et,Us,Hs,Vs,ie,Bs,de,po,G,ce,Pt,He,Gs,At,Ks,go,q,Ve,Js,Mt,Qs,Xs,P,Be,Ys,K,Zs,ct,ea,ta,qt,oa,sa,aa,fe,ra,pe,ho,J,ge,zt,Ge,na,Ot,la,mo,z,Ke,ia,Dt,da,ca,A,Je,fa,Q,pa,ft,ga,ha,St,ma,ua,_a,he,va,me,uo;return s=new Ze({}),ye=new Ze({}),Ce=new Ze({}),Ee=new X({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.25.1/src/transformers/models/regnet/configuration_regnet.py#L28"}}),se=new Kt({props:{anchor:"transformers.RegNetConfig.example",$$slots:{default:[mr]},$$scope:{ctx:k}}}),Ae=new Ze({}),Me=new X({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.25.1/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.25.1/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.25.1/src/transformers/models/regnet/modeling_regnet.py#L332"}}),Oe=new X({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.25.1/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<code>AutoImageProcessor.__call__()</code> 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.25.1/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.25.1/src/transformers/models/regnet/modeling_regnet.py#L342",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.25.1/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>
`}}),re=new ko({props:{$$slots:{default:[ur]},$$scope:{ctx:k}}}),ne=new Kt({props:{anchor:"transformers.RegNetModel.forward.example",$$slots:{default:[_r]},$$scope:{ctx:k}}}),De=new Ze({}),Se=new X({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.25.1/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.25.1/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.25.1/src/transformers/models/regnet/modeling_regnet.py#L387"}}),Ue=new X({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.25.1/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<code>AutoImageProcessor.__call__()</code> 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.25.1/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.25.1/src/transformers/models/regnet/modeling_regnet.py#L400",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.25.1/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.25.1/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.25.1/en/main_classes/output#transformers.modeling_outputs.ImageClassifierOutputWithNoAttention"
>transformers.modeling_outputs.ImageClassifierOutputWithNoAttention</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),ie=new ko({props:{$$slots:{default:[vr]},$$scope:{ctx:k}}}),de=new Kt({props:{anchor:"transformers.RegNetForImageClassification.forward.example",$$slots:{default:[wr]},$$scope:{ctx:k}}}),He=new Ze({}),Ve=new X({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.25.1/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.25.1/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.25.1/src/transformers/models/regnet/modeling_tf_regnet.py#L406"}}),Be=new X({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.25.1/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<code>AutoImageProcessor.__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.25.1/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.25.1/src/transformers/models/regnet/modeling_tf_regnet.py#L411",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.25.1/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>
`}}),fe=new ko({props:{$$slots:{default:[br]},$$scope:{ctx:k}}}),pe=new Kt({props:{anchor:"transformers.TFRegNetModel.call.example",$$slots:{default:[$r]},$$scope:{ctx:k}}}),Ge=new Ze({}),Ke=new X({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.25.1/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.25.1/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.25.1/src/transformers/models/regnet/modeling_tf_regnet.py#L466"}}),Je=new X({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.25.1/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<code>AutoImageProcessor.__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.25.1/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.25.1/src/transformers/models/regnet/modeling_tf_regnet.py#L477",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.25.1/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.25.1/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.25.1/en/main_classes/output#transformers.modeling_tf_outputs.TFSequenceClassifierOutput"
>transformers.modeling_tf_outputs.TFSequenceClassifierOutput</a> or <code>tuple(tf.Tensor)</code></p>
`}}),he=new ko({props:{$$slots:{default:[yr]},$$scope:{ctx:k}}}),me=new Kt({props:{anchor:"transformers.TFRegNetForImageClassification.call.example",$$slots:{default:[Nr]},$$scope:{ctx:k}}}),{c(){d=a("meta"),w=m(),h=a("h1"),p=a("a"),v=a("span"),b(s.$$.fragment),f=m(),x=a("span"),xo=l("RegNet"),Xt=m(),D=a("h2"),Y=a("a"),$t=a("span"),b(ye.$$.fragment),jo=m(),yt=a("span"),Fo=l("Overview"),Yt=m(),Z=a("p"),Io=l("The RegNet model was proposed in "),Ne=a("a"),Co=l("Designing Network Design Spaces"),Eo=l(" by Ilija Radosavovic, Raj Prateek Kosaraju, Ross Girshick, Kaiming He, Piotr Doll\xE1r."),Zt=m(),et=a("p"),Po=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."),eo=m(),tt=a("p"),Ao=l("The abstract from the paper is the following:"),to=m(),ot=a("p"),Nt=a("em"),Mo=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."),oo=m(),st=a("p"),qo=l("Tips:"),so=m(),ee=a("ul"),Te=a("li"),zo=l("One can use "),at=a("a"),Oo=l("AutoImageProcessor"),Do=l(" to prepare images for the model."),So=m(),te=a("li"),Lo=l("The huge 10B model from "),Re=a("a"),Wo=l("Self-supervised Pretraining of Visual Features in the Wild"),Uo=l(", trained on one billion Instagram images, is available on the "),ke=a("a"),Ho=l("hub"),ao=m(),j=a("p"),Vo=l("This model was contributed by "),xe=a("a"),Bo=l("Francesco"),Go=l(`. The TensorFlow version of the model
was contributed by `),je=a("a"),Ko=l("sayakpaul"),Jo=l(" and "),Fe=a("a"),Qo=l("ariG23498"),Xo=l(`.
The original code can be found `),Ie=a("a"),Yo=l("here"),Zo=l("."),ro=m(),S=a("h2"),oe=a("a"),Tt=a("span"),b(Ce.$$.fragment),es=m(),Rt=a("span"),ts=l("RegNetConfig"),no=m(),F=a("div"),b(Ee.$$.fragment),os=m(),L=a("p"),ss=l("This is the configuration class to store the configuration of a "),rt=a("a"),as=l("RegNetModel"),rs=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
`),Pe=a("a"),ns=l("facebook/regnet-y-040"),ls=l(" architecture."),is=m(),W=a("p"),ds=l("Configuration objects inherit from "),nt=a("a"),cs=l("PretrainedConfig"),fs=l(` and can be used to control the model outputs. Read the
documentation from `),lt=a("a"),ps=l("PretrainedConfig"),gs=l(" for more information."),hs=m(),b(se.$$.fragment),lo=m(),U=a("h2"),ae=a("a"),kt=a("span"),b(Ae.$$.fragment),ms=m(),xt=a("span"),us=l("RegNetModel"),io=m(),M=a("div"),b(Me.$$.fragment),_s=m(),qe=a("p"),vs=l(`The bare RegNet model outputting raw features without any specific head on top.
This model is a PyTorch `),ze=a("a"),ws=l("torch.nn.Module"),bs=l(` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),$s=m(),C=a("div"),b(Oe.$$.fragment),ys=m(),H=a("p"),Ns=l("The "),it=a("a"),Ts=l("RegNetModel"),Rs=l(" forward method, overrides the "),jt=a("code"),ks=l("__call__"),xs=l(" special method."),js=m(),b(re.$$.fragment),Fs=m(),b(ne.$$.fragment),co=m(),V=a("h2"),le=a("a"),Ft=a("span"),b(De.$$.fragment),Is=m(),It=a("span"),Cs=l("RegNetForImageClassification"),fo=m(),I=a("div"),b(Se.$$.fragment),Es=m(),Ct=a("p"),Ps=l(`RegNet Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`),As=m(),Le=a("p"),Ms=l("This model is a PyTorch "),We=a("a"),qs=l("torch.nn.Module"),zs=l(` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Os=m(),E=a("div"),b(Ue.$$.fragment),Ds=m(),B=a("p"),Ss=l("The "),dt=a("a"),Ls=l("RegNetForImageClassification"),Ws=l(" forward method, overrides the "),Et=a("code"),Us=l("__call__"),Hs=l(" special method."),Vs=m(),b(ie.$$.fragment),Bs=m(),b(de.$$.fragment),po=m(),G=a("h2"),ce=a("a"),Pt=a("span"),b(He.$$.fragment),Gs=m(),At=a("span"),Ks=l("TFRegNetModel"),go=m(),q=a("div"),b(Ve.$$.fragment),Js=m(),Mt=a("p"),Qs=l("The bare RegNet model outputting raw features without any specific head on top."),Xs=m(),P=a("div"),b(Be.$$.fragment),Ys=m(),K=a("p"),Zs=l("The "),ct=a("a"),ea=l("TFRegNetModel"),ta=l(" forward method, overrides the "),qt=a("code"),oa=l("__call__"),sa=l(" special method."),aa=m(),b(fe.$$.fragment),ra=m(),b(pe.$$.fragment),ho=m(),J=a("h2"),ge=a("a"),zt=a("span"),b(Ge.$$.fragment),na=m(),Ot=a("span"),la=l("TFRegNetForImageClassification"),mo=m(),z=a("div"),b(Ke.$$.fragment),ia=m(),Dt=a("p"),da=l(`RegNet Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`),ca=m(),A=a("div"),b(Je.$$.fragment),fa=m(),Q=a("p"),pa=l("The "),ft=a("a"),ga=l("TFRegNetForImageClassification"),ha=l(" forward method, overrides the "),St=a("code"),ma=l("__call__"),ua=l(" special method."),_a=m(),b(he.$$.fragment),va=m(),b(me.$$.fragment),this.h()},l(t){const g=gr('[data-svelte="svelte-1phssyn"]',document.head);d=r(g,"META",{name:!0,content:!0}),g.forEach(o),w=u(t),h=r(t,"H1",{class:!0});var Qe=n(h);p=r(Qe,"A",{id:!0,class:!0,href:!0});var Lt=n(p);v=r(Lt,"SPAN",{});var Wt=n(v);$(s.$$.fragment,Wt),Wt.forEach(o),Lt.forEach(o),f=u(Qe),x=r(Qe,"SPAN",{});var Ut=n(x);xo=i(Ut,"RegNet"),Ut.forEach(o),Qe.forEach(o),Xt=u(t),D=r(t,"H2",{class:!0});var Xe=n(D);Y=r(Xe,"A",{id:!0,class:!0,href:!0});var Ht=n(Y);$t=r(Ht,"SPAN",{});var Vt=n($t);$(ye.$$.fragment,Vt),Vt.forEach(o),Ht.forEach(o),jo=u(Xe),yt=r(Xe,"SPAN",{});var Bt=n(yt);Fo=i(Bt,"Overview"),Bt.forEach(o),Xe.forEach(o),Yt=u(t),Z=r(t,"P",{});var Ye=n(Z);Io=i(Ye,"The RegNet model was proposed in "),Ne=r(Ye,"A",{href:!0,rel:!0});var wa=n(Ne);Co=i(wa,"Designing Network Design Spaces"),wa.forEach(o),Eo=i(Ye," by Ilija Radosavovic, Raj Prateek Kosaraju, Ross Girshick, Kaiming He, Piotr Doll\xE1r."),Ye.forEach(o),Zt=u(t),et=r(t,"P",{});var ba=n(et);Po=i(ba,"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."),ba.forEach(o),eo=u(t),tt=r(t,"P",{});var $a=n(tt);Ao=i($a,"The abstract from the paper is the following:"),$a.forEach(o),to=u(t),ot=r(t,"P",{});var ya=n(ot);Nt=r(ya,"EM",{});var Na=n(Nt);Mo=i(Na,"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."),Na.forEach(o),ya.forEach(o),oo=u(t),st=r(t,"P",{});var Ta=n(st);qo=i(Ta,"Tips:"),Ta.forEach(o),so=u(t),ee=r(t,"UL",{});var _o=n(ee);Te=r(_o,"LI",{});var vo=n(Te);zo=i(vo,"One can use "),at=r(vo,"A",{href:!0});var Ra=n(at);Oo=i(Ra,"AutoImageProcessor"),Ra.forEach(o),Do=i(vo," to prepare images for the model."),vo.forEach(o),So=u(_o),te=r(_o,"LI",{});var Gt=n(te);Lo=i(Gt,"The huge 10B model from "),Re=r(Gt,"A",{href:!0,rel:!0});var ka=n(Re);Wo=i(ka,"Self-supervised Pretraining of Visual Features in the Wild"),ka.forEach(o),Uo=i(Gt,", trained on one billion Instagram images, is available on the "),ke=r(Gt,"A",{href:!0,rel:!0});var xa=n(ke);Ho=i(xa,"hub"),xa.forEach(o),Gt.forEach(o),_o.forEach(o),ao=u(t),j=r(t,"P",{});var O=n(j);Vo=i(O,"This model was contributed by "),xe=r(O,"A",{href:!0,rel:!0});var ja=n(xe);Bo=i(ja,"Francesco"),ja.forEach(o),Go=i(O,`. The TensorFlow version of the model
was contributed by `),je=r(O,"A",{href:!0,rel:!0});var Fa=n(je);Ko=i(Fa,"sayakpaul"),Fa.forEach(o),Jo=i(O," and "),Fe=r(O,"A",{href:!0,rel:!0});var Ia=n(Fe);Qo=i(Ia,"ariG23498"),Ia.forEach(o),Xo=i(O,`.
The original code can be found `),Ie=r(O,"A",{href:!0,rel:!0});var Ca=n(Ie);Yo=i(Ca,"here"),Ca.forEach(o),Zo=i(O,"."),O.forEach(o),ro=u(t),S=r(t,"H2",{class:!0});var wo=n(S);oe=r(wo,"A",{id:!0,class:!0,href:!0});var Ea=n(oe);Tt=r(Ea,"SPAN",{});var Pa=n(Tt);$(Ce.$$.fragment,Pa),Pa.forEach(o),Ea.forEach(o),es=u(wo),Rt=r(wo,"SPAN",{});var Aa=n(Rt);ts=i(Aa,"RegNetConfig"),Aa.forEach(o),wo.forEach(o),no=u(t),F=r(t,"DIV",{class:!0});var ue=n(F);$(Ee.$$.fragment,ue),os=u(ue),L=r(ue,"P",{});var pt=n(L);ss=i(pt,"This is the configuration class to store the configuration of a "),rt=r(pt,"A",{href:!0});var Ma=n(rt);as=i(Ma,"RegNetModel"),Ma.forEach(o),rs=i(pt,`. 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
`),Pe=r(pt,"A",{href:!0,rel:!0});var qa=n(Pe);ns=i(qa,"facebook/regnet-y-040"),qa.forEach(o),ls=i(pt," architecture."),pt.forEach(o),is=u(ue),W=r(ue,"P",{});var gt=n(W);ds=i(gt,"Configuration objects inherit from "),nt=r(gt,"A",{href:!0});var za=n(nt);cs=i(za,"PretrainedConfig"),za.forEach(o),fs=i(gt,` and can be used to control the model outputs. Read the
documentation from `),lt=r(gt,"A",{href:!0});var Oa=n(lt);ps=i(Oa,"PretrainedConfig"),Oa.forEach(o),gs=i(gt," for more information."),gt.forEach(o),hs=u(ue),$(se.$$.fragment,ue),ue.forEach(o),lo=u(t),U=r(t,"H2",{class:!0});var bo=n(U);ae=r(bo,"A",{id:!0,class:!0,href:!0});var Da=n(ae);kt=r(Da,"SPAN",{});var Sa=n(kt);$(Ae.$$.fragment,Sa),Sa.forEach(o),Da.forEach(o),ms=u(bo),xt=r(bo,"SPAN",{});var La=n(xt);us=i(La,"RegNetModel"),La.forEach(o),bo.forEach(o),io=u(t),M=r(t,"DIV",{class:!0});var ht=n(M);$(Me.$$.fragment,ht),_s=u(ht),qe=r(ht,"P",{});var $o=n(qe);vs=i($o,`The bare RegNet model outputting raw features without any specific head on top.
This model is a PyTorch `),ze=r($o,"A",{href:!0,rel:!0});var Wa=n(ze);ws=i(Wa,"torch.nn.Module"),Wa.forEach(o),bs=i($o,` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),$o.forEach(o),$s=u(ht),C=r(ht,"DIV",{class:!0});var _e=n(C);$(Oe.$$.fragment,_e),ys=u(_e),H=r(_e,"P",{});var mt=n(H);Ns=i(mt,"The "),it=r(mt,"A",{href:!0});var Ua=n(it);Ts=i(Ua,"RegNetModel"),Ua.forEach(o),Rs=i(mt," forward method, overrides the "),jt=r(mt,"CODE",{});var Ha=n(jt);ks=i(Ha,"__call__"),Ha.forEach(o),xs=i(mt," special method."),mt.forEach(o),js=u(_e),$(re.$$.fragment,_e),Fs=u(_e),$(ne.$$.fragment,_e),_e.forEach(o),ht.forEach(o),co=u(t),V=r(t,"H2",{class:!0});var yo=n(V);le=r(yo,"A",{id:!0,class:!0,href:!0});var Va=n(le);Ft=r(Va,"SPAN",{});var Ba=n(Ft);$(De.$$.fragment,Ba),Ba.forEach(o),Va.forEach(o),Is=u(yo),It=r(yo,"SPAN",{});var Ga=n(It);Cs=i(Ga,"RegNetForImageClassification"),Ga.forEach(o),yo.forEach(o),fo=u(t),I=r(t,"DIV",{class:!0});var ve=n(I);$(Se.$$.fragment,ve),Es=u(ve),Ct=r(ve,"P",{});var Ka=n(Ct);Ps=i(Ka,`RegNet Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`),Ka.forEach(o),As=u(ve),Le=r(ve,"P",{});var No=n(Le);Ms=i(No,"This model is a PyTorch "),We=r(No,"A",{href:!0,rel:!0});var Ja=n(We);qs=i(Ja,"torch.nn.Module"),Ja.forEach(o),zs=i(No,` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),No.forEach(o),Os=u(ve),E=r(ve,"DIV",{class:!0});var we=n(E);$(Ue.$$.fragment,we),Ds=u(we),B=r(we,"P",{});var ut=n(B);Ss=i(ut,"The "),dt=r(ut,"A",{href:!0});var Qa=n(dt);Ls=i(Qa,"RegNetForImageClassification"),Qa.forEach(o),Ws=i(ut," forward method, overrides the "),Et=r(ut,"CODE",{});var Xa=n(Et);Us=i(Xa,"__call__"),Xa.forEach(o),Hs=i(ut," special method."),ut.forEach(o),Vs=u(we),$(ie.$$.fragment,we),Bs=u(we),$(de.$$.fragment,we),we.forEach(o),ve.forEach(o),po=u(t),G=r(t,"H2",{class:!0});var To=n(G);ce=r(To,"A",{id:!0,class:!0,href:!0});var Ya=n(ce);Pt=r(Ya,"SPAN",{});var Za=n(Pt);$(He.$$.fragment,Za),Za.forEach(o),Ya.forEach(o),Gs=u(To),At=r(To,"SPAN",{});var er=n(At);Ks=i(er,"TFRegNetModel"),er.forEach(o),To.forEach(o),go=u(t),q=r(t,"DIV",{class:!0});var _t=n(q);$(Ve.$$.fragment,_t),Js=u(_t),Mt=r(_t,"P",{});var tr=n(Mt);Qs=i(tr,"The bare RegNet model outputting raw features without any specific head on top."),tr.forEach(o),Xs=u(_t),P=r(_t,"DIV",{class:!0});var be=n(P);$(Be.$$.fragment,be),Ys=u(be),K=r(be,"P",{});var vt=n(K);Zs=i(vt,"The "),ct=r(vt,"A",{href:!0});var or=n(ct);ea=i(or,"TFRegNetModel"),or.forEach(o),ta=i(vt," forward method, overrides the "),qt=r(vt,"CODE",{});var sr=n(qt);oa=i(sr,"__call__"),sr.forEach(o),sa=i(vt," special method."),vt.forEach(o),aa=u(be),$(fe.$$.fragment,be),ra=u(be),$(pe.$$.fragment,be),be.forEach(o),_t.forEach(o),ho=u(t),J=r(t,"H2",{class:!0});var Ro=n(J);ge=r(Ro,"A",{id:!0,class:!0,href:!0});var ar=n(ge);zt=r(ar,"SPAN",{});var rr=n(zt);$(Ge.$$.fragment,rr),rr.forEach(o),ar.forEach(o),na=u(Ro),Ot=r(Ro,"SPAN",{});var nr=n(Ot);la=i(nr,"TFRegNetForImageClassification"),nr.forEach(o),Ro.forEach(o),mo=u(t),z=r(t,"DIV",{class:!0});var wt=n(z);$(Ke.$$.fragment,wt),ia=u(wt),Dt=r(wt,"P",{});var lr=n(Dt);da=i(lr,`RegNet Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`),lr.forEach(o),ca=u(wt),A=r(wt,"DIV",{class:!0});var $e=n(A);$(Je.$$.fragment,$e),fa=u($e),Q=r($e,"P",{});var bt=n(Q);pa=i(bt,"The "),ft=r(bt,"A",{href:!0});var ir=n(ft);ga=i(ir,"TFRegNetForImageClassification"),ir.forEach(o),ha=i(bt," forward method, overrides the "),St=r(bt,"CODE",{});var dr=n(St);ma=i(dr,"__call__"),dr.forEach(o),ua=i(bt," special method."),bt.forEach(o),_a=u($e),$(he.$$.fragment,$e),va=u($e),$(me.$$.fragment,$e),$e.forEach(o),wt.forEach(o),this.h()},h(){c(d,"name","hf:doc:metadata"),c(d,"content",JSON.stringify(Rr)),c(p,"id","regnet"),c(p,"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(p,"href","#regnet"),c(h,"class","relative group"),c(Y,"id","overview"),c(Y,"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(Y,"href","#overview"),c(D,"class","relative group"),c(Ne,"href","https://arxiv.org/abs/2003.13678"),c(Ne,"rel","nofollow"),c(at,"href","/docs/transformers/v4.25.1/en/model_doc/auto#transformers.AutoImageProcessor"),c(Re,"href","https://arxiv.org/abs/2103.01988"),c(Re,"rel","nofollow"),c(ke,"href","https://huggingface.co/facebook/regnet-y-10b-seer"),c(ke,"rel","nofollow"),c(xe,"href","https://huggingface.co/Francesco"),c(xe,"rel","nofollow"),c(je,"href","https://huggingface.com/sayakpaul"),c(je,"rel","nofollow"),c(Fe,"href","https://huggingface.com/ariG23498"),c(Fe,"rel","nofollow"),c(Ie,"href","https://github.com/facebookresearch/pycls"),c(Ie,"rel","nofollow"),c(oe,"id","transformers.RegNetConfig"),c(oe,"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(oe,"href","#transformers.RegNetConfig"),c(S,"class","relative group"),c(rt,"href","/docs/transformers/v4.25.1/en/model_doc/regnet#transformers.RegNetModel"),c(Pe,"href","https://huggingface.co/facebook/regnet-y-040"),c(Pe,"rel","nofollow"),c(nt,"href","/docs/transformers/v4.25.1/en/main_classes/configuration#transformers.PretrainedConfig"),c(lt,"href","/docs/transformers/v4.25.1/en/main_classes/configuration#transformers.PretrainedConfig"),c(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ae,"id","transformers.RegNetModel"),c(ae,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(ae,"href","#transformers.RegNetModel"),c(U,"class","relative group"),c(ze,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),c(ze,"rel","nofollow"),c(it,"href","/docs/transformers/v4.25.1/en/model_doc/regnet#transformers.RegNetModel"),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(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(le,"id","transformers.RegNetForImageClassification"),c(le,"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(le,"href","#transformers.RegNetForImageClassification"),c(V,"class","relative group"),c(We,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),c(We,"rel","nofollow"),c(dt,"href","/docs/transformers/v4.25.1/en/model_doc/regnet#transformers.RegNetForImageClassification"),c(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(I,"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.TFRegNetModel"),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.TFRegNetModel"),c(G,"class","relative group"),c(ct,"href","/docs/transformers/v4.25.1/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(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ge,"id","transformers.TFRegNetForImageClassification"),c(ge,"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(ge,"href","#transformers.TFRegNetForImageClassification"),c(J,"class","relative group"),c(ft,"href","/docs/transformers/v4.25.1/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(z,"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,w,g),_(t,h,g),e(h,p),e(p,v),y(s,v,null),e(h,f),e(h,x),e(x,xo),_(t,Xt,g),_(t,D,g),e(D,Y),e(Y,$t),y(ye,$t,null),e(D,jo),e(D,yt),e(yt,Fo),_(t,Yt,g),_(t,Z,g),e(Z,Io),e(Z,Ne),e(Ne,Co),e(Z,Eo),_(t,Zt,g),_(t,et,g),e(et,Po),_(t,eo,g),_(t,tt,g),e(tt,Ao),_(t,to,g),_(t,ot,g),e(ot,Nt),e(Nt,Mo),_(t,oo,g),_(t,st,g),e(st,qo),_(t,so,g),_(t,ee,g),e(ee,Te),e(Te,zo),e(Te,at),e(at,Oo),e(Te,Do),e(ee,So),e(ee,te),e(te,Lo),e(te,Re),e(Re,Wo),e(te,Uo),e(te,ke),e(ke,Ho),_(t,ao,g),_(t,j,g),e(j,Vo),e(j,xe),e(xe,Bo),e(j,Go),e(j,je),e(je,Ko),e(j,Jo),e(j,Fe),e(Fe,Qo),e(j,Xo),e(j,Ie),e(Ie,Yo),e(j,Zo),_(t,ro,g),_(t,S,g),e(S,oe),e(oe,Tt),y(Ce,Tt,null),e(S,es),e(S,Rt),e(Rt,ts),_(t,no,g),_(t,F,g),y(Ee,F,null),e(F,os),e(F,L),e(L,ss),e(L,rt),e(rt,as),e(L,rs),e(L,Pe),e(Pe,ns),e(L,ls),e(F,is),e(F,W),e(W,ds),e(W,nt),e(nt,cs),e(W,fs),e(W,lt),e(lt,ps),e(W,gs),e(F,hs),y(se,F,null),_(t,lo,g),_(t,U,g),e(U,ae),e(ae,kt),y(Ae,kt,null),e(U,ms),e(U,xt),e(xt,us),_(t,io,g),_(t,M,g),y(Me,M,null),e(M,_s),e(M,qe),e(qe,vs),e(qe,ze),e(ze,ws),e(qe,bs),e(M,$s),e(M,C),y(Oe,C,null),e(C,ys),e(C,H),e(H,Ns),e(H,it),e(it,Ts),e(H,Rs),e(H,jt),e(jt,ks),e(H,xs),e(C,js),y(re,C,null),e(C,Fs),y(ne,C,null),_(t,co,g),_(t,V,g),e(V,le),e(le,Ft),y(De,Ft,null),e(V,Is),e(V,It),e(It,Cs),_(t,fo,g),_(t,I,g),y(Se,I,null),e(I,Es),e(I,Ct),e(Ct,Ps),e(I,As),e(I,Le),e(Le,Ms),e(Le,We),e(We,qs),e(Le,zs),e(I,Os),e(I,E),y(Ue,E,null),e(E,Ds),e(E,B),e(B,Ss),e(B,dt),e(dt,Ls),e(B,Ws),e(B,Et),e(Et,Us),e(B,Hs),e(E,Vs),y(ie,E,null),e(E,Bs),y(de,E,null),_(t,po,g),_(t,G,g),e(G,ce),e(ce,Pt),y(He,Pt,null),e(G,Gs),e(G,At),e(At,Ks),_(t,go,g),_(t,q,g),y(Ve,q,null),e(q,Js),e(q,Mt),e(Mt,Qs),e(q,Xs),e(q,P),y(Be,P,null),e(P,Ys),e(P,K),e(K,Zs),e(K,ct),e(ct,ea),e(K,ta),e(K,qt),e(qt,oa),e(K,sa),e(P,aa),y(fe,P,null),e(P,ra),y(pe,P,null),_(t,ho,g),_(t,J,g),e(J,ge),e(ge,zt),y(Ge,zt,null),e(J,na),e(J,Ot),e(Ot,la),_(t,mo,g),_(t,z,g),y(Ke,z,null),e(z,ia),e(z,Dt),e(Dt,da),e(z,ca),e(z,A),y(Je,A,null),e(A,fa),e(A,Q),e(Q,pa),e(Q,ft),e(ft,ga),e(Q,ha),e(Q,St),e(St,ma),e(Q,ua),e(A,_a),y(he,A,null),e(A,va),y(me,A,null),uo=!0},p(t,[g]){const Qe={};g&2&&(Qe.$$scope={dirty:g,ctx:t}),se.$set(Qe);const Lt={};g&2&&(Lt.$$scope={dirty:g,ctx:t}),re.$set(Lt);const Wt={};g&2&&(Wt.$$scope={dirty:g,ctx:t}),ne.$set(Wt);const Ut={};g&2&&(Ut.$$scope={dirty:g,ctx:t}),ie.$set(Ut);const Xe={};g&2&&(Xe.$$scope={dirty:g,ctx:t}),de.$set(Xe);const Ht={};g&2&&(Ht.$$scope={dirty:g,ctx:t}),fe.$set(Ht);const Vt={};g&2&&(Vt.$$scope={dirty:g,ctx:t}),pe.$set(Vt);const Bt={};g&2&&(Bt.$$scope={dirty:g,ctx:t}),he.$set(Bt);const Ye={};g&2&&(Ye.$$scope={dirty:g,ctx:t}),me.$set(Ye)},i(t){uo||(N(s.$$.fragment,t),N(ye.$$.fragment,t),N(Ce.$$.fragment,t),N(Ee.$$.fragment,t),N(se.$$.fragment,t),N(Ae.$$.fragment,t),N(Me.$$.fragment,t),N(Oe.$$.fragment,t),N(re.$$.fragment,t),N(ne.$$.fragment,t),N(De.$$.fragment,t),N(Se.$$.fragment,t),N(Ue.$$.fragment,t),N(ie.$$.fragment,t),N(de.$$.fragment,t),N(He.$$.fragment,t),N(Ve.$$.fragment,t),N(Be.$$.fragment,t),N(fe.$$.fragment,t),N(pe.$$.fragment,t),N(Ge.$$.fragment,t),N(Ke.$$.fragment,t),N(Je.$$.fragment,t),N(he.$$.fragment,t),N(me.$$.fragment,t),uo=!0)},o(t){T(s.$$.fragment,t),T(ye.$$.fragment,t),T(Ce.$$.fragment,t),T(Ee.$$.fragment,t),T(se.$$.fragment,t),T(Ae.$$.fragment,t),T(Me.$$.fragment,t),T(Oe.$$.fragment,t),T(re.$$.fragment,t),T(ne.$$.fragment,t),T(De.$$.fragment,t),T(Se.$$.fragment,t),T(Ue.$$.fragment,t),T(ie.$$.fragment,t),T(de.$$.fragment,t),T(He.$$.fragment,t),T(Ve.$$.fragment,t),T(Be.$$.fragment,t),T(fe.$$.fragment,t),T(pe.$$.fragment,t),T(Ge.$$.fragment,t),T(Ke.$$.fragment,t),T(Je.$$.fragment,t),T(he.$$.fragment,t),T(me.$$.fragment,t),uo=!1},d(t){o(d),t&&o(w),t&&o(h),R(s),t&&o(Xt),t&&o(D),R(ye),t&&o(Yt),t&&o(Z),t&&o(Zt),t&&o(et),t&&o(eo),t&&o(tt),t&&o(to),t&&o(ot),t&&o(oo),t&&o(st),t&&o(so),t&&o(ee),t&&o(ao),t&&o(j),t&&o(ro),t&&o(S),R(Ce),t&&o(no),t&&o(F),R(Ee),R(se),t&&o(lo),t&&o(U),R(Ae),t&&o(io),t&&o(M),R(Me),R(Oe),R(re),R(ne),t&&o(co),t&&o(V),R(De),t&&o(fo),t&&o(I),R(Se),R(Ue),R(ie),R(de),t&&o(po),t&&o(G),R(He),t&&o(go),t&&o(q),R(Ve),R(Be),R(fe),R(pe),t&&o(ho),t&&o(J),R(Ge),t&&o(mo),t&&o(z),R(Ke),R(Je),R(he),R(me)}}}const Rr={local:"regnet",sections:[{local:"overview",title:"Overview"},{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"}],title:"RegNet"};function kr(k){return hr(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Pr extends cr{constructor(d){super();fr(this,d,kr,Tr,pr,{})}}export{Pr as default,Rr as metadata};
