import{S as ti,i as oi,s as ni,e as s,k as m,w as M,t as n,M as ri,c as a,d as t,m as p,a as i,x as b,h as r,b as c,N as si,G as e,g as f,y as E,q as $,o as A,B as V,v as ai,L as bn}from"../../chunks/vendor-hf-doc-builder.js";import{T as Ao}from"../../chunks/Tip-hf-doc-builder.js";import{D as Tt}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,T;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=s("p"),y=n("Example:"),u=m(),M(g.$$.fragment)},l(l){d=a(l,"P",{});var h=i(d);y=r(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),T=!0},p:bn,i(l){T||($(g.$$.fragment,l),T=!0)},o(l){A(g.$$.fragment,l),T=!1},d(l){l&&t(d),l&&t(u),V(g,l)}}}function li(U){let d,y,u,g,T;return{c(){d=s("p"),y=n("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s("code"),g=n("Module"),T=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=a(l,"P",{});var h=i(d);y=r(h,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=a(h,"CODE",{});var F=i(u);g=r(F,"Module"),F.forEach(t),T=r(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,T)},d(l){l&&t(d)}}}function di(U){let d,y,u,g,T;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=s("p"),y=n("Examples:"),u=m(),M(g.$$.fragment)},l(l){d=a(l,"P",{});var h=i(d);y=r(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),T=!0},p:bn,i(l){T||($(g.$$.fragment,l),T=!0)},o(l){A(g.$$.fragment,l),T=!1},d(l){l&&t(d),l&&t(u),V(g,l)}}}function ci(U){let d,y,u,g,T;return{c(){d=s("p"),y=n("Note that we provide a script to pre-train this model on custom data in our "),u=s("a"),g=n(`examples
directory`),T=n("."),this.h()},l(l){d=a(l,"P",{});var h=i(d);y=r(h,"Note that we provide a script to pre-train this model on custom data in our "),u=a(h,"A",{href:!0,rel:!0});var F=i(u);g=r(F,`examples
directory`),F.forEach(t),T=r(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,T)},d(l){l&&t(d)}}}function hi(U){let d,y,u,g,T;return{c(){d=s("p"),y=n("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s("code"),g=n("Module"),T=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=a(l,"P",{});var h=i(d);y=r(h,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=a(h,"CODE",{});var F=i(u);g=r(F,"Module"),F.forEach(t),T=r(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,T)},d(l){l&&t(d)}}}function mi(U){let d,y,u,g,T;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=s("p"),y=n("Examples:"),u=m(),M(g.$$.fragment)},l(l){d=a(l,"P",{});var h=i(d);y=r(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),T=!0},p:bn,i(l){T||($(g.$$.fragment,l),T=!0)},o(l){A(g.$$.fragment,l),T=!1},d(l){l&&t(d),l&&t(u),V(g,l)}}}function pi(U){let d,y,u,g,T,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=s("p"),y=n("TensorFlow models and layers in "),u=s("code"),g=n("transformers"),T=n(" accept two formats as input:"),l=m(),h=s("ul"),F=s("li"),Pe=n("having all inputs as keyword arguments (like PyTorch models), or"),we=m(),I=s("li"),O=n("having all inputs as a list, tuple or dict in the first positional argument."),H=m(),w=s("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=s("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=s("code"),Je=n("model.fit()"),G=n(` supports! If, however, you want to use the second
format outside of Keras methods like `),Y=s("code"),Ce=n("fit()"),be=n(" and "),R=s("code"),Ie=n("predict()"),Ee=n(`, such as when creating your own layers or models with
the Keras `),B=s("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=s("ul"),z=s("li"),$e=n("a single Tensor with "),J=s("code"),X=n("pixel_values"),Ze=n(" only and nothing else: "),q=s("code"),We=n("model(pixel_values)"),Ne=m(),Z=s("li"),L=n(`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),Q=s("code"),de=n("model([pixel_values, attention_mask])"),Re=n(" or "),K=s("code"),Be=n("model([pixel_values, attention_mask, token_type_ids])"),ee=m(),D=s("li"),ce=n(`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),te=s("code"),qe=n('model({"pixel_values": pixel_values, "token_type_ids": token_type_ids})'),fe=m(),C=s("p"),Se=n(`Note that when creating models and layers with
`),N=s("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(v){d=a(v,"P",{});var k=i(d);y=r(k,"TensorFlow models and layers in "),u=a(k,"CODE",{});var et=i(u);g=r(et,"transformers"),et.forEach(t),T=r(k," accept two formats as input:"),k.forEach(t),l=p(v),h=a(v,"UL",{});var he=i(h);F=a(he,"LI",{});var me=i(F);Pe=r(me,"having all inputs as keyword arguments (like PyTorch models), or"),me.forEach(t),we=p(he),I=a(he,"LI",{});var yt=i(I);O=r(yt,"having all inputs as a list, tuple or dict in the first positional argument."),yt.forEach(t),he.forEach(t),H=p(v),w=a(v,"P",{});var x=i(w);je=r(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=a(x,"CODE",{});var ue=i(S);Ue=r(ue,"model.fit()"),ue.forEach(t),Me=r(x,` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),W=a(x,"CODE",{});var tt=i(W);Je=r(tt,"model.fit()"),tt.forEach(t),G=r(x,` supports! If, however, you want to use the second
format outside of Keras methods like `),Y=a(x,"CODE",{});var Ae=i(Y);Ce=r(Ae,"fit()"),Ae.forEach(t),be=r(x," and "),R=a(x,"CODE",{});var ot=i(R);Ie=r(ot,"predict()"),ot.forEach(t),Ee=r(x,`, such as when creating your own layers or models with
the Keras `),B=a(x,"CODE",{});var Ge=i(B);pe=r(Ge,"Functional"),Ge.forEach(t),ze=r(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(v),P=a(v,"UL",{});var j=i(P);z=a(j,"LI",{});var ne=i(z);$e=r(ne,"a single Tensor with "),J=a(ne,"CODE",{});var ge=i(J);X=r(ge,"pixel_values"),ge.forEach(t),Ze=r(ne," only and nothing else: "),q=a(ne,"CODE",{});var nt=i(q);We=r(nt,"model(pixel_values)"),nt.forEach(t),ne.forEach(t),Ne=p(j),Z=a(j,"LI",{});var re=i(Z);L=r(re,`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),Q=a(re,"CODE",{});var _e=i(Q);de=r(_e,"model([pixel_values, attention_mask])"),_e.forEach(t),Re=r(re," or "),K=a(re,"CODE",{});var rt=i(K);Be=r(rt,"model([pixel_values, attention_mask, token_type_ids])"),rt.forEach(t),re.forEach(t),ee=p(j),D=a(j,"LI",{});var Oe=i(D);ce=r(Oe,`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),te=a(Oe,"CODE",{});var ve=i(te);qe=r(ve,'model({"pixel_values": pixel_values, "token_type_ids": token_type_ids})'),ve.forEach(t),Oe.forEach(t),j.forEach(t),fe=p(v),C=a(v,"P",{});var Te=i(C);Se=r(Te,`Note that when creating models and layers with
`),N=a(Te,"A",{href:!0,rel:!0});var st=i(N);oe=r(st,"subclassing"),st.forEach(t),De=r(Te,` 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!`),Te.forEach(t),this.h()},h(){c(N,"href","https://keras.io/guides/making_new_layers_and_models_via_subclassing/"),c(N,"rel","nofollow")},m(v,k){f(v,d,k),e(d,y),e(d,u),e(u,g),e(d,T),f(v,l,k),f(v,h,k),e(h,F),e(F,Pe),e(h,we),e(h,I),e(I,O),f(v,H,k),f(v,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(v,le,k),f(v,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(v,fe,k),f(v,C,k),e(C,Se),e(C,N),e(N,oe),e(C,De)},d(v){v&&t(d),v&&t(l),v&&t(h),v&&t(H),v&&t(w),v&&t(le),v&&t(P),v&&t(fe),v&&t(C)}}}function fi(U){let d,y,u,g,T;return{c(){d=s("p"),y=n("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s("code"),g=n("Module"),T=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=a(l,"P",{});var h=i(d);y=r(h,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=a(h,"CODE",{});var F=i(u);g=r(F,"Module"),F.forEach(t),T=r(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,T)},d(l){l&&t(d)}}}function ui(U){let d,y,u,g,T;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=s("p"),y=n("Examples:"),u=m(),M(g.$$.fragment)},l(l){d=a(l,"P",{});var h=i(d);y=r(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),T=!0},p:bn,i(l){T||($(g.$$.fragment,l),T=!0)},o(l){A(g.$$.fragment,l),T=!1},d(l){l&&t(d),l&&t(u),V(g,l)}}}function gi(U){let d,y,u,g,T,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=s("p"),y=n("TensorFlow models and layers in "),u=s("code"),g=n("transformers"),T=n(" accept two formats as input:"),l=m(),h=s("ul"),F=s("li"),Pe=n("having all inputs as keyword arguments (like PyTorch models), or"),we=m(),I=s("li"),O=n("having all inputs as a list, tuple or dict in the first positional argument."),H=m(),w=s("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=s("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=s("code"),Je=n("model.fit()"),G=n(` supports! If, however, you want to use the second
format outside of Keras methods like `),Y=s("code"),Ce=n("fit()"),be=n(" and "),R=s("code"),Ie=n("predict()"),Ee=n(`, such as when creating your own layers or models with
the Keras `),B=s("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=s("ul"),z=s("li"),$e=n("a single Tensor with "),J=s("code"),X=n("pixel_values"),Ze=n(" only and nothing else: "),q=s("code"),We=n("model(pixel_values)"),Ne=m(),Z=s("li"),L=n(`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),Q=s("code"),de=n("model([pixel_values, attention_mask])"),Re=n(" or "),K=s("code"),Be=n("model([pixel_values, attention_mask, token_type_ids])"),ee=m(),D=s("li"),ce=n(`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),te=s("code"),qe=n('model({"pixel_values": pixel_values, "token_type_ids": token_type_ids})'),fe=m(),C=s("p"),Se=n(`Note that when creating models and layers with
`),N=s("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(v){d=a(v,"P",{});var k=i(d);y=r(k,"TensorFlow models and layers in "),u=a(k,"CODE",{});var et=i(u);g=r(et,"transformers"),et.forEach(t),T=r(k," accept two formats as input:"),k.forEach(t),l=p(v),h=a(v,"UL",{});var he=i(h);F=a(he,"LI",{});var me=i(F);Pe=r(me,"having all inputs as keyword arguments (like PyTorch models), or"),me.forEach(t),we=p(he),I=a(he,"LI",{});var yt=i(I);O=r(yt,"having all inputs as a list, tuple or dict in the first positional argument."),yt.forEach(t),he.forEach(t),H=p(v),w=a(v,"P",{});var x=i(w);je=r(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=a(x,"CODE",{});var ue=i(S);Ue=r(ue,"model.fit()"),ue.forEach(t),Me=r(x,` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),W=a(x,"CODE",{});var tt=i(W);Je=r(tt,"model.fit()"),tt.forEach(t),G=r(x,` supports! If, however, you want to use the second
format outside of Keras methods like `),Y=a(x,"CODE",{});var Ae=i(Y);Ce=r(Ae,"fit()"),Ae.forEach(t),be=r(x," and "),R=a(x,"CODE",{});var ot=i(R);Ie=r(ot,"predict()"),ot.forEach(t),Ee=r(x,`, such as when creating your own layers or models with
the Keras `),B=a(x,"CODE",{});var Ge=i(B);pe=r(Ge,"Functional"),Ge.forEach(t),ze=r(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(v),P=a(v,"UL",{});var j=i(P);z=a(j,"LI",{});var ne=i(z);$e=r(ne,"a single Tensor with "),J=a(ne,"CODE",{});var ge=i(J);X=r(ge,"pixel_values"),ge.forEach(t),Ze=r(ne," only and nothing else: "),q=a(ne,"CODE",{});var nt=i(q);We=r(nt,"model(pixel_values)"),nt.forEach(t),ne.forEach(t),Ne=p(j),Z=a(j,"LI",{});var re=i(Z);L=r(re,`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),Q=a(re,"CODE",{});var _e=i(Q);de=r(_e,"model([pixel_values, attention_mask])"),_e.forEach(t),Re=r(re," or "),K=a(re,"CODE",{});var rt=i(K);Be=r(rt,"model([pixel_values, attention_mask, token_type_ids])"),rt.forEach(t),re.forEach(t),ee=p(j),D=a(j,"LI",{});var Oe=i(D);ce=r(Oe,`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),te=a(Oe,"CODE",{});var ve=i(te);qe=r(ve,'model({"pixel_values": pixel_values, "token_type_ids": token_type_ids})'),ve.forEach(t),Oe.forEach(t),j.forEach(t),fe=p(v),C=a(v,"P",{});var Te=i(C);Se=r(Te,`Note that when creating models and layers with
`),N=a(Te,"A",{href:!0,rel:!0});var st=i(N);oe=r(st,"subclassing"),st.forEach(t),De=r(Te,` 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!`),Te.forEach(t),this.h()},h(){c(N,"href","https://keras.io/guides/making_new_layers_and_models_via_subclassing/"),c(N,"rel","nofollow")},m(v,k){f(v,d,k),e(d,y),e(d,u),e(u,g),e(d,T),f(v,l,k),f(v,h,k),e(h,F),e(F,Pe),e(h,we),e(h,I),e(I,O),f(v,H,k),f(v,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(v,le,k),f(v,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(v,fe,k),f(v,C,k),e(C,Se),e(C,N),e(N,oe),e(C,De)},d(v){v&&t(d),v&&t(l),v&&t(h),v&&t(H),v&&t(w),v&&t(le),v&&t(P),v&&t(fe),v&&t(C)}}}function _i(U){let d,y,u,g,T;return{c(){d=s("p"),y=n("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s("code"),g=n("Module"),T=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=a(l,"P",{});var h=i(d);y=r(h,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=a(h,"CODE",{});var F=i(u);g=r(F,"Module"),F.forEach(t),T=r(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,T)},d(l){l&&t(d)}}}function vi(U){let d,y,u,g,T;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=s("p"),y=n("Examples:"),u=m(),M(g.$$.fragment)},l(l){d=a(l,"P",{});var h=i(d);y=r(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),T=!0},p:bn,i(l){T||($(g.$$.fragment,l),T=!0)},o(l){A(g.$$.fragment,l),T=!1},d(l){l&&t(d),l&&t(u),V(g,l)}}}function Ti(U){let d,y,u,g,T,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,v,k,et,he,me,yt,x,ue,tt,Ae,ot,Ge,j,ne,ge,nt,re,_e,rt,Oe,ve,Te,st,Ht,nr,rr,$n,at,wt,Go,Gt,sr,Yo,ar,An,Vo,ir,Vn,Mt,bt,ko,lr,dr,Yt,cr,hr,mr,it,pr,Fo,fr,ur,Xt,gr,_r,kn,xo,vr,Fn,lt,Et,Xo,Lt,Tr,Lo,yr,xn,ye,Qt,wr,dt,Mr,Po,br,Er,Kt,$r,Ar,Vr,ct,kr,jo,Fr,xr,Uo,Pr,jr,Ur,$t,Pn,ht,At,Qo,eo,Jr,Ko,Cr,jn,He,to,Ir,oo,zr,no,Zr,Wr,Nr,Ve,ro,Rr,mt,Br,Jo,qr,Sr,en,Dr,Or,Hr,Vt,Gr,kt,Un,pt,Ft,tn,so,Yr,on,Xr,Jn,se,ao,Lr,nn,Qr,Kr,xt,es,io,ts,lo,os,ns,rs,ke,co,ss,ft,as,Co,is,ls,rn,ds,cs,hs,Pt,ms,jt,Cn,ut,Ut,sn,ho,ps,an,fs,In,ae,mo,us,po,gs,Io,_s,vs,Ts,fo,ys,uo,ws,Ms,bs,Jt,Es,Fe,go,$s,gt,As,zo,Vs,ks,ln,Fs,xs,Ps,Ct,js,It,zn,_t,zt,dn,_o,Us,cn,Js,Zn,ie,vo,Cs,To,Is,Zo,zs,Zs,Ws,yo,Ns,wo,Rs,Bs,qs,Zt,Ss,xe,Mo,Ds,vt,Os,Wo,Hs,Gs,hn,Ys,Xs,Ls,Wt,Qs,Nt,Wn;return l=new Ot({}),w=new Ot({}),Gt=new Ot({}),Lt=new Ot({}),Qt=new Tt({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/v4.33.0/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 Tt({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/v4.33.0/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/v4.33.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/vit_mae/modeling_vit_mae.py#L637"}}),ro=new Tt({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/v4.33.0/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See <a href="/docs/transformers/v4.33.0/en/model_doc/donut#transformers.DonutFeatureExtractor.__call__">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/v4.33.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/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/v4.33.0/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}}}),so=new Ot({}),ao=new Tt({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/v4.33.0/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/v4.33.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/vit_mae/modeling_vit_mae.py#L849"}}),xt=new Ao({props:{$$slots:{default:[ci]},$$scope:{ctx:U}}}),co=new Tt({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/v4.33.0/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See <a href="/docs/transformers/v4.33.0/en/model_doc/donut#transformers.DonutFeatureExtractor.__call__">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/v4.33.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/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/v4.33.0/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 Tt({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/v4.33.0/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/v4.33.0/en/main_classes/model#transformers.TFPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/vit_mae/modeling_tf_vit_mae.py#L778"}}),Jt=new Ao({props:{$$slots:{default:[pi]},$$scope:{ctx:U}}}),go=new Tt({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/v4.33.0/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See <a href="/docs/transformers/v4.33.0/en/model_doc/donut#transformers.DonutFeatureExtractor.__call__">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/v4.33.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple. This argument can be used
in eager mode, in graph mode the value will always be set to True.`,name:"return_dict"},{anchor:"transformers.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/v4.33.0/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/v4.33.0/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({}),vo=new Tt({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/v4.33.0/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/v4.33.0/en/main_classes/model#transformers.TFPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/vit_mae/modeling_tf_vit_mae.py#L939"}}),Zt=new Ao({props:{$$slots:{default:[gi]},$$scope:{ctx:U}}}),Mo=new Tt({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/v4.33.0/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See <a href="/docs/transformers/v4.33.0/en/model_doc/donut#transformers.DonutFeatureExtractor.__call__">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/v4.33.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple. This argument can be used
in eager mode, in graph mode the value will always be set to True.`,name:"return_dict"},{anchor:"transformers.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/v4.33.0/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/v4.33.0/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:[vi]},$$scope:{ctx:U}}}),{c(){d=s("meta"),y=m(),u=s("h1"),g=s("a"),T=s("span"),M(l.$$.fragment),h=m(),F=s("span"),Pe=n("ViTMAE"),we=m(),I=s("h2"),O=s("a"),H=s("span"),M(w.$$.fragment),je=m(),S=s("span"),Ue=n("Overview"),Me=m(),W=s("p"),Je=n("The ViTMAE model was proposed in "),G=s("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=s("p"),Ie=n("The abstract from the paper is the following:"),Ee=m(),B=s("p"),pe=s("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=s("p"),z=n("Tips:"),$e=m(),J=s("ul"),X=s("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=s("a"),We=n("ViTMAEForPreTraining"),Ne=n(" for this purpose."),Z=m(),L=s("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=s("a"),Re=n("ViTForImageClassification"),K=n("."),Be=m(),ee=s("li"),D=n("One can use "),ce=s("a"),te=n("ViTImageProcessor"),qe=n(" to prepare images for the model. See the code examples for more info."),fe=m(),C=s("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=s("li"),De=n("For a visual understanding of how MAEs work you can check out this "),v=s("a"),k=n("post"),et=n("."),he=m(),me=s("img"),x=m(),ue=s("small"),tt=n("MAE architecture. Taken from the "),Ae=s("a"),ot=n("original paper."),Ge=m(),j=s("p"),ne=n("This model was contributed by "),ge=s("a"),nt=n("nielsr"),re=n(". TensorFlow version of the model was contributed by "),_e=s("a"),rt=n("sayakpaul"),Oe=n(` and
`),ve=s("a"),Te=n("ariG23498"),st=n(" (equal contribution). The original code can be found "),Ht=s("a"),nr=n("here"),rr=n("."),$n=m(),at=s("h2"),wt=s("a"),Go=s("span"),M(Gt.$$.fragment),sr=m(),Yo=s("span"),ar=n("Resources"),An=m(),Vo=s("p"),ir=n("A list of official Hugging Face and community (indicated by \u{1F30E}) resources to help you get started with ViTMAE."),Vn=m(),Mt=s("ul"),bt=s("li"),ko=s("a"),lr=n("ViTMAEForPreTraining"),dr=n(" is supported by this "),Yt=s("a"),cr=n("example script"),hr=n(", allowing you to pre-train the model from scratch/further pre-train the model on custom data."),mr=m(),it=s("li"),pr=n("A notebook that illustrates how to visualize reconstructed pixel values with "),Fo=s("a"),fr=n("ViTMAEForPreTraining"),ur=n(" can be found "),Xt=s("a"),gr=n("here"),_r=n("."),kn=m(),xo=s("p"),vr=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=s("h2"),Et=s("a"),Xo=s("span"),M(Lt.$$.fragment),Tr=m(),Lo=s("span"),yr=n("ViTMAEConfig"),xn=m(),ye=s("div"),M(Qt.$$.fragment),wr=m(),dt=s("p"),Mr=n("This is the configuration class to store the configuration of a "),Po=s("a"),br=n("ViTMAEModel"),Er=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=s("a"),$r=n("facebook/vit-mae-base"),Ar=n(" architecture."),Vr=m(),ct=s("p"),kr=n("Configuration objects inherit from "),jo=s("a"),Fr=n("PretrainedConfig"),xr=n(` and can be used to control the model outputs. Read the
documentation from `),Uo=s("a"),Pr=n("PretrainedConfig"),jr=n(" for more information."),Ur=m(),M($t.$$.fragment),Pn=m(),ht=s("h2"),At=s("a"),Qo=s("span"),M(eo.$$.fragment),Jr=m(),Ko=s("span"),Cr=n("ViTMAEModel"),jn=m(),He=s("div"),M(to.$$.fragment),Ir=m(),oo=s("p"),zr=n(`The bare ViTMAE Model transformer outputting raw hidden-states without any specific head on top.
This model is a PyTorch `),no=s("a"),Zr=n("torch.nn.Module"),Wr=n(` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Nr=m(),Ve=s("div"),M(ro.$$.fragment),Rr=m(),mt=s("p"),Br=n("The "),Jo=s("a"),qr=n("ViTMAEModel"),Sr=n(" forward method, overrides the "),en=s("code"),Dr=n("__call__"),Or=n(" special method."),Hr=m(),M(Vt.$$.fragment),Gr=m(),M(kt.$$.fragment),Un=m(),pt=s("h2"),Ft=s("a"),tn=s("span"),M(so.$$.fragment),Yr=m(),on=s("span"),Xr=n("ViTMAEForPreTraining"),Jn=m(),se=s("div"),M(ao.$$.fragment),Lr=m(),nn=s("p"),Qr=n("The ViTMAE Model transformer with the decoder on top for self-supervised pre-training."),Kr=m(),M(xt.$$.fragment),es=m(),io=s("p"),ts=n("This model is a PyTorch "),lo=s("a"),os=n("torch.nn.Module"),ns=n(` subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),rs=m(),ke=s("div"),M(co.$$.fragment),ss=m(),ft=s("p"),as=n("The "),Co=s("a"),is=n("ViTMAEForPreTraining"),ls=n(" forward method, overrides the "),rn=s("code"),ds=n("__call__"),cs=n(" special method."),hs=m(),M(Pt.$$.fragment),ms=m(),M(jt.$$.fragment),Cn=m(),ut=s("h2"),Ut=s("a"),sn=s("span"),M(ho.$$.fragment),ps=m(),an=s("span"),fs=n("TFViTMAEModel"),In=m(),ae=s("div"),M(mo.$$.fragment),us=m(),po=s("p"),gs=n(`The bare ViTMAE Model transformer outputting raw hidden-states without any specific head on top.
This model inherits from `),Io=s("a"),_s=n("TFPreTrainedModel"),vs=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.)`),Ts=m(),fo=s("p"),ys=n("This model is also a "),uo=s("a"),ws=n("tf.keras.Model"),Ms=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.`),bs=m(),M(Jt.$$.fragment),Es=m(),Fe=s("div"),M(go.$$.fragment),$s=m(),gt=s("p"),As=n("The "),zo=s("a"),Vs=n("TFViTMAEModel"),ks=n(" forward method, overrides the "),ln=s("code"),Fs=n("__call__"),xs=n(" special method."),Ps=m(),M(Ct.$$.fragment),js=m(),M(It.$$.fragment),zn=m(),_t=s("h2"),zt=s("a"),dn=s("span"),M(_o.$$.fragment),Us=m(),cn=s("span"),Js=n("TFViTMAEForPreTraining"),Zn=m(),ie=s("div"),M(vo.$$.fragment),Cs=m(),To=s("p"),Is=n(`The ViTMAE Model transformer with the decoder on top for self-supervised pre-training.
This model inherits from `),Zo=s("a"),zs=n("TFPreTrainedModel"),Zs=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.)`),Ws=m(),yo=s("p"),Ns=n("This model is also a "),wo=s("a"),Rs=n("tf.keras.Model"),Bs=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.`),qs=m(),M(Zt.$$.fragment),Ss=m(),xe=s("div"),M(Mo.$$.fragment),Ds=m(),vt=s("p"),Os=n("The "),Wo=s("a"),Hs=n("TFViTMAEForPreTraining"),Gs=n(" forward method, overrides the "),hn=s("code"),Ys=n("__call__"),Xs=n(" special method."),Ls=m(),M(Wt.$$.fragment),Qs=m(),M(Nt.$$.fragment),this.h()},l(o){const _=ri('[data-svelte="svelte-1phssyn"]',document.head);d=a(_,"META",{name:!0,content:!0}),_.forEach(t),y=p(o),u=a(o,"H1",{class:!0});var bo=i(u);g=a(bo,"A",{id:!0,class:!0,href:!0});var mn=i(g);T=a(mn,"SPAN",{});var pn=i(T);b(l.$$.fragment,pn),pn.forEach(t),mn.forEach(t),h=p(bo),F=a(bo,"SPAN",{});var fn=i(F);Pe=r(fn,"ViTMAE"),fn.forEach(t),bo.forEach(t),we=p(o),I=a(o,"H2",{class:!0});var Eo=i(I);O=a(Eo,"A",{id:!0,class:!0,href:!0});var un=i(O);H=a(un,"SPAN",{});var gn=i(H);b(w.$$.fragment,gn),gn.forEach(t),un.forEach(t),je=p(Eo),S=a(Eo,"SPAN",{});var _n=i(S);Ue=r(_n,"Overview"),_n.forEach(t),Eo.forEach(t),Me=p(o),W=a(o,"P",{});var $o=i(W);Je=r($o,"The ViTMAE model was proposed in "),G=a($o,"A",{href:!0,rel:!0});var vn=i(G);Y=r(vn,"Masked Autoencoders Are Scalable Vision Learners"),vn.forEach(t),Ce=r($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=a(o,"P",{});var Tn=i(R);Ie=r(Tn,"The abstract from the paper is the following:"),Tn.forEach(t),Ee=p(o),B=a(o,"P",{});var yn=i(B);pe=a(yn,"EM",{});var ea=i(pe);ze=r(ea,`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.`),ea.forEach(t),yn.forEach(t),le=p(o),P=a(o,"P",{});var ta=i(P);z=r(ta,"Tips:"),ta.forEach(t),$e=p(o),J=a(o,"UL",{});var Ye=i(J);X=a(Ye,"LI",{});var Nn=i(X);Ze=r(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=a(Nn,"A",{href:!0});var oa=i(q);We=r(oa,"ViTMAEForPreTraining"),oa.forEach(t),Ne=r(Nn," for this purpose."),Nn.forEach(t),Z=p(Ye),L=a(Ye,"LI",{});var Rn=i(L);Q=r(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=a(Rn,"A",{href:!0});var na=i(de);Re=r(na,"ViTForImageClassification"),na.forEach(t),K=r(Rn,"."),Rn.forEach(t),Be=p(Ye),ee=a(Ye,"LI",{});var Bn=i(ee);D=r(Bn,"One can use "),ce=a(Bn,"A",{href:!0});var ra=i(ce);te=r(ra,"ViTImageProcessor"),ra.forEach(t),qe=r(Bn," to prepare images for the model. See the code examples for more info."),Bn.forEach(t),fe=p(Ye),C=a(Ye,"LI",{});var sa=i(C);Se=r(sa,`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.`),sa.forEach(t),N=p(Ye),oe=a(Ye,"LI",{});var qn=i(oe);De=r(qn,"For a visual understanding of how MAEs work you can check out this "),v=a(qn,"A",{href:!0,rel:!0});var aa=i(v);k=r(aa,"post"),aa.forEach(t),et=r(qn,"."),qn.forEach(t),Ye.forEach(t),he=p(o),me=a(o,"IMG",{src:!0,alt:!0,width:!0}),x=p(o),ue=a(o,"SMALL",{});var Ks=i(ue);tt=r(Ks,"MAE architecture. Taken from the "),Ae=a(Ks,"A",{href:!0});var ia=i(Ae);ot=r(ia,"original paper."),ia.forEach(t),Ks.forEach(t),Ge=p(o),j=a(o,"P",{});var Xe=i(j);ne=r(Xe,"This model was contributed by "),ge=a(Xe,"A",{href:!0,rel:!0});var la=i(ge);nt=r(la,"nielsr"),la.forEach(t),re=r(Xe,". TensorFlow version of the model was contributed by "),_e=a(Xe,"A",{href:!0,rel:!0});var da=i(_e);rt=r(da,"sayakpaul"),da.forEach(t),Oe=r(Xe,` and
`),ve=a(Xe,"A",{href:!0,rel:!0});var ca=i(ve);Te=r(ca,"ariG23498"),ca.forEach(t),st=r(Xe," (equal contribution). The original code can be found "),Ht=a(Xe,"A",{href:!0,rel:!0});var ha=i(Ht);nr=r(ha,"here"),ha.forEach(t),rr=r(Xe,"."),Xe.forEach(t),$n=p(o),at=a(o,"H2",{class:!0});var Sn=i(at);wt=a(Sn,"A",{id:!0,class:!0,href:!0});var ma=i(wt);Go=a(ma,"SPAN",{});var pa=i(Go);b(Gt.$$.fragment,pa),pa.forEach(t),ma.forEach(t),sr=p(Sn),Yo=a(Sn,"SPAN",{});var fa=i(Yo);ar=r(fa,"Resources"),fa.forEach(t),Sn.forEach(t),An=p(o),Vo=a(o,"P",{});var ua=i(Vo);ir=r(ua,"A list of official Hugging Face and community (indicated by \u{1F30E}) resources to help you get started with ViTMAE."),ua.forEach(t),Vn=p(o),Mt=a(o,"UL",{});var Dn=i(Mt);bt=a(Dn,"LI",{});var wn=i(bt);ko=a(wn,"A",{href:!0});var ga=i(ko);lr=r(ga,"ViTMAEForPreTraining"),ga.forEach(t),dr=r(wn," is supported by this "),Yt=a(wn,"A",{href:!0,rel:!0});var _a=i(Yt);cr=r(_a,"example script"),_a.forEach(t),hr=r(wn,", allowing you to pre-train the model from scratch/further pre-train the model on custom data."),wn.forEach(t),mr=p(Dn),it=a(Dn,"LI",{});var No=i(it);pr=r(No,"A notebook that illustrates how to visualize reconstructed pixel values with "),Fo=a(No,"A",{href:!0});var va=i(Fo);fr=r(va,"ViTMAEForPreTraining"),va.forEach(t),ur=r(No," can be found "),Xt=a(No,"A",{href:!0,rel:!0});var Ta=i(Xt);gr=r(Ta,"here"),Ta.forEach(t),_r=r(No,"."),No.forEach(t),Dn.forEach(t),kn=p(o),xo=a(o,"P",{});var ya=i(xo);vr=r(ya,"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."),ya.forEach(t),Fn=p(o),lt=a(o,"H2",{class:!0});var On=i(lt);Et=a(On,"A",{id:!0,class:!0,href:!0});var wa=i(Et);Xo=a(wa,"SPAN",{});var Ma=i(Xo);b(Lt.$$.fragment,Ma),Ma.forEach(t),wa.forEach(t),Tr=p(On),Lo=a(On,"SPAN",{});var ba=i(Lo);yr=r(ba,"ViTMAEConfig"),ba.forEach(t),On.forEach(t),xn=p(o),ye=a(o,"DIV",{class:!0});var Rt=i(ye);b(Qt.$$.fragment,Rt),wr=p(Rt),dt=a(Rt,"P",{});var Ro=i(dt);Mr=r(Ro,"This is the configuration class to store the configuration of a "),Po=a(Ro,"A",{href:!0});var Ea=i(Po);br=r(Ea,"ViTMAEModel"),Ea.forEach(t),Er=r(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=a(Ro,"A",{href:!0,rel:!0});var $a=i(Kt);$r=r($a,"facebook/vit-mae-base"),$a.forEach(t),Ar=r(Ro," architecture."),Ro.forEach(t),Vr=p(Rt),ct=a(Rt,"P",{});var Bo=i(ct);kr=r(Bo,"Configuration objects inherit from "),jo=a(Bo,"A",{href:!0});var Aa=i(jo);Fr=r(Aa,"PretrainedConfig"),Aa.forEach(t),xr=r(Bo,` and can be used to control the model outputs. Read the
documentation from `),Uo=a(Bo,"A",{href:!0});var Va=i(Uo);Pr=r(Va,"PretrainedConfig"),Va.forEach(t),jr=r(Bo," for more information."),Bo.forEach(t),Ur=p(Rt),b($t.$$.fragment,Rt),Rt.forEach(t),Pn=p(o),ht=a(o,"H2",{class:!0});var Hn=i(ht);At=a(Hn,"A",{id:!0,class:!0,href:!0});var ka=i(At);Qo=a(ka,"SPAN",{});var Fa=i(Qo);b(eo.$$.fragment,Fa),Fa.forEach(t),ka.forEach(t),Jr=p(Hn),Ko=a(Hn,"SPAN",{});var xa=i(Ko);Cr=r(xa,"ViTMAEModel"),xa.forEach(t),Hn.forEach(t),jn=p(o),He=a(o,"DIV",{class:!0});var qo=i(He);b(to.$$.fragment,qo),Ir=p(qo),oo=a(qo,"P",{});var Gn=i(oo);zr=r(Gn,`The bare ViTMAE Model transformer outputting raw hidden-states without any specific head on top.
This model is a PyTorch `),no=a(Gn,"A",{href:!0,rel:!0});var Pa=i(no);Zr=r(Pa,"torch.nn.Module"),Pa.forEach(t),Wr=r(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),Nr=p(qo),Ve=a(qo,"DIV",{class:!0});var Bt=i(Ve);b(ro.$$.fragment,Bt),Rr=p(Bt),mt=a(Bt,"P",{});var So=i(mt);Br=r(So,"The "),Jo=a(So,"A",{href:!0});var ja=i(Jo);qr=r(ja,"ViTMAEModel"),ja.forEach(t),Sr=r(So," forward method, overrides the "),en=a(So,"CODE",{});var Ua=i(en);Dr=r(Ua,"__call__"),Ua.forEach(t),Or=r(So," special method."),So.forEach(t),Hr=p(Bt),b(Vt.$$.fragment,Bt),Gr=p(Bt),b(kt.$$.fragment,Bt),Bt.forEach(t),qo.forEach(t),Un=p(o),pt=a(o,"H2",{class:!0});var Yn=i(pt);Ft=a(Yn,"A",{id:!0,class:!0,href:!0});var Ja=i(Ft);tn=a(Ja,"SPAN",{});var Ca=i(tn);b(so.$$.fragment,Ca),Ca.forEach(t),Ja.forEach(t),Yr=p(Yn),on=a(Yn,"SPAN",{});var Ia=i(on);Xr=r(Ia,"ViTMAEForPreTraining"),Ia.forEach(t),Yn.forEach(t),Jn=p(o),se=a(o,"DIV",{class:!0});var Le=i(se);b(ao.$$.fragment,Le),Lr=p(Le),nn=a(Le,"P",{});var za=i(nn);Qr=r(za,"The ViTMAE Model transformer with the decoder on top for self-supervised pre-training."),za.forEach(t),Kr=p(Le),b(xt.$$.fragment,Le),es=p(Le),io=a(Le,"P",{});var Xn=i(io);ts=r(Xn,"This model is a PyTorch "),lo=a(Xn,"A",{href:!0,rel:!0});var Za=i(lo);os=r(Za,"torch.nn.Module"),Za.forEach(t),ns=r(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),rs=p(Le),ke=a(Le,"DIV",{class:!0});var qt=i(ke);b(co.$$.fragment,qt),ss=p(qt),ft=a(qt,"P",{});var Do=i(ft);as=r(Do,"The "),Co=a(Do,"A",{href:!0});var Wa=i(Co);is=r(Wa,"ViTMAEForPreTraining"),Wa.forEach(t),ls=r(Do," forward method, overrides the "),rn=a(Do,"CODE",{});var Na=i(rn);ds=r(Na,"__call__"),Na.forEach(t),cs=r(Do," special method."),Do.forEach(t),hs=p(qt),b(Pt.$$.fragment,qt),ms=p(qt),b(jt.$$.fragment,qt),qt.forEach(t),Le.forEach(t),Cn=p(o),ut=a(o,"H2",{class:!0});var Ln=i(ut);Ut=a(Ln,"A",{id:!0,class:!0,href:!0});var Ra=i(Ut);sn=a(Ra,"SPAN",{});var Ba=i(sn);b(ho.$$.fragment,Ba),Ba.forEach(t),Ra.forEach(t),ps=p(Ln),an=a(Ln,"SPAN",{});var qa=i(an);fs=r(qa,"TFViTMAEModel"),qa.forEach(t),Ln.forEach(t),In=p(o),ae=a(o,"DIV",{class:!0});var Qe=i(ae);b(mo.$$.fragment,Qe),us=p(Qe),po=a(Qe,"P",{});var Qn=i(po);gs=r(Qn,`The bare ViTMAE Model transformer outputting raw hidden-states without any specific head on top.
This model inherits from `),Io=a(Qn,"A",{href:!0});var Sa=i(Io);_s=r(Sa,"TFPreTrainedModel"),Sa.forEach(t),vs=r(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),Ts=p(Qe),fo=a(Qe,"P",{});var Kn=i(fo);ys=r(Kn,"This model is also a "),uo=a(Kn,"A",{href:!0,rel:!0});var Da=i(uo);ws=r(Da,"tf.keras.Model"),Da.forEach(t),Ms=r(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),bs=p(Qe),b(Jt.$$.fragment,Qe),Es=p(Qe),Fe=a(Qe,"DIV",{class:!0});var St=i(Fe);b(go.$$.fragment,St),$s=p(St),gt=a(St,"P",{});var Oo=i(gt);As=r(Oo,"The "),zo=a(Oo,"A",{href:!0});var Oa=i(zo);Vs=r(Oa,"TFViTMAEModel"),Oa.forEach(t),ks=r(Oo," forward method, overrides the "),ln=a(Oo,"CODE",{});var Ha=i(ln);Fs=r(Ha,"__call__"),Ha.forEach(t),xs=r(Oo," special method."),Oo.forEach(t),Ps=p(St),b(Ct.$$.fragment,St),js=p(St),b(It.$$.fragment,St),St.forEach(t),Qe.forEach(t),zn=p(o),_t=a(o,"H2",{class:!0});var er=i(_t);zt=a(er,"A",{id:!0,class:!0,href:!0});var Ga=i(zt);dn=a(Ga,"SPAN",{});var Ya=i(dn);b(_o.$$.fragment,Ya),Ya.forEach(t),Ga.forEach(t),Us=p(er),cn=a(er,"SPAN",{});var Xa=i(cn);Js=r(Xa,"TFViTMAEForPreTraining"),Xa.forEach(t),er.forEach(t),Zn=p(o),ie=a(o,"DIV",{class:!0});var Ke=i(ie);b(vo.$$.fragment,Ke),Cs=p(Ke),To=a(Ke,"P",{});var tr=i(To);Is=r(tr,`The ViTMAE Model transformer with the decoder on top for self-supervised pre-training.
This model inherits from `),Zo=a(tr,"A",{href:!0});var La=i(Zo);zs=r(La,"TFPreTrainedModel"),La.forEach(t),Zs=r(tr,`. 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.)`),tr.forEach(t),Ws=p(Ke),yo=a(Ke,"P",{});var or=i(yo);Ns=r(or,"This model is also a "),wo=a(or,"A",{href:!0,rel:!0});var Qa=i(wo);Rs=r(Qa,"tf.keras.Model"),Qa.forEach(t),Bs=r(or,` 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.`),or.forEach(t),qs=p(Ke),b(Zt.$$.fragment,Ke),Ss=p(Ke),xe=a(Ke,"DIV",{class:!0});var Dt=i(xe);b(Mo.$$.fragment,Dt),Ds=p(Dt),vt=a(Dt,"P",{});var Ho=i(vt);Os=r(Ho,"The "),Wo=a(Ho,"A",{href:!0});var Ka=i(Wo);Hs=r(Ka,"TFViTMAEForPreTraining"),Ka.forEach(t),Gs=r(Ho," forward method, overrides the "),hn=a(Ho,"CODE",{});var ei=i(hn);Ys=r(ei,"__call__"),ei.forEach(t),Xs=r(Ho," special method."),Ho.forEach(t),Ls=p(Dt),b(Wt.$$.fragment,Dt),Qs=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/v4.33.0/en/model_doc/vit_mae#transformers.ViTMAEForPreTraining"),c(de,"href","/docs/transformers/v4.33.0/en/model_doc/vit#transformers.ViTForImageClassification"),c(ce,"href","/docs/transformers/v4.33.0/en/model_doc/vit#transformers.ViTImageProcessor"),c(v,"href","https://keras.io/examples/vision/masked_image_modeling/"),c(v,"rel","nofollow"),si(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(ve,"href","https://github.com/ariG23498"),c(ve,"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(at,"class","relative group"),c(ko,"href","/docs/transformers/v4.33.0/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/v4.33.0/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/v4.33.0/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/v4.33.0/en/main_classes/configuration#transformers.PretrainedConfig"),c(Uo,"href","/docs/transformers/v4.33.0/en/main_classes/configuration#transformers.PretrainedConfig"),c(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(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/v4.33.0/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/v4.33.0/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(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(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/v4.33.0/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/v4.33.0/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(ae,"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/v4.33.0/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/v4.33.0/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,T),E(l,T,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,v),e(v,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,re),e(j,_e),e(_e,rt),e(j,Oe),e(j,ve),e(ve,Te),e(j,st),e(j,Ht),e(Ht,nr),e(j,rr),f(o,$n,_),f(o,at,_),e(at,wt),e(wt,Go),E(Gt,Go,null),e(at,sr),e(at,Yo),e(Yo,ar),f(o,An,_),f(o,Vo,_),e(Vo,ir),f(o,Vn,_),f(o,Mt,_),e(Mt,bt),e(bt,ko),e(ko,lr),e(bt,dr),e(bt,Yt),e(Yt,cr),e(bt,hr),e(Mt,mr),e(Mt,it),e(it,pr),e(it,Fo),e(Fo,fr),e(it,ur),e(it,Xt),e(Xt,gr),e(it,_r),f(o,kn,_),f(o,xo,_),e(xo,vr),f(o,Fn,_),f(o,lt,_),e(lt,Et),e(Et,Xo),E(Lt,Xo,null),e(lt,Tr),e(lt,Lo),e(Lo,yr),f(o,xn,_),f(o,ye,_),E(Qt,ye,null),e(ye,wr),e(ye,dt),e(dt,Mr),e(dt,Po),e(Po,br),e(dt,Er),e(dt,Kt),e(Kt,$r),e(dt,Ar),e(ye,Vr),e(ye,ct),e(ct,kr),e(ct,jo),e(jo,Fr),e(ct,xr),e(ct,Uo),e(Uo,Pr),e(ct,jr),e(ye,Ur),E($t,ye,null),f(o,Pn,_),f(o,ht,_),e(ht,At),e(At,Qo),E(eo,Qo,null),e(ht,Jr),e(ht,Ko),e(Ko,Cr),f(o,jn,_),f(o,He,_),E(to,He,null),e(He,Ir),e(He,oo),e(oo,zr),e(oo,no),e(no,Zr),e(oo,Wr),e(He,Nr),e(He,Ve),E(ro,Ve,null),e(Ve,Rr),e(Ve,mt),e(mt,Br),e(mt,Jo),e(Jo,qr),e(mt,Sr),e(mt,en),e(en,Dr),e(mt,Or),e(Ve,Hr),E(Vt,Ve,null),e(Ve,Gr),E(kt,Ve,null),f(o,Un,_),f(o,pt,_),e(pt,Ft),e(Ft,tn),E(so,tn,null),e(pt,Yr),e(pt,on),e(on,Xr),f(o,Jn,_),f(o,se,_),E(ao,se,null),e(se,Lr),e(se,nn),e(nn,Qr),e(se,Kr),E(xt,se,null),e(se,es),e(se,io),e(io,ts),e(io,lo),e(lo,os),e(io,ns),e(se,rs),e(se,ke),E(co,ke,null),e(ke,ss),e(ke,ft),e(ft,as),e(ft,Co),e(Co,is),e(ft,ls),e(ft,rn),e(rn,ds),e(ft,cs),e(ke,hs),E(Pt,ke,null),e(ke,ms),E(jt,ke,null),f(o,Cn,_),f(o,ut,_),e(ut,Ut),e(Ut,sn),E(ho,sn,null),e(ut,ps),e(ut,an),e(an,fs),f(o,In,_),f(o,ae,_),E(mo,ae,null),e(ae,us),e(ae,po),e(po,gs),e(po,Io),e(Io,_s),e(po,vs),e(ae,Ts),e(ae,fo),e(fo,ys),e(fo,uo),e(uo,ws),e(fo,Ms),e(ae,bs),E(Jt,ae,null),e(ae,Es),e(ae,Fe),E(go,Fe,null),e(Fe,$s),e(Fe,gt),e(gt,As),e(gt,zo),e(zo,Vs),e(gt,ks),e(gt,ln),e(ln,Fs),e(gt,xs),e(Fe,Ps),E(Ct,Fe,null),e(Fe,js),E(It,Fe,null),f(o,zn,_),f(o,_t,_),e(_t,zt),e(zt,dn),E(_o,dn,null),e(_t,Us),e(_t,cn),e(cn,Js),f(o,Zn,_),f(o,ie,_),E(vo,ie,null),e(ie,Cs),e(ie,To),e(To,Is),e(To,Zo),e(Zo,zs),e(To,Zs),e(ie,Ws),e(ie,yo),e(yo,Ns),e(yo,wo),e(wo,Rs),e(yo,Bs),e(ie,qs),E(Zt,ie,null),e(ie,Ss),e(ie,xe),E(Mo,xe,null),e(xe,Ds),e(xe,vt),e(vt,Os),e(vt,Wo),e(Wo,Hs),e(vt,Gs),e(vt,hn),e(hn,Ys),e(vt,Xs),e(xe,Ls),E(Wt,xe,null),e(xe,Qs),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 vn={};_&2&&(vn.$$scope={dirty:_,ctx:o}),Zt.$set(vn);const Tn={};_&2&&(Tn.$$scope={dirty:_,ctx:o}),Wt.$set(Tn);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),$(ro.$$.fragment,o),$(Vt.$$.fragment,o),$(kt.$$.fragment,o),$(so.$$.fragment,o),$(ao.$$.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),$(vo.$$.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(ro.$$.fragment,o),A(Vt.$$.fragment,o),A(kt.$$.fragment,o),A(so.$$.fragment,o),A(ao.$$.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(vo.$$.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(at),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(ro),V(Vt),V(kt),o&&t(Un),o&&t(pt),V(so),o&&t(Jn),o&&t(se),V(ao),V(xt),V(co),V(Pt),V(jt),o&&t(Cn),o&&t(ut),V(ho),o&&t(In),o&&t(ae),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(vo),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 ai(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ki extends ti{constructor(d){super();oi(this,d,wi,Ti,ni,{})}}export{ki as default,yi as metadata};
