import{S as ti,i as oi,s as ni,e as r,k as m,w as M,t as n,M as ai,c as s,d as t,m as p,a as i,x as b,h as a,b as c,N as ri,G as e,g as f,y as E,q as $,o as A,B as V,v as si,L as bn}from"../../chunks/vendor-hf-doc-builder.js";import{T as Ao}from"../../chunks/Tip-hf-doc-builder.js";import{D as vt}from"../../chunks/Docstring-hf-doc-builder.js";import{C as En}from"../../chunks/CodeBlock-hf-doc-builder.js";import{I as Ot}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{E as Mn}from"../../chunks/ExampleCodeBlock-hf-doc-builder.js";function ii(U){let d,y,u,g,v;return g=new En({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFZpVE1BRUNvbmZpZyUyQyUyMFZpVE1BRU1vZGVsJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMFZpVCUyME1BRSUyMHZpdC1tYWUtYmFzZSUyMHN0eWxlJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBWaVRNQUVDb25maWcoKSUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBtb2RlbCUyMCh3aXRoJTIwcmFuZG9tJTIwd2VpZ2h0cyklMjBmcm9tJTIwdGhlJTIwdml0LW1hZS1iYXNlJTIwc3R5bGUlMjBjb25maWd1cmF0aW9uJTBBbW9kZWwlMjAlM0QlMjBWaVRNQUVNb2RlbChjb25maWd1cmF0aW9uKSUwQSUwQSUyMyUyMEFjY2Vzc2luZyUyMHRoZSUyMG1vZGVsJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBtb2RlbC5jb25maWc=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> ViTMAEConfig, ViTMAEModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a ViT MAE vit-mae-base style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = ViTMAEConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model (with random weights) from the vit-mae-base style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = ViTMAEModel(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=r("p"),y=n("Example:"),u=m(),M(g.$$.fragment)},l(l){d=s(l,"P",{});var h=i(d);y=a(h,"Example:"),h.forEach(t),u=p(l),b(g.$$.fragment,l)},m(l,h){f(l,d,h),e(d,y),f(l,u,h),E(g,l,h),v=!0},p:bn,i(l){v||($(g.$$.fragment,l),v=!0)},o(l){A(g.$$.fragment,l),v=!1},d(l){l&&t(d),l&&t(u),V(g,l)}}}function li(U){let d,y,u,g,v;return{c(){d=r("p"),y=n("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=r("code"),g=n("Module"),v=n(`
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(l){d=s(l,"P",{});var h=i(d);y=a(h,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(h,"CODE",{});var F=i(u);g=a(F,"Module"),F.forEach(t),v=a(h,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),h.forEach(t)},m(l,h){f(l,d,h),e(d,y),e(d,u),e(u,g),e(d,v)},d(l){l&&t(d)}}}function di(U){let d,y,u,g,v;return g=new En({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFZpVE1BRU1vZGVsJTBBZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEElMEF1cmwlMjAlM0QlMjAlMjJodHRwJTNBJTJGJTJGaW1hZ2VzLmNvY29kYXRhc2V0Lm9yZyUyRnZhbDIwMTclMkYwMDAwMDAwMzk3NjkuanBnJTIyJTBBaW1hZ2UlMjAlM0QlMjBJbWFnZS5vcGVuKHJlcXVlc3RzLmdldCh1cmwlMkMlMjBzdHJlYW0lM0RUcnVlKS5yYXcpJTBBJTBBaW1hZ2VfcHJvY2Vzc29yJTIwJTNEJTIwQXV0b0ltYWdlUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRnZpdC1tYWUtYmFzZSUyMiklMEFtb2RlbCUyMCUzRCUyMFZpVE1BRU1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRnZpdC1tYWUtYmFzZSUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjBpbWFnZV9wcm9jZXNzb3IoaW1hZ2VzJTNEaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyklMEFsYXN0X2hpZGRlbl9zdGF0ZXMlMjAlM0QlMjBvdXRwdXRzLmxhc3RfaGlkZGVuX3N0YXRl",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, ViTMAEModel
<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/vit-mae-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = ViTMAEModel.from_pretrained(<span class="hljs-string">&quot;facebook/vit-mae-base&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = image_processor(images=image, return_tensors=<span class="hljs-string">&quot;pt&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=r("p"),y=n("Examples:"),u=m(),M(g.$$.fragment)},l(l){d=s(l,"P",{});var h=i(d);y=a(h,"Examples:"),h.forEach(t),u=p(l),b(g.$$.fragment,l)},m(l,h){f(l,d,h),e(d,y),f(l,u,h),E(g,l,h),v=!0},p:bn,i(l){v||($(g.$$.fragment,l),v=!0)},o(l){A(g.$$.fragment,l),v=!1},d(l){l&&t(d),l&&t(u),V(g,l)}}}function ci(U){let d,y,u,g,v;return{c(){d=r("p"),y=n("Note that we provide a script to pre-train this model on custom data in our "),u=r("a"),g=n(`examples
directory`),v=n("."),this.h()},l(l){d=s(l,"P",{});var h=i(d);y=a(h,"Note that we provide a script to pre-train this model on custom data in our "),u=s(h,"A",{href:!0,rel:!0});var F=i(u);g=a(F,`examples
directory`),F.forEach(t),v=a(h,"."),h.forEach(t),this.h()},h(){c(u,"href","https://github.com/huggingface/transformers/tree/main/examples/pytorch/image-pretraining"),c(u,"rel","nofollow")},m(l,h){f(l,d,h),e(d,y),e(d,u),e(u,g),e(d,v)},d(l){l&&t(d)}}}function hi(U){let d,y,u,g,v;return{c(){d=r("p"),y=n("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=r("code"),g=n("Module"),v=n(`
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(l){d=s(l,"P",{});var h=i(d);y=a(h,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(h,"CODE",{});var F=i(u);g=a(F,"Module"),F.forEach(t),v=a(h,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),h.forEach(t)},m(l,h){f(l,d,h),e(d,y),e(d,u),e(u,g),e(d,v)},d(l){l&&t(d)}}}function mi(U){let d,y,u,g,v;return g=new En({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFZpVE1BRUZvclByZVRyYWluaW5nJTBBZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEElMEF1cmwlMjAlM0QlMjAlMjJodHRwJTNBJTJGJTJGaW1hZ2VzLmNvY29kYXRhc2V0Lm9yZyUyRnZhbDIwMTclMkYwMDAwMDAwMzk3NjkuanBnJTIyJTBBaW1hZ2UlMjAlM0QlMjBJbWFnZS5vcGVuKHJlcXVlc3RzLmdldCh1cmwlMkMlMjBzdHJlYW0lM0RUcnVlKS5yYXcpJTBBJTBBaW1hZ2VfcHJvY2Vzc29yJTIwJTNEJTIwQXV0b0ltYWdlUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRnZpdC1tYWUtYmFzZSUyMiklMEFtb2RlbCUyMCUzRCUyMFZpVE1BRUZvclByZVRyYWluaW5nLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRnZpdC1tYWUtYmFzZSUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjBpbWFnZV9wcm9jZXNzb3IoaW1hZ2VzJTNEaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyklMEFsb3NzJTIwJTNEJTIwb3V0cHV0cy5sb3NzJTBBbWFzayUyMCUzRCUyMG91dHB1dHMubWFzayUwQWlkc19yZXN0b3JlJTIwJTNEJTIwb3V0cHV0cy5pZHNfcmVzdG9yZQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, ViTMAEForPreTraining
<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/vit-mae-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = ViTMAEForPreTraining.from_pretrained(<span class="hljs-string">&quot;facebook/vit-mae-base&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = image_processor(images=image, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>loss = outputs.loss
<span class="hljs-meta">&gt;&gt;&gt; </span>mask = outputs.mask
<span class="hljs-meta">&gt;&gt;&gt; </span>ids_restore = outputs.ids_restore`}}),{c(){d=r("p"),y=n("Examples:"),u=m(),M(g.$$.fragment)},l(l){d=s(l,"P",{});var h=i(d);y=a(h,"Examples:"),h.forEach(t),u=p(l),b(g.$$.fragment,l)},m(l,h){f(l,d,h),e(d,y),f(l,u,h),E(g,l,h),v=!0},p:bn,i(l){v||($(g.$$.fragment,l),v=!0)},o(l){A(g.$$.fragment,l),v=!1},d(l){l&&t(d),l&&t(u),V(g,l)}}}function pi(U){let d,y,u,g,v,l,h,F,Pe,we,I,O,H,w,je,S,Ue,Me,W,Je,G,Y,Ce,be,R,Ie,Ee,B,pe,ze,le,P,z,$e,J,X,Ze,q,We,Ne,Z,L,Q,de,Re,K,Be,ee,D,ce,te,qe,fe,C,Se,N,oe,De;return{c(){d=r("p"),y=n("TensorFlow models and layers in "),u=r("code"),g=n("transformers"),v=n(" accept two formats as input:"),l=m(),h=r("ul"),F=r("li"),Pe=n("having all inputs as keyword arguments (like PyTorch models), or"),we=m(),I=r("li"),O=n("having all inputs as a list, tuple or dict in the first positional argument."),H=m(),w=r("p"),je=n(`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),S=r("code"),Ue=n("model.fit()"),Me=n(` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),W=r("code"),Je=n("model.fit()"),G=n(` supports! If, however, you want to use the second
format outside of Keras methods like `),Y=r("code"),Ce=n("fit()"),be=n(" and "),R=r("code"),Ie=n("predict()"),Ee=n(`, such as when creating your own layers or models with
the Keras `),B=r("code"),pe=n("Functional"),ze=n(` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),le=m(),P=r("ul"),z=r("li"),$e=n("a single Tensor with "),J=r("code"),X=n("pixel_values"),Ze=n(" only and nothing else: "),q=r("code"),We=n("model(pixel_values)"),Ne=m(),Z=r("li"),L=n(`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),Q=r("code"),de=n("model([pixel_values, attention_mask])"),Re=n(" or "),K=r("code"),Be=n("model([pixel_values, attention_mask, token_type_ids])"),ee=m(),D=r("li"),ce=n(`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),te=r("code"),qe=n('model({"pixel_values": pixel_values, "token_type_ids": token_type_ids})'),fe=m(),C=r("p"),Se=n(`Note that when creating models and layers with
`),N=r("a"),oe=n("subclassing"),De=n(` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),this.h()},l(T){d=s(T,"P",{});var k=i(d);y=a(k,"TensorFlow models and layers in "),u=s(k,"CODE",{});var et=i(u);g=a(et,"transformers"),et.forEach(t),v=a(k," accept two formats as input:"),k.forEach(t),l=p(T),h=s(T,"UL",{});var he=i(h);F=s(he,"LI",{});var me=i(F);Pe=a(me,"having all inputs as keyword arguments (like PyTorch models), or"),me.forEach(t),we=p(he),I=s(he,"LI",{});var yt=i(I);O=a(yt,"having all inputs as a list, tuple or dict in the first positional argument."),yt.forEach(t),he.forEach(t),H=p(T),w=s(T,"P",{});var x=i(w);je=a(x,`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),S=s(x,"CODE",{});var ue=i(S);Ue=a(ue,"model.fit()"),ue.forEach(t),Me=a(x,` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),W=s(x,"CODE",{});var tt=i(W);Je=a(tt,"model.fit()"),tt.forEach(t),G=a(x,` supports! If, however, you want to use the second
format outside of Keras methods like `),Y=s(x,"CODE",{});var Ae=i(Y);Ce=a(Ae,"fit()"),Ae.forEach(t),be=a(x," and "),R=s(x,"CODE",{});var ot=i(R);Ie=a(ot,"predict()"),ot.forEach(t),Ee=a(x,`, such as when creating your own layers or models with
the Keras `),B=s(x,"CODE",{});var Ge=i(B);pe=a(Ge,"Functional"),Ge.forEach(t),ze=a(x,` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),x.forEach(t),le=p(T),P=s(T,"UL",{});var j=i(P);z=s(j,"LI",{});var ne=i(z);$e=a(ne,"a single Tensor with "),J=s(ne,"CODE",{});var ge=i(J);X=a(ge,"pixel_values"),ge.forEach(t),Ze=a(ne," only and nothing else: "),q=s(ne,"CODE",{});var nt=i(q);We=a(nt,"model(pixel_values)"),nt.forEach(t),ne.forEach(t),Ne=p(j),Z=s(j,"LI",{});var ae=i(Z);L=a(ae,`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),Q=s(ae,"CODE",{});var _e=i(Q);de=a(_e,"model([pixel_values, attention_mask])"),_e.forEach(t),Re=a(ae," or "),K=s(ae,"CODE",{});var at=i(K);Be=a(at,"model([pixel_values, attention_mask, token_type_ids])"),at.forEach(t),ae.forEach(t),ee=p(j),D=s(j,"LI",{});var Oe=i(D);ce=a(Oe,`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),te=s(Oe,"CODE",{});var Te=i(te);qe=a(Te,'model({"pixel_values": pixel_values, "token_type_ids": token_type_ids})'),Te.forEach(t),Oe.forEach(t),j.forEach(t),fe=p(T),C=s(T,"P",{});var ve=i(C);Se=a(ve,`Note that when creating models and layers with
`),N=s(ve,"A",{href:!0,rel:!0});var rt=i(N);oe=a(rt,"subclassing"),rt.forEach(t),De=a(ve,` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),ve.forEach(t),this.h()},h(){c(N,"href","https://keras.io/guides/making_new_layers_and_models_via_subclassing/"),c(N,"rel","nofollow")},m(T,k){f(T,d,k),e(d,y),e(d,u),e(u,g),e(d,v),f(T,l,k),f(T,h,k),e(h,F),e(F,Pe),e(h,we),e(h,I),e(I,O),f(T,H,k),f(T,w,k),e(w,je),e(w,S),e(S,Ue),e(w,Me),e(w,W),e(W,Je),e(w,G),e(w,Y),e(Y,Ce),e(w,be),e(w,R),e(R,Ie),e(w,Ee),e(w,B),e(B,pe),e(w,ze),f(T,le,k),f(T,P,k),e(P,z),e(z,$e),e(z,J),e(J,X),e(z,Ze),e(z,q),e(q,We),e(P,Ne),e(P,Z),e(Z,L),e(Z,Q),e(Q,de),e(Z,Re),e(Z,K),e(K,Be),e(P,ee),e(P,D),e(D,ce),e(D,te),e(te,qe),f(T,fe,k),f(T,C,k),e(C,Se),e(C,N),e(N,oe),e(C,De)},d(T){T&&t(d),T&&t(l),T&&t(h),T&&t(H),T&&t(w),T&&t(le),T&&t(P),T&&t(fe),T&&t(C)}}}function fi(U){let d,y,u,g,v;return{c(){d=r("p"),y=n("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=r("code"),g=n("Module"),v=n(`
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(l){d=s(l,"P",{});var h=i(d);y=a(h,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(h,"CODE",{});var F=i(u);g=a(F,"Module"),F.forEach(t),v=a(h,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),h.forEach(t)},m(l,h){f(l,d,h),e(d,y),e(d,u),e(u,g),e(d,v)},d(l){l&&t(d)}}}function ui(U){let d,y,u,g,v;return g=new En({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFRGVmlUTUFFTW9kZWwlMEFmcm9tJTIwUElMJTIwaW1wb3J0JTIwSW1hZ2UlMEFpbXBvcnQlMjByZXF1ZXN0cyUwQSUwQXVybCUyMCUzRCUyMCUyMmh0dHAlM0ElMkYlMkZpbWFnZXMuY29jb2RhdGFzZXQub3JnJTJGdmFsMjAxNyUyRjAwMDAwMDAzOTc2OS5qcGclMjIlMEFpbWFnZSUyMCUzRCUyMEltYWdlLm9wZW4ocmVxdWVzdHMuZ2V0KHVybCUyQyUyMHN0cmVhbSUzRFRydWUpLnJhdyklMEElMEFpbWFnZV9wcm9jZXNzb3IlMjAlM0QlMjBBdXRvSW1hZ2VQcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMmZhY2Vib29rJTJGdml0LW1hZS1iYXNlJTIyKSUwQW1vZGVsJTIwJTNEJTIwVEZWaVRNQUVNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyZmFjZWJvb2slMkZ2aXQtbWFlLWJhc2UlMjIpJTBBJTBBaW5wdXRzJTIwJTNEJTIwaW1hZ2VfcHJvY2Vzc29yKGltYWdlcyUzRGltYWdlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJ0ZiUyMiklMEFvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpJTBBbGFzdF9oaWRkZW5fc3RhdGVzJTIwJTNEJTIwb3V0cHV0cy5sYXN0X2hpZGRlbl9zdGF0ZQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, TFViTMAEModel
<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/vit-mae-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFViTMAEModel.from_pretrained(<span class="hljs-string">&quot;facebook/vit-mae-base&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = image_processor(images=image, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>last_hidden_states = outputs.last_hidden_state`}}),{c(){d=r("p"),y=n("Examples:"),u=m(),M(g.$$.fragment)},l(l){d=s(l,"P",{});var h=i(d);y=a(h,"Examples:"),h.forEach(t),u=p(l),b(g.$$.fragment,l)},m(l,h){f(l,d,h),e(d,y),f(l,u,h),E(g,l,h),v=!0},p:bn,i(l){v||($(g.$$.fragment,l),v=!0)},o(l){A(g.$$.fragment,l),v=!1},d(l){l&&t(d),l&&t(u),V(g,l)}}}function gi(U){let d,y,u,g,v,l,h,F,Pe,we,I,O,H,w,je,S,Ue,Me,W,Je,G,Y,Ce,be,R,Ie,Ee,B,pe,ze,le,P,z,$e,J,X,Ze,q,We,Ne,Z,L,Q,de,Re,K,Be,ee,D,ce,te,qe,fe,C,Se,N,oe,De;return{c(){d=r("p"),y=n("TensorFlow models and layers in "),u=r("code"),g=n("transformers"),v=n(" accept two formats as input:"),l=m(),h=r("ul"),F=r("li"),Pe=n("having all inputs as keyword arguments (like PyTorch models), or"),we=m(),I=r("li"),O=n("having all inputs as a list, tuple or dict in the first positional argument."),H=m(),w=r("p"),je=n(`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),S=r("code"),Ue=n("model.fit()"),Me=n(` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),W=r("code"),Je=n("model.fit()"),G=n(` supports! If, however, you want to use the second
format outside of Keras methods like `),Y=r("code"),Ce=n("fit()"),be=n(" and "),R=r("code"),Ie=n("predict()"),Ee=n(`, such as when creating your own layers or models with
the Keras `),B=r("code"),pe=n("Functional"),ze=n(` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),le=m(),P=r("ul"),z=r("li"),$e=n("a single Tensor with "),J=r("code"),X=n("pixel_values"),Ze=n(" only and nothing else: "),q=r("code"),We=n("model(pixel_values)"),Ne=m(),Z=r("li"),L=n(`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),Q=r("code"),de=n("model([pixel_values, attention_mask])"),Re=n(" or "),K=r("code"),Be=n("model([pixel_values, attention_mask, token_type_ids])"),ee=m(),D=r("li"),ce=n(`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),te=r("code"),qe=n('model({"pixel_values": pixel_values, "token_type_ids": token_type_ids})'),fe=m(),C=r("p"),Se=n(`Note that when creating models and layers with
`),N=r("a"),oe=n("subclassing"),De=n(` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),this.h()},l(T){d=s(T,"P",{});var k=i(d);y=a(k,"TensorFlow models and layers in "),u=s(k,"CODE",{});var et=i(u);g=a(et,"transformers"),et.forEach(t),v=a(k," accept two formats as input:"),k.forEach(t),l=p(T),h=s(T,"UL",{});var he=i(h);F=s(he,"LI",{});var me=i(F);Pe=a(me,"having all inputs as keyword arguments (like PyTorch models), or"),me.forEach(t),we=p(he),I=s(he,"LI",{});var yt=i(I);O=a(yt,"having all inputs as a list, tuple or dict in the first positional argument."),yt.forEach(t),he.forEach(t),H=p(T),w=s(T,"P",{});var x=i(w);je=a(x,`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),S=s(x,"CODE",{});var ue=i(S);Ue=a(ue,"model.fit()"),ue.forEach(t),Me=a(x,` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),W=s(x,"CODE",{});var tt=i(W);Je=a(tt,"model.fit()"),tt.forEach(t),G=a(x,` supports! If, however, you want to use the second
format outside of Keras methods like `),Y=s(x,"CODE",{});var Ae=i(Y);Ce=a(Ae,"fit()"),Ae.forEach(t),be=a(x," and "),R=s(x,"CODE",{});var ot=i(R);Ie=a(ot,"predict()"),ot.forEach(t),Ee=a(x,`, such as when creating your own layers or models with
the Keras `),B=s(x,"CODE",{});var Ge=i(B);pe=a(Ge,"Functional"),Ge.forEach(t),ze=a(x,` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),x.forEach(t),le=p(T),P=s(T,"UL",{});var j=i(P);z=s(j,"LI",{});var ne=i(z);$e=a(ne,"a single Tensor with "),J=s(ne,"CODE",{});var ge=i(J);X=a(ge,"pixel_values"),ge.forEach(t),Ze=a(ne," only and nothing else: "),q=s(ne,"CODE",{});var nt=i(q);We=a(nt,"model(pixel_values)"),nt.forEach(t),ne.forEach(t),Ne=p(j),Z=s(j,"LI",{});var ae=i(Z);L=a(ae,`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),Q=s(ae,"CODE",{});var _e=i(Q);de=a(_e,"model([pixel_values, attention_mask])"),_e.forEach(t),Re=a(ae," or "),K=s(ae,"CODE",{});var at=i(K);Be=a(at,"model([pixel_values, attention_mask, token_type_ids])"),at.forEach(t),ae.forEach(t),ee=p(j),D=s(j,"LI",{});var Oe=i(D);ce=a(Oe,`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),te=s(Oe,"CODE",{});var Te=i(te);qe=a(Te,'model({"pixel_values": pixel_values, "token_type_ids": token_type_ids})'),Te.forEach(t),Oe.forEach(t),j.forEach(t),fe=p(T),C=s(T,"P",{});var ve=i(C);Se=a(ve,`Note that when creating models and layers with
`),N=s(ve,"A",{href:!0,rel:!0});var rt=i(N);oe=a(rt,"subclassing"),rt.forEach(t),De=a(ve,` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),ve.forEach(t),this.h()},h(){c(N,"href","https://keras.io/guides/making_new_layers_and_models_via_subclassing/"),c(N,"rel","nofollow")},m(T,k){f(T,d,k),e(d,y),e(d,u),e(u,g),e(d,v),f(T,l,k),f(T,h,k),e(h,F),e(F,Pe),e(h,we),e(h,I),e(I,O),f(T,H,k),f(T,w,k),e(w,je),e(w,S),e(S,Ue),e(w,Me),e(w,W),e(W,Je),e(w,G),e(w,Y),e(Y,Ce),e(w,be),e(w,R),e(R,Ie),e(w,Ee),e(w,B),e(B,pe),e(w,ze),f(T,le,k),f(T,P,k),e(P,z),e(z,$e),e(z,J),e(J,X),e(z,Ze),e(z,q),e(q,We),e(P,Ne),e(P,Z),e(Z,L),e(Z,Q),e(Q,de),e(Z,Re),e(Z,K),e(K,Be),e(P,ee),e(P,D),e(D,ce),e(D,te),e(te,qe),f(T,fe,k),f(T,C,k),e(C,Se),e(C,N),e(N,oe),e(C,De)},d(T){T&&t(d),T&&t(l),T&&t(h),T&&t(H),T&&t(w),T&&t(le),T&&t(P),T&&t(fe),T&&t(C)}}}function _i(U){let d,y,u,g,v;return{c(){d=r("p"),y=n("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=r("code"),g=n("Module"),v=n(`
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(l){d=s(l,"P",{});var h=i(d);y=a(h,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(h,"CODE",{});var F=i(u);g=a(F,"Module"),F.forEach(t),v=a(h,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),h.forEach(t)},m(l,h){f(l,d,h),e(d,y),e(d,u),e(u,g),e(d,v)},d(l){l&&t(d)}}}function Ti(U){let d,y,u,g,v;return g=new En({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFRGVmlUTUFFRm9yUHJlVHJhaW5pbmclMEFmcm9tJTIwUElMJTIwaW1wb3J0JTIwSW1hZ2UlMEFpbXBvcnQlMjByZXF1ZXN0cyUwQSUwQXVybCUyMCUzRCUyMCUyMmh0dHAlM0ElMkYlMkZpbWFnZXMuY29jb2RhdGFzZXQub3JnJTJGdmFsMjAxNyUyRjAwMDAwMDAzOTc2OS5qcGclMjIlMEFpbWFnZSUyMCUzRCUyMEltYWdlLm9wZW4ocmVxdWVzdHMuZ2V0KHVybCUyQyUyMHN0cmVhbSUzRFRydWUpLnJhdyklMEElMEFpbWFnZV9wcm9jZXNzb3IlMjAlM0QlMjBBdXRvSW1hZ2VQcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMmZhY2Vib29rJTJGdml0LW1hZS1iYXNlJTIyKSUwQW1vZGVsJTIwJTNEJTIwVEZWaVRNQUVGb3JQcmVUcmFpbmluZy5mcm9tX3ByZXRyYWluZWQoJTIyZmFjZWJvb2slMkZ2aXQtbWFlLWJhc2UlMjIpJTBBJTBBaW5wdXRzJTIwJTNEJTIwaW1hZ2VfcHJvY2Vzc29yKGltYWdlcyUzRGltYWdlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEFvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpJTBBbG9zcyUyMCUzRCUyMG91dHB1dHMubG9zcyUwQW1hc2slMjAlM0QlMjBvdXRwdXRzLm1hc2slMEFpZHNfcmVzdG9yZSUyMCUzRCUyMG91dHB1dHMuaWRzX3Jlc3RvcmU=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, TFViTMAEForPreTraining
<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/vit-mae-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFViTMAEForPreTraining.from_pretrained(<span class="hljs-string">&quot;facebook/vit-mae-base&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = image_processor(images=image, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>loss = outputs.loss
<span class="hljs-meta">&gt;&gt;&gt; </span>mask = outputs.mask
<span class="hljs-meta">&gt;&gt;&gt; </span>ids_restore = outputs.ids_restore`}}),{c(){d=r("p"),y=n("Examples:"),u=m(),M(g.$$.fragment)},l(l){d=s(l,"P",{});var h=i(d);y=a(h,"Examples:"),h.forEach(t),u=p(l),b(g.$$.fragment,l)},m(l,h){f(l,d,h),e(d,y),f(l,u,h),E(g,l,h),v=!0},p:bn,i(l){v||($(g.$$.fragment,l),v=!0)},o(l){A(g.$$.fragment,l),v=!1},d(l){l&&t(d),l&&t(u),V(g,l)}}}function vi(U){let d,y,u,g,v,l,h,F,Pe,we,I,O,H,w,je,S,Ue,Me,W,Je,G,Y,Ce,be,R,Ie,Ee,B,pe,ze,le,P,z,$e,J,X,Ze,q,We,Ne,Z,L,Q,de,Re,K,Be,ee,D,ce,te,qe,fe,C,Se,N,oe,De,T,k,et,he,me,yt,x,ue,tt,Ae,ot,Ge,j,ne,ge,nt,ae,_e,at,Oe,Te,ve,rt,Ht,na,aa,$n,st,wt,Go,Gt,ra,Yo,sa,An,Vo,ia,Vn,Mt,bt,ko,la,da,Yt,ca,ha,ma,it,pa,Fo,fa,ua,Xt,ga,_a,kn,xo,Ta,Fn,lt,Et,Xo,Lt,va,Lo,ya,xn,ye,Qt,wa,dt,Ma,Po,ba,Ea,Kt,$a,Aa,Va,ct,ka,jo,Fa,xa,Uo,Pa,ja,Ua,$t,Pn,ht,At,Qo,eo,Ja,Ko,Ca,jn,He,to,Ia,oo,za,no,Za,Wa,Na,Ve,ao,Ra,mt,Ba,Jo,qa,Sa,en,Da,Oa,Ha,Vt,Ga,kt,Un,pt,Ft,tn,ro,Ya,on,Xa,Jn,re,so,La,nn,Qa,Ka,xt,er,io,tr,lo,or,nr,ar,ke,co,rr,ft,sr,Co,ir,lr,an,dr,cr,hr,Pt,mr,jt,Cn,ut,Ut,rn,ho,pr,sn,fr,In,se,mo,ur,po,gr,Io,_r,Tr,vr,fo,yr,uo,wr,Mr,br,Jt,Er,Fe,go,$r,gt,Ar,zo,Vr,kr,ln,Fr,xr,Pr,Ct,jr,It,zn,_t,zt,dn,_o,Ur,cn,Jr,Zn,ie,To,Cr,vo,Ir,Zo,zr,Zr,Wr,yo,Nr,wo,Rr,Br,qr,Zt,Sr,xe,Mo,Dr,Tt,Or,Wo,Hr,Gr,hn,Yr,Xr,Lr,Wt,Qr,Nt,Wn;return l=new Ot({}),w=new Ot({}),Gt=new Ot({}),Lt=new Ot({}),Qt=new vt({props:{name:"class transformers.ViTMAEConfig",anchor:"transformers.ViTMAEConfig",parameters:[{name:"hidden_size",val:" = 768"},{name:"num_hidden_layers",val:" = 12"},{name:"num_attention_heads",val:" = 12"},{name:"intermediate_size",val:" = 3072"},{name:"hidden_act",val:" = 'gelu'"},{name:"hidden_dropout_prob",val:" = 0.0"},{name:"attention_probs_dropout_prob",val:" = 0.0"},{name:"initializer_range",val:" = 0.02"},{name:"layer_norm_eps",val:" = 1e-12"},{name:"image_size",val:" = 224"},{name:"patch_size",val:" = 16"},{name:"num_channels",val:" = 3"},{name:"qkv_bias",val:" = True"},{name:"decoder_num_attention_heads",val:" = 16"},{name:"decoder_hidden_size",val:" = 512"},{name:"decoder_num_hidden_layers",val:" = 8"},{name:"decoder_intermediate_size",val:" = 2048"},{name:"mask_ratio",val:" = 0.75"},{name:"norm_pix_loss",val:" = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ViTMAEConfig.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 768) &#x2014;
Dimensionality of the encoder layers and the pooler layer.`,name:"hidden_size"},{anchor:"transformers.ViTMAEConfig.num_hidden_layers",description:`<strong>num_hidden_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 12) &#x2014;
Number of hidden layers in the Transformer encoder.`,name:"num_hidden_layers"},{anchor:"transformers.ViTMAEConfig.num_attention_heads",description:`<strong>num_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 12) &#x2014;
Number of attention heads for each attention layer in the Transformer encoder.`,name:"num_attention_heads"},{anchor:"transformers.ViTMAEConfig.intermediate_size",description:`<strong>intermediate_size</strong> (<code>int</code>, <em>optional</em>, defaults to 3072) &#x2014;
Dimensionality of the &#x201C;intermediate&#x201D; (i.e., feed-forward) layer in the Transformer encoder.`,name:"intermediate_size"},{anchor:"transformers.ViTMAEConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code> or <code>function</code>, <em>optional</em>, defaults to <code>&quot;gelu&quot;</code>) &#x2014;
The non-linear activation function (function or string) in the encoder and pooler. 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.ViTMAEConfig.hidden_dropout_prob",description:`<strong>hidden_dropout_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout probabilitiy for all fully connected layers in the embeddings, encoder, and pooler.`,name:"hidden_dropout_prob"},{anchor:"transformers.ViTMAEConfig.attention_probs_dropout_prob",description:`<strong>attention_probs_dropout_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout ratio for the attention probabilities.`,name:"attention_probs_dropout_prob"},{anchor:"transformers.ViTMAEConfig.initializer_range",description:`<strong>initializer_range</strong> (<code>float</code>, <em>optional</em>, defaults to 0.02) &#x2014;
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.`,name:"initializer_range"},{anchor:"transformers.ViTMAEConfig.layer_norm_eps",description:`<strong>layer_norm_eps</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-12) &#x2014;
The epsilon used by the layer normalization layers.`,name:"layer_norm_eps"},{anchor:"transformers.ViTMAEConfig.image_size",description:`<strong>image_size</strong> (<code>int</code>, <em>optional</em>, defaults to 224) &#x2014;
The size (resolution) of each image.`,name:"image_size"},{anchor:"transformers.ViTMAEConfig.patch_size",description:`<strong>patch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 16) &#x2014;
The size (resolution) of each patch.`,name:"patch_size"},{anchor:"transformers.ViTMAEConfig.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.ViTMAEConfig.qkv_bias",description:`<strong>qkv_bias</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to add a bias to the queries, keys and values.`,name:"qkv_bias"},{anchor:"transformers.ViTMAEConfig.decoder_num_attention_heads",description:`<strong>decoder_num_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 12) &#x2014;
Number of attention heads for each attention layer in the decoder.`,name:"decoder_num_attention_heads"},{anchor:"transformers.ViTMAEConfig.decoder_hidden_size",description:`<strong>decoder_hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
Dimensionality of the decoder.`,name:"decoder_hidden_size"},{anchor:"transformers.ViTMAEConfig.decoder_num_hidden_layers",description:`<strong>decoder_num_hidden_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
Number of hidden layers in the decoder.`,name:"decoder_num_hidden_layers"},{anchor:"transformers.ViTMAEConfig.decoder_intermediate_size",description:`<strong>decoder_intermediate_size</strong> (<code>int</code>, <em>optional</em>, defaults to 2048) &#x2014;
Dimensionality of the &#x201C;intermediate&#x201D; (i.e., feed-forward) layer in the decoder.`,name:"decoder_intermediate_size"},{anchor:"transformers.ViTMAEConfig.mask_ratio",description:`<strong>mask_ratio</strong> (<code>float</code>, <em>optional</em>, defaults to 0.75) &#x2014;
The ratio of the number of masked tokens in the input sequence.`,name:"mask_ratio"},{anchor:"transformers.ViTMAEConfig.norm_pix_loss",description:`<strong>norm_pix_loss</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to train with normalized pixels (see Table 3 in the paper). Using normalized pixels improved
representation quality in the experiments of the authors.`,name:"norm_pix_loss"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/vit_mae/configuration_vit_mae.py#L29"}}),$t=new Mn({props:{anchor:"transformers.ViTMAEConfig.example",$$slots:{default:[ii]},$$scope:{ctx:U}}}),eo=new Ot({}),to=new vt({props:{name:"class transformers.ViTMAEModel",anchor:"transformers.ViTMAEModel",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.ViTMAEModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/vit_mae#transformers.ViTMAEConfig">ViTMAEConfig</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/main/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/main/src/transformers/models/vit_mae/modeling_vit_mae.py#L637"}}),ao=new vt({props:{name:"forward",anchor:"transformers.ViTMAEModel.forward",parameters:[{name:"pixel_values",val:": typing.Optional[torch.FloatTensor] = None"},{name:"noise",val:": typing.Optional[torch.FloatTensor] = None"},{name:"head_mask",val:": typing.Optional[torch.FloatTensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.ViTMAEModel.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/main/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See <a href="/docs/transformers/main/en/model_doc/donut#transformers.DonutFeatureExtractor.__call__">ViTImageProcessor.<strong>call</strong>()</a>
for details.`,name:"pixel_values"},{anchor:"transformers.ViTMAEModel.forward.head_mask",description:`<strong>head_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(num_heads,)</code> or <code>(num_layers, num_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the self-attention modules. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.ViTMAEModel.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.ViTMAEModel.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.ViTMAEModel.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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/vit_mae/modeling_vit_mae.py#L661",returnDescription:`
<p>A <code>transformers.models.vit_mae.modeling_vit_mae.ViTMAEModelOutput</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/main/en/model_doc/vit_mae#transformers.ViTMAEConfig"
>ViTMAEConfig</a>) and inputs.</p>
<ul>
<li><strong>last_hidden_state</strong> (<code>torch.FloatTensor</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.</li>
<li><strong>mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>) \u2014 Tensor indicating which patches are masked (1) and which are not (0).</li>
<li><strong>ids_restore</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) \u2014 Tensor containing the original index of the (shuffled) masked patches.</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 + one for the output of each layer) of
shape <code>(batch_size, sequence_length, hidden_size)</code>. Hidden-states of the model at the output of each layer
plus the initial embedding outputs.</li>
<li><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</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>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>. Attentions weights after the attention softmax, used to compute the weighted average in
the self-attention heads.</li>
</ul>
`,returnType:`
<p><code>transformers.models.vit_mae.modeling_vit_mae.ViTMAEModelOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Vt=new Ao({props:{$$slots:{default:[li]},$$scope:{ctx:U}}}),kt=new Mn({props:{anchor:"transformers.ViTMAEModel.forward.example",$$slots:{default:[di]},$$scope:{ctx:U}}}),ro=new Ot({}),so=new vt({props:{name:"class transformers.ViTMAEForPreTraining",anchor:"transformers.ViTMAEForPreTraining",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.ViTMAEForPreTraining.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/vit_mae#transformers.ViTMAEConfig">ViTMAEConfig</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/main/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/main/src/transformers/models/vit_mae/modeling_vit_mae.py#L849"}}),xt=new Ao({props:{$$slots:{default:[ci]},$$scope:{ctx:U}}}),co=new vt({props:{name:"forward",anchor:"transformers.ViTMAEForPreTraining.forward",parameters:[{name:"pixel_values",val:": typing.Optional[torch.FloatTensor] = None"},{name:"noise",val:": typing.Optional[torch.FloatTensor] = None"},{name:"head_mask",val:": typing.Optional[torch.FloatTensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.ViTMAEForPreTraining.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/main/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See <a href="/docs/transformers/main/en/model_doc/donut#transformers.DonutFeatureExtractor.__call__">ViTImageProcessor.<strong>call</strong>()</a>
for details.`,name:"pixel_values"},{anchor:"transformers.ViTMAEForPreTraining.forward.head_mask",description:`<strong>head_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(num_heads,)</code> or <code>(num_layers, num_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the self-attention modules. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.ViTMAEForPreTraining.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.ViTMAEForPreTraining.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.ViTMAEForPreTraining.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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/vit_mae/modeling_vit_mae.py#L962",returnDescription:`
<p>A <code>transformers.models.vit_mae.modeling_vit_mae.ViTMAEForPreTrainingOutput</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/main/en/model_doc/vit_mae#transformers.ViTMAEConfig"
>ViTMAEConfig</a>) and inputs.</p>
<ul>
<li><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>) \u2014 Pixel reconstruction loss.</li>
<li><strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, patch_size ** 2 * num_channels)</code>) \u2014 Pixel reconstruction logits.</li>
<li><strong>mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>) \u2014 Tensor indicating which patches are masked (1) and which are not (0).</li>
<li><strong>ids_restore</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) \u2014 Tensor containing the original index of the (shuffled) masked patches.</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 + one for the output of each layer) of
shape <code>(batch_size, sequence_length, hidden_size)</code>. Hidden-states of the model at the output of each layer
plus the initial embedding outputs.</li>
<li><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</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>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>. Attentions weights after the attention softmax, used to compute the weighted average in
the self-attention heads.</li>
</ul>
`,returnType:`
<p><code>transformers.models.vit_mae.modeling_vit_mae.ViTMAEForPreTrainingOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Pt=new Ao({props:{$$slots:{default:[hi]},$$scope:{ctx:U}}}),jt=new Mn({props:{anchor:"transformers.ViTMAEForPreTraining.forward.example",$$slots:{default:[mi]},$$scope:{ctx:U}}}),ho=new Ot({}),mo=new vt({props:{name:"class transformers.TFViTMAEModel",anchor:"transformers.TFViTMAEModel",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFViTMAEModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/vit_mae#transformers.ViTMAEConfig">ViTMAEConfig</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/main/en/main_classes/model#transformers.TFPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/vit_mae/modeling_tf_vit_mae.py#L778"}}),Jt=new Ao({props:{$$slots:{default:[pi]},$$scope:{ctx:U}}}),go=new vt({props:{name:"call",anchor:"transformers.TFViTMAEModel.call",parameters:[{name:"pixel_values",val:": TFModelInputType | None = None"},{name:"noise",val:": tf.Tensor = None"},{name:"head_mask",val:": np.ndarray | tf.Tensor | None = None"},{name:"output_attentions",val:": Optional[bool] = None"},{name:"output_hidden_states",val:": Optional[bool] = None"},{name:"return_dict",val:": Optional[bool] = None"},{name:"training",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TFViTMAEModel.call.pixel_values",description:`<strong>pixel_values</strong> (<code>np.ndarray</code>, <code>tf.Tensor</code>, <code>List[tf.Tensor]</code> \`<code>Dict[str, tf.Tensor]</code> or <code>Dict[str, np.ndarray]</code> and each example must have the shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Pixel values. Pixel values can be obtained using <a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See <a href="/docs/transformers/main/en/model_doc/donut#transformers.DonutFeatureExtractor.__call__">ViTImageProcessor.<strong>call</strong>()</a>
for details.`,name:"pixel_values"},{anchor:"transformers.TFViTMAEModel.call.head_mask",description:`<strong>head_mask</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(num_heads,)</code> or <code>(num_layers, num_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the self-attention modules. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.TFViTMAEModel.call.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail. This argument can be used only in eager mode, in graph mode the value in the
config will be used instead.`,name:"output_attentions"},{anchor:"transformers.TFViTMAEModel.call.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail. This argument can be used only in eager mode, in graph mode the value in the config will be
used instead.`,name:"output_hidden_states"},{anchor:"transformers.TFViTMAEModel.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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple. This argument can be used
in eager mode, in graph mode the value will always be set to True.`,name:"return_dict"},{anchor:"transformers.TFViTMAEModel.call.training",description:`<strong>training</strong> (<code>bool</code>, <em>optional</em>, defaults to \`False&#x201C;) &#x2014;
Whether or not to use the model in training mode (some modules like dropout modules have different
behaviors between training and evaluation).`,name:"training"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/vit_mae/modeling_tf_vit_mae.py#L787",returnDescription:`
<p>A <code>transformers.models.vit_mae.modeling_tf_vit_mae.TFViTMAEModelOutput</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/main/en/model_doc/vit_mae#transformers.ViTMAEConfig"
>ViTMAEConfig</a>) and inputs.</p>
<ul>
<li><strong>last_hidden_state</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>) \u2014 Sequence of hidden-states at the output of the last layer of the model.</li>
<li><strong>mask</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>) \u2014 Tensor indicating which patches are masked (1) and which are not (0).</li>
<li><strong>ids_restore</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>) \u2014 Tensor containing the original index of the (shuffled) masked patches.</li>
<li><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>. Hidden-states of the model at the output of each layer plus
the initial embedding outputs.</li>
<li><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>. Attentions weights after the attention softmax, used to compute the weighted average in
the self-attention heads.</li>
</ul>
`,returnType:`
<p><code>transformers.models.vit_mae.modeling_tf_vit_mae.TFViTMAEModelOutput</code> or <code>tuple(tf.Tensor)</code></p>
`}}),Ct=new Ao({props:{$$slots:{default:[fi]},$$scope:{ctx:U}}}),It=new Mn({props:{anchor:"transformers.TFViTMAEModel.call.example",$$slots:{default:[ui]},$$scope:{ctx:U}}}),_o=new Ot({}),To=new vt({props:{name:"class transformers.TFViTMAEForPreTraining",anchor:"transformers.TFViTMAEForPreTraining",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFViTMAEForPreTraining.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/vit_mae#transformers.ViTMAEConfig">ViTMAEConfig</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/main/en/main_classes/model#transformers.TFPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/vit_mae/modeling_tf_vit_mae.py#L939"}}),Zt=new Ao({props:{$$slots:{default:[gi]},$$scope:{ctx:U}}}),Mo=new vt({props:{name:"call",anchor:"transformers.TFViTMAEForPreTraining.call",parameters:[{name:"pixel_values",val:": TFModelInputType | None = None"},{name:"noise",val:": tf.Tensor = None"},{name:"head_mask",val:": np.ndarray | tf.Tensor | None = None"},{name:"output_attentions",val:": Optional[bool] = None"},{name:"output_hidden_states",val:": Optional[bool] = None"},{name:"return_dict",val:": Optional[bool] = None"},{name:"training",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TFViTMAEForPreTraining.call.pixel_values",description:`<strong>pixel_values</strong> (<code>np.ndarray</code>, <code>tf.Tensor</code>, <code>List[tf.Tensor]</code> \`<code>Dict[str, tf.Tensor]</code> or <code>Dict[str, np.ndarray]</code> and each example must have the shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Pixel values. Pixel values can be obtained using <a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See <a href="/docs/transformers/main/en/model_doc/donut#transformers.DonutFeatureExtractor.__call__">ViTImageProcessor.<strong>call</strong>()</a>
for details.`,name:"pixel_values"},{anchor:"transformers.TFViTMAEForPreTraining.call.head_mask",description:`<strong>head_mask</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(num_heads,)</code> or <code>(num_layers, num_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the self-attention modules. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.TFViTMAEForPreTraining.call.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail. This argument can be used only in eager mode, in graph mode the value in the
config will be used instead.`,name:"output_attentions"},{anchor:"transformers.TFViTMAEForPreTraining.call.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail. This argument can be used only in eager mode, in graph mode the value in the config will be
used instead.`,name:"output_hidden_states"},{anchor:"transformers.TFViTMAEForPreTraining.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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple. This argument can be used
in eager mode, in graph mode the value will always be set to True.`,name:"return_dict"},{anchor:"transformers.TFViTMAEForPreTraining.call.training",description:`<strong>training</strong> (<code>bool</code>, <em>optional</em>, defaults to \`False&#x201C;) &#x2014;
Whether or not to use the model in training mode (some modules like dropout modules have different
behaviors between training and evaluation).`,name:"training"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/vit_mae/modeling_tf_vit_mae.py#L1063",returnDescription:`
<p>A <code>transformers.models.vit_mae.modeling_tf_vit_mae.TFViTMAEForPreTrainingOutput</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/main/en/model_doc/vit_mae#transformers.ViTMAEConfig"
>ViTMAEConfig</a>) and inputs.</p>
<ul>
<li><strong>loss</strong> (<code>tf.Tensor</code> of shape <code>(1,)</code>) \u2014 Pixel reconstruction loss.</li>
<li><strong>logits</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, patch_size ** 2 * num_channels)</code>) \u2014 Pixel reconstruction logits.</li>
<li><strong>mask</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>) \u2014 Tensor indicating which patches are masked (1) and which are not (0).</li>
<li><strong>ids_restore</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>) \u2014 Tensor containing the original index of the (shuffled) masked patches.</li>
<li><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>. Hidden-states of the model at the output of each layer plus
the initial embedding outputs.</li>
<li><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>. Attentions weights after the attention softmax, used to compute the weighted average in
the self-attention heads.</li>
</ul>
`,returnType:`
<p><code>transformers.models.vit_mae.modeling_tf_vit_mae.TFViTMAEForPreTrainingOutput</code> or <code>tuple(tf.Tensor)</code></p>
`}}),Wt=new Ao({props:{$$slots:{default:[_i]},$$scope:{ctx:U}}}),Nt=new Mn({props:{anchor:"transformers.TFViTMAEForPreTraining.call.example",$$slots:{default:[Ti]},$$scope:{ctx:U}}}),{c(){d=r("meta"),y=m(),u=r("h1"),g=r("a"),v=r("span"),M(l.$$.fragment),h=m(),F=r("span"),Pe=n("ViTMAE"),we=m(),I=r("h2"),O=r("a"),H=r("span"),M(w.$$.fragment),je=m(),S=r("span"),Ue=n("Overview"),Me=m(),W=r("p"),Je=n("The ViTMAE model was proposed in "),G=r("a"),Y=n("Masked Autoencoders Are Scalable Vision Learners"),Ce=n(` by Kaiming He, Xinlei Chen, Saining Xie, Yanghao Li,
Piotr Doll\xE1r, Ross Girshick. The paper shows that, by pre-training a Vision Transformer (ViT) to reconstruct pixel values for masked patches, one can get results after
fine-tuning that outperform supervised pre-training.`),be=m(),R=r("p"),Ie=n("The abstract from the paper is the following:"),Ee=m(),B=r("p"),pe=r("em"),ze=n(`This paper shows that masked autoencoders (MAE) are scalable self-supervised learners for computer vision. Our MAE approach is simple: we mask random patches of the
input image and reconstruct the missing pixels. It is based on two core designs. First, we develop an asymmetric encoder-decoder architecture, with an encoder that operates
only on the visible subset of patches (without mask tokens), along with a lightweight decoder that reconstructs the original image from the latent representation and mask
tokens. Second, we find that masking a high proportion of the input image, e.g., 75%, yields a nontrivial and meaningful self-supervisory task. Coupling these two designs
enables us to train large models efficiently and effectively: we accelerate training (by 3x or more) and improve accuracy. Our scalable approach allows for learning high-capacity
models that generalize well: e.g., a vanilla ViT-Huge model achieves the best accuracy (87.8%) among methods that use only ImageNet-1K data. Transfer performance in downstream
tasks outperforms supervised pre-training and shows promising scaling behavior.`),le=m(),P=r("p"),z=n("Tips:"),$e=m(),J=r("ul"),X=r("li"),Ze=n(`MAE (masked auto encoding) is a method for self-supervised pre-training of Vision Transformers (ViTs). The pre-training objective is relatively simple:
by masking a large portion (75%) of the image patches, the model must reconstruct raw pixel values. One can use `),q=r("a"),We=n("ViTMAEForPreTraining"),Ne=n(" for this purpose."),Z=m(),L=r("li"),Q=n(`After pre-training, one \u201Cthrows away\u201D the decoder used to reconstruct pixels, and one uses the encoder for fine-tuning/linear probing. This means that after
fine-tuning, one can directly plug in the weights into a `),de=r("a"),Re=n("ViTForImageClassification"),K=n("."),Be=m(),ee=r("li"),D=n("One can use "),ce=r("a"),te=n("ViTImageProcessor"),qe=n(" to prepare images for the model. See the code examples for more info."),fe=m(),C=r("li"),Se=n(`Note that the encoder of MAE is only used to encode the visual patches. The encoded patches are then concatenated with mask tokens, which the decoder (which also
consists of Transformer blocks) takes as input. Each mask token is a shared, learned vector that indicates the presence of a missing patch to be predicted. Fixed
sin/cos position embeddings are added both to the input of the encoder and the decoder.`),N=m(),oe=r("li"),De=n("For a visual understanding of how MAEs work you can check out this "),T=r("a"),k=n("post"),et=n("."),he=m(),me=r("img"),x=m(),ue=r("small"),tt=n("MAE architecture. Taken from the "),Ae=r("a"),ot=n("original paper."),Ge=m(),j=r("p"),ne=n("This model was contributed by "),ge=r("a"),nt=n("nielsr"),ae=n(". TensorFlow version of the model was contributed by "),_e=r("a"),at=n("sayakpaul"),Oe=n(` and
`),Te=r("a"),ve=n("ariG23498"),rt=n(" (equal contribution). The original code can be found "),Ht=r("a"),na=n("here"),aa=n("."),$n=m(),st=r("h2"),wt=r("a"),Go=r("span"),M(Gt.$$.fragment),ra=m(),Yo=r("span"),sa=n("Resources"),An=m(),Vo=r("p"),ia=n("A list of official Hugging Face and community (indicated by \u{1F30E}) resources to help you get started with ViTMAE."),Vn=m(),Mt=r("ul"),bt=r("li"),ko=r("a"),la=n("ViTMAEForPreTraining"),da=n(" is supported by this "),Yt=r("a"),ca=n("example script"),ha=n(", allowing you to pre-train the model from scratch/further pre-train the model on custom data."),ma=m(),it=r("li"),pa=n("A notebook that illustrates how to visualize reconstructed pixel values with "),Fo=r("a"),fa=n("ViTMAEForPreTraining"),ua=n(" can be found "),Xt=r("a"),ga=n("here"),_a=n("."),kn=m(),xo=r("p"),Ta=n("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."),Fn=m(),lt=r("h2"),Et=r("a"),Xo=r("span"),M(Lt.$$.fragment),va=m(),Lo=r("span"),ya=n("ViTMAEConfig"),xn=m(),ye=r("div"),M(Qt.$$.fragment),wa=m(),dt=r("p"),Ma=n("This is the configuration class to store the configuration of a "),Po=r("a"),ba=n("ViTMAEModel"),Ea=n(`. It is used to instantiate an ViT
MAE 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 ViT
`),Kt=r("a"),$a=n("facebook/vit-mae-base"),Aa=n(" architecture."),Va=m(),ct=r("p"),ka=n("Configuration objects inherit from "),jo=r("a"),Fa=n("PretrainedConfig"),xa=n(` and can be used to control the model outputs. Read the
documentation from `),Uo=r("a"),Pa=n("PretrainedConfig"),ja=n(" for more information."),Ua=m(),M($t.$$.fragment),Pn=m(),ht=r("h2"),At=r("a"),Qo=r("span"),M(eo.$$.fragment),Ja=m(),Ko=r("span"),Ca=n("ViTMAEModel"),jn=m(),He=r("div"),M(to.$$.fragment),Ia=m(),oo=r("p"),za=n(`The bare ViTMAE Model transformer outputting raw hidden-states without any specific head on top.
This model is a PyTorch `),no=r("a"),Za=n("torch.nn.Module"),Wa=n(` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Na=m(),Ve=r("div"),M(ao.$$.fragment),Ra=m(),mt=r("p"),Ba=n("The "),Jo=r("a"),qa=n("ViTMAEModel"),Sa=n(" forward method, overrides the "),en=r("code"),Da=n("__call__"),Oa=n(" special method."),Ha=m(),M(Vt.$$.fragment),Ga=m(),M(kt.$$.fragment),Un=m(),pt=r("h2"),Ft=r("a"),tn=r("span"),M(ro.$$.fragment),Ya=m(),on=r("span"),Xa=n("ViTMAEForPreTraining"),Jn=m(),re=r("div"),M(so.$$.fragment),La=m(),nn=r("p"),Qa=n("The ViTMAE Model transformer with the decoder on top for self-supervised pre-training."),Ka=m(),M(xt.$$.fragment),er=m(),io=r("p"),tr=n("This model is a PyTorch "),lo=r("a"),or=n("torch.nn.Module"),nr=n(` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),ar=m(),ke=r("div"),M(co.$$.fragment),rr=m(),ft=r("p"),sr=n("The "),Co=r("a"),ir=n("ViTMAEForPreTraining"),lr=n(" forward method, overrides the "),an=r("code"),dr=n("__call__"),cr=n(" special method."),hr=m(),M(Pt.$$.fragment),mr=m(),M(jt.$$.fragment),Cn=m(),ut=r("h2"),Ut=r("a"),rn=r("span"),M(ho.$$.fragment),pr=m(),sn=r("span"),fr=n("TFViTMAEModel"),In=m(),se=r("div"),M(mo.$$.fragment),ur=m(),po=r("p"),gr=n(`The bare ViTMAE Model transformer outputting raw hidden-states without any specific head on top.
This model inherits from `),Io=r("a"),_r=n("TFPreTrainedModel"),Tr=n(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),vr=m(),fo=r("p"),yr=n("This model is also a "),uo=r("a"),wr=n("tf.keras.Model"),Mr=n(` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),br=m(),M(Jt.$$.fragment),Er=m(),Fe=r("div"),M(go.$$.fragment),$r=m(),gt=r("p"),Ar=n("The "),zo=r("a"),Vr=n("TFViTMAEModel"),kr=n(" forward method, overrides the "),ln=r("code"),Fr=n("__call__"),xr=n(" special method."),Pr=m(),M(Ct.$$.fragment),jr=m(),M(It.$$.fragment),zn=m(),_t=r("h2"),zt=r("a"),dn=r("span"),M(_o.$$.fragment),Ur=m(),cn=r("span"),Jr=n("TFViTMAEForPreTraining"),Zn=m(),ie=r("div"),M(To.$$.fragment),Cr=m(),vo=r("p"),Ir=n(`The ViTMAE Model transformer with the decoder on top for self-supervised pre-training.
This model inherits from `),Zo=r("a"),zr=n("TFPreTrainedModel"),Zr=n(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),Wr=m(),yo=r("p"),Nr=n("This model is also a "),wo=r("a"),Rr=n("tf.keras.Model"),Br=n(` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),qr=m(),M(Zt.$$.fragment),Sr=m(),xe=r("div"),M(Mo.$$.fragment),Dr=m(),Tt=r("p"),Or=n("The "),Wo=r("a"),Hr=n("TFViTMAEForPreTraining"),Gr=n(" forward method, overrides the "),hn=r("code"),Yr=n("__call__"),Xr=n(" special method."),Lr=m(),M(Wt.$$.fragment),Qr=m(),M(Nt.$$.fragment),this.h()},l(o){const _=ai('[data-svelte="svelte-1phssyn"]',document.head);d=s(_,"META",{name:!0,content:!0}),_.forEach(t),y=p(o),u=s(o,"H1",{class:!0});var bo=i(u);g=s(bo,"A",{id:!0,class:!0,href:!0});var mn=i(g);v=s(mn,"SPAN",{});var pn=i(v);b(l.$$.fragment,pn),pn.forEach(t),mn.forEach(t),h=p(bo),F=s(bo,"SPAN",{});var fn=i(F);Pe=a(fn,"ViTMAE"),fn.forEach(t),bo.forEach(t),we=p(o),I=s(o,"H2",{class:!0});var Eo=i(I);O=s(Eo,"A",{id:!0,class:!0,href:!0});var un=i(O);H=s(un,"SPAN",{});var gn=i(H);b(w.$$.fragment,gn),gn.forEach(t),un.forEach(t),je=p(Eo),S=s(Eo,"SPAN",{});var _n=i(S);Ue=a(_n,"Overview"),_n.forEach(t),Eo.forEach(t),Me=p(o),W=s(o,"P",{});var $o=i(W);Je=a($o,"The ViTMAE model was proposed in "),G=s($o,"A",{href:!0,rel:!0});var Tn=i(G);Y=a(Tn,"Masked Autoencoders Are Scalable Vision Learners"),Tn.forEach(t),Ce=a($o,` by Kaiming He, Xinlei Chen, Saining Xie, Yanghao Li,
Piotr Doll\xE1r, Ross Girshick. The paper shows that, by pre-training a Vision Transformer (ViT) to reconstruct pixel values for masked patches, one can get results after
fine-tuning that outperform supervised pre-training.`),$o.forEach(t),be=p(o),R=s(o,"P",{});var vn=i(R);Ie=a(vn,"The abstract from the paper is the following:"),vn.forEach(t),Ee=p(o),B=s(o,"P",{});var yn=i(B);pe=s(yn,"EM",{});var es=i(pe);ze=a(es,`This paper shows that masked autoencoders (MAE) are scalable self-supervised learners for computer vision. Our MAE approach is simple: we mask random patches of the
input image and reconstruct the missing pixels. It is based on two core designs. First, we develop an asymmetric encoder-decoder architecture, with an encoder that operates
only on the visible subset of patches (without mask tokens), along with a lightweight decoder that reconstructs the original image from the latent representation and mask
tokens. Second, we find that masking a high proportion of the input image, e.g., 75%, yields a nontrivial and meaningful self-supervisory task. Coupling these two designs
enables us to train large models efficiently and effectively: we accelerate training (by 3x or more) and improve accuracy. Our scalable approach allows for learning high-capacity
models that generalize well: e.g., a vanilla ViT-Huge model achieves the best accuracy (87.8%) among methods that use only ImageNet-1K data. Transfer performance in downstream
tasks outperforms supervised pre-training and shows promising scaling behavior.`),es.forEach(t),yn.forEach(t),le=p(o),P=s(o,"P",{});var ts=i(P);z=a(ts,"Tips:"),ts.forEach(t),$e=p(o),J=s(o,"UL",{});var Ye=i(J);X=s(Ye,"LI",{});var Nn=i(X);Ze=a(Nn,`MAE (masked auto encoding) is a method for self-supervised pre-training of Vision Transformers (ViTs). The pre-training objective is relatively simple:
by masking a large portion (75%) of the image patches, the model must reconstruct raw pixel values. One can use `),q=s(Nn,"A",{href:!0});var os=i(q);We=a(os,"ViTMAEForPreTraining"),os.forEach(t),Ne=a(Nn," for this purpose."),Nn.forEach(t),Z=p(Ye),L=s(Ye,"LI",{});var Rn=i(L);Q=a(Rn,`After pre-training, one \u201Cthrows away\u201D the decoder used to reconstruct pixels, and one uses the encoder for fine-tuning/linear probing. This means that after
fine-tuning, one can directly plug in the weights into a `),de=s(Rn,"A",{href:!0});var ns=i(de);Re=a(ns,"ViTForImageClassification"),ns.forEach(t),K=a(Rn,"."),Rn.forEach(t),Be=p(Ye),ee=s(Ye,"LI",{});var Bn=i(ee);D=a(Bn,"One can use "),ce=s(Bn,"A",{href:!0});var as=i(ce);te=a(as,"ViTImageProcessor"),as.forEach(t),qe=a(Bn," to prepare images for the model. See the code examples for more info."),Bn.forEach(t),fe=p(Ye),C=s(Ye,"LI",{});var rs=i(C);Se=a(rs,`Note that the encoder of MAE is only used to encode the visual patches. The encoded patches are then concatenated with mask tokens, which the decoder (which also
consists of Transformer blocks) takes as input. Each mask token is a shared, learned vector that indicates the presence of a missing patch to be predicted. Fixed
sin/cos position embeddings are added both to the input of the encoder and the decoder.`),rs.forEach(t),N=p(Ye),oe=s(Ye,"LI",{});var qn=i(oe);De=a(qn,"For a visual understanding of how MAEs work you can check out this "),T=s(qn,"A",{href:!0,rel:!0});var ss=i(T);k=a(ss,"post"),ss.forEach(t),et=a(qn,"."),qn.forEach(t),Ye.forEach(t),he=p(o),me=s(o,"IMG",{src:!0,alt:!0,width:!0}),x=p(o),ue=s(o,"SMALL",{});var Kr=i(ue);tt=a(Kr,"MAE architecture. Taken from the "),Ae=s(Kr,"A",{href:!0});var is=i(Ae);ot=a(is,"original paper."),is.forEach(t),Kr.forEach(t),Ge=p(o),j=s(o,"P",{});var Xe=i(j);ne=a(Xe,"This model was contributed by "),ge=s(Xe,"A",{href:!0,rel:!0});var ls=i(ge);nt=a(ls,"nielsr"),ls.forEach(t),ae=a(Xe,". TensorFlow version of the model was contributed by "),_e=s(Xe,"A",{href:!0,rel:!0});var ds=i(_e);at=a(ds,"sayakpaul"),ds.forEach(t),Oe=a(Xe,` and
`),Te=s(Xe,"A",{href:!0,rel:!0});var cs=i(Te);ve=a(cs,"ariG23498"),cs.forEach(t),rt=a(Xe," (equal contribution). The original code can be found "),Ht=s(Xe,"A",{href:!0,rel:!0});var hs=i(Ht);na=a(hs,"here"),hs.forEach(t),aa=a(Xe,"."),Xe.forEach(t),$n=p(o),st=s(o,"H2",{class:!0});var Sn=i(st);wt=s(Sn,"A",{id:!0,class:!0,href:!0});var ms=i(wt);Go=s(ms,"SPAN",{});var ps=i(Go);b(Gt.$$.fragment,ps),ps.forEach(t),ms.forEach(t),ra=p(Sn),Yo=s(Sn,"SPAN",{});var fs=i(Yo);sa=a(fs,"Resources"),fs.forEach(t),Sn.forEach(t),An=p(o),Vo=s(o,"P",{});var us=i(Vo);ia=a(us,"A list of official Hugging Face and community (indicated by \u{1F30E}) resources to help you get started with ViTMAE."),us.forEach(t),Vn=p(o),Mt=s(o,"UL",{});var Dn=i(Mt);bt=s(Dn,"LI",{});var wn=i(bt);ko=s(wn,"A",{href:!0});var gs=i(ko);la=a(gs,"ViTMAEForPreTraining"),gs.forEach(t),da=a(wn," is supported by this "),Yt=s(wn,"A",{href:!0,rel:!0});var _s=i(Yt);ca=a(_s,"example script"),_s.forEach(t),ha=a(wn,", allowing you to pre-train the model from scratch/further pre-train the model on custom data."),wn.forEach(t),ma=p(Dn),it=s(Dn,"LI",{});var No=i(it);pa=a(No,"A notebook that illustrates how to visualize reconstructed pixel values with "),Fo=s(No,"A",{href:!0});var Ts=i(Fo);fa=a(Ts,"ViTMAEForPreTraining"),Ts.forEach(t),ua=a(No," can be found "),Xt=s(No,"A",{href:!0,rel:!0});var vs=i(Xt);ga=a(vs,"here"),vs.forEach(t),_a=a(No,"."),No.forEach(t),Dn.forEach(t),kn=p(o),xo=s(o,"P",{});var ys=i(xo);Ta=a(ys,"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."),ys.forEach(t),Fn=p(o),lt=s(o,"H2",{class:!0});var On=i(lt);Et=s(On,"A",{id:!0,class:!0,href:!0});var ws=i(Et);Xo=s(ws,"SPAN",{});var Ms=i(Xo);b(Lt.$$.fragment,Ms),Ms.forEach(t),ws.forEach(t),va=p(On),Lo=s(On,"SPAN",{});var bs=i(Lo);ya=a(bs,"ViTMAEConfig"),bs.forEach(t),On.forEach(t),xn=p(o),ye=s(o,"DIV",{class:!0});var Rt=i(ye);b(Qt.$$.fragment,Rt),wa=p(Rt),dt=s(Rt,"P",{});var Ro=i(dt);Ma=a(Ro,"This is the configuration class to store the configuration of a "),Po=s(Ro,"A",{href:!0});var Es=i(Po);ba=a(Es,"ViTMAEModel"),Es.forEach(t),Ea=a(Ro,`. It is used to instantiate an ViT
MAE 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 ViT
`),Kt=s(Ro,"A",{href:!0,rel:!0});var $s=i(Kt);$a=a($s,"facebook/vit-mae-base"),$s.forEach(t),Aa=a(Ro," architecture."),Ro.forEach(t),Va=p(Rt),ct=s(Rt,"P",{});var Bo=i(ct);ka=a(Bo,"Configuration objects inherit from "),jo=s(Bo,"A",{href:!0});var As=i(jo);Fa=a(As,"PretrainedConfig"),As.forEach(t),xa=a(Bo,` and can be used to control the model outputs. Read the
documentation from `),Uo=s(Bo,"A",{href:!0});var Vs=i(Uo);Pa=a(Vs,"PretrainedConfig"),Vs.forEach(t),ja=a(Bo," for more information."),Bo.forEach(t),Ua=p(Rt),b($t.$$.fragment,Rt),Rt.forEach(t),Pn=p(o),ht=s(o,"H2",{class:!0});var Hn=i(ht);At=s(Hn,"A",{id:!0,class:!0,href:!0});var ks=i(At);Qo=s(ks,"SPAN",{});var Fs=i(Qo);b(eo.$$.fragment,Fs),Fs.forEach(t),ks.forEach(t),Ja=p(Hn),Ko=s(Hn,"SPAN",{});var xs=i(Ko);Ca=a(xs,"ViTMAEModel"),xs.forEach(t),Hn.forEach(t),jn=p(o),He=s(o,"DIV",{class:!0});var qo=i(He);b(to.$$.fragment,qo),Ia=p(qo),oo=s(qo,"P",{});var Gn=i(oo);za=a(Gn,`The bare ViTMAE Model transformer outputting raw hidden-states without any specific head on top.
This model is a PyTorch `),no=s(Gn,"A",{href:!0,rel:!0});var Ps=i(no);Za=a(Ps,"torch.nn.Module"),Ps.forEach(t),Wa=a(Gn,` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Gn.forEach(t),Na=p(qo),Ve=s(qo,"DIV",{class:!0});var Bt=i(Ve);b(ao.$$.fragment,Bt),Ra=p(Bt),mt=s(Bt,"P",{});var So=i(mt);Ba=a(So,"The "),Jo=s(So,"A",{href:!0});var js=i(Jo);qa=a(js,"ViTMAEModel"),js.forEach(t),Sa=a(So," forward method, overrides the "),en=s(So,"CODE",{});var Us=i(en);Da=a(Us,"__call__"),Us.forEach(t),Oa=a(So," special method."),So.forEach(t),Ha=p(Bt),b(Vt.$$.fragment,Bt),Ga=p(Bt),b(kt.$$.fragment,Bt),Bt.forEach(t),qo.forEach(t),Un=p(o),pt=s(o,"H2",{class:!0});var Yn=i(pt);Ft=s(Yn,"A",{id:!0,class:!0,href:!0});var Js=i(Ft);tn=s(Js,"SPAN",{});var Cs=i(tn);b(ro.$$.fragment,Cs),Cs.forEach(t),Js.forEach(t),Ya=p(Yn),on=s(Yn,"SPAN",{});var Is=i(on);Xa=a(Is,"ViTMAEForPreTraining"),Is.forEach(t),Yn.forEach(t),Jn=p(o),re=s(o,"DIV",{class:!0});var Le=i(re);b(so.$$.fragment,Le),La=p(Le),nn=s(Le,"P",{});var zs=i(nn);Qa=a(zs,"The ViTMAE Model transformer with the decoder on top for self-supervised pre-training."),zs.forEach(t),Ka=p(Le),b(xt.$$.fragment,Le),er=p(Le),io=s(Le,"P",{});var Xn=i(io);tr=a(Xn,"This model is a PyTorch "),lo=s(Xn,"A",{href:!0,rel:!0});var Zs=i(lo);or=a(Zs,"torch.nn.Module"),Zs.forEach(t),nr=a(Xn,` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Xn.forEach(t),ar=p(Le),ke=s(Le,"DIV",{class:!0});var qt=i(ke);b(co.$$.fragment,qt),rr=p(qt),ft=s(qt,"P",{});var Do=i(ft);sr=a(Do,"The "),Co=s(Do,"A",{href:!0});var Ws=i(Co);ir=a(Ws,"ViTMAEForPreTraining"),Ws.forEach(t),lr=a(Do," forward method, overrides the "),an=s(Do,"CODE",{});var Ns=i(an);dr=a(Ns,"__call__"),Ns.forEach(t),cr=a(Do," special method."),Do.forEach(t),hr=p(qt),b(Pt.$$.fragment,qt),mr=p(qt),b(jt.$$.fragment,qt),qt.forEach(t),Le.forEach(t),Cn=p(o),ut=s(o,"H2",{class:!0});var Ln=i(ut);Ut=s(Ln,"A",{id:!0,class:!0,href:!0});var Rs=i(Ut);rn=s(Rs,"SPAN",{});var Bs=i(rn);b(ho.$$.fragment,Bs),Bs.forEach(t),Rs.forEach(t),pr=p(Ln),sn=s(Ln,"SPAN",{});var qs=i(sn);fr=a(qs,"TFViTMAEModel"),qs.forEach(t),Ln.forEach(t),In=p(o),se=s(o,"DIV",{class:!0});var Qe=i(se);b(mo.$$.fragment,Qe),ur=p(Qe),po=s(Qe,"P",{});var Qn=i(po);gr=a(Qn,`The bare ViTMAE Model transformer outputting raw hidden-states without any specific head on top.
This model inherits from `),Io=s(Qn,"A",{href:!0});var Ss=i(Io);_r=a(Ss,"TFPreTrainedModel"),Ss.forEach(t),Tr=a(Qn,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),Qn.forEach(t),vr=p(Qe),fo=s(Qe,"P",{});var Kn=i(fo);yr=a(Kn,"This model is also a "),uo=s(Kn,"A",{href:!0,rel:!0});var Ds=i(uo);wr=a(Ds,"tf.keras.Model"),Ds.forEach(t),Mr=a(Kn,` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),Kn.forEach(t),br=p(Qe),b(Jt.$$.fragment,Qe),Er=p(Qe),Fe=s(Qe,"DIV",{class:!0});var St=i(Fe);b(go.$$.fragment,St),$r=p(St),gt=s(St,"P",{});var Oo=i(gt);Ar=a(Oo,"The "),zo=s(Oo,"A",{href:!0});var Os=i(zo);Vr=a(Os,"TFViTMAEModel"),Os.forEach(t),kr=a(Oo," forward method, overrides the "),ln=s(Oo,"CODE",{});var Hs=i(ln);Fr=a(Hs,"__call__"),Hs.forEach(t),xr=a(Oo," special method."),Oo.forEach(t),Pr=p(St),b(Ct.$$.fragment,St),jr=p(St),b(It.$$.fragment,St),St.forEach(t),Qe.forEach(t),zn=p(o),_t=s(o,"H2",{class:!0});var ea=i(_t);zt=s(ea,"A",{id:!0,class:!0,href:!0});var Gs=i(zt);dn=s(Gs,"SPAN",{});var Ys=i(dn);b(_o.$$.fragment,Ys),Ys.forEach(t),Gs.forEach(t),Ur=p(ea),cn=s(ea,"SPAN",{});var Xs=i(cn);Jr=a(Xs,"TFViTMAEForPreTraining"),Xs.forEach(t),ea.forEach(t),Zn=p(o),ie=s(o,"DIV",{class:!0});var Ke=i(ie);b(To.$$.fragment,Ke),Cr=p(Ke),vo=s(Ke,"P",{});var ta=i(vo);Ir=a(ta,`The ViTMAE Model transformer with the decoder on top for self-supervised pre-training.
This model inherits from `),Zo=s(ta,"A",{href:!0});var Ls=i(Zo);zr=a(Ls,"TFPreTrainedModel"),Ls.forEach(t),Zr=a(ta,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),ta.forEach(t),Wr=p(Ke),yo=s(Ke,"P",{});var oa=i(yo);Nr=a(oa,"This model is also a "),wo=s(oa,"A",{href:!0,rel:!0});var Qs=i(wo);Rr=a(Qs,"tf.keras.Model"),Qs.forEach(t),Br=a(oa,` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),oa.forEach(t),qr=p(Ke),b(Zt.$$.fragment,Ke),Sr=p(Ke),xe=s(Ke,"DIV",{class:!0});var Dt=i(xe);b(Mo.$$.fragment,Dt),Dr=p(Dt),Tt=s(Dt,"P",{});var Ho=i(Tt);Or=a(Ho,"The "),Wo=s(Ho,"A",{href:!0});var Ks=i(Wo);Hr=a(Ks,"TFViTMAEForPreTraining"),Ks.forEach(t),Gr=a(Ho," forward method, overrides the "),hn=s(Ho,"CODE",{});var ei=i(hn);Yr=a(ei,"__call__"),ei.forEach(t),Xr=a(Ho," special method."),Ho.forEach(t),Lr=p(Dt),b(Wt.$$.fragment,Dt),Qr=p(Dt),b(Nt.$$.fragment,Dt),Dt.forEach(t),Ke.forEach(t),this.h()},h(){c(d,"name","hf:doc:metadata"),c(d,"content",JSON.stringify(yi)),c(g,"id","vitmae"),c(g,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(g,"href","#vitmae"),c(u,"class","relative group"),c(O,"id","overview"),c(O,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(O,"href","#overview"),c(I,"class","relative group"),c(G,"href","https://arxiv.org/abs/2111.06377v2"),c(G,"rel","nofollow"),c(q,"href","/docs/transformers/main/en/model_doc/vit_mae#transformers.ViTMAEForPreTraining"),c(de,"href","/docs/transformers/main/en/model_doc/vit#transformers.ViTForImageClassification"),c(ce,"href","/docs/transformers/main/en/model_doc/vit#transformers.ViTImageProcessor"),c(T,"href","https://keras.io/examples/vision/masked_image_modeling/"),c(T,"rel","nofollow"),ri(me.src,yt="https://user-images.githubusercontent.com/11435359/146857310-f258c86c-fde6-48e8-9cee-badd2b21bd2c.png")||c(me,"src",yt),c(me,"alt","drawing"),c(me,"width","600"),c(Ae,"href","https://arxiv.org/abs/2111.06377"),c(ge,"href","https://huggingface.co/nielsr"),c(ge,"rel","nofollow"),c(_e,"href","https://github.com/sayakpaul"),c(_e,"rel","nofollow"),c(Te,"href","https://github.com/ariG23498"),c(Te,"rel","nofollow"),c(Ht,"href","https://github.com/facebookresearch/mae"),c(Ht,"rel","nofollow"),c(wt,"id","resources"),c(wt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(wt,"href","#resources"),c(st,"class","relative group"),c(ko,"href","/docs/transformers/main/en/model_doc/vit_mae#transformers.ViTMAEForPreTraining"),c(Yt,"href","https://github.com/huggingface/transformers/tree/main/examples/pytorch/image-pretraining"),c(Yt,"rel","nofollow"),c(Fo,"href","/docs/transformers/main/en/model_doc/vit_mae#transformers.ViTMAEForPreTraining"),c(Xt,"href","https://github.com/NielsRogge/Transformers-Tutorials/blob/master/ViTMAE/ViT_MAE_visualization_demo.ipynb"),c(Xt,"rel","nofollow"),c(Et,"id","transformers.ViTMAEConfig"),c(Et,"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(Et,"href","#transformers.ViTMAEConfig"),c(lt,"class","relative group"),c(Po,"href","/docs/transformers/main/en/model_doc/vit_mae#transformers.ViTMAEModel"),c(Kt,"href","https://huggingface.co/facebook/vit-mae-base"),c(Kt,"rel","nofollow"),c(jo,"href","/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig"),c(Uo,"href","/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig"),c(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(At,"id","transformers.ViTMAEModel"),c(At,"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(At,"href","#transformers.ViTMAEModel"),c(ht,"class","relative group"),c(no,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),c(no,"rel","nofollow"),c(Jo,"href","/docs/transformers/main/en/model_doc/vit_mae#transformers.ViTMAEModel"),c(Ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(He,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Ft,"id","transformers.ViTMAEForPreTraining"),c(Ft,"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(Ft,"href","#transformers.ViTMAEForPreTraining"),c(pt,"class","relative group"),c(lo,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),c(lo,"rel","nofollow"),c(Co,"href","/docs/transformers/main/en/model_doc/vit_mae#transformers.ViTMAEForPreTraining"),c(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Ut,"id","transformers.TFViTMAEModel"),c(Ut,"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(Ut,"href","#transformers.TFViTMAEModel"),c(ut,"class","relative group"),c(Io,"href","/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel"),c(uo,"href","https://www.tensorflow.org/api_docs/python/tf/keras/Model"),c(uo,"rel","nofollow"),c(zo,"href","/docs/transformers/main/en/model_doc/vit_mae#transformers.TFViTMAEModel"),c(Fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(zt,"id","transformers.TFViTMAEForPreTraining"),c(zt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(zt,"href","#transformers.TFViTMAEForPreTraining"),c(_t,"class","relative group"),c(Zo,"href","/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel"),c(wo,"href","https://www.tensorflow.org/api_docs/python/tf/keras/Model"),c(wo,"rel","nofollow"),c(Wo,"href","/docs/transformers/main/en/model_doc/vit_mae#transformers.TFViTMAEForPreTraining"),c(xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(o,_){e(document.head,d),f(o,y,_),f(o,u,_),e(u,g),e(g,v),E(l,v,null),e(u,h),e(u,F),e(F,Pe),f(o,we,_),f(o,I,_),e(I,O),e(O,H),E(w,H,null),e(I,je),e(I,S),e(S,Ue),f(o,Me,_),f(o,W,_),e(W,Je),e(W,G),e(G,Y),e(W,Ce),f(o,be,_),f(o,R,_),e(R,Ie),f(o,Ee,_),f(o,B,_),e(B,pe),e(pe,ze),f(o,le,_),f(o,P,_),e(P,z),f(o,$e,_),f(o,J,_),e(J,X),e(X,Ze),e(X,q),e(q,We),e(X,Ne),e(J,Z),e(J,L),e(L,Q),e(L,de),e(de,Re),e(L,K),e(J,Be),e(J,ee),e(ee,D),e(ee,ce),e(ce,te),e(ee,qe),e(J,fe),e(J,C),e(C,Se),e(J,N),e(J,oe),e(oe,De),e(oe,T),e(T,k),e(oe,et),f(o,he,_),f(o,me,_),f(o,x,_),f(o,ue,_),e(ue,tt),e(ue,Ae),e(Ae,ot),f(o,Ge,_),f(o,j,_),e(j,ne),e(j,ge),e(ge,nt),e(j,ae),e(j,_e),e(_e,at),e(j,Oe),e(j,Te),e(Te,ve),e(j,rt),e(j,Ht),e(Ht,na),e(j,aa),f(o,$n,_),f(o,st,_),e(st,wt),e(wt,Go),E(Gt,Go,null),e(st,ra),e(st,Yo),e(Yo,sa),f(o,An,_),f(o,Vo,_),e(Vo,ia),f(o,Vn,_),f(o,Mt,_),e(Mt,bt),e(bt,ko),e(ko,la),e(bt,da),e(bt,Yt),e(Yt,ca),e(bt,ha),e(Mt,ma),e(Mt,it),e(it,pa),e(it,Fo),e(Fo,fa),e(it,ua),e(it,Xt),e(Xt,ga),e(it,_a),f(o,kn,_),f(o,xo,_),e(xo,Ta),f(o,Fn,_),f(o,lt,_),e(lt,Et),e(Et,Xo),E(Lt,Xo,null),e(lt,va),e(lt,Lo),e(Lo,ya),f(o,xn,_),f(o,ye,_),E(Qt,ye,null),e(ye,wa),e(ye,dt),e(dt,Ma),e(dt,Po),e(Po,ba),e(dt,Ea),e(dt,Kt),e(Kt,$a),e(dt,Aa),e(ye,Va),e(ye,ct),e(ct,ka),e(ct,jo),e(jo,Fa),e(ct,xa),e(ct,Uo),e(Uo,Pa),e(ct,ja),e(ye,Ua),E($t,ye,null),f(o,Pn,_),f(o,ht,_),e(ht,At),e(At,Qo),E(eo,Qo,null),e(ht,Ja),e(ht,Ko),e(Ko,Ca),f(o,jn,_),f(o,He,_),E(to,He,null),e(He,Ia),e(He,oo),e(oo,za),e(oo,no),e(no,Za),e(oo,Wa),e(He,Na),e(He,Ve),E(ao,Ve,null),e(Ve,Ra),e(Ve,mt),e(mt,Ba),e(mt,Jo),e(Jo,qa),e(mt,Sa),e(mt,en),e(en,Da),e(mt,Oa),e(Ve,Ha),E(Vt,Ve,null),e(Ve,Ga),E(kt,Ve,null),f(o,Un,_),f(o,pt,_),e(pt,Ft),e(Ft,tn),E(ro,tn,null),e(pt,Ya),e(pt,on),e(on,Xa),f(o,Jn,_),f(o,re,_),E(so,re,null),e(re,La),e(re,nn),e(nn,Qa),e(re,Ka),E(xt,re,null),e(re,er),e(re,io),e(io,tr),e(io,lo),e(lo,or),e(io,nr),e(re,ar),e(re,ke),E(co,ke,null),e(ke,rr),e(ke,ft),e(ft,sr),e(ft,Co),e(Co,ir),e(ft,lr),e(ft,an),e(an,dr),e(ft,cr),e(ke,hr),E(Pt,ke,null),e(ke,mr),E(jt,ke,null),f(o,Cn,_),f(o,ut,_),e(ut,Ut),e(Ut,rn),E(ho,rn,null),e(ut,pr),e(ut,sn),e(sn,fr),f(o,In,_),f(o,se,_),E(mo,se,null),e(se,ur),e(se,po),e(po,gr),e(po,Io),e(Io,_r),e(po,Tr),e(se,vr),e(se,fo),e(fo,yr),e(fo,uo),e(uo,wr),e(fo,Mr),e(se,br),E(Jt,se,null),e(se,Er),e(se,Fe),E(go,Fe,null),e(Fe,$r),e(Fe,gt),e(gt,Ar),e(gt,zo),e(zo,Vr),e(gt,kr),e(gt,ln),e(ln,Fr),e(gt,xr),e(Fe,Pr),E(Ct,Fe,null),e(Fe,jr),E(It,Fe,null),f(o,zn,_),f(o,_t,_),e(_t,zt),e(zt,dn),E(_o,dn,null),e(_t,Ur),e(_t,cn),e(cn,Jr),f(o,Zn,_),f(o,ie,_),E(To,ie,null),e(ie,Cr),e(ie,vo),e(vo,Ir),e(vo,Zo),e(Zo,zr),e(vo,Zr),e(ie,Wr),e(ie,yo),e(yo,Nr),e(yo,wo),e(wo,Rr),e(yo,Br),e(ie,qr),E(Zt,ie,null),e(ie,Sr),e(ie,xe),E(Mo,xe,null),e(xe,Dr),e(xe,Tt),e(Tt,Or),e(Tt,Wo),e(Wo,Hr),e(Tt,Gr),e(Tt,hn),e(hn,Yr),e(Tt,Xr),e(xe,Lr),E(Wt,xe,null),e(xe,Qr),E(Nt,xe,null),Wn=!0},p(o,[_]){const bo={};_&2&&(bo.$$scope={dirty:_,ctx:o}),$t.$set(bo);const mn={};_&2&&(mn.$$scope={dirty:_,ctx:o}),Vt.$set(mn);const pn={};_&2&&(pn.$$scope={dirty:_,ctx:o}),kt.$set(pn);const fn={};_&2&&(fn.$$scope={dirty:_,ctx:o}),xt.$set(fn);const Eo={};_&2&&(Eo.$$scope={dirty:_,ctx:o}),Pt.$set(Eo);const un={};_&2&&(un.$$scope={dirty:_,ctx:o}),jt.$set(un);const gn={};_&2&&(gn.$$scope={dirty:_,ctx:o}),Jt.$set(gn);const _n={};_&2&&(_n.$$scope={dirty:_,ctx:o}),Ct.$set(_n);const $o={};_&2&&($o.$$scope={dirty:_,ctx:o}),It.$set($o);const Tn={};_&2&&(Tn.$$scope={dirty:_,ctx:o}),Zt.$set(Tn);const vn={};_&2&&(vn.$$scope={dirty:_,ctx:o}),Wt.$set(vn);const yn={};_&2&&(yn.$$scope={dirty:_,ctx:o}),Nt.$set(yn)},i(o){Wn||($(l.$$.fragment,o),$(w.$$.fragment,o),$(Gt.$$.fragment,o),$(Lt.$$.fragment,o),$(Qt.$$.fragment,o),$($t.$$.fragment,o),$(eo.$$.fragment,o),$(to.$$.fragment,o),$(ao.$$.fragment,o),$(Vt.$$.fragment,o),$(kt.$$.fragment,o),$(ro.$$.fragment,o),$(so.$$.fragment,o),$(xt.$$.fragment,o),$(co.$$.fragment,o),$(Pt.$$.fragment,o),$(jt.$$.fragment,o),$(ho.$$.fragment,o),$(mo.$$.fragment,o),$(Jt.$$.fragment,o),$(go.$$.fragment,o),$(Ct.$$.fragment,o),$(It.$$.fragment,o),$(_o.$$.fragment,o),$(To.$$.fragment,o),$(Zt.$$.fragment,o),$(Mo.$$.fragment,o),$(Wt.$$.fragment,o),$(Nt.$$.fragment,o),Wn=!0)},o(o){A(l.$$.fragment,o),A(w.$$.fragment,o),A(Gt.$$.fragment,o),A(Lt.$$.fragment,o),A(Qt.$$.fragment,o),A($t.$$.fragment,o),A(eo.$$.fragment,o),A(to.$$.fragment,o),A(ao.$$.fragment,o),A(Vt.$$.fragment,o),A(kt.$$.fragment,o),A(ro.$$.fragment,o),A(so.$$.fragment,o),A(xt.$$.fragment,o),A(co.$$.fragment,o),A(Pt.$$.fragment,o),A(jt.$$.fragment,o),A(ho.$$.fragment,o),A(mo.$$.fragment,o),A(Jt.$$.fragment,o),A(go.$$.fragment,o),A(Ct.$$.fragment,o),A(It.$$.fragment,o),A(_o.$$.fragment,o),A(To.$$.fragment,o),A(Zt.$$.fragment,o),A(Mo.$$.fragment,o),A(Wt.$$.fragment,o),A(Nt.$$.fragment,o),Wn=!1},d(o){t(d),o&&t(y),o&&t(u),V(l),o&&t(we),o&&t(I),V(w),o&&t(Me),o&&t(W),o&&t(be),o&&t(R),o&&t(Ee),o&&t(B),o&&t(le),o&&t(P),o&&t($e),o&&t(J),o&&t(he),o&&t(me),o&&t(x),o&&t(ue),o&&t(Ge),o&&t(j),o&&t($n),o&&t(st),V(Gt),o&&t(An),o&&t(Vo),o&&t(Vn),o&&t(Mt),o&&t(kn),o&&t(xo),o&&t(Fn),o&&t(lt),V(Lt),o&&t(xn),o&&t(ye),V(Qt),V($t),o&&t(Pn),o&&t(ht),V(eo),o&&t(jn),o&&t(He),V(to),V(ao),V(Vt),V(kt),o&&t(Un),o&&t(pt),V(ro),o&&t(Jn),o&&t(re),V(so),V(xt),V(co),V(Pt),V(jt),o&&t(Cn),o&&t(ut),V(ho),o&&t(In),o&&t(se),V(mo),V(Jt),V(go),V(Ct),V(It),o&&t(zn),o&&t(_t),V(_o),o&&t(Zn),o&&t(ie),V(To),V(Zt),V(Mo),V(Wt),V(Nt)}}}const yi={local:"vitmae",sections:[{local:"overview",title:"Overview"},{local:"resources",title:"Resources"},{local:"transformers.ViTMAEConfig",title:"ViTMAEConfig"},{local:"transformers.ViTMAEModel",title:"ViTMAEModel"},{local:"transformers.ViTMAEForPreTraining",title:"ViTMAEForPreTraining"},{local:"transformers.TFViTMAEModel",title:"TFViTMAEModel"},{local:"transformers.TFViTMAEForPreTraining",title:"TFViTMAEForPreTraining"}],title:"ViTMAE"};function wi(U){return si(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ki extends ti{constructor(d){super();oi(this,d,wi,vi,ni,{})}}export{ki as default,yi as metadata};
