import{S as ds,i as cs,s as ps,e as r,k as h,w as y,t as a,M as ms,c as n,d as o,m as f,a as s,x as w,h as i,b as d,N as hs,G as t,g as m,y as P,q as $,o as N,B as T,v as fs,L as pn}from"../../chunks/vendor-hf-doc-builder.js";import{T as dn}from"../../chunks/Tip-hf-doc-builder.js";import{D as H}from"../../chunks/Docstring-hf-doc-builder.js";import{C as mn}from"../../chunks/CodeBlock-hf-doc-builder.js";import{I as _e}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{E as cn}from"../../chunks/ExampleCodeBlock-hf-doc-builder.js";function us(M){let p,v,g,_,b;return{c(){p=r("p"),v=a(`This is a recently introduced model so the API hasn\u2019t been tested extensively. There may be some bugs or slight
breaking changes to fix it in the future. If you see something strange, file a `),g=r("a"),_=a("Github Issue"),b=a("."),this.h()},l(l){p=n(l,"P",{});var u=s(p);v=i(u,`This is a recently introduced model so the API hasn\u2019t been tested extensively. There may be some bugs or slight
breaking changes to fix it in the future. If you see something strange, file a `),g=n(u,"A",{href:!0,rel:!0});var G=s(g);_=i(G,"Github Issue"),G.forEach(o),b=i(u,"."),u.forEach(o),this.h()},h(){d(g,"href","https://github.com/huggingface/transformers/issues/new?assignees=&labels=&template=bug-report.md&title"),d(g,"rel","nofollow")},m(l,u){m(l,p,u),t(p,v),t(p,g),t(g,_),t(p,b)},d(l){l&&o(p)}}}function gs(M){let p,v,g,_,b;return _=new mn({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEdMUE5Nb2RlbCUyQyUyMEdMUE5Db25maWclMEElMEElMjMlMjBJbml0aWFsaXppbmclMjBhJTIwR0xQTiUyMHZpbnZpbm8wMiUyRmdscG4ta2l0dGklMjBzdHlsZSUyMGNvbmZpZ3VyYXRpb24lMEFjb25maWd1cmF0aW9uJTIwJTNEJTIwR0xQTkNvbmZpZygpJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMG1vZGVsJTIwZnJvbSUyMHRoZSUyMHZpbnZpbm8wMiUyRmdscG4ta2l0dGklMjBzdHlsZSUyMGNvbmZpZ3VyYXRpb24lMEFtb2RlbCUyMCUzRCUyMEdMUE5Nb2RlbChjb25maWd1cmF0aW9uKSUwQSUwQSUyMyUyMEFjY2Vzc2luZyUyMHRoZSUyMG1vZGVsJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBtb2RlbC5jb25maWc=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> GLPNModel, GLPNConfig

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a GLPN vinvino02/glpn-kitti style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = GLPNConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model from the vinvino02/glpn-kitti style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = GLPNModel(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(){p=r("p"),v=a("Example:"),g=h(),y(_.$$.fragment)},l(l){p=n(l,"P",{});var u=s(p);v=i(u,"Example:"),u.forEach(o),g=f(l),w(_.$$.fragment,l)},m(l,u){m(l,p,u),t(p,v),m(l,g,u),P(_,l,u),b=!0},p:pn,i(l){b||($(_.$$.fragment,l),b=!0)},o(l){N(_.$$.fragment,l),b=!1},d(l){l&&o(p),l&&o(g),T(_,l)}}}function _s(M){let p,v,g,_,b;return{c(){p=r("p"),v=a("Although the recipe for forward pass needs to be defined within this function, one should call the "),g=r("code"),_=a("Module"),b=a(`
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){p=n(l,"P",{});var u=s(p);v=i(u,"Although the recipe for forward pass needs to be defined within this function, one should call the "),g=n(u,"CODE",{});var G=s(g);_=i(G,"Module"),G.forEach(o),b=i(u,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),u.forEach(o)},m(l,u){m(l,p,u),t(p,v),t(p,g),t(g,_),t(p,b)},d(l){l&&o(p)}}}function bs(M){let p,v,g,_,b;return _=new mn({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMEdMUE5Nb2RlbCUwQWltcG9ydCUyMHRvcmNoJTBBZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJodWdnaW5nZmFjZSUyRmNhdHMtaW1hZ2UlMjIpJTBBaW1hZ2UlMjAlM0QlMjBkYXRhc2V0JTVCJTIydGVzdCUyMiU1RCU1QiUyMmltYWdlJTIyJTVEJTVCMCU1RCUwQSUwQWltYWdlX3Byb2Nlc3NvciUyMCUzRCUyMEF1dG9JbWFnZVByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIydmludmlubzAyJTJGZ2xwbi1raXR0aSUyMiklMEFtb2RlbCUyMCUzRCUyMEdMUE5Nb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIydmludmlubzAyJTJGZ2xwbi1raXR0aSUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjBpbWFnZV9wcm9jZXNzb3IoaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQSUwQXdpdGglMjB0b3JjaC5ub19ncmFkKCklM0ElMEElMjAlMjAlMjAlMjBvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpJTBBJTBBbGFzdF9oaWRkZW5fc3RhdGVzJTIwJTNEJTIwb3V0cHV0cy5sYXN0X2hpZGRlbl9zdGF0ZSUwQWxpc3QobGFzdF9oaWRkZW5fc3RhdGVzLnNoYXBlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, GLPNModel
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;huggingface/cats-image&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image = dataset[<span class="hljs-string">&quot;test&quot;</span>][<span class="hljs-string">&quot;image&quot;</span>][<span class="hljs-number">0</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span>image_processor = AutoImageProcessor.from_pretrained(<span class="hljs-string">&quot;vinvino02/glpn-kitti&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = GLPNModel.from_pretrained(<span class="hljs-string">&quot;vinvino02/glpn-kitti&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = image_processor(image, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> torch.no_grad():
<span class="hljs-meta">... </span>    outputs = model(**inputs)

<span class="hljs-meta">&gt;&gt;&gt; </span>last_hidden_states = outputs.last_hidden_state
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(last_hidden_states.shape)
[<span class="hljs-number">1</span>, <span class="hljs-number">512</span>, <span class="hljs-number">15</span>, <span class="hljs-number">20</span>]`}}),{c(){p=r("p"),v=a("Example:"),g=h(),y(_.$$.fragment)},l(l){p=n(l,"P",{});var u=s(p);v=i(u,"Example:"),u.forEach(o),g=f(l),w(_.$$.fragment,l)},m(l,u){m(l,p,u),t(p,v),m(l,g,u),P(_,l,u),b=!0},p:pn,i(l){b||($(_.$$.fragment,l),b=!0)},o(l){N(_.$$.fragment,l),b=!1},d(l){l&&o(p),l&&o(g),T(_,l)}}}function vs(M){let p,v,g,_,b;return{c(){p=r("p"),v=a("Although the recipe for forward pass needs to be defined within this function, one should call the "),g=r("code"),_=a("Module"),b=a(`
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){p=n(l,"P",{});var u=s(p);v=i(u,"Although the recipe for forward pass needs to be defined within this function, one should call the "),g=n(u,"CODE",{});var G=s(g);_=i(G,"Module"),G.forEach(o),b=i(u,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),u.forEach(o)},m(l,u){m(l,p,u),t(p,v),t(p,g),t(g,_),t(p,b)},d(l){l&&o(p)}}}function ys(M){let p,v,g,_,b;return _=new mn({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMEdMUE5Gb3JEZXB0aEVzdGltYXRpb24lMEFpbXBvcnQlMjB0b3JjaCUwQWltcG9ydCUyMG51bXB5JTIwYXMlMjBucCUwQWZyb20lMjBQSUwlMjBpbXBvcnQlMjBJbWFnZSUwQWltcG9ydCUyMHJlcXVlc3RzJTBBJTBBdXJsJTIwJTNEJTIwJTIyaHR0cCUzQSUyRiUyRmltYWdlcy5jb2NvZGF0YXNldC5vcmclMkZ2YWwyMDE3JTJGMDAwMDAwMDM5NzY5LmpwZyUyMiUwQWltYWdlJTIwJTNEJTIwSW1hZ2Uub3BlbihyZXF1ZXN0cy5nZXQodXJsJTJDJTIwc3RyZWFtJTNEVHJ1ZSkucmF3KSUwQSUwQWltYWdlX3Byb2Nlc3NvciUyMCUzRCUyMEF1dG9JbWFnZVByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIydmludmlubzAyJTJGZ2xwbi1raXR0aSUyMiklMEFtb2RlbCUyMCUzRCUyMEdMUE5Gb3JEZXB0aEVzdGltYXRpb24uZnJvbV9wcmV0cmFpbmVkKCUyMnZpbnZpbm8wMiUyRmdscG4ta2l0dGklMjIpJTBBJTBBJTIzJTIwcHJlcGFyZSUyMGltYWdlJTIwZm9yJTIwdGhlJTIwbW9kZWwlMEFpbnB1dHMlMjAlM0QlMjBpbWFnZV9wcm9jZXNzb3IoaW1hZ2VzJTNEaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQSUwQXdpdGglMjB0b3JjaC5ub19ncmFkKCklM0ElMEElMjAlMjAlMjAlMjBvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpJTBBJTIwJTIwJTIwJTIwcHJlZGljdGVkX2RlcHRoJTIwJTNEJTIwb3V0cHV0cy5wcmVkaWN0ZWRfZGVwdGglMEElMEElMjMlMjBpbnRlcnBvbGF0ZSUyMHRvJTIwb3JpZ2luYWwlMjBzaXplJTBBcHJlZGljdGlvbiUyMCUzRCUyMHRvcmNoLm5uLmZ1bmN0aW9uYWwuaW50ZXJwb2xhdGUoJTBBJTIwJTIwJTIwJTIwcHJlZGljdGVkX2RlcHRoLnVuc3F1ZWV6ZSgxKSUyQyUwQSUyMCUyMCUyMCUyMHNpemUlM0RpbWFnZS5zaXplJTVCJTNBJTNBLTElNUQlMkMlMEElMjAlMjAlMjAlMjBtb2RlJTNEJTIyYmljdWJpYyUyMiUyQyUwQSUyMCUyMCUyMCUyMGFsaWduX2Nvcm5lcnMlM0RGYWxzZSUyQyUwQSklMEElMEElMjMlMjB2aXN1YWxpemUlMjB0aGUlMjBwcmVkaWN0aW9uJTBBb3V0cHV0JTIwJTNEJTIwcHJlZGljdGlvbi5zcXVlZXplKCkuY3B1KCkubnVtcHkoKSUwQWZvcm1hdHRlZCUyMCUzRCUyMChvdXRwdXQlMjAqJTIwMjU1JTIwJTJGJTIwbnAubWF4KG91dHB1dCkpLmFzdHlwZSglMjJ1aW50OCUyMiklMEFkZXB0aCUyMCUzRCUyMEltYWdlLmZyb21hcnJheShmb3JtYXR0ZWQp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, GLPNForDepthEstimation
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> numpy <span class="hljs-keyword">as</span> np
<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;vinvino02/glpn-kitti&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = GLPNForDepthEstimation.from_pretrained(<span class="hljs-string">&quot;vinvino02/glpn-kitti&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># prepare image for the model</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><span class="hljs-keyword">with</span> torch.no_grad():
<span class="hljs-meta">... </span>    outputs = model(**inputs)
<span class="hljs-meta">... </span>    predicted_depth = outputs.predicted_depth

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># interpolate to original size</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>prediction = torch.nn.functional.interpolate(
<span class="hljs-meta">... </span>    predicted_depth.unsqueeze(<span class="hljs-number">1</span>),
<span class="hljs-meta">... </span>    size=image.size[::-<span class="hljs-number">1</span>],
<span class="hljs-meta">... </span>    mode=<span class="hljs-string">&quot;bicubic&quot;</span>,
<span class="hljs-meta">... </span>    align_corners=<span class="hljs-literal">False</span>,
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># visualize the prediction</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>output = prediction.squeeze().cpu().numpy()
<span class="hljs-meta">&gt;&gt;&gt; </span>formatted = (output * <span class="hljs-number">255</span> / np.<span class="hljs-built_in">max</span>(output)).astype(<span class="hljs-string">&quot;uint8&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>depth = Image.fromarray(formatted)`}}),{c(){p=r("p"),v=a("Examples:"),g=h(),y(_.$$.fragment)},l(l){p=n(l,"P",{});var u=s(p);v=i(u,"Examples:"),u.forEach(o),g=f(l),w(_.$$.fragment,l)},m(l,u){m(l,p,u),t(p,v),m(l,g,u),P(_,l,u),b=!0},p:pn,i(l){b||($(_.$$.fragment,l),b=!0)},o(l){N(_.$$.fragment,l),b=!1},d(l){l&&o(p),l&&o(g),T(_,l)}}}function ws(M){let p,v,g,_,b,l,u,G,Go,Bt,Q,At,J,Y,_t,be,Eo,bt,Lo,Dt,U,Io,ve,jo,xo,Ve,Co,Uo,St,qe,ko,Xt,He,vt,Jo,Vt,Qe,Fo,qt,Ye,ye,zo,Oe,Ro,Zo,Ht,O,hn,Qt,K,Wo,we,Bo,Ao,Yt,k,Do,Pe,So,Xo,$e,Vo,qo,Ot,F,ee,yt,Ne,Ho,wt,Qo,Kt,Ke,Yo,eo,te,z,Oo,et,Ko,er,Te,tr,or,rr,Pt,tt,nr,to,R,oe,$t,Me,sr,Nt,ar,oo,E,Ge,ir,Z,lr,ot,dr,cr,Ee,pr,mr,hr,W,fr,rt,ur,gr,nt,_r,br,vr,re,ro,B,ne,Tt,Le,yr,Mt,wr,no,A,Ie,Pr,se,je,$r,Gt,Nr,so,D,ae,Et,xe,Tr,Lt,Mr,ao,j,Ce,Gr,It,Er,Lr,ie,Ue,Ir,jt,jr,io,S,le,xt,ke,xr,Ct,Cr,lo,x,Je,Ur,Fe,kr,ze,Jr,Fr,zr,L,Re,Rr,X,Zr,st,Wr,Br,Ut,Ar,Dr,Sr,de,Xr,ce,co,V,pe,kt,Ze,Vr,Jt,qr,po,C,We,Hr,Be,Qr,Ae,Yr,Or,Kr,I,De,en,q,tn,at,on,rn,Ft,nn,sn,an,me,ln,he,mo;return l=new _e({}),Q=new dn({props:{$$slots:{default:[us]},$$scope:{ctx:M}}}),be=new _e({}),Ne=new _e({}),Me=new _e({}),Ge=new H({props:{name:"class transformers.GLPNConfig",anchor:"transformers.GLPNConfig",parameters:[{name:"num_channels",val:" = 3"},{name:"num_encoder_blocks",val:" = 4"},{name:"depths",val:" = [2, 2, 2, 2]"},{name:"sr_ratios",val:" = [8, 4, 2, 1]"},{name:"hidden_sizes",val:" = [32, 64, 160, 256]"},{name:"patch_sizes",val:" = [7, 3, 3, 3]"},{name:"strides",val:" = [4, 2, 2, 2]"},{name:"num_attention_heads",val:" = [1, 2, 5, 8]"},{name:"mlp_ratios",val:" = [4, 4, 4, 4]"},{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:"drop_path_rate",val:" = 0.1"},{name:"layer_norm_eps",val:" = 1e-06"},{name:"decoder_hidden_size",val:" = 64"},{name:"max_depth",val:" = 10"},{name:"head_in_index",val:" = -1"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.GLPNConfig.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.GLPNConfig.num_encoder_blocks",description:`<strong>num_encoder_blocks</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014;
The number of encoder blocks (i.e. stages in the Mix Transformer encoder).`,name:"num_encoder_blocks"},{anchor:"transformers.GLPNConfig.depths",description:`<strong>depths</strong> (<code>List[int]</code>, <em>optional</em>, defaults to <code>[2, 2, 2, 2]</code>) &#x2014;
The number of layers in each encoder block.`,name:"depths"},{anchor:"transformers.GLPNConfig.sr_ratios",description:`<strong>sr_ratios</strong> (<code>List[int]</code>, <em>optional</em>, defaults to <code>[8, 4, 2, 1]</code>) &#x2014;
Sequence reduction ratios in each encoder block.`,name:"sr_ratios"},{anchor:"transformers.GLPNConfig.hidden_sizes",description:`<strong>hidden_sizes</strong> (<code>List[int]</code>, <em>optional</em>, defaults to <code>[32, 64, 160, 256]</code>) &#x2014;
Dimension of each of the encoder blocks.`,name:"hidden_sizes"},{anchor:"transformers.GLPNConfig.patch_sizes",description:`<strong>patch_sizes</strong> (<code>List[int]</code>, <em>optional</em>, defaults to <code>[7, 3, 3, 3]</code>) &#x2014;
Patch size before each encoder block.`,name:"patch_sizes"},{anchor:"transformers.GLPNConfig.strides",description:`<strong>strides</strong> (<code>List[int]</code>, <em>optional</em>, defaults to <code>[4, 2, 2, 2]</code>) &#x2014;
Stride before each encoder block.`,name:"strides"},{anchor:"transformers.GLPNConfig.num_attention_heads",description:`<strong>num_attention_heads</strong> (<code>List[int]</code>, <em>optional</em>, defaults to <code>[1, 2, 4, 8]</code>) &#x2014;
Number of attention heads for each attention layer in each block of the Transformer encoder.`,name:"num_attention_heads"},{anchor:"transformers.GLPNConfig.mlp_ratios",description:`<strong>mlp_ratios</strong> (<code>List[int]</code>, <em>optional</em>, defaults to <code>[4, 4, 4, 4]</code>) &#x2014;
Ratio of the size of the hidden layer compared to the size of the input layer of the Mix FFNs in the
encoder blocks.`,name:"mlp_ratios"},{anchor:"transformers.GLPNConfig.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.GLPNConfig.hidden_dropout_prob",description:`<strong>hidden_dropout_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout probability for all fully connected layers in the embeddings, encoder, and pooler.`,name:"hidden_dropout_prob"},{anchor:"transformers.GLPNConfig.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.GLPNConfig.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.GLPNConfig.drop_path_rate",description:`<strong>drop_path_rate</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The dropout probability for stochastic depth, used in the blocks of the Transformer encoder.`,name:"drop_path_rate"},{anchor:"transformers.GLPNConfig.layer_norm_eps",description:`<strong>layer_norm_eps</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-6) &#x2014;
The epsilon used by the layer normalization layers.`,name:"layer_norm_eps"},{anchor:"transformers.GLPNConfig.decoder_hidden_size",description:`<strong>decoder_hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 32) &#x2014;
The dimension of the decoder.`,name:"decoder_hidden_size"},{anchor:"transformers.GLPNConfig.max_depth",description:`<strong>max_depth</strong> (<code>int</code>, <em>optional</em>, defaults to 10) &#x2014;
The maximum depth of the decoder.`,name:"max_depth"},{anchor:"transformers.GLPNConfig.head_in_index",description:`<strong>head_in_index</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
The index of the features to use in the head.`,name:"head_in_index"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/glpn/configuration_glpn.py#L29"}}),re=new cn({props:{anchor:"transformers.GLPNConfig.example",$$slots:{default:[gs]},$$scope:{ctx:M}}}),Le=new _e({}),Ie=new H({props:{name:"class transformers.GLPNFeatureExtractor",anchor:"transformers.GLPNFeatureExtractor",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/glpn/feature_extraction_glpn.py#L26"}}),je=new H({props:{name:"__call__",anchor:"transformers.GLPNFeatureExtractor.__call__",parameters:[{name:"images",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/image_processing_utils.py#L544"}}),xe=new _e({}),Ce=new H({props:{name:"class transformers.GLPNImageProcessor",anchor:"transformers.GLPNImageProcessor",parameters:[{name:"do_resize",val:": bool = True"},{name:"size_divisor",val:": int = 32"},{name:"resample",val:" = <Resampling.BILINEAR: 2>"},{name:"do_rescale",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.GLPNImageProcessor.do_resize",description:`<strong>do_resize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to resize the image&#x2019;s (height, width) dimensions, rounding them down to the closest multiple of
<code>size_divisor</code>. Can be overridden by <code>do_resize</code> in <code>preprocess</code>.`,name:"do_resize"},{anchor:"transformers.GLPNImageProcessor.size_divisor",description:`<strong>size_divisor</strong> (<code>int</code>, <em>optional</em>, defaults to 32) &#x2014;
When <code>do_resize</code> is <code>True</code>, images are resized so their height and width are rounded down to the closest
multiple of <code>size_divisor</code>. Can be overridden by <code>size_divisor</code> in <code>preprocess</code>.`,name:"size_divisor"},{anchor:"transformers.GLPNImageProcessor.resample",description:`<strong>resample</strong> (<code>PIL.Image</code> resampling filter, <em>optional</em>, defaults to <code>PILImageResampling.BILINEAR</code>) &#x2014;
Resampling filter to use if resizing the image. Can be overridden by <code>resample</code> in <code>preprocess</code>.`,name:"resample"},{anchor:"transformers.GLPNImageProcessor.do_rescale",description:`<strong>do_rescale</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to apply the scaling factor (to make pixel values floats between 0. and 1.). Can be
overridden by <code>do_rescale</code> in <code>preprocess</code>.`,name:"do_rescale"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/glpn/image_processing_glpn.py#L40"}}),Ue=new H({props:{name:"preprocess",anchor:"transformers.GLPNImageProcessor.preprocess",parameters:[{name:"images",val:": typing.Union[ForwardRef('PIL.Image.Image'), transformers.utils.generic.TensorType, typing.List[ForwardRef('PIL.Image.Image')], typing.List[transformers.utils.generic.TensorType]]"},{name:"do_resize",val:": typing.Optional[bool] = None"},{name:"size_divisor",val:": typing.Optional[int] = None"},{name:"resample",val:" = None"},{name:"do_rescale",val:": typing.Optional[bool] = None"},{name:"return_tensors",val:": typing.Union[transformers.utils.generic.TensorType, str, NoneType] = None"},{name:"data_format",val:": ChannelDimension = <ChannelDimension.FIRST: 'channels_first'>"},{name:"input_data_format",val:": typing.Union[str, transformers.image_utils.ChannelDimension, NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.GLPNImageProcessor.preprocess.images",description:`<strong>images</strong> (<code>PIL.Image.Image</code> or <code>TensorType</code> or <code>List[np.ndarray]</code> or <code>List[TensorType]</code>) &#x2014;
Images to preprocess. Expects a single or batch of images with pixel values ranging from 0 to 255. If
passing in images with pixel values between 0 and 1, set <code>do_normalize=False</code>.`,name:"images"},{anchor:"transformers.GLPNImageProcessor.preprocess.do_resize",description:`<strong>do_resize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_resize</code>) &#x2014;
Whether to resize the input such that the (height, width) dimensions are a multiple of <code>size_divisor</code>.`,name:"do_resize"},{anchor:"transformers.GLPNImageProcessor.preprocess.size_divisor",description:`<strong>size_divisor</strong> (<code>int</code>, <em>optional</em>, defaults to <code>self.size_divisor</code>) &#x2014;
When <code>do_resize</code> is <code>True</code>, images are resized so their height and width are rounded down to the
closest multiple of <code>size_divisor</code>.`,name:"size_divisor"},{anchor:"transformers.GLPNImageProcessor.preprocess.resample",description:`<strong>resample</strong> (<code>PIL.Image</code> resampling filter, <em>optional</em>, defaults to <code>self.resample</code>) &#x2014;
<code>PIL.Image</code> resampling filter to use if resizing the image e.g. <code>PILImageResampling.BILINEAR</code>. Only has
an effect if <code>do_resize</code> is set to <code>True</code>.`,name:"resample"},{anchor:"transformers.GLPNImageProcessor.preprocess.do_rescale",description:`<strong>do_rescale</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_rescale</code>) &#x2014;
Whether or not to apply the scaling factor (to make pixel values floats between 0. and 1.).`,name:"do_rescale"},{anchor:"transformers.GLPNImageProcessor.preprocess.return_tensors",description:`<strong>return_tensors</strong> (<code>str</code> or <code>TensorType</code>, <em>optional</em>) &#x2014;
The type of tensors to return. Can be one of:<ul>
<li><code>None</code>: Return a list of <code>np.ndarray</code>.</li>
<li><code>TensorType.TENSORFLOW</code> or <code>&apos;tf&apos;</code>: Return a batch of type <code>tf.Tensor</code>.</li>
<li><code>TensorType.PYTORCH</code> or <code>&apos;pt&apos;</code>: Return a batch of type <code>torch.Tensor</code>.</li>
<li><code>TensorType.NUMPY</code> or <code>&apos;np&apos;</code>: Return a batch of type <code>np.ndarray</code>.</li>
<li><code>TensorType.JAX</code> or <code>&apos;jax&apos;</code>: Return a batch of type <code>jax.numpy.ndarray</code>.</li>
</ul>`,name:"return_tensors"},{anchor:"transformers.GLPNImageProcessor.preprocess.data_format",description:`<strong>data_format</strong> (<code>ChannelDimension</code> or <code>str</code>, <em>optional</em>, defaults to <code>ChannelDimension.FIRST</code>) &#x2014;
The channel dimension format for the output image. Can be one of:<ul>
<li><code>ChannelDimension.FIRST</code>: image in (num_channels, height, width) format.</li>
<li><code>ChannelDimension.LAST</code>: image in (height, width, num_channels) format.</li>
</ul>`,name:"data_format"},{anchor:"transformers.GLPNImageProcessor.preprocess.input_data_format",description:`<strong>input_data_format</strong> (<code>ChannelDimension</code> or <code>str</code>, <em>optional</em>) &#x2014;
The channel dimension format for the input image. If unset, the channel dimension format is inferred
from the input image. Can be one of:<ul>
<li><code>&quot;channels_first&quot;</code> or <code>ChannelDimension.FIRST</code>: image in (num_channels, height, width) format.</li>
<li><code>&quot;channels_last&quot;</code> or <code>ChannelDimension.LAST</code>: image in (height, width, num_channels) format.</li>
<li><code>&quot;none&quot;</code> or <code>ChannelDimension.NONE</code>: image in (height, width) format.</li>
</ul>`,name:"input_data_format"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/glpn/image_processing_glpn.py#L124"}}),ke=new _e({}),Je=new H({props:{name:"class transformers.GLPNModel",anchor:"transformers.GLPNModel",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.GLPNModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/glpn#transformers.GLPNConfig">GLPNConfig</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/glpn/modeling_glpn.py#L483"}}),Re=new H({props:{name:"forward",anchor:"transformers.GLPNModel.forward",parameters:[{name:"pixel_values",val:": FloatTensor"},{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.GLPNModel.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. Padding will be ignored by default should you provide it. Pixel values can be obtained using
<a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See <a href="/docs/transformers/main/en/model_doc/donut#transformers.DonutFeatureExtractor.__call__">GLPNImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.GLPNModel.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.GLPNModel.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.GLPNModel.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/glpn/modeling_glpn.py#L503",returnDescription:`
<p>A <a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_outputs.BaseModelOutput"
>transformers.modeling_outputs.BaseModelOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/main/en/model_doc/glpn#transformers.GLPNConfig"
>GLPNConfig</a>) and inputs.</p>
<ul>
<li>
<p><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.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><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>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_outputs.BaseModelOutput"
>transformers.modeling_outputs.BaseModelOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),de=new dn({props:{$$slots:{default:[_s]},$$scope:{ctx:M}}}),ce=new cn({props:{anchor:"transformers.GLPNModel.forward.example",$$slots:{default:[bs]},$$scope:{ctx:M}}}),Ze=new _e({}),We=new H({props:{name:"class transformers.GLPNForDepthEstimation",anchor:"transformers.GLPNForDepthEstimation",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.GLPNForDepthEstimation.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/glpn#transformers.GLPNConfig">GLPNConfig</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/glpn/modeling_glpn.py#L684"}}),De=new H({props:{name:"forward",anchor:"transformers.GLPNForDepthEstimation.forward",parameters:[{name:"pixel_values",val:": FloatTensor"},{name:"labels",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.GLPNForDepthEstimation.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. Padding will be ignored by default should you provide it. Pixel values can be obtained using
<a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See <a href="/docs/transformers/main/en/model_doc/donut#transformers.DonutFeatureExtractor.__call__">GLPNImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.GLPNForDepthEstimation.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.GLPNForDepthEstimation.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.GLPNForDepthEstimation.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.GLPNForDepthEstimation.forward.labels",description:`<strong>labels</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, height, width)</code>, <em>optional</em>) &#x2014;
Ground truth depth estimation maps for computing the loss.`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/glpn/modeling_glpn.py#L695",returnDescription:`
<p>A <a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_outputs.DepthEstimatorOutput"
>transformers.modeling_outputs.DepthEstimatorOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/main/en/model_doc/glpn#transformers.GLPNConfig"
>GLPNConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>labels</code> is provided) \u2014 Classification (or regression if config.num_labels==1) loss.</p>
</li>
<li>
<p><strong>predicted_depth</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, height, width)</code>) \u2014 Predicted depth for each pixel.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, num_channels, height, width)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><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, patch_size, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_outputs.DepthEstimatorOutput"
>transformers.modeling_outputs.DepthEstimatorOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),me=new dn({props:{$$slots:{default:[vs]},$$scope:{ctx:M}}}),he=new cn({props:{anchor:"transformers.GLPNForDepthEstimation.forward.example",$$slots:{default:[ys]},$$scope:{ctx:M}}}),{c(){p=r("meta"),v=h(),g=r("h1"),_=r("a"),b=r("span"),y(l.$$.fragment),u=h(),G=r("span"),Go=a("GLPN"),Bt=h(),y(Q.$$.fragment),At=h(),J=r("h2"),Y=r("a"),_t=r("span"),y(be.$$.fragment),Eo=h(),bt=r("span"),Lo=a("Overview"),Dt=h(),U=r("p"),Io=a("The GLPN model was proposed in "),ve=r("a"),jo=a("Global-Local Path Networks for Monocular Depth Estimation with Vertical CutDepth"),xo=a(`  by Doyeon Kim, Woonghyun Ga, Pyungwhan Ahn, Donggyu Joo, Sehwan Chun, Junmo Kim.
GLPN combines `),Ve=r("a"),Co=a("SegFormer"),Uo=a(`\u2019s hierarchical mix-Transformer with a lightweight decoder for monocular depth estimation. The proposed decoder shows better performance than the previously proposed decoders, with considerably
less computational complexity.`),St=h(),qe=r("p"),ko=a("The abstract from the paper is the following:"),Xt=h(),He=r("p"),vt=r("em"),Jo=a("Depth estimation from a single image is an important task that can be applied to various fields in computer vision, and has grown rapidly with the development of convolutional neural networks. In this paper, we propose a novel structure and training strategy for monocular depth estimation to further improve the prediction accuracy of the network. We deploy a hierarchical transformer encoder to capture and convey the global context, and design a lightweight yet powerful decoder to generate an estimated depth map while considering local connectivity. By constructing connected paths between multi-scale local features and the global decoding stream with our proposed selective feature fusion module, the network can integrate both representations and recover fine details. In addition, the proposed decoder shows better performance than the previously proposed decoders, with considerably less computational complexity. Furthermore, we improve the depth-specific augmentation method by utilizing an important observation in depth estimation to enhance the model. Our network achieves state-of-the-art performance over the challenging depth dataset NYU Depth V2. Extensive experiments have been conducted to validate and show the effectiveness of the proposed approach. Finally, our model shows better generalisation ability and robustness than other comparative models."),Vt=h(),Qe=r("p"),Fo=a("Tips:"),qt=h(),Ye=r("ul"),ye=r("li"),zo=a("One can use "),Oe=r("a"),Ro=a("GLPNImageProcessor"),Zo=a(" to prepare images for the model."),Ht=h(),O=r("img"),Qt=h(),K=r("small"),Wo=a("Summary of the approach. Taken from the "),we=r("a"),Bo=a("original paper"),Ao=a("."),Yt=h(),k=r("p"),Do=a("This model was contributed by "),Pe=r("a"),So=a("nielsr"),Xo=a(". The original code can be found "),$e=r("a"),Vo=a("here"),qo=a("."),Ot=h(),F=r("h2"),ee=r("a"),yt=r("span"),y(Ne.$$.fragment),Ho=h(),wt=r("span"),Qo=a("Resources"),Kt=h(),Ke=r("p"),Yo=a("A list of official Hugging Face and community (indicated by \u{1F30E}) resources to help you get started with GLPN."),eo=h(),te=r("ul"),z=r("li"),Oo=a("Demo notebooks for "),et=r("a"),Ko=a("GLPNForDepthEstimation"),er=a(" can be found "),Te=r("a"),tr=a("here"),or=a("."),rr=h(),Pt=r("li"),tt=r("a"),nr=a("Monocular depth estimation task guide"),to=h(),R=r("h2"),oe=r("a"),$t=r("span"),y(Me.$$.fragment),sr=h(),Nt=r("span"),ar=a("GLPNConfig"),oo=h(),E=r("div"),y(Ge.$$.fragment),ir=h(),Z=r("p"),lr=a("This is the configuration class to store the configuration of a "),ot=r("a"),dr=a("GLPNModel"),cr=a(`. It is used to instantiate an GLPN
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 GLPN
`),Ee=r("a"),pr=a("vinvino02/glpn-kitti"),mr=a(" architecture."),hr=h(),W=r("p"),fr=a("Configuration objects inherit from "),rt=r("a"),ur=a("PretrainedConfig"),gr=a(` and can be used to control the model outputs. Read the
documentation from `),nt=r("a"),_r=a("PretrainedConfig"),br=a(" for more information."),vr=h(),y(re.$$.fragment),ro=h(),B=r("h2"),ne=r("a"),Tt=r("span"),y(Le.$$.fragment),yr=h(),Mt=r("span"),wr=a("GLPNFeatureExtractor"),no=h(),A=r("div"),y(Ie.$$.fragment),Pr=h(),se=r("div"),y(je.$$.fragment),$r=h(),Gt=r("p"),Nr=a("Preprocess an image or a batch of images."),so=h(),D=r("h2"),ae=r("a"),Et=r("span"),y(xe.$$.fragment),Tr=h(),Lt=r("span"),Mr=a("GLPNImageProcessor"),ao=h(),j=r("div"),y(Ce.$$.fragment),Gr=h(),It=r("p"),Er=a("Constructs a GLPN image processor."),Lr=h(),ie=r("div"),y(Ue.$$.fragment),Ir=h(),jt=r("p"),jr=a("Preprocess the given images."),io=h(),S=r("h2"),le=r("a"),xt=r("span"),y(ke.$$.fragment),xr=h(),Ct=r("span"),Cr=a("GLPNModel"),lo=h(),x=r("div"),y(Je.$$.fragment),Ur=h(),Fe=r("p"),kr=a(`The bare GLPN encoder (Mix-Transformer) outputting raw hidden-states without any specific head on top.
This model is a PyTorch `),ze=r("a"),Jr=a("torch.nn.Module"),Fr=a(` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),zr=h(),L=r("div"),y(Re.$$.fragment),Rr=h(),X=r("p"),Zr=a("The "),st=r("a"),Wr=a("GLPNModel"),Br=a(" forward method, overrides the "),Ut=r("code"),Ar=a("__call__"),Dr=a(" special method."),Sr=h(),y(de.$$.fragment),Xr=h(),y(ce.$$.fragment),co=h(),V=r("h2"),pe=r("a"),kt=r("span"),y(Ze.$$.fragment),Vr=h(),Jt=r("span"),qr=a("GLPNForDepthEstimation"),po=h(),C=r("div"),y(We.$$.fragment),Hr=h(),Be=r("p"),Qr=a(`GLPN Model transformer with a lightweight depth estimation head on top e.g. for KITTI, NYUv2.
This model is a PyTorch `),Ae=r("a"),Yr=a("torch.nn.Module"),Or=a(` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Kr=h(),I=r("div"),y(De.$$.fragment),en=h(),q=r("p"),tn=a("The "),at=r("a"),on=a("GLPNForDepthEstimation"),rn=a(" forward method, overrides the "),Ft=r("code"),nn=a("__call__"),sn=a(" special method."),an=h(),y(me.$$.fragment),ln=h(),y(he.$$.fragment),this.h()},l(e){const c=ms('[data-svelte="svelte-1phssyn"]',document.head);p=n(c,"META",{name:!0,content:!0}),c.forEach(o),v=f(e),g=n(e,"H1",{class:!0});var Se=s(g);_=n(Se,"A",{id:!0,class:!0,href:!0});var zt=s(_);b=n(zt,"SPAN",{});var Rt=s(b);w(l.$$.fragment,Rt),Rt.forEach(o),zt.forEach(o),u=f(Se),G=n(Se,"SPAN",{});var Zt=s(G);Go=i(Zt,"GLPN"),Zt.forEach(o),Se.forEach(o),Bt=f(e),w(Q.$$.fragment,e),At=f(e),J=n(e,"H2",{class:!0});var Xe=s(J);Y=n(Xe,"A",{id:!0,class:!0,href:!0});var Wt=s(Y);_t=n(Wt,"SPAN",{});var fn=s(_t);w(be.$$.fragment,fn),fn.forEach(o),Wt.forEach(o),Eo=f(Xe),bt=n(Xe,"SPAN",{});var un=s(bt);Lo=i(un,"Overview"),un.forEach(o),Xe.forEach(o),Dt=f(e),U=n(e,"P",{});var it=s(U);Io=i(it,"The GLPN model was proposed in "),ve=n(it,"A",{href:!0,rel:!0});var gn=s(ve);jo=i(gn,"Global-Local Path Networks for Monocular Depth Estimation with Vertical CutDepth"),gn.forEach(o),xo=i(it,`  by Doyeon Kim, Woonghyun Ga, Pyungwhan Ahn, Donggyu Joo, Sehwan Chun, Junmo Kim.
GLPN combines `),Ve=n(it,"A",{href:!0});var _n=s(Ve);Co=i(_n,"SegFormer"),_n.forEach(o),Uo=i(it,`\u2019s hierarchical mix-Transformer with a lightweight decoder for monocular depth estimation. The proposed decoder shows better performance than the previously proposed decoders, with considerably
less computational complexity.`),it.forEach(o),St=f(e),qe=n(e,"P",{});var bn=s(qe);ko=i(bn,"The abstract from the paper is the following:"),bn.forEach(o),Xt=f(e),He=n(e,"P",{});var vn=s(He);vt=n(vn,"EM",{});var yn=s(vt);Jo=i(yn,"Depth estimation from a single image is an important task that can be applied to various fields in computer vision, and has grown rapidly with the development of convolutional neural networks. In this paper, we propose a novel structure and training strategy for monocular depth estimation to further improve the prediction accuracy of the network. We deploy a hierarchical transformer encoder to capture and convey the global context, and design a lightweight yet powerful decoder to generate an estimated depth map while considering local connectivity. By constructing connected paths between multi-scale local features and the global decoding stream with our proposed selective feature fusion module, the network can integrate both representations and recover fine details. In addition, the proposed decoder shows better performance than the previously proposed decoders, with considerably less computational complexity. Furthermore, we improve the depth-specific augmentation method by utilizing an important observation in depth estimation to enhance the model. Our network achieves state-of-the-art performance over the challenging depth dataset NYU Depth V2. Extensive experiments have been conducted to validate and show the effectiveness of the proposed approach. Finally, our model shows better generalisation ability and robustness than other comparative models."),yn.forEach(o),vn.forEach(o),Vt=f(e),Qe=n(e,"P",{});var wn=s(Qe);Fo=i(wn,"Tips:"),wn.forEach(o),qt=f(e),Ye=n(e,"UL",{});var Pn=s(Ye);ye=n(Pn,"LI",{});var ho=s(ye);zo=i(ho,"One can use "),Oe=n(ho,"A",{href:!0});var $n=s(Oe);Ro=i($n,"GLPNImageProcessor"),$n.forEach(o),Zo=i(ho," to prepare images for the model."),ho.forEach(o),Pn.forEach(o),Ht=f(e),O=n(e,"IMG",{src:!0,alt:!0,width:!0}),Qt=f(e),K=n(e,"SMALL",{});var fo=s(K);Wo=i(fo,"Summary of the approach. Taken from the "),we=n(fo,"A",{href:!0,target:!0});var Nn=s(we);Bo=i(Nn,"original paper"),Nn.forEach(o),Ao=i(fo,"."),fo.forEach(o),Yt=f(e),k=n(e,"P",{});var lt=s(k);Do=i(lt,"This model was contributed by "),Pe=n(lt,"A",{href:!0,rel:!0});var Tn=s(Pe);So=i(Tn,"nielsr"),Tn.forEach(o),Xo=i(lt,". The original code can be found "),$e=n(lt,"A",{href:!0,rel:!0});var Mn=s($e);Vo=i(Mn,"here"),Mn.forEach(o),qo=i(lt,"."),lt.forEach(o),Ot=f(e),F=n(e,"H2",{class:!0});var uo=s(F);ee=n(uo,"A",{id:!0,class:!0,href:!0});var Gn=s(ee);yt=n(Gn,"SPAN",{});var En=s(yt);w(Ne.$$.fragment,En),En.forEach(o),Gn.forEach(o),Ho=f(uo),wt=n(uo,"SPAN",{});var Ln=s(wt);Qo=i(Ln,"Resources"),Ln.forEach(o),uo.forEach(o),Kt=f(e),Ke=n(e,"P",{});var In=s(Ke);Yo=i(In,"A list of official Hugging Face and community (indicated by \u{1F30E}) resources to help you get started with GLPN."),In.forEach(o),eo=f(e),te=n(e,"UL",{});var go=s(te);z=n(go,"LI",{});var dt=s(z);Oo=i(dt,"Demo notebooks for "),et=n(dt,"A",{href:!0});var jn=s(et);Ko=i(jn,"GLPNForDepthEstimation"),jn.forEach(o),er=i(dt," can be found "),Te=n(dt,"A",{href:!0,rel:!0});var xn=s(Te);tr=i(xn,"here"),xn.forEach(o),or=i(dt,"."),dt.forEach(o),rr=f(go),Pt=n(go,"LI",{});var Cn=s(Pt);tt=n(Cn,"A",{href:!0});var Un=s(tt);nr=i(Un,"Monocular depth estimation task guide"),Un.forEach(o),Cn.forEach(o),go.forEach(o),to=f(e),R=n(e,"H2",{class:!0});var _o=s(R);oe=n(_o,"A",{id:!0,class:!0,href:!0});var kn=s(oe);$t=n(kn,"SPAN",{});var Jn=s($t);w(Me.$$.fragment,Jn),Jn.forEach(o),kn.forEach(o),sr=f(_o),Nt=n(_o,"SPAN",{});var Fn=s(Nt);ar=i(Fn,"GLPNConfig"),Fn.forEach(o),_o.forEach(o),oo=f(e),E=n(e,"DIV",{class:!0});var fe=s(E);w(Ge.$$.fragment,fe),ir=f(fe),Z=n(fe,"P",{});var ct=s(Z);lr=i(ct,"This is the configuration class to store the configuration of a "),ot=n(ct,"A",{href:!0});var zn=s(ot);dr=i(zn,"GLPNModel"),zn.forEach(o),cr=i(ct,`. It is used to instantiate an GLPN
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 GLPN
`),Ee=n(ct,"A",{href:!0,rel:!0});var Rn=s(Ee);pr=i(Rn,"vinvino02/glpn-kitti"),Rn.forEach(o),mr=i(ct," architecture."),ct.forEach(o),hr=f(fe),W=n(fe,"P",{});var pt=s(W);fr=i(pt,"Configuration objects inherit from "),rt=n(pt,"A",{href:!0});var Zn=s(rt);ur=i(Zn,"PretrainedConfig"),Zn.forEach(o),gr=i(pt,` and can be used to control the model outputs. Read the
documentation from `),nt=n(pt,"A",{href:!0});var Wn=s(nt);_r=i(Wn,"PretrainedConfig"),Wn.forEach(o),br=i(pt," for more information."),pt.forEach(o),vr=f(fe),w(re.$$.fragment,fe),fe.forEach(o),ro=f(e),B=n(e,"H2",{class:!0});var bo=s(B);ne=n(bo,"A",{id:!0,class:!0,href:!0});var Bn=s(ne);Tt=n(Bn,"SPAN",{});var An=s(Tt);w(Le.$$.fragment,An),An.forEach(o),Bn.forEach(o),yr=f(bo),Mt=n(bo,"SPAN",{});var Dn=s(Mt);wr=i(Dn,"GLPNFeatureExtractor"),Dn.forEach(o),bo.forEach(o),no=f(e),A=n(e,"DIV",{class:!0});var vo=s(A);w(Ie.$$.fragment,vo),Pr=f(vo),se=n(vo,"DIV",{class:!0});var yo=s(se);w(je.$$.fragment,yo),$r=f(yo),Gt=n(yo,"P",{});var Sn=s(Gt);Nr=i(Sn,"Preprocess an image or a batch of images."),Sn.forEach(o),yo.forEach(o),vo.forEach(o),so=f(e),D=n(e,"H2",{class:!0});var wo=s(D);ae=n(wo,"A",{id:!0,class:!0,href:!0});var Xn=s(ae);Et=n(Xn,"SPAN",{});var Vn=s(Et);w(xe.$$.fragment,Vn),Vn.forEach(o),Xn.forEach(o),Tr=f(wo),Lt=n(wo,"SPAN",{});var qn=s(Lt);Mr=i(qn,"GLPNImageProcessor"),qn.forEach(o),wo.forEach(o),ao=f(e),j=n(e,"DIV",{class:!0});var mt=s(j);w(Ce.$$.fragment,mt),Gr=f(mt),It=n(mt,"P",{});var Hn=s(It);Er=i(Hn,"Constructs a GLPN image processor."),Hn.forEach(o),Lr=f(mt),ie=n(mt,"DIV",{class:!0});var Po=s(ie);w(Ue.$$.fragment,Po),Ir=f(Po),jt=n(Po,"P",{});var Qn=s(jt);jr=i(Qn,"Preprocess the given images."),Qn.forEach(o),Po.forEach(o),mt.forEach(o),io=f(e),S=n(e,"H2",{class:!0});var $o=s(S);le=n($o,"A",{id:!0,class:!0,href:!0});var Yn=s(le);xt=n(Yn,"SPAN",{});var On=s(xt);w(ke.$$.fragment,On),On.forEach(o),Yn.forEach(o),xr=f($o),Ct=n($o,"SPAN",{});var Kn=s(Ct);Cr=i(Kn,"GLPNModel"),Kn.forEach(o),$o.forEach(o),lo=f(e),x=n(e,"DIV",{class:!0});var ht=s(x);w(Je.$$.fragment,ht),Ur=f(ht),Fe=n(ht,"P",{});var No=s(Fe);kr=i(No,`The bare GLPN encoder (Mix-Transformer) outputting raw hidden-states without any specific head on top.
This model is a PyTorch `),ze=n(No,"A",{href:!0,rel:!0});var es=s(ze);Jr=i(es,"torch.nn.Module"),es.forEach(o),Fr=i(No,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),No.forEach(o),zr=f(ht),L=n(ht,"DIV",{class:!0});var ue=s(L);w(Re.$$.fragment,ue),Rr=f(ue),X=n(ue,"P",{});var ft=s(X);Zr=i(ft,"The "),st=n(ft,"A",{href:!0});var ts=s(st);Wr=i(ts,"GLPNModel"),ts.forEach(o),Br=i(ft," forward method, overrides the "),Ut=n(ft,"CODE",{});var os=s(Ut);Ar=i(os,"__call__"),os.forEach(o),Dr=i(ft," special method."),ft.forEach(o),Sr=f(ue),w(de.$$.fragment,ue),Xr=f(ue),w(ce.$$.fragment,ue),ue.forEach(o),ht.forEach(o),co=f(e),V=n(e,"H2",{class:!0});var To=s(V);pe=n(To,"A",{id:!0,class:!0,href:!0});var rs=s(pe);kt=n(rs,"SPAN",{});var ns=s(kt);w(Ze.$$.fragment,ns),ns.forEach(o),rs.forEach(o),Vr=f(To),Jt=n(To,"SPAN",{});var ss=s(Jt);qr=i(ss,"GLPNForDepthEstimation"),ss.forEach(o),To.forEach(o),po=f(e),C=n(e,"DIV",{class:!0});var ut=s(C);w(We.$$.fragment,ut),Hr=f(ut),Be=n(ut,"P",{});var Mo=s(Be);Qr=i(Mo,`GLPN Model transformer with a lightweight depth estimation head on top e.g. for KITTI, NYUv2.
This model is a PyTorch `),Ae=n(Mo,"A",{href:!0,rel:!0});var as=s(Ae);Yr=i(as,"torch.nn.Module"),as.forEach(o),Or=i(Mo,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Mo.forEach(o),Kr=f(ut),I=n(ut,"DIV",{class:!0});var ge=s(I);w(De.$$.fragment,ge),en=f(ge),q=n(ge,"P",{});var gt=s(q);tn=i(gt,"The "),at=n(gt,"A",{href:!0});var is=s(at);on=i(is,"GLPNForDepthEstimation"),is.forEach(o),rn=i(gt," forward method, overrides the "),Ft=n(gt,"CODE",{});var ls=s(Ft);nn=i(ls,"__call__"),ls.forEach(o),sn=i(gt," special method."),gt.forEach(o),an=f(ge),w(me.$$.fragment,ge),ln=f(ge),w(he.$$.fragment,ge),ge.forEach(o),ut.forEach(o),this.h()},h(){d(p,"name","hf:doc:metadata"),d(p,"content",JSON.stringify(Ps)),d(_,"id","glpn"),d(_,"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"),d(_,"href","#glpn"),d(g,"class","relative group"),d(Y,"id","overview"),d(Y,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(Y,"href","#overview"),d(J,"class","relative group"),d(ve,"href","https://arxiv.org/abs/2201.07436"),d(ve,"rel","nofollow"),d(Ve,"href","segformer"),d(Oe,"href","/docs/transformers/main/en/model_doc/glpn#transformers.GLPNImageProcessor"),hs(O.src,hn="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/glpn_architecture.jpg")||d(O,"src",hn),d(O,"alt","drawing"),d(O,"width","600"),d(we,"href","https://arxiv.org/abs/2201.07436"),d(we,"target","_blank"),d(Pe,"href","https://huggingface.co/nielsr"),d(Pe,"rel","nofollow"),d($e,"href","https://github.com/vinvino02/GLPDepth"),d($e,"rel","nofollow"),d(ee,"id","resources"),d(ee,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(ee,"href","#resources"),d(F,"class","relative group"),d(et,"href","/docs/transformers/main/en/model_doc/glpn#transformers.GLPNForDepthEstimation"),d(Te,"href","https://github.com/NielsRogge/Transformers-Tutorials/tree/master/GLPN"),d(Te,"rel","nofollow"),d(tt,"href","../tasks/monocular_depth_estimation"),d(oe,"id","transformers.GLPNConfig"),d(oe,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(oe,"href","#transformers.GLPNConfig"),d(R,"class","relative group"),d(ot,"href","/docs/transformers/main/en/model_doc/glpn#transformers.GLPNModel"),d(Ee,"href","https://huggingface.co/vinvino02/glpn-kitti"),d(Ee,"rel","nofollow"),d(rt,"href","/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig"),d(nt,"href","/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig"),d(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(ne,"id","transformers.GLPNFeatureExtractor"),d(ne,"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"),d(ne,"href","#transformers.GLPNFeatureExtractor"),d(B,"class","relative group"),d(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(ae,"id","transformers.GLPNImageProcessor"),d(ae,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(ae,"href","#transformers.GLPNImageProcessor"),d(D,"class","relative group"),d(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(le,"id","transformers.GLPNModel"),d(le,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(le,"href","#transformers.GLPNModel"),d(S,"class","relative group"),d(ze,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),d(ze,"rel","nofollow"),d(st,"href","/docs/transformers/main/en/model_doc/glpn#transformers.GLPNModel"),d(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(pe,"id","transformers.GLPNForDepthEstimation"),d(pe,"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"),d(pe,"href","#transformers.GLPNForDepthEstimation"),d(V,"class","relative group"),d(Ae,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),d(Ae,"rel","nofollow"),d(at,"href","/docs/transformers/main/en/model_doc/glpn#transformers.GLPNForDepthEstimation"),d(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,c){t(document.head,p),m(e,v,c),m(e,g,c),t(g,_),t(_,b),P(l,b,null),t(g,u),t(g,G),t(G,Go),m(e,Bt,c),P(Q,e,c),m(e,At,c),m(e,J,c),t(J,Y),t(Y,_t),P(be,_t,null),t(J,Eo),t(J,bt),t(bt,Lo),m(e,Dt,c),m(e,U,c),t(U,Io),t(U,ve),t(ve,jo),t(U,xo),t(U,Ve),t(Ve,Co),t(U,Uo),m(e,St,c),m(e,qe,c),t(qe,ko),m(e,Xt,c),m(e,He,c),t(He,vt),t(vt,Jo),m(e,Vt,c),m(e,Qe,c),t(Qe,Fo),m(e,qt,c),m(e,Ye,c),t(Ye,ye),t(ye,zo),t(ye,Oe),t(Oe,Ro),t(ye,Zo),m(e,Ht,c),m(e,O,c),m(e,Qt,c),m(e,K,c),t(K,Wo),t(K,we),t(we,Bo),t(K,Ao),m(e,Yt,c),m(e,k,c),t(k,Do),t(k,Pe),t(Pe,So),t(k,Xo),t(k,$e),t($e,Vo),t(k,qo),m(e,Ot,c),m(e,F,c),t(F,ee),t(ee,yt),P(Ne,yt,null),t(F,Ho),t(F,wt),t(wt,Qo),m(e,Kt,c),m(e,Ke,c),t(Ke,Yo),m(e,eo,c),m(e,te,c),t(te,z),t(z,Oo),t(z,et),t(et,Ko),t(z,er),t(z,Te),t(Te,tr),t(z,or),t(te,rr),t(te,Pt),t(Pt,tt),t(tt,nr),m(e,to,c),m(e,R,c),t(R,oe),t(oe,$t),P(Me,$t,null),t(R,sr),t(R,Nt),t(Nt,ar),m(e,oo,c),m(e,E,c),P(Ge,E,null),t(E,ir),t(E,Z),t(Z,lr),t(Z,ot),t(ot,dr),t(Z,cr),t(Z,Ee),t(Ee,pr),t(Z,mr),t(E,hr),t(E,W),t(W,fr),t(W,rt),t(rt,ur),t(W,gr),t(W,nt),t(nt,_r),t(W,br),t(E,vr),P(re,E,null),m(e,ro,c),m(e,B,c),t(B,ne),t(ne,Tt),P(Le,Tt,null),t(B,yr),t(B,Mt),t(Mt,wr),m(e,no,c),m(e,A,c),P(Ie,A,null),t(A,Pr),t(A,se),P(je,se,null),t(se,$r),t(se,Gt),t(Gt,Nr),m(e,so,c),m(e,D,c),t(D,ae),t(ae,Et),P(xe,Et,null),t(D,Tr),t(D,Lt),t(Lt,Mr),m(e,ao,c),m(e,j,c),P(Ce,j,null),t(j,Gr),t(j,It),t(It,Er),t(j,Lr),t(j,ie),P(Ue,ie,null),t(ie,Ir),t(ie,jt),t(jt,jr),m(e,io,c),m(e,S,c),t(S,le),t(le,xt),P(ke,xt,null),t(S,xr),t(S,Ct),t(Ct,Cr),m(e,lo,c),m(e,x,c),P(Je,x,null),t(x,Ur),t(x,Fe),t(Fe,kr),t(Fe,ze),t(ze,Jr),t(Fe,Fr),t(x,zr),t(x,L),P(Re,L,null),t(L,Rr),t(L,X),t(X,Zr),t(X,st),t(st,Wr),t(X,Br),t(X,Ut),t(Ut,Ar),t(X,Dr),t(L,Sr),P(de,L,null),t(L,Xr),P(ce,L,null),m(e,co,c),m(e,V,c),t(V,pe),t(pe,kt),P(Ze,kt,null),t(V,Vr),t(V,Jt),t(Jt,qr),m(e,po,c),m(e,C,c),P(We,C,null),t(C,Hr),t(C,Be),t(Be,Qr),t(Be,Ae),t(Ae,Yr),t(Be,Or),t(C,Kr),t(C,I),P(De,I,null),t(I,en),t(I,q),t(q,tn),t(q,at),t(at,on),t(q,rn),t(q,Ft),t(Ft,nn),t(q,sn),t(I,an),P(me,I,null),t(I,ln),P(he,I,null),mo=!0},p(e,[c]){const Se={};c&2&&(Se.$$scope={dirty:c,ctx:e}),Q.$set(Se);const zt={};c&2&&(zt.$$scope={dirty:c,ctx:e}),re.$set(zt);const Rt={};c&2&&(Rt.$$scope={dirty:c,ctx:e}),de.$set(Rt);const Zt={};c&2&&(Zt.$$scope={dirty:c,ctx:e}),ce.$set(Zt);const Xe={};c&2&&(Xe.$$scope={dirty:c,ctx:e}),me.$set(Xe);const Wt={};c&2&&(Wt.$$scope={dirty:c,ctx:e}),he.$set(Wt)},i(e){mo||($(l.$$.fragment,e),$(Q.$$.fragment,e),$(be.$$.fragment,e),$(Ne.$$.fragment,e),$(Me.$$.fragment,e),$(Ge.$$.fragment,e),$(re.$$.fragment,e),$(Le.$$.fragment,e),$(Ie.$$.fragment,e),$(je.$$.fragment,e),$(xe.$$.fragment,e),$(Ce.$$.fragment,e),$(Ue.$$.fragment,e),$(ke.$$.fragment,e),$(Je.$$.fragment,e),$(Re.$$.fragment,e),$(de.$$.fragment,e),$(ce.$$.fragment,e),$(Ze.$$.fragment,e),$(We.$$.fragment,e),$(De.$$.fragment,e),$(me.$$.fragment,e),$(he.$$.fragment,e),mo=!0)},o(e){N(l.$$.fragment,e),N(Q.$$.fragment,e),N(be.$$.fragment,e),N(Ne.$$.fragment,e),N(Me.$$.fragment,e),N(Ge.$$.fragment,e),N(re.$$.fragment,e),N(Le.$$.fragment,e),N(Ie.$$.fragment,e),N(je.$$.fragment,e),N(xe.$$.fragment,e),N(Ce.$$.fragment,e),N(Ue.$$.fragment,e),N(ke.$$.fragment,e),N(Je.$$.fragment,e),N(Re.$$.fragment,e),N(de.$$.fragment,e),N(ce.$$.fragment,e),N(Ze.$$.fragment,e),N(We.$$.fragment,e),N(De.$$.fragment,e),N(me.$$.fragment,e),N(he.$$.fragment,e),mo=!1},d(e){o(p),e&&o(v),e&&o(g),T(l),e&&o(Bt),T(Q,e),e&&o(At),e&&o(J),T(be),e&&o(Dt),e&&o(U),e&&o(St),e&&o(qe),e&&o(Xt),e&&o(He),e&&o(Vt),e&&o(Qe),e&&o(qt),e&&o(Ye),e&&o(Ht),e&&o(O),e&&o(Qt),e&&o(K),e&&o(Yt),e&&o(k),e&&o(Ot),e&&o(F),T(Ne),e&&o(Kt),e&&o(Ke),e&&o(eo),e&&o(te),e&&o(to),e&&o(R),T(Me),e&&o(oo),e&&o(E),T(Ge),T(re),e&&o(ro),e&&o(B),T(Le),e&&o(no),e&&o(A),T(Ie),T(je),e&&o(so),e&&o(D),T(xe),e&&o(ao),e&&o(j),T(Ce),T(Ue),e&&o(io),e&&o(S),T(ke),e&&o(lo),e&&o(x),T(Je),T(Re),T(de),T(ce),e&&o(co),e&&o(V),T(Ze),e&&o(po),e&&o(C),T(We),T(De),T(me),T(he)}}}const Ps={local:"glpn",sections:[{local:"overview",title:"Overview"},{local:"resources",title:"Resources"},{local:"transformers.GLPNConfig",title:"GLPNConfig"},{local:"transformers.GLPNFeatureExtractor",title:"GLPNFeatureExtractor"},{local:"transformers.GLPNImageProcessor",title:"GLPNImageProcessor"},{local:"transformers.GLPNModel",title:"GLPNModel"},{local:"transformers.GLPNForDepthEstimation",title:"GLPNForDepthEstimation"}],title:"GLPN"};function $s(M){return fs(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Is extends ds{constructor(p){super();cs(this,p,$s,ws,ps,{})}}export{Is as default,Ps as metadata};
