import{S as la,i as da,s as ca,e as r,k as m,w as P,t as n,M as pa,c as s,d as o,m as f,a,x as w,h as i,b as d,N as ha,G as t,g as h,y as $,q as y,o as L,B as N,v as ma,L as cs}from"../../chunks/vendor-hf-doc-builder.js";import{T as ls}from"../../chunks/Tip-hf-doc-builder.js";import{D as K}from"../../chunks/Docstring-hf-doc-builder.js";import{C as ps}from"../../chunks/CodeBlock-hf-doc-builder.js";import{I as _e}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{E as ds}from"../../chunks/ExampleCodeBlock-hf-doc-builder.js";function fa(G){let p,b,g,_,v;return{c(){p=r("p"),b=n(`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"),_=n("Github Issue"),v=n("."),this.h()},l(l){p=s(l,"P",{});var u=a(p);b=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=s(u,"A",{href:!0,rel:!0});var E=a(g);_=i(E,"Github Issue"),E.forEach(o),v=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){h(l,p,u),t(p,b),t(p,g),t(g,_),t(p,v)},d(l){l&&o(p)}}}function ua(G){let p,b,g,_,v;return _=new ps({props:{code:`from transformers import GLPNModel, GLPNConfig

# Initializing a GLPN vinvino02/glpn-kitti style configuration
configuration = GLPNConfig()

# Initializing a model from the vinvino02/glpn-kitti style configuration
model = GLPNModel(configuration)

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

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

image_processor = AutoImageProcessor.from_pretrained("vinvino02/glpn-kitti")
model = GLPNModel.from_pretrained("vinvino02/glpn-kitti")

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

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

last_hidden_states = outputs.last_hidden_state
list(last_hidden_states.shape)`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, 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"),b=n("Example:"),g=m(),P(_.$$.fragment)},l(l){p=s(l,"P",{});var u=a(p);b=i(u,"Example:"),u.forEach(o),g=f(l),w(_.$$.fragment,l)},m(l,u){h(l,p,u),t(p,b),h(l,g,u),$(_,l,u),v=!0},p:cs,i(l){v||(y(_.$$.fragment,l),v=!0)},o(l){L(_.$$.fragment,l),v=!1},d(l){l&&o(p),l&&o(g),N(_,l)}}}function va(G){let p,b,g,_,v;return{c(){p=r("p"),b=n("Although the recipe for forward pass needs to be defined within this function, one should call the "),g=r("code"),_=n("Module"),v=n(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){p=s(l,"P",{});var u=a(p);b=i(u,"Although the recipe for forward pass needs to be defined within this function, one should call the "),g=s(u,"CODE",{});var E=a(g);_=i(E,"Module"),E.forEach(o),v=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){h(l,p,u),t(p,b),t(p,g),t(g,_),t(p,v)},d(l){l&&o(p)}}}function ba(G){let p,b,g,_,v;return _=new ps({props:{code:`from transformers import AutoImageProcessor, GLPNForDepthEstimation
import torch
import numpy as np
from PIL import Image
import requests

url = "http://images.cocodataset.org/val2017/000000039769.jpg"
image = Image.open(requests.get(url, stream=True).raw)

image_processor = AutoImageProcessor.from_pretrained("vinvino02/glpn-kitti")
model = GLPNForDepthEstimation.from_pretrained("vinvino02/glpn-kitti")

# prepare image for the model
inputs = image_processor(images=image, return_tensors="pt")

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

# interpolate to original size
prediction = torch.nn.functional.interpolate(
    predicted_depth.unsqueeze(1),
    size=image.size[::-1],
    mode="bicubic",
    align_corners=False,
)

# visualize the prediction
output = prediction.squeeze().cpu().numpy()
formatted = (output * 255 / np.max(output)).astype("uint8")
depth = Image.fromarray(formatted)`,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"),b=n("Examples:"),g=m(),P(_.$$.fragment)},l(l){p=s(l,"P",{});var u=a(p);b=i(u,"Examples:"),u.forEach(o),g=f(l),w(_.$$.fragment,l)},m(l,u){h(l,p,u),t(p,b),h(l,g,u),$(_,l,u),v=!0},p:cs,i(l){v||(y(_.$$.fragment,l),v=!0)},o(l){L(_.$$.fragment,l),v=!1},d(l){l&&o(p),l&&o(g),N(_,l)}}}function Pa(G){let p,b,g,_,v,l,u,E,Eo,Rt,Y,Wt,D,X,_t,ve,To,vt,xo,Ut,F,ko,be,Io,jo,Be,zo,Fo,Ht,Je,Co,Vt,Ke,bt,Do,Bt,Ye,Ao,Jt,Xe,Pe,Mo,Qe,qo,So,Kt,Q,hs,Yt,Z,Oo,we,Ro,Wo,Xt,C,Uo,$e,Ho,Vo,ye,Bo,Jo,Qt,A,ee,Pt,Le,Ko,wt,Yo,Zt,Ze,Xo,eo,te,M,Qo,et,Zo,er,Ne,tr,or,rr,$t,tt,sr,to,q,oe,yt,Ge,ar,Lt,nr,oo,T,Ee,ir,S,lr,ot,dr,cr,Te,pr,hr,mr,O,fr,rt,ur,gr,st,_r,vr,br,re,ro,R,se,Nt,xe,Pr,Gt,wr,so,W,ke,$r,ae,Ie,yr,Et,Lr,ao,U,ne,Tt,je,Nr,xt,Gr,no,I,ze,Er,kt,Tr,xr,ie,Fe,kr,It,Ir,io,H,le,jt,Ce,jr,zt,zr,lo,j,De,Fr,Ae,Cr,Me,Dr,Ar,Mr,x,qe,qr,V,Sr,at,Or,Rr,Ft,Wr,Ur,Hr,de,Vr,ce,co,B,pe,Ct,Se,Br,Dt,Jr,po,z,Oe,Kr,Re,Yr,We,Xr,Qr,Zr,k,Ue,es,J,ts,nt,os,rs,At,ss,as,ns,he,is,me,ho;return l=new _e({}),Y=new ls({props:{$$slots:{default:[fa]},$$scope:{ctx:G}}}),ve=new _e({}),Le=new _e({}),Ge=new _e({}),Ee=new K({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/v4.29.0/src/transformers/models/glpn/configuration_glpn.py#L29"}}),re=new ds({props:{anchor:"transformers.GLPNConfig.example",$$slots:{default:[ua]},$$scope:{ctx:G}}}),xe=new _e({}),ke=new K({props:{name:"class transformers.GLPNFeatureExtractor",anchor:"transformers.GLPNFeatureExtractor",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/glpn/feature_extraction_glpn.py#L26"}}),Ie=new K({props:{name:"__call__",anchor:"transformers.GLPNFeatureExtractor.__call__",parameters:[{name:"images",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/image_processing_utils.py#L462"}}),je=new _e({}),ze=new K({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/v4.29.0/src/transformers/models/glpn/image_processing_glpn.py#L38"}}),Fe=new K({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:"**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;
The image or images to preprocess.`,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"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/glpn/image_processing_glpn.py#L126"}}),Ce=new _e({}),De=new K({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/v4.29.0/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/v4.29.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.29.0/src/transformers/models/glpn/modeling_glpn.py#L483"}}),qe=new K({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/v4.29.0/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See <a href="/docs/transformers/v4.29.0/en/model_doc/dpt#transformers.DPTFeatureExtractor.__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/v4.29.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.29.0/src/transformers/models/glpn/modeling_glpn.py#L503",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.29.0/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/v4.29.0/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/v4.29.0/en/main_classes/output#transformers.modeling_outputs.BaseModelOutput"
>transformers.modeling_outputs.BaseModelOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),de=new ls({props:{$$slots:{default:[ga]},$$scope:{ctx:G}}}),ce=new ds({props:{anchor:"transformers.GLPNModel.forward.example",$$slots:{default:[_a]},$$scope:{ctx:G}}}),Se=new _e({}),Oe=new K({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/v4.29.0/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/v4.29.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.29.0/src/transformers/models/glpn/modeling_glpn.py#L684"}}),Ue=new K({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/v4.29.0/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See <a href="/docs/transformers/v4.29.0/en/model_doc/dpt#transformers.DPTFeatureExtractor.__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/v4.29.0/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/v4.29.0/src/transformers/models/glpn/modeling_glpn.py#L695",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.29.0/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/v4.29.0/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/v4.29.0/en/main_classes/output#transformers.modeling_outputs.DepthEstimatorOutput"
>transformers.modeling_outputs.DepthEstimatorOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),he=new ls({props:{$$slots:{default:[va]},$$scope:{ctx:G}}}),me=new ds({props:{anchor:"transformers.GLPNForDepthEstimation.forward.example",$$slots:{default:[ba]},$$scope:{ctx:G}}}),{c(){p=r("meta"),b=m(),g=r("h1"),_=r("a"),v=r("span"),P(l.$$.fragment),u=m(),E=r("span"),Eo=n("GLPN"),Rt=m(),P(Y.$$.fragment),Wt=m(),D=r("h2"),X=r("a"),_t=r("span"),P(ve.$$.fragment),To=m(),vt=r("span"),xo=n("Overview"),Ut=m(),F=r("p"),ko=n("The GLPN model was proposed in "),be=r("a"),Io=n("Global-Local Path Networks for Monocular Depth Estimation with Vertical CutDepth"),jo=n(`  by Doyeon Kim, Woonghyun Ga, Pyungwhan Ahn, Donggyu Joo, Sehwan Chun, Junmo Kim.
GLPN combines `),Be=r("a"),zo=n("SegFormer"),Fo=n(`\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.`),Ht=m(),Je=r("p"),Co=n("The abstract from the paper is the following:"),Vt=m(),Ke=r("p"),bt=r("em"),Do=n("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."),Bt=m(),Ye=r("p"),Ao=n("Tips:"),Jt=m(),Xe=r("ul"),Pe=r("li"),Mo=n("One can use "),Qe=r("a"),qo=n("GLPNImageProcessor"),So=n(" to prepare images for the model."),Kt=m(),Q=r("img"),Yt=m(),Z=r("small"),Oo=n("Summary of the approach. Taken from the "),we=r("a"),Ro=n("original paper"),Wo=n("."),Xt=m(),C=r("p"),Uo=n("This model was contributed by "),$e=r("a"),Ho=n("nielsr"),Vo=n(". The original code can be found "),ye=r("a"),Bo=n("here"),Jo=n("."),Qt=m(),A=r("h2"),ee=r("a"),Pt=r("span"),P(Le.$$.fragment),Ko=m(),wt=r("span"),Yo=n("Resources"),Zt=m(),Ze=r("p"),Xo=n("A list of official Hugging Face and community (indicated by \u{1F30E}) resources to help you get started with GLPN."),eo=m(),te=r("ul"),M=r("li"),Qo=n("Demo notebooks for "),et=r("a"),Zo=n("GLPNForDepthEstimation"),er=n(" can be found "),Ne=r("a"),tr=n("here"),or=n("."),rr=m(),$t=r("li"),tt=r("a"),sr=n("Monocular depth estimation task guide"),to=m(),q=r("h2"),oe=r("a"),yt=r("span"),P(Ge.$$.fragment),ar=m(),Lt=r("span"),nr=n("GLPNConfig"),oo=m(),T=r("div"),P(Ee.$$.fragment),ir=m(),S=r("p"),lr=n("This is the configuration class to store the configuration of a "),ot=r("a"),dr=n("GLPNModel"),cr=n(`. 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
`),Te=r("a"),pr=n("vinvino02/glpn-kitti"),hr=n(" architecture."),mr=m(),O=r("p"),fr=n("Configuration objects inherit from "),rt=r("a"),ur=n("PretrainedConfig"),gr=n(` and can be used to control the model outputs. Read the
documentation from `),st=r("a"),_r=n("PretrainedConfig"),vr=n(" for more information."),br=m(),P(re.$$.fragment),ro=m(),R=r("h2"),se=r("a"),Nt=r("span"),P(xe.$$.fragment),Pr=m(),Gt=r("span"),wr=n("GLPNFeatureExtractor"),so=m(),W=r("div"),P(ke.$$.fragment),$r=m(),ae=r("div"),P(Ie.$$.fragment),yr=m(),Et=r("p"),Lr=n("Preprocess an image or a batch of images."),ao=m(),U=r("h2"),ne=r("a"),Tt=r("span"),P(je.$$.fragment),Nr=m(),xt=r("span"),Gr=n("GLPNImageProcessor"),no=m(),I=r("div"),P(ze.$$.fragment),Er=m(),kt=r("p"),Tr=n("Constructs a GLPN image processor."),xr=m(),ie=r("div"),P(Fe.$$.fragment),kr=m(),It=r("p"),Ir=n("Preprocess the given images."),io=m(),H=r("h2"),le=r("a"),jt=r("span"),P(Ce.$$.fragment),jr=m(),zt=r("span"),zr=n("GLPNModel"),lo=m(),j=r("div"),P(De.$$.fragment),Fr=m(),Ae=r("p"),Cr=n(`The bare GLPN encoder (Mix-Transformer) outputting raw hidden-states without any specific head on top.
This model is a PyTorch `),Me=r("a"),Dr=n("torch.nn.Module"),Ar=n(` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Mr=m(),x=r("div"),P(qe.$$.fragment),qr=m(),V=r("p"),Sr=n("The "),at=r("a"),Or=n("GLPNModel"),Rr=n(" forward method, overrides the "),Ft=r("code"),Wr=n("__call__"),Ur=n(" special method."),Hr=m(),P(de.$$.fragment),Vr=m(),P(ce.$$.fragment),co=m(),B=r("h2"),pe=r("a"),Ct=r("span"),P(Se.$$.fragment),Br=m(),Dt=r("span"),Jr=n("GLPNForDepthEstimation"),po=m(),z=r("div"),P(Oe.$$.fragment),Kr=m(),Re=r("p"),Yr=n(`GLPN Model transformer with a lightweight depth estimation head on top e.g. for KITTI, NYUv2.
This model is a PyTorch `),We=r("a"),Xr=n("torch.nn.Module"),Qr=n(` 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=m(),k=r("div"),P(Ue.$$.fragment),es=m(),J=r("p"),ts=n("The "),nt=r("a"),os=n("GLPNForDepthEstimation"),rs=n(" forward method, overrides the "),At=r("code"),ss=n("__call__"),as=n(" special method."),ns=m(),P(he.$$.fragment),is=m(),P(me.$$.fragment),this.h()},l(e){const c=pa('[data-svelte="svelte-1phssyn"]',document.head);p=s(c,"META",{name:!0,content:!0}),c.forEach(o),b=f(e),g=s(e,"H1",{class:!0});var He=a(g);_=s(He,"A",{id:!0,class:!0,href:!0});var Mt=a(_);v=s(Mt,"SPAN",{});var qt=a(v);w(l.$$.fragment,qt),qt.forEach(o),Mt.forEach(o),u=f(He),E=s(He,"SPAN",{});var St=a(E);Eo=i(St,"GLPN"),St.forEach(o),He.forEach(o),Rt=f(e),w(Y.$$.fragment,e),Wt=f(e),D=s(e,"H2",{class:!0});var Ve=a(D);X=s(Ve,"A",{id:!0,class:!0,href:!0});var Ot=a(X);_t=s(Ot,"SPAN",{});var ms=a(_t);w(ve.$$.fragment,ms),ms.forEach(o),Ot.forEach(o),To=f(Ve),vt=s(Ve,"SPAN",{});var fs=a(vt);xo=i(fs,"Overview"),fs.forEach(o),Ve.forEach(o),Ut=f(e),F=s(e,"P",{});var it=a(F);ko=i(it,"The GLPN model was proposed in "),be=s(it,"A",{href:!0,rel:!0});var us=a(be);Io=i(us,"Global-Local Path Networks for Monocular Depth Estimation with Vertical CutDepth"),us.forEach(o),jo=i(it,`  by Doyeon Kim, Woonghyun Ga, Pyungwhan Ahn, Donggyu Joo, Sehwan Chun, Junmo Kim.
GLPN combines `),Be=s(it,"A",{href:!0});var gs=a(Be);zo=i(gs,"SegFormer"),gs.forEach(o),Fo=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),Ht=f(e),Je=s(e,"P",{});var _s=a(Je);Co=i(_s,"The abstract from the paper is the following:"),_s.forEach(o),Vt=f(e),Ke=s(e,"P",{});var vs=a(Ke);bt=s(vs,"EM",{});var bs=a(bt);Do=i(bs,"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."),bs.forEach(o),vs.forEach(o),Bt=f(e),Ye=s(e,"P",{});var Ps=a(Ye);Ao=i(Ps,"Tips:"),Ps.forEach(o),Jt=f(e),Xe=s(e,"UL",{});var ws=a(Xe);Pe=s(ws,"LI",{});var mo=a(Pe);Mo=i(mo,"One can use "),Qe=s(mo,"A",{href:!0});var $s=a(Qe);qo=i($s,"GLPNImageProcessor"),$s.forEach(o),So=i(mo," to prepare images for the model."),mo.forEach(o),ws.forEach(o),Kt=f(e),Q=s(e,"IMG",{src:!0,alt:!0,width:!0}),Yt=f(e),Z=s(e,"SMALL",{});var fo=a(Z);Oo=i(fo,"Summary of the approach. Taken from the "),we=s(fo,"A",{href:!0,target:!0});var ys=a(we);Ro=i(ys,"original paper"),ys.forEach(o),Wo=i(fo,"."),fo.forEach(o),Xt=f(e),C=s(e,"P",{});var lt=a(C);Uo=i(lt,"This model was contributed by "),$e=s(lt,"A",{href:!0,rel:!0});var Ls=a($e);Ho=i(Ls,"nielsr"),Ls.forEach(o),Vo=i(lt,". The original code can be found "),ye=s(lt,"A",{href:!0,rel:!0});var Ns=a(ye);Bo=i(Ns,"here"),Ns.forEach(o),Jo=i(lt,"."),lt.forEach(o),Qt=f(e),A=s(e,"H2",{class:!0});var uo=a(A);ee=s(uo,"A",{id:!0,class:!0,href:!0});var Gs=a(ee);Pt=s(Gs,"SPAN",{});var Es=a(Pt);w(Le.$$.fragment,Es),Es.forEach(o),Gs.forEach(o),Ko=f(uo),wt=s(uo,"SPAN",{});var Ts=a(wt);Yo=i(Ts,"Resources"),Ts.forEach(o),uo.forEach(o),Zt=f(e),Ze=s(e,"P",{});var xs=a(Ze);Xo=i(xs,"A list of official Hugging Face and community (indicated by \u{1F30E}) resources to help you get started with GLPN."),xs.forEach(o),eo=f(e),te=s(e,"UL",{});var go=a(te);M=s(go,"LI",{});var dt=a(M);Qo=i(dt,"Demo notebooks for "),et=s(dt,"A",{href:!0});var ks=a(et);Zo=i(ks,"GLPNForDepthEstimation"),ks.forEach(o),er=i(dt," can be found "),Ne=s(dt,"A",{href:!0,rel:!0});var Is=a(Ne);tr=i(Is,"here"),Is.forEach(o),or=i(dt,"."),dt.forEach(o),rr=f(go),$t=s(go,"LI",{});var js=a($t);tt=s(js,"A",{href:!0});var zs=a(tt);sr=i(zs,"Monocular depth estimation task guide"),zs.forEach(o),js.forEach(o),go.forEach(o),to=f(e),q=s(e,"H2",{class:!0});var _o=a(q);oe=s(_o,"A",{id:!0,class:!0,href:!0});var Fs=a(oe);yt=s(Fs,"SPAN",{});var Cs=a(yt);w(Ge.$$.fragment,Cs),Cs.forEach(o),Fs.forEach(o),ar=f(_o),Lt=s(_o,"SPAN",{});var Ds=a(Lt);nr=i(Ds,"GLPNConfig"),Ds.forEach(o),_o.forEach(o),oo=f(e),T=s(e,"DIV",{class:!0});var fe=a(T);w(Ee.$$.fragment,fe),ir=f(fe),S=s(fe,"P",{});var ct=a(S);lr=i(ct,"This is the configuration class to store the configuration of a "),ot=s(ct,"A",{href:!0});var As=a(ot);dr=i(As,"GLPNModel"),As.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
`),Te=s(ct,"A",{href:!0,rel:!0});var Ms=a(Te);pr=i(Ms,"vinvino02/glpn-kitti"),Ms.forEach(o),hr=i(ct," architecture."),ct.forEach(o),mr=f(fe),O=s(fe,"P",{});var pt=a(O);fr=i(pt,"Configuration objects inherit from "),rt=s(pt,"A",{href:!0});var qs=a(rt);ur=i(qs,"PretrainedConfig"),qs.forEach(o),gr=i(pt,` and can be used to control the model outputs. Read the
documentation from `),st=s(pt,"A",{href:!0});var Ss=a(st);_r=i(Ss,"PretrainedConfig"),Ss.forEach(o),vr=i(pt," for more information."),pt.forEach(o),br=f(fe),w(re.$$.fragment,fe),fe.forEach(o),ro=f(e),R=s(e,"H2",{class:!0});var vo=a(R);se=s(vo,"A",{id:!0,class:!0,href:!0});var Os=a(se);Nt=s(Os,"SPAN",{});var Rs=a(Nt);w(xe.$$.fragment,Rs),Rs.forEach(o),Os.forEach(o),Pr=f(vo),Gt=s(vo,"SPAN",{});var Ws=a(Gt);wr=i(Ws,"GLPNFeatureExtractor"),Ws.forEach(o),vo.forEach(o),so=f(e),W=s(e,"DIV",{class:!0});var bo=a(W);w(ke.$$.fragment,bo),$r=f(bo),ae=s(bo,"DIV",{class:!0});var Po=a(ae);w(Ie.$$.fragment,Po),yr=f(Po),Et=s(Po,"P",{});var Us=a(Et);Lr=i(Us,"Preprocess an image or a batch of images."),Us.forEach(o),Po.forEach(o),bo.forEach(o),ao=f(e),U=s(e,"H2",{class:!0});var wo=a(U);ne=s(wo,"A",{id:!0,class:!0,href:!0});var Hs=a(ne);Tt=s(Hs,"SPAN",{});var Vs=a(Tt);w(je.$$.fragment,Vs),Vs.forEach(o),Hs.forEach(o),Nr=f(wo),xt=s(wo,"SPAN",{});var Bs=a(xt);Gr=i(Bs,"GLPNImageProcessor"),Bs.forEach(o),wo.forEach(o),no=f(e),I=s(e,"DIV",{class:!0});var ht=a(I);w(ze.$$.fragment,ht),Er=f(ht),kt=s(ht,"P",{});var Js=a(kt);Tr=i(Js,"Constructs a GLPN image processor."),Js.forEach(o),xr=f(ht),ie=s(ht,"DIV",{class:!0});var $o=a(ie);w(Fe.$$.fragment,$o),kr=f($o),It=s($o,"P",{});var Ks=a(It);Ir=i(Ks,"Preprocess the given images."),Ks.forEach(o),$o.forEach(o),ht.forEach(o),io=f(e),H=s(e,"H2",{class:!0});var yo=a(H);le=s(yo,"A",{id:!0,class:!0,href:!0});var Ys=a(le);jt=s(Ys,"SPAN",{});var Xs=a(jt);w(Ce.$$.fragment,Xs),Xs.forEach(o),Ys.forEach(o),jr=f(yo),zt=s(yo,"SPAN",{});var Qs=a(zt);zr=i(Qs,"GLPNModel"),Qs.forEach(o),yo.forEach(o),lo=f(e),j=s(e,"DIV",{class:!0});var mt=a(j);w(De.$$.fragment,mt),Fr=f(mt),Ae=s(mt,"P",{});var Lo=a(Ae);Cr=i(Lo,`The bare GLPN encoder (Mix-Transformer) outputting raw hidden-states without any specific head on top.
This model is a PyTorch `),Me=s(Lo,"A",{href:!0,rel:!0});var Zs=a(Me);Dr=i(Zs,"torch.nn.Module"),Zs.forEach(o),Ar=i(Lo,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Lo.forEach(o),Mr=f(mt),x=s(mt,"DIV",{class:!0});var ue=a(x);w(qe.$$.fragment,ue),qr=f(ue),V=s(ue,"P",{});var ft=a(V);Sr=i(ft,"The "),at=s(ft,"A",{href:!0});var ea=a(at);Or=i(ea,"GLPNModel"),ea.forEach(o),Rr=i(ft," forward method, overrides the "),Ft=s(ft,"CODE",{});var ta=a(Ft);Wr=i(ta,"__call__"),ta.forEach(o),Ur=i(ft," special method."),ft.forEach(o),Hr=f(ue),w(de.$$.fragment,ue),Vr=f(ue),w(ce.$$.fragment,ue),ue.forEach(o),mt.forEach(o),co=f(e),B=s(e,"H2",{class:!0});var No=a(B);pe=s(No,"A",{id:!0,class:!0,href:!0});var oa=a(pe);Ct=s(oa,"SPAN",{});var ra=a(Ct);w(Se.$$.fragment,ra),ra.forEach(o),oa.forEach(o),Br=f(No),Dt=s(No,"SPAN",{});var sa=a(Dt);Jr=i(sa,"GLPNForDepthEstimation"),sa.forEach(o),No.forEach(o),po=f(e),z=s(e,"DIV",{class:!0});var ut=a(z);w(Oe.$$.fragment,ut),Kr=f(ut),Re=s(ut,"P",{});var Go=a(Re);Yr=i(Go,`GLPN Model transformer with a lightweight depth estimation head on top e.g. for KITTI, NYUv2.
This model is a PyTorch `),We=s(Go,"A",{href:!0,rel:!0});var aa=a(We);Xr=i(aa,"torch.nn.Module"),aa.forEach(o),Qr=i(Go,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Go.forEach(o),Zr=f(ut),k=s(ut,"DIV",{class:!0});var ge=a(k);w(Ue.$$.fragment,ge),es=f(ge),J=s(ge,"P",{});var gt=a(J);ts=i(gt,"The "),nt=s(gt,"A",{href:!0});var na=a(nt);os=i(na,"GLPNForDepthEstimation"),na.forEach(o),rs=i(gt," forward method, overrides the "),At=s(gt,"CODE",{});var ia=a(At);ss=i(ia,"__call__"),ia.forEach(o),as=i(gt," special method."),gt.forEach(o),ns=f(ge),w(he.$$.fragment,ge),is=f(ge),w(me.$$.fragment,ge),ge.forEach(o),ut.forEach(o),this.h()},h(){d(p,"name","hf:doc:metadata"),d(p,"content",JSON.stringify(wa)),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(X,"id","overview"),d(X,"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(X,"href","#overview"),d(D,"class","relative group"),d(be,"href","https://arxiv.org/abs/2201.07436"),d(be,"rel","nofollow"),d(Be,"href","segformer"),d(Qe,"href","/docs/transformers/v4.29.0/en/model_doc/glpn#transformers.GLPNImageProcessor"),ha(Q.src,hs="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/glpn_architecture.jpg")||d(Q,"src",hs),d(Q,"alt","drawing"),d(Q,"width","600"),d(we,"href","https://arxiv.org/abs/2201.07436"),d(we,"target","_blank"),d($e,"href","https://huggingface.co/nielsr"),d($e,"rel","nofollow"),d(ye,"href","https://github.com/vinvino02/GLPDepth"),d(ye,"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(A,"class","relative group"),d(et,"href","/docs/transformers/v4.29.0/en/model_doc/glpn#transformers.GLPNForDepthEstimation"),d(Ne,"href","https://github.com/NielsRogge/Transformers-Tutorials/tree/master/GLPN"),d(Ne,"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(q,"class","relative group"),d(ot,"href","/docs/transformers/v4.29.0/en/model_doc/glpn#transformers.GLPNModel"),d(Te,"href","https://huggingface.co/vinvino02/glpn-kitti"),d(Te,"rel","nofollow"),d(rt,"href","/docs/transformers/v4.29.0/en/main_classes/configuration#transformers.PretrainedConfig"),d(st,"href","/docs/transformers/v4.29.0/en/main_classes/configuration#transformers.PretrainedConfig"),d(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(se,"id","transformers.GLPNFeatureExtractor"),d(se,"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(se,"href","#transformers.GLPNFeatureExtractor"),d(R,"class","relative group"),d(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(W,"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.GLPNImageProcessor"),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.GLPNImageProcessor"),d(U,"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(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(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(H,"class","relative group"),d(Me,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),d(Me,"rel","nofollow"),d(at,"href","/docs/transformers/v4.29.0/en/model_doc/glpn#transformers.GLPNModel"),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(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(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(B,"class","relative group"),d(We,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),d(We,"rel","nofollow"),d(nt,"href","/docs/transformers/v4.29.0/en/model_doc/glpn#transformers.GLPNForDepthEstimation"),d(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,c){t(document.head,p),h(e,b,c),h(e,g,c),t(g,_),t(_,v),$(l,v,null),t(g,u),t(g,E),t(E,Eo),h(e,Rt,c),$(Y,e,c),h(e,Wt,c),h(e,D,c),t(D,X),t(X,_t),$(ve,_t,null),t(D,To),t(D,vt),t(vt,xo),h(e,Ut,c),h(e,F,c),t(F,ko),t(F,be),t(be,Io),t(F,jo),t(F,Be),t(Be,zo),t(F,Fo),h(e,Ht,c),h(e,Je,c),t(Je,Co),h(e,Vt,c),h(e,Ke,c),t(Ke,bt),t(bt,Do),h(e,Bt,c),h(e,Ye,c),t(Ye,Ao),h(e,Jt,c),h(e,Xe,c),t(Xe,Pe),t(Pe,Mo),t(Pe,Qe),t(Qe,qo),t(Pe,So),h(e,Kt,c),h(e,Q,c),h(e,Yt,c),h(e,Z,c),t(Z,Oo),t(Z,we),t(we,Ro),t(Z,Wo),h(e,Xt,c),h(e,C,c),t(C,Uo),t(C,$e),t($e,Ho),t(C,Vo),t(C,ye),t(ye,Bo),t(C,Jo),h(e,Qt,c),h(e,A,c),t(A,ee),t(ee,Pt),$(Le,Pt,null),t(A,Ko),t(A,wt),t(wt,Yo),h(e,Zt,c),h(e,Ze,c),t(Ze,Xo),h(e,eo,c),h(e,te,c),t(te,M),t(M,Qo),t(M,et),t(et,Zo),t(M,er),t(M,Ne),t(Ne,tr),t(M,or),t(te,rr),t(te,$t),t($t,tt),t(tt,sr),h(e,to,c),h(e,q,c),t(q,oe),t(oe,yt),$(Ge,yt,null),t(q,ar),t(q,Lt),t(Lt,nr),h(e,oo,c),h(e,T,c),$(Ee,T,null),t(T,ir),t(T,S),t(S,lr),t(S,ot),t(ot,dr),t(S,cr),t(S,Te),t(Te,pr),t(S,hr),t(T,mr),t(T,O),t(O,fr),t(O,rt),t(rt,ur),t(O,gr),t(O,st),t(st,_r),t(O,vr),t(T,br),$(re,T,null),h(e,ro,c),h(e,R,c),t(R,se),t(se,Nt),$(xe,Nt,null),t(R,Pr),t(R,Gt),t(Gt,wr),h(e,so,c),h(e,W,c),$(ke,W,null),t(W,$r),t(W,ae),$(Ie,ae,null),t(ae,yr),t(ae,Et),t(Et,Lr),h(e,ao,c),h(e,U,c),t(U,ne),t(ne,Tt),$(je,Tt,null),t(U,Nr),t(U,xt),t(xt,Gr),h(e,no,c),h(e,I,c),$(ze,I,null),t(I,Er),t(I,kt),t(kt,Tr),t(I,xr),t(I,ie),$(Fe,ie,null),t(ie,kr),t(ie,It),t(It,Ir),h(e,io,c),h(e,H,c),t(H,le),t(le,jt),$(Ce,jt,null),t(H,jr),t(H,zt),t(zt,zr),h(e,lo,c),h(e,j,c),$(De,j,null),t(j,Fr),t(j,Ae),t(Ae,Cr),t(Ae,Me),t(Me,Dr),t(Ae,Ar),t(j,Mr),t(j,x),$(qe,x,null),t(x,qr),t(x,V),t(V,Sr),t(V,at),t(at,Or),t(V,Rr),t(V,Ft),t(Ft,Wr),t(V,Ur),t(x,Hr),$(de,x,null),t(x,Vr),$(ce,x,null),h(e,co,c),h(e,B,c),t(B,pe),t(pe,Ct),$(Se,Ct,null),t(B,Br),t(B,Dt),t(Dt,Jr),h(e,po,c),h(e,z,c),$(Oe,z,null),t(z,Kr),t(z,Re),t(Re,Yr),t(Re,We),t(We,Xr),t(Re,Qr),t(z,Zr),t(z,k),$(Ue,k,null),t(k,es),t(k,J),t(J,ts),t(J,nt),t(nt,os),t(J,rs),t(J,At),t(At,ss),t(J,as),t(k,ns),$(he,k,null),t(k,is),$(me,k,null),ho=!0},p(e,[c]){const He={};c&2&&(He.$$scope={dirty:c,ctx:e}),Y.$set(He);const Mt={};c&2&&(Mt.$$scope={dirty:c,ctx:e}),re.$set(Mt);const qt={};c&2&&(qt.$$scope={dirty:c,ctx:e}),de.$set(qt);const St={};c&2&&(St.$$scope={dirty:c,ctx:e}),ce.$set(St);const Ve={};c&2&&(Ve.$$scope={dirty:c,ctx:e}),he.$set(Ve);const Ot={};c&2&&(Ot.$$scope={dirty:c,ctx:e}),me.$set(Ot)},i(e){ho||(y(l.$$.fragment,e),y(Y.$$.fragment,e),y(ve.$$.fragment,e),y(Le.$$.fragment,e),y(Ge.$$.fragment,e),y(Ee.$$.fragment,e),y(re.$$.fragment,e),y(xe.$$.fragment,e),y(ke.$$.fragment,e),y(Ie.$$.fragment,e),y(je.$$.fragment,e),y(ze.$$.fragment,e),y(Fe.$$.fragment,e),y(Ce.$$.fragment,e),y(De.$$.fragment,e),y(qe.$$.fragment,e),y(de.$$.fragment,e),y(ce.$$.fragment,e),y(Se.$$.fragment,e),y(Oe.$$.fragment,e),y(Ue.$$.fragment,e),y(he.$$.fragment,e),y(me.$$.fragment,e),ho=!0)},o(e){L(l.$$.fragment,e),L(Y.$$.fragment,e),L(ve.$$.fragment,e),L(Le.$$.fragment,e),L(Ge.$$.fragment,e),L(Ee.$$.fragment,e),L(re.$$.fragment,e),L(xe.$$.fragment,e),L(ke.$$.fragment,e),L(Ie.$$.fragment,e),L(je.$$.fragment,e),L(ze.$$.fragment,e),L(Fe.$$.fragment,e),L(Ce.$$.fragment,e),L(De.$$.fragment,e),L(qe.$$.fragment,e),L(de.$$.fragment,e),L(ce.$$.fragment,e),L(Se.$$.fragment,e),L(Oe.$$.fragment,e),L(Ue.$$.fragment,e),L(he.$$.fragment,e),L(me.$$.fragment,e),ho=!1},d(e){o(p),e&&o(b),e&&o(g),N(l),e&&o(Rt),N(Y,e),e&&o(Wt),e&&o(D),N(ve),e&&o(Ut),e&&o(F),e&&o(Ht),e&&o(Je),e&&o(Vt),e&&o(Ke),e&&o(Bt),e&&o(Ye),e&&o(Jt),e&&o(Xe),e&&o(Kt),e&&o(Q),e&&o(Yt),e&&o(Z),e&&o(Xt),e&&o(C),e&&o(Qt),e&&o(A),N(Le),e&&o(Zt),e&&o(Ze),e&&o(eo),e&&o(te),e&&o(to),e&&o(q),N(Ge),e&&o(oo),e&&o(T),N(Ee),N(re),e&&o(ro),e&&o(R),N(xe),e&&o(so),e&&o(W),N(ke),N(Ie),e&&o(ao),e&&o(U),N(je),e&&o(no),e&&o(I),N(ze),N(Fe),e&&o(io),e&&o(H),N(Ce),e&&o(lo),e&&o(j),N(De),N(qe),N(de),N(ce),e&&o(co),e&&o(B),N(Se),e&&o(po),e&&o(z),N(Oe),N(Ue),N(he),N(me)}}}const wa={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 $a(G){return ma(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class xa extends la{constructor(p){super();da(this,p,$a,Pa,ca,{})}}export{xa as default,wa as metadata};
