import{S as Ns,i as Zs,s as Js,e as r,k as d,w as b,t as s,M as Ws,c as n,d as t,m as c,a,x as D,h as i,b as l,N as As,G as e,g as p,y,q as v,o as w,B as T,v as qs,L as Ea}from"../../chunks/vendor-hf-doc-builder.js";import{T as Ps}from"../../chunks/Tip-hf-doc-builder.js";import{D as z}from"../../chunks/Docstring-hf-doc-builder.js";import{C as ka}from"../../chunks/CodeBlock-hf-doc-builder.js";import{I as $e}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{E as ja}from"../../chunks/ExampleCodeBlock-hf-doc-builder.js";import{P as Ls}from"../../chunks/PipelineTag-hf-doc-builder.js";function Os(U){let h,M,_,u,x;return u=new ka({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMERlZm9ybWFibGVEZXRyQ29uZmlnJTJDJTIwRGVmb3JtYWJsZURldHJNb2RlbCUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBEZWZvcm1hYmxlJTIwREVUUiUyMFNlbnNlVGltZSUyRmRlZm9ybWFibGUtZGV0ciUyMHN0eWxlJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBEZWZvcm1hYmxlRGV0ckNvbmZpZygpJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMG1vZGVsJTIwKHdpdGglMjByYW5kb20lMjB3ZWlnaHRzKSUyMGZyb20lMjB0aGUlMjBTZW5zZVRpbWUlMkZkZWZvcm1hYmxlLWRldHIlMjBzdHlsZSUyMGNvbmZpZ3VyYXRpb24lMEFtb2RlbCUyMCUzRCUyMERlZm9ybWFibGVEZXRyTW9kZWwoY29uZmlndXJhdGlvbiklMEElMEElMjMlMjBBY2Nlc3NpbmclMjB0aGUlMjBtb2RlbCUyMGNvbmZpZ3VyYXRpb24lMEFjb25maWd1cmF0aW9uJTIwJTNEJTIwbW9kZWwuY29uZmln",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> DeformableDetrConfig, DeformableDetrModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a Deformable DETR SenseTime/deformable-detr style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = DeformableDetrConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model (with random weights) from the SenseTime/deformable-detr style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = DeformableDetrModel(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(){h=r("p"),M=s("Examples:"),_=d(),b(u.$$.fragment)},l(m){h=n(m,"P",{});var g=a(h);M=i(g,"Examples:"),g.forEach(t),_=c(m),D(u.$$.fragment,m)},m(m,g){p(m,h,g),e(h,M),p(m,_,g),y(u,m,g),x=!0},p:Ea,i(m){x||(v(u.$$.fragment,m),x=!0)},o(m){w(u.$$.fragment,m),x=!1},d(m){m&&t(h),m&&t(_),T(u,m)}}}function Ss(U){let h,M,_,u,x;return{c(){h=r("p"),M=s("Although the recipe for forward pass needs to be defined within this function, one should call the "),_=r("code"),u=s("Module"),x=s(`
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(m){h=n(m,"P",{});var g=a(h);M=i(g,"Although the recipe for forward pass needs to be defined within this function, one should call the "),_=n(g,"CODE",{});var R=a(_);u=i(R,"Module"),R.forEach(t),x=i(g,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),g.forEach(t)},m(m,g){p(m,h,g),e(h,M),e(h,_),e(_,u),e(h,x)},d(m){m&&t(h)}}}function Vs(U){let h,M,_,u,x;return u=new ka({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMERlZm9ybWFibGVEZXRyTW9kZWwlMEFmcm9tJTIwUElMJTIwaW1wb3J0JTIwSW1hZ2UlMEFpbXBvcnQlMjByZXF1ZXN0cyUwQSUwQXVybCUyMCUzRCUyMCUyMmh0dHAlM0ElMkYlMkZpbWFnZXMuY29jb2RhdGFzZXQub3JnJTJGdmFsMjAxNyUyRjAwMDAwMDAzOTc2OS5qcGclMjIlMEFpbWFnZSUyMCUzRCUyMEltYWdlLm9wZW4ocmVxdWVzdHMuZ2V0KHVybCUyQyUyMHN0cmVhbSUzRFRydWUpLnJhdyklMEElMEFpbWFnZV9wcm9jZXNzb3IlMjAlM0QlMjBBdXRvSW1hZ2VQcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMlNlbnNlVGltZSUyRmRlZm9ybWFibGUtZGV0ciUyMiklMEFtb2RlbCUyMCUzRCUyMERlZm9ybWFibGVEZXRyTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMlNlbnNlVGltZSUyRmRlZm9ybWFibGUtZGV0ciUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjBpbWFnZV9wcm9jZXNzb3IoaW1hZ2VzJTNEaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyklMEElMEFsYXN0X2hpZGRlbl9zdGF0ZXMlMjAlM0QlMjBvdXRwdXRzLmxhc3RfaGlkZGVuX3N0YXRlJTBBbGlzdChsYXN0X2hpZGRlbl9zdGF0ZXMuc2hhcGUp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, DeformableDetrModel
<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;SenseTime/deformable-detr&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = DeformableDetrModel.from_pretrained(<span class="hljs-string">&quot;SenseTime/deformable-detr&quot;</span>)

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

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)

<span class="hljs-meta">&gt;&gt;&gt; </span>last_hidden_states = outputs.last_hidden_state
<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">300</span>, <span class="hljs-number">256</span>]`}}),{c(){h=r("p"),M=s("Examples:"),_=d(),b(u.$$.fragment)},l(m){h=n(m,"P",{});var g=a(h);M=i(g,"Examples:"),g.forEach(t),_=c(m),D(u.$$.fragment,m)},m(m,g){p(m,h,g),e(h,M),p(m,_,g),y(u,m,g),x=!0},p:Ea,i(m){x||(v(u.$$.fragment,m),x=!0)},o(m){w(u.$$.fragment,m),x=!1},d(m){m&&t(h),m&&t(_),T(u,m)}}}function Gs(U){let h,M,_,u,x;return{c(){h=r("p"),M=s("Although the recipe for forward pass needs to be defined within this function, one should call the "),_=r("code"),u=s("Module"),x=s(`
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(m){h=n(m,"P",{});var g=a(h);M=i(g,"Although the recipe for forward pass needs to be defined within this function, one should call the "),_=n(g,"CODE",{});var R=a(_);u=i(R,"Module"),R.forEach(t),x=i(g,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),g.forEach(t)},m(m,g){p(m,h,g),e(h,M),e(h,_),e(_,u),e(h,x)},d(m){m&&t(h)}}}function Bs(U){let h,M,_,u,x;return u=new ka({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMERlZm9ybWFibGVEZXRyRm9yT2JqZWN0RGV0ZWN0aW9uJTBBZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEElMEF1cmwlMjAlM0QlMjAlMjJodHRwJTNBJTJGJTJGaW1hZ2VzLmNvY29kYXRhc2V0Lm9yZyUyRnZhbDIwMTclMkYwMDAwMDAwMzk3NjkuanBnJTIyJTBBaW1hZ2UlMjAlM0QlMjBJbWFnZS5vcGVuKHJlcXVlc3RzLmdldCh1cmwlMkMlMjBzdHJlYW0lM0RUcnVlKS5yYXcpJTBBJTBBaW1hZ2VfcHJvY2Vzc29yJTIwJTNEJTIwQXV0b0ltYWdlUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJTZW5zZVRpbWUlMkZkZWZvcm1hYmxlLWRldHIlMjIpJTBBbW9kZWwlMjAlM0QlMjBEZWZvcm1hYmxlRGV0ckZvck9iamVjdERldGVjdGlvbi5mcm9tX3ByZXRyYWluZWQoJTIyU2Vuc2VUaW1lJTJGZGVmb3JtYWJsZS1kZXRyJTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMGltYWdlX3Byb2Nlc3NvcihpbWFnZXMlM0RpbWFnZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBb3V0cHV0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzKSUwQSUwQSUyMyUyMGNvbnZlcnQlMjBvdXRwdXRzJTIwKGJvdW5kaW5nJTIwYm94ZXMlMjBhbmQlMjBjbGFzcyUyMGxvZ2l0cyklMjB0byUyMENPQ08lMjBBUEklMEF0YXJnZXRfc2l6ZXMlMjAlM0QlMjB0b3JjaC50ZW5zb3IoJTVCaW1hZ2Uuc2l6ZSU1QiUzQSUzQS0xJTVEJTVEKSUwQXJlc3VsdHMlMjAlM0QlMjBpbWFnZV9wcm9jZXNzb3IucG9zdF9wcm9jZXNzX29iamVjdF9kZXRlY3Rpb24ob3V0cHV0cyUyQyUyMHRocmVzaG9sZCUzRDAuNSUyQyUyMHRhcmdldF9zaXplcyUzRHRhcmdldF9zaXplcyklNUIlMEElMjAlMjAlMjAlMjAwJTBBJTVEJTBBZm9yJTIwc2NvcmUlMkMlMjBsYWJlbCUyQyUyMGJveCUyMGluJTIwemlwKHJlc3VsdHMlNUIlMjJzY29yZXMlMjIlNUQlMkMlMjByZXN1bHRzJTVCJTIybGFiZWxzJTIyJTVEJTJDJTIwcmVzdWx0cyU1QiUyMmJveGVzJTIyJTVEKSUzQSUwQSUyMCUyMCUyMCUyMGJveCUyMCUzRCUyMCU1QnJvdW5kKGklMkMlMjAyKSUyMGZvciUyMGklMjBpbiUyMGJveC50b2xpc3QoKSU1RCUwQSUyMCUyMCUyMCUyMHByaW50KCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGYlMjJEZXRlY3RlZCUyMCU3Qm1vZGVsLmNvbmZpZy5pZDJsYWJlbCU1QmxhYmVsLml0ZW0oKSU1RCU3RCUyMHdpdGglMjBjb25maWRlbmNlJTIwJTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwZiUyMiU3QnJvdW5kKHNjb3JlLml0ZW0oKSUyQyUyMDMpJTdEJTIwYXQlMjBsb2NhdGlvbiUyMCU3QmJveCU3RCUyMiUwQSUyMCUyMCUyMCUyMCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, DeformableDetrForObjectDetection
<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;SenseTime/deformable-detr&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = DeformableDetrForObjectDetection.from_pretrained(<span class="hljs-string">&quot;SenseTime/deformable-detr&quot;</span>)

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

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># convert outputs (bounding boxes and class logits) to COCO API</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>target_sizes = torch.tensor([image.size[::-<span class="hljs-number">1</span>]])
<span class="hljs-meta">&gt;&gt;&gt; </span>results = image_processor.post_process_object_detection(outputs, threshold=<span class="hljs-number">0.5</span>, target_sizes=target_sizes)[
<span class="hljs-meta">... </span>    <span class="hljs-number">0</span>
<span class="hljs-meta">... </span>]
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">for</span> score, label, box <span class="hljs-keyword">in</span> <span class="hljs-built_in">zip</span>(results[<span class="hljs-string">&quot;scores&quot;</span>], results[<span class="hljs-string">&quot;labels&quot;</span>], results[<span class="hljs-string">&quot;boxes&quot;</span>]):
<span class="hljs-meta">... </span>    box = [<span class="hljs-built_in">round</span>(i, <span class="hljs-number">2</span>) <span class="hljs-keyword">for</span> i <span class="hljs-keyword">in</span> box.tolist()]
<span class="hljs-meta">... </span>    <span class="hljs-built_in">print</span>(
<span class="hljs-meta">... </span>        <span class="hljs-string">f&quot;Detected <span class="hljs-subst">{model.config.id2label[label.item()]}</span> with confidence &quot;</span>
<span class="hljs-meta">... </span>        <span class="hljs-string">f&quot;<span class="hljs-subst">{<span class="hljs-built_in">round</span>(score.item(), <span class="hljs-number">3</span>)}</span> at location <span class="hljs-subst">{box}</span>&quot;</span>
<span class="hljs-meta">... </span>    )
Detected cat <span class="hljs-keyword">with</span> confidence <span class="hljs-number">0.8</span> at location [<span class="hljs-number">16.5</span>, <span class="hljs-number">52.84</span>, <span class="hljs-number">318.25</span>, <span class="hljs-number">470.78</span>]
Detected cat <span class="hljs-keyword">with</span> confidence <span class="hljs-number">0.789</span> at location [<span class="hljs-number">342.19</span>, <span class="hljs-number">24.3</span>, <span class="hljs-number">640.02</span>, <span class="hljs-number">372.25</span>]
Detected remote <span class="hljs-keyword">with</span> confidence <span class="hljs-number">0.633</span> at location [<span class="hljs-number">40.79</span>, <span class="hljs-number">72.78</span>, <span class="hljs-number">176.76</span>, <span class="hljs-number">117.25</span>]`}}),{c(){h=r("p"),M=s("Examples:"),_=d(),b(u.$$.fragment)},l(m){h=n(m,"P",{});var g=a(h);M=i(g,"Examples:"),g.forEach(t),_=c(m),D(u.$$.fragment,m)},m(m,g){p(m,h,g),e(h,M),p(m,_,g),y(u,m,g),x=!0},p:Ea,i(m){x||(v(u.$$.fragment,m),x=!0)},o(m){w(u.$$.fragment,m),x=!1},d(m){m&&t(h),m&&t(_),T(u,m)}}}function Xs(U){let h,M,_,u,x,m,g,R,lr,ht,A,ee,Ao,je,dr,qo,cr,ut,P,mr,Ee,fr,pr,fo,hr,ur,gt,po,gr,_t,ho,Lo,_r,bt,uo,br,Dt,oe,ke,Dr,go,yr,vr,wr,q,Tr,_o,xr,Mr,bo,$r,jr,yt,te,Ca,vt,re,Er,Do,kr,Cr,wt,N,zr,Ce,Ur,Ir,ze,Fr,Rr,Tt,L,ne,Oo,Ue,Pr,So,Nr,xt,yo,Zr,Mt,Ie,$t,ae,O,Jr,vo,Wr,Ar,Fe,qr,Lr,Or,Re,Sr,wo,Vr,Gr,jt,To,Br,Et,S,se,Vo,Pe,Xr,Go,Hr,kt,$,Ne,Qr,Bo,Yr,Kr,ie,Ze,en,Xo,on,tn,le,Je,rn,Ho,nn,an,de,We,sn,Ae,ln,xo,dn,cn,Ct,V,ce,Qo,qe,mn,Yo,fn,zt,k,Le,pn,me,Oe,hn,Ko,un,gn,fe,Se,_n,et,bn,Dn,pe,Ve,yn,Ge,vn,Mo,wn,Tn,Ut,G,he,ot,Be,xn,tt,Mn,It,C,Xe,$n,B,jn,$o,En,kn,He,Cn,zn,Un,X,In,jo,Fn,Rn,Eo,Pn,Nn,Zn,ue,Ft,H,ge,rt,Qe,Jn,nt,Wn,Rt,j,Ye,An,at,qn,Ln,Ke,On,ko,Sn,Vn,Gn,eo,Bn,oo,Xn,Hn,Qn,I,to,Yn,Q,Kn,Co,ea,oa,st,ta,ra,na,_e,aa,be,Pt,Y,De,it,ro,sa,lt,ia,Nt,E,no,la,dt,da,ca,ao,ma,zo,fa,pa,ha,so,ua,io,ga,_a,ba,F,lo,Da,K,ya,Uo,va,wa,ct,Ta,xa,Ma,ye,$a,ve,Zt;return m=new $e({}),je=new $e({}),Ue=new $e({}),Ie=new Ls({props:{pipeline:"object-detection"}}),Pe=new $e({}),Ne=new z({props:{name:"class transformers.DeformableDetrImageProcessor",anchor:"transformers.DeformableDetrImageProcessor",parameters:[{name:"format",val:": typing.Union[str, transformers.models.deformable_detr.image_processing_deformable_detr.AnnotionFormat] = <AnnotionFormat.COCO_DETECTION: 'coco_detection'>"},{name:"do_resize",val:": bool = True"},{name:"size",val:": typing.Dict[str, int] = None"},{name:"resample",val:": Resampling = <Resampling.BILINEAR: 2>"},{name:"do_rescale",val:": bool = True"},{name:"rescale_factor",val:": typing.Union[int, float] = 0.00392156862745098"},{name:"do_normalize",val:": bool = True"},{name:"image_mean",val:": typing.Union[float, typing.List[float]] = None"},{name:"image_std",val:": typing.Union[float, typing.List[float]] = None"},{name:"do_pad",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DeformableDetrImageProcessor.format",description:`<strong>format</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;coco_detection&quot;</code>) &#x2014;
Data format of the annotations. One of &#x201C;coco_detection&#x201D; or &#x201C;coco_panoptic&#x201D;.`,name:"format"},{anchor:"transformers.DeformableDetrImageProcessor.do_resize",description:`<strong>do_resize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Controls whether to resize the image&#x2019;s (height, width) dimensions to the specified <code>size</code>. Can be
overridden by the <code>do_resize</code> parameter in the <code>preprocess</code> method.`,name:"do_resize"},{anchor:"transformers.DeformableDetrImageProcessor.size",description:`<strong>size</strong> (<code>Dict[str, int]</code> <em>optional</em>, defaults to <code>{&quot;shortest_edge&quot; -- 800, &quot;longest_edge&quot;: 1333}</code>):
Size of the image&#x2019;s (height, width) dimensions after resizing. Can be overridden by the <code>size</code> parameter in
the <code>preprocess</code> method.`,name:"size"},{anchor:"transformers.DeformableDetrImageProcessor.resample",description:`<strong>resample</strong> (<code>PILImageResampling</code>, <em>optional</em>, defaults to <code>PILImageResampling.BILINEAR</code>) &#x2014;
Resampling filter to use if resizing the image.`,name:"resample"},{anchor:"transformers.DeformableDetrImageProcessor.do_rescale",description:`<strong>do_rescale</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Controls whether to rescale the image by the specified scale <code>rescale_factor</code>. Can be overridden by the
<code>do_rescale</code> parameter in the <code>preprocess</code> method.`,name:"do_rescale"},{anchor:"transformers.DeformableDetrImageProcessor.rescale_factor",description:`<strong>rescale_factor</strong> (<code>int</code> or <code>float</code>, <em>optional</em>, defaults to <code>1/255</code>) &#x2014;
Scale factor to use if rescaling the image. Can be overridden by the <code>rescale_factor</code> parameter in the
<code>preprocess</code> method.
do_normalize &#x2014;
Controls whether to normalize the image. Can be overridden by the <code>do_normalize</code> parameter in the
<code>preprocess</code> method.`,name:"rescale_factor"},{anchor:"transformers.DeformableDetrImageProcessor.image_mean",description:`<strong>image_mean</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>IMAGENET_DEFAULT_MEAN</code>) &#x2014;
Mean values to use when normalizing the image. Can be a single value or a list of values, one for each
channel. Can be overridden by the <code>image_mean</code> parameter in the <code>preprocess</code> method.`,name:"image_mean"},{anchor:"transformers.DeformableDetrImageProcessor.image_std",description:`<strong>image_std</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>IMAGENET_DEFAULT_STD</code>) &#x2014;
Standard deviation values to use when normalizing the image. Can be a single value or a list of values, one
for each channel. Can be overridden by the <code>image_std</code> parameter in the <code>preprocess</code> method.`,name:"image_std"},{anchor:"transformers.DeformableDetrImageProcessor.do_pad",description:`<strong>do_pad</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Controls whether to pad the image to the largest image in a batch and create a pixel mask. Can be
overridden by the <code>do_pad</code> parameter in the <code>preprocess</code> method.`,name:"do_pad"}],source:"https://github.com/huggingface/transformers/blob/v4.30.0/src/transformers/models/deformable_detr/image_processing_deformable_detr.py#L742"}}),Ze=new z({props:{name:"preprocess",anchor:"transformers.DeformableDetrImageProcessor.preprocess",parameters:[{name:"images",val:": typing.Union[ForwardRef('PIL.Image.Image'), numpy.ndarray, ForwardRef('torch.Tensor'), typing.List[ForwardRef('PIL.Image.Image')], typing.List[numpy.ndarray], typing.List[ForwardRef('torch.Tensor')]]"},{name:"annotations",val:": typing.Union[typing.Dict[str, typing.Union[int, str, typing.List[typing.Dict]]], typing.List[typing.Dict[str, typing.Union[int, str, typing.List[typing.Dict]]]], NoneType] = None"},{name:"return_segmentation_masks",val:": bool = None"},{name:"masks_path",val:": typing.Union[str, pathlib.Path, NoneType] = None"},{name:"do_resize",val:": typing.Optional[bool] = None"},{name:"size",val:": typing.Union[typing.Dict[str, int], NoneType] = None"},{name:"resample",val:" = None"},{name:"do_rescale",val:": typing.Optional[bool] = None"},{name:"rescale_factor",val:": typing.Union[int, float, NoneType] = None"},{name:"do_normalize",val:": typing.Optional[bool] = None"},{name:"image_mean",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"image_std",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"do_pad",val:": typing.Optional[bool] = None"},{name:"format",val:": typing.Union[str, transformers.models.deformable_detr.image_processing_deformable_detr.AnnotionFormat, NoneType] = None"},{name:"return_tensors",val:": typing.Union[str, transformers.utils.generic.TensorType, NoneType] = None"},{name:"data_format",val:": typing.Union[str, transformers.image_utils.ChannelDimension] = <ChannelDimension.FIRST: 'channels_first'>"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DeformableDetrImageProcessor.preprocess.images",description:`<strong>images</strong> (<code>ImageInput</code>) &#x2014;
Image or batch of images to preprocess.`,name:"images"},{anchor:"transformers.DeformableDetrImageProcessor.preprocess.annotations",description:`<strong>annotations</strong> (<code>AnnotationType</code> or <code>List[AnnotationType]</code>, <em>optional</em>) &#x2014;
List of annotations associated with the image or batch of images. If annotation is for object
detection, the annotations should be a dictionary with the following keys:<ul>
<li>&#x201C;image_id&#x201D; (<code>int</code>): The image id.</li>
<li>&#x201C;annotations&#x201D; (<code>List[Dict]</code>): List of annotations for an image. Each annotation should be a
dictionary. An image can have no annotations, in which case the list should be empty.
If annotation is for segmentation, the annotations should be a dictionary with the following keys:</li>
<li>&#x201C;image_id&#x201D; (<code>int</code>): The image id.</li>
<li>&#x201C;segments_info&#x201D; (<code>List[Dict]</code>): List of segments for an image. Each segment should be a dictionary.
An image can have no segments, in which case the list should be empty.</li>
<li>&#x201C;file_name&#x201D; (<code>str</code>): The file name of the image.</li>
</ul>`,name:"annotations"},{anchor:"transformers.DeformableDetrImageProcessor.preprocess.return_segmentation_masks",description:`<strong>return_segmentation_masks</strong> (<code>bool</code>, <em>optional</em>, defaults to self.return_segmentation_masks) &#x2014;
Whether to return segmentation masks.`,name:"return_segmentation_masks"},{anchor:"transformers.DeformableDetrImageProcessor.preprocess.masks_path",description:`<strong>masks_path</strong> (<code>str</code> or <code>pathlib.Path</code>, <em>optional</em>) &#x2014;
Path to the directory containing the segmentation masks.`,name:"masks_path"},{anchor:"transformers.DeformableDetrImageProcessor.preprocess.do_resize",description:`<strong>do_resize</strong> (<code>bool</code>, <em>optional</em>, defaults to self.do_resize) &#x2014;
Whether to resize the image.`,name:"do_resize"},{anchor:"transformers.DeformableDetrImageProcessor.preprocess.size",description:`<strong>size</strong> (<code>Dict[str, int]</code>, <em>optional</em>, defaults to self.size) &#x2014;
Size of the image after resizing.`,name:"size"},{anchor:"transformers.DeformableDetrImageProcessor.preprocess.resample",description:`<strong>resample</strong> (<code>PILImageResampling</code>, <em>optional</em>, defaults to self.resample) &#x2014;
Resampling filter to use when resizing the image.`,name:"resample"},{anchor:"transformers.DeformableDetrImageProcessor.preprocess.do_rescale",description:`<strong>do_rescale</strong> (<code>bool</code>, <em>optional</em>, defaults to self.do_rescale) &#x2014;
Whether to rescale the image.`,name:"do_rescale"},{anchor:"transformers.DeformableDetrImageProcessor.preprocess.rescale_factor",description:`<strong>rescale_factor</strong> (<code>float</code>, <em>optional</em>, defaults to self.rescale_factor) &#x2014;
Rescale factor to use when rescaling the image.`,name:"rescale_factor"},{anchor:"transformers.DeformableDetrImageProcessor.preprocess.do_normalize",description:`<strong>do_normalize</strong> (<code>bool</code>, <em>optional</em>, defaults to self.do_normalize) &#x2014;
Whether to normalize the image.`,name:"do_normalize"},{anchor:"transformers.DeformableDetrImageProcessor.preprocess.image_mean",description:`<strong>image_mean</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to self.image_mean) &#x2014;
Mean to use when normalizing the image.`,name:"image_mean"},{anchor:"transformers.DeformableDetrImageProcessor.preprocess.image_std",description:`<strong>image_std</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to self.image_std) &#x2014;
Standard deviation to use when normalizing the image.`,name:"image_std"},{anchor:"transformers.DeformableDetrImageProcessor.preprocess.do_pad",description:`<strong>do_pad</strong> (<code>bool</code>, <em>optional</em>, defaults to self.do_pad) &#x2014;
Whether to pad the image.`,name:"do_pad"},{anchor:"transformers.DeformableDetrImageProcessor.preprocess.format",description:`<strong>format</strong> (<code>str</code> or <code>AnnotionFormat</code>, <em>optional</em>, defaults to self.format) &#x2014;
Format of the annotations.`,name:"format"},{anchor:"transformers.DeformableDetrImageProcessor.preprocess.return_tensors",description:`<strong>return_tensors</strong> (<code>str</code> or <code>TensorType</code>, <em>optional</em>, defaults to self.return_tensors) &#x2014;
Type of tensors to return. If <code>None</code>, will return the list of images.`,name:"return_tensors"},{anchor:"transformers.DeformableDetrImageProcessor.preprocess.data_format",description:`<strong>data_format</strong> (<code>str</code> or <code>ChannelDimension</code>, <em>optional</em>, defaults to self.data_format) &#x2014;
The channel dimension format of the image. If not provided, it will be the same as the input image.`,name:"data_format"}],source:"https://github.com/huggingface/transformers/blob/v4.30.0/src/transformers/models/deformable_detr/image_processing_deformable_detr.py#L1076"}}),Je=new z({props:{name:"pad_and_create_pixel_mask",anchor:"transformers.DeformableDetrImageProcessor.pad_and_create_pixel_mask",parameters:[{name:"pixel_values_list",val:": typing.List[typing.Union[ForwardRef('PIL.Image.Image'), numpy.ndarray, ForwardRef('torch.Tensor'), typing.List[ForwardRef('PIL.Image.Image')], typing.List[numpy.ndarray], typing.List[ForwardRef('torch.Tensor')]]]"},{name:"return_tensors",val:": typing.Union[str, transformers.utils.generic.TensorType, NoneType] = None"},{name:"data_format",val:": typing.Optional[transformers.image_utils.ChannelDimension] = None"}],parametersDescription:[{anchor:"transformers.DeformableDetrImageProcessor.pad_and_create_pixel_mask.images",description:`<strong>images</strong> (<code>List[np.ndarray]</code>) &#x2014;
Batch of images to pad.`,name:"images"},{anchor:"transformers.DeformableDetrImageProcessor.pad_and_create_pixel_mask.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>Unset: 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.DeformableDetrImageProcessor.pad_and_create_pixel_mask.data_format",description:`<strong>data_format</strong> (<code>str</code> or <code>ChannelDimension</code>, <em>optional</em>) &#x2014;
The channel dimension format of the image. If not provided, it will be the same as the input image.`,name:"data_format"}],source:"https://github.com/huggingface/transformers/blob/v4.30.0/src/transformers/models/deformable_detr/image_processing_deformable_detr.py#L981"}}),We=new z({props:{name:"post_process_object_detection",anchor:"transformers.DeformableDetrImageProcessor.post_process_object_detection",parameters:[{name:"outputs",val:""},{name:"threshold",val:": float = 0.5"},{name:"target_sizes",val:": typing.Union[transformers.utils.generic.TensorType, typing.List[typing.Tuple]] = None"},{name:"top_k",val:": int = 100"}],parametersDescription:[{anchor:"transformers.DeformableDetrImageProcessor.post_process_object_detection.outputs",description:`<strong>outputs</strong> (<code>DetrObjectDetectionOutput</code>) &#x2014;
Raw outputs of the model.`,name:"outputs"},{anchor:"transformers.DeformableDetrImageProcessor.post_process_object_detection.threshold",description:`<strong>threshold</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Score threshold to keep object detection predictions.`,name:"threshold"},{anchor:"transformers.DeformableDetrImageProcessor.post_process_object_detection.target_sizes",description:`<strong>target_sizes</strong> (<code>torch.Tensor</code> or <code>List[Tuple[int, int]]</code>, <em>optional</em>) &#x2014;
Tensor of shape <code>(batch_size, 2)</code> or list of tuples (<code>Tuple[int, int]</code>) containing the target size
(height, width) of each image in the batch. If left to None, predictions will not be resized.`,name:"target_sizes"},{anchor:"transformers.DeformableDetrImageProcessor.post_process_object_detection.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to 100) &#x2014;
Keep only top k bounding boxes before filtering by thresholding.`,name:"top_k"}],source:"https://github.com/huggingface/transformers/blob/v4.30.0/src/transformers/models/deformable_detr/image_processing_deformable_detr.py#L1327",returnDescription:`
<p>A list of dictionaries, each dictionary containing the scores, labels and boxes for an image
in the batch as predicted by the model.</p>
`,returnType:`
<p><code>List[Dict]</code></p>
`}}),qe=new $e({}),Le=new z({props:{name:"class transformers.DeformableDetrFeatureExtractor",anchor:"transformers.DeformableDetrFeatureExtractor",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.30.0/src/transformers/models/deformable_detr/feature_extraction_deformable_detr.py#L26"}}),Oe=new z({props:{name:"__call__",anchor:"transformers.DeformableDetrFeatureExtractor.__call__",parameters:[{name:"images",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.30.0/src/transformers/image_processing_utils.py#L462"}}),Se=new z({props:{name:"pad_and_create_pixel_mask",anchor:"transformers.DeformableDetrFeatureExtractor.pad_and_create_pixel_mask",parameters:[{name:"pixel_values_list",val:": typing.List[typing.Union[ForwardRef('PIL.Image.Image'), numpy.ndarray, ForwardRef('torch.Tensor'), typing.List[ForwardRef('PIL.Image.Image')], typing.List[numpy.ndarray], typing.List[ForwardRef('torch.Tensor')]]]"},{name:"return_tensors",val:": typing.Union[str, transformers.utils.generic.TensorType, NoneType] = None"},{name:"data_format",val:": typing.Optional[transformers.image_utils.ChannelDimension] = None"}],parametersDescription:[{anchor:"transformers.DeformableDetrFeatureExtractor.pad_and_create_pixel_mask.images",description:`<strong>images</strong> (<code>List[np.ndarray]</code>) &#x2014;
Batch of images to pad.`,name:"images"},{anchor:"transformers.DeformableDetrFeatureExtractor.pad_and_create_pixel_mask.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>Unset: 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.DeformableDetrFeatureExtractor.pad_and_create_pixel_mask.data_format",description:`<strong>data_format</strong> (<code>str</code> or <code>ChannelDimension</code>, <em>optional</em>) &#x2014;
The channel dimension format of the image. If not provided, it will be the same as the input image.`,name:"data_format"}],source:"https://github.com/huggingface/transformers/blob/v4.30.0/src/transformers/models/deformable_detr/image_processing_deformable_detr.py#L981"}}),Ve=new z({props:{name:"post_process_object_detection",anchor:"transformers.DeformableDetrFeatureExtractor.post_process_object_detection",parameters:[{name:"outputs",val:""},{name:"threshold",val:": float = 0.5"},{name:"target_sizes",val:": typing.Union[transformers.utils.generic.TensorType, typing.List[typing.Tuple]] = None"},{name:"top_k",val:": int = 100"}],parametersDescription:[{anchor:"transformers.DeformableDetrFeatureExtractor.post_process_object_detection.outputs",description:`<strong>outputs</strong> (<code>DetrObjectDetectionOutput</code>) &#x2014;
Raw outputs of the model.`,name:"outputs"},{anchor:"transformers.DeformableDetrFeatureExtractor.post_process_object_detection.threshold",description:`<strong>threshold</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Score threshold to keep object detection predictions.`,name:"threshold"},{anchor:"transformers.DeformableDetrFeatureExtractor.post_process_object_detection.target_sizes",description:`<strong>target_sizes</strong> (<code>torch.Tensor</code> or <code>List[Tuple[int, int]]</code>, <em>optional</em>) &#x2014;
Tensor of shape <code>(batch_size, 2)</code> or list of tuples (<code>Tuple[int, int]</code>) containing the target size
(height, width) of each image in the batch. If left to None, predictions will not be resized.`,name:"target_sizes"},{anchor:"transformers.DeformableDetrFeatureExtractor.post_process_object_detection.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to 100) &#x2014;
Keep only top k bounding boxes before filtering by thresholding.`,name:"top_k"}],source:"https://github.com/huggingface/transformers/blob/v4.30.0/src/transformers/models/deformable_detr/image_processing_deformable_detr.py#L1327",returnDescription:`
<p>A list of dictionaries, each dictionary containing the scores, labels and boxes for an image
in the batch as predicted by the model.</p>
`,returnType:`
<p><code>List[Dict]</code></p>
`}}),Be=new $e({}),Xe=new z({props:{name:"class transformers.DeformableDetrConfig",anchor:"transformers.DeformableDetrConfig",parameters:[{name:"use_timm_backbone",val:" = True"},{name:"backbone_config",val:" = None"},{name:"num_channels",val:" = 3"},{name:"num_queries",val:" = 300"},{name:"max_position_embeddings",val:" = 1024"},{name:"encoder_layers",val:" = 6"},{name:"encoder_ffn_dim",val:" = 1024"},{name:"encoder_attention_heads",val:" = 8"},{name:"decoder_layers",val:" = 6"},{name:"decoder_ffn_dim",val:" = 1024"},{name:"decoder_attention_heads",val:" = 8"},{name:"encoder_layerdrop",val:" = 0.0"},{name:"is_encoder_decoder",val:" = True"},{name:"activation_function",val:" = 'relu'"},{name:"d_model",val:" = 256"},{name:"dropout",val:" = 0.1"},{name:"attention_dropout",val:" = 0.0"},{name:"activation_dropout",val:" = 0.0"},{name:"init_std",val:" = 0.02"},{name:"init_xavier_std",val:" = 1.0"},{name:"return_intermediate",val:" = True"},{name:"auxiliary_loss",val:" = False"},{name:"position_embedding_type",val:" = 'sine'"},{name:"backbone",val:" = 'resnet50'"},{name:"use_pretrained_backbone",val:" = True"},{name:"dilation",val:" = False"},{name:"num_feature_levels",val:" = 4"},{name:"encoder_n_points",val:" = 4"},{name:"decoder_n_points",val:" = 4"},{name:"two_stage",val:" = False"},{name:"two_stage_num_proposals",val:" = 300"},{name:"with_box_refine",val:" = False"},{name:"class_cost",val:" = 1"},{name:"bbox_cost",val:" = 5"},{name:"giou_cost",val:" = 2"},{name:"mask_loss_coefficient",val:" = 1"},{name:"dice_loss_coefficient",val:" = 1"},{name:"bbox_loss_coefficient",val:" = 5"},{name:"giou_loss_coefficient",val:" = 2"},{name:"eos_coefficient",val:" = 0.1"},{name:"focal_alpha",val:" = 0.25"},{name:"disable_custom_kernels",val:" = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DeformableDetrConfig.use_timm_backbone",description:`<strong>use_timm_backbone</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to use the <code>timm</code> library for the backbone. If set to <code>False</code>, will use the <code>AutoBackbone</code>
API.`,name:"use_timm_backbone"},{anchor:"transformers.DeformableDetrConfig.backbone_config",description:`<strong>backbone_config</strong> (<code>PretrainedConfig</code> or <code>dict</code>, <em>optional</em>) &#x2014;
The configuration of the backbone model. Only used in case <code>use_timm_backbone</code> is set to <code>False</code> in which
case it will default to <code>ResNetConfig()</code>.`,name:"backbone_config"},{anchor:"transformers.DeformableDetrConfig.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.DeformableDetrConfig.num_queries",description:`<strong>num_queries</strong> (<code>int</code>, <em>optional</em>, defaults to 300) &#x2014;
Number of object queries, i.e. detection slots. This is the maximal number of objects
<a href="/docs/transformers/v4.30.0/en/model_doc/deformable_detr#transformers.DeformableDetrModel">DeformableDetrModel</a> can detect in a single image. In case <code>two_stage</code> is set to <code>True</code>, we use
<code>two_stage_num_proposals</code> instead.`,name:"num_queries"},{anchor:"transformers.DeformableDetrConfig.d_model",description:`<strong>d_model</strong> (<code>int</code>, <em>optional</em>, defaults to 256) &#x2014;
Dimension of the layers.`,name:"d_model"},{anchor:"transformers.DeformableDetrConfig.encoder_layers",description:`<strong>encoder_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 6) &#x2014;
Number of encoder layers.`,name:"encoder_layers"},{anchor:"transformers.DeformableDetrConfig.decoder_layers",description:`<strong>decoder_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 6) &#x2014;
Number of decoder layers.`,name:"decoder_layers"},{anchor:"transformers.DeformableDetrConfig.encoder_attention_heads",description:`<strong>encoder_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
Number of attention heads for each attention layer in the Transformer encoder.`,name:"encoder_attention_heads"},{anchor:"transformers.DeformableDetrConfig.decoder_attention_heads",description:`<strong>decoder_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
Number of attention heads for each attention layer in the Transformer decoder.`,name:"decoder_attention_heads"},{anchor:"transformers.DeformableDetrConfig.decoder_ffn_dim",description:`<strong>decoder_ffn_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 1024) &#x2014;
Dimension of the &#x201C;intermediate&#x201D; (often named feed-forward) layer in decoder.`,name:"decoder_ffn_dim"},{anchor:"transformers.DeformableDetrConfig.encoder_ffn_dim",description:`<strong>encoder_ffn_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 1024) &#x2014;
Dimension of the &#x201C;intermediate&#x201D; (often named feed-forward) layer in decoder.`,name:"encoder_ffn_dim"},{anchor:"transformers.DeformableDetrConfig.activation_function",description:`<strong>activation_function</strong> (<code>str</code> or <code>function</code>, <em>optional</em>, defaults to <code>&quot;relu&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;silu&quot;</code> and <code>&quot;gelu_new&quot;</code> are supported.`,name:"activation_function"},{anchor:"transformers.DeformableDetrConfig.dropout",description:`<strong>dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The dropout probability for all fully connected layers in the embeddings, encoder, and pooler.`,name:"dropout"},{anchor:"transformers.DeformableDetrConfig.attention_dropout",description:`<strong>attention_dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout ratio for the attention probabilities.`,name:"attention_dropout"},{anchor:"transformers.DeformableDetrConfig.activation_dropout",description:`<strong>activation_dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout ratio for activations inside the fully connected layer.`,name:"activation_dropout"},{anchor:"transformers.DeformableDetrConfig.init_std",description:`<strong>init_std</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:"init_std"},{anchor:"transformers.DeformableDetrConfig.init_xavier_std",description:`<strong>init_xavier_std</strong> (<code>float</code>, <em>optional</em>, defaults to 1) &#x2014;
The scaling factor used for the Xavier initialization gain in the HM Attention map module.`,name:"init_xavier_std"},{anchor:"transformers.DeformableDetrConfig.encoder_layerdrop",description:`<strong>encoder_layerdrop</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The LayerDrop probability for the encoder. See the [LayerDrop paper](see <a href="https://arxiv.org/abs/1909.11556" rel="nofollow">https://arxiv.org/abs/1909.11556</a>)
for more details.`,name:"encoder_layerdrop"},{anchor:"transformers.DeformableDetrConfig.auxiliary_loss",description:`<strong>auxiliary_loss</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether auxiliary decoding losses (loss at each decoder layer) are to be used.`,name:"auxiliary_loss"},{anchor:"transformers.DeformableDetrConfig.position_embedding_type",description:`<strong>position_embedding_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;sine&quot;</code>) &#x2014;
Type of position embeddings to be used on top of the image features. One of <code>&quot;sine&quot;</code> or <code>&quot;learned&quot;</code>.`,name:"position_embedding_type"},{anchor:"transformers.DeformableDetrConfig.backbone",description:`<strong>backbone</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;resnet50&quot;</code>) &#x2014;
Name of convolutional backbone to use in case <code>use_timm_backbone</code> = <code>True</code>. Supports any convolutional
backbone from the timm package. For a list of all available models, see <a href="https://rwightman.github.io/pytorch-image-models/#load-a-pretrained-model" rel="nofollow">this
page</a>.`,name:"backbone"},{anchor:"transformers.DeformableDetrConfig.use_pretrained_backbone",description:`<strong>use_pretrained_backbone</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to use pretrained weights for the backbone. Only supported when <code>use_timm_backbone</code> = <code>True</code>.`,name:"use_pretrained_backbone"},{anchor:"transformers.DeformableDetrConfig.dilation",description:`<strong>dilation</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to replace stride with dilation in the last convolutional block (DC5). Only supported when
<code>use_timm_backbone</code> = <code>True</code>.`,name:"dilation"},{anchor:"transformers.DeformableDetrConfig.class_cost",description:`<strong>class_cost</strong> (<code>float</code>, <em>optional</em>, defaults to 1) &#x2014;
Relative weight of the classification error in the Hungarian matching cost.`,name:"class_cost"},{anchor:"transformers.DeformableDetrConfig.bbox_cost",description:`<strong>bbox_cost</strong> (<code>float</code>, <em>optional</em>, defaults to 5) &#x2014;
Relative weight of the L1 error of the bounding box coordinates in the Hungarian matching cost.`,name:"bbox_cost"},{anchor:"transformers.DeformableDetrConfig.giou_cost",description:`<strong>giou_cost</strong> (<code>float</code>, <em>optional</em>, defaults to 2) &#x2014;
Relative weight of the generalized IoU loss of the bounding box in the Hungarian matching cost.`,name:"giou_cost"},{anchor:"transformers.DeformableDetrConfig.mask_loss_coefficient",description:`<strong>mask_loss_coefficient</strong> (<code>float</code>, <em>optional</em>, defaults to 1) &#x2014;
Relative weight of the Focal loss in the panoptic segmentation loss.`,name:"mask_loss_coefficient"},{anchor:"transformers.DeformableDetrConfig.dice_loss_coefficient",description:`<strong>dice_loss_coefficient</strong> (<code>float</code>, <em>optional</em>, defaults to 1) &#x2014;
Relative weight of the DICE/F-1 loss in the panoptic segmentation loss.`,name:"dice_loss_coefficient"},{anchor:"transformers.DeformableDetrConfig.bbox_loss_coefficient",description:`<strong>bbox_loss_coefficient</strong> (<code>float</code>, <em>optional</em>, defaults to 5) &#x2014;
Relative weight of the L1 bounding box loss in the object detection loss.`,name:"bbox_loss_coefficient"},{anchor:"transformers.DeformableDetrConfig.giou_loss_coefficient",description:`<strong>giou_loss_coefficient</strong> (<code>float</code>, <em>optional</em>, defaults to 2) &#x2014;
Relative weight of the generalized IoU loss in the object detection loss.`,name:"giou_loss_coefficient"},{anchor:"transformers.DeformableDetrConfig.eos_coefficient",description:`<strong>eos_coefficient</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
Relative classification weight of the &#x2018;no-object&#x2019; class in the object detection loss.`,name:"eos_coefficient"},{anchor:"transformers.DeformableDetrConfig.num_feature_levels",description:`<strong>num_feature_levels</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014;
The number of input feature levels.`,name:"num_feature_levels"},{anchor:"transformers.DeformableDetrConfig.encoder_n_points",description:`<strong>encoder_n_points</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014;
The number of sampled keys in each feature level for each attention head in the encoder.`,name:"encoder_n_points"},{anchor:"transformers.DeformableDetrConfig.decoder_n_points",description:`<strong>decoder_n_points</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014;
The number of sampled keys in each feature level for each attention head in the decoder.`,name:"decoder_n_points"},{anchor:"transformers.DeformableDetrConfig.two_stage",description:`<strong>two_stage</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to apply a two-stage deformable DETR, where the region proposals are also generated by a variant of
Deformable DETR, which are further fed into the decoder for iterative bounding box refinement.`,name:"two_stage"},{anchor:"transformers.DeformableDetrConfig.two_stage_num_proposals",description:`<strong>two_stage_num_proposals</strong> (<code>int</code>, <em>optional</em>, defaults to 300) &#x2014;
The number of region proposals to be generated, in case <code>two_stage</code> is set to <code>True</code>.`,name:"two_stage_num_proposals"},{anchor:"transformers.DeformableDetrConfig.with_box_refine",description:`<strong>with_box_refine</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to apply iterative bounding box refinement, where each decoder layer refines the bounding boxes
based on the predictions from the previous layer.`,name:"with_box_refine"},{anchor:"transformers.DeformableDetrConfig.focal_alpha",description:`<strong>focal_alpha</strong> (<code>float</code>, <em>optional</em>, defaults to 0.25) &#x2014;
Alpha parameter in the focal loss.`,name:"focal_alpha"},{anchor:"transformers.DeformableDetrConfig.disable_custom_kernels",description:`<strong>disable_custom_kernels</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Disable the use of custom CUDA and CPU kernels. This option is necessary for the ONNX export, as custom
kernels are not supported by PyTorch ONNX export.`,name:"disable_custom_kernels"}],source:"https://github.com/huggingface/transformers/blob/v4.30.0/src/transformers/models/deformable_detr/configuration_deformable_detr.py#L30"}}),ue=new ja({props:{anchor:"transformers.DeformableDetrConfig.example",$$slots:{default:[Os]},$$scope:{ctx:U}}}),Qe=new $e({}),Ye=new z({props:{name:"class transformers.DeformableDetrModel",anchor:"transformers.DeformableDetrModel",parameters:[{name:"config",val:": DeformableDetrConfig"}],parametersDescription:[{anchor:"transformers.DeformableDetrModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.30.0/en/model_doc/deformable_detr#transformers.DeformableDetrConfig">DeformableDetrConfig</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.30.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.30.0/src/transformers/models/deformable_detr/modeling_deformable_detr.py#L1467"}}),to=new z({props:{name:"forward",anchor:"transformers.DeformableDetrModel.forward",parameters:[{name:"pixel_values",val:""},{name:"pixel_mask",val:" = None"},{name:"decoder_attention_mask",val:" = None"},{name:"encoder_outputs",val:" = None"},{name:"inputs_embeds",val:" = None"},{name:"decoder_inputs_embeds",val:" = None"},{name:"output_attentions",val:" = None"},{name:"output_hidden_states",val:" = None"},{name:"return_dict",val:" = None"}],parametersDescription:[{anchor:"transformers.DeformableDetrModel.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.</p>
<p>Pixel values can be obtained using <a href="/docs/transformers/v4.30.0/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See <a href="/docs/transformers/v4.30.0/en/model_doc/layoutlmv2#transformers.LayoutLMv2FeatureExtractor.__call__">DeformableDetrImageProcessor.<strong>call</strong>()</a>
for details.`,name:"pixel_values"},{anchor:"transformers.DeformableDetrModel.forward.pixel_mask",description:`<strong>pixel_mask</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, height, width)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding pixel values. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for pixels that are real (i.e. <strong>not masked</strong>),</li>
<li>0 for pixels that are padding (i.e. <strong>masked</strong>).</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"pixel_mask"},{anchor:"transformers.DeformableDetrModel.forward.decoder_attention_mask",description:`<strong>decoder_attention_mask</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, num_queries)</code>, <em>optional</em>) &#x2014;
Not used by default. Can be used to mask object queries.`,name:"decoder_attention_mask"},{anchor:"transformers.DeformableDetrModel.forward.encoder_outputs",description:`<strong>encoder_outputs</strong> (<code>tuple(tuple(torch.FloatTensor)</code>, <em>optional</em>) &#x2014;
Tuple consists of (<code>last_hidden_state</code>, <em>optional</em>: <code>hidden_states</code>, <em>optional</em>: <code>attentions</code>)
<code>last_hidden_state</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) is a sequence of
hidden-states at the output of the last layer of the encoder. Used in the cross-attention of the decoder.`,name:"encoder_outputs"},{anchor:"transformers.DeformableDetrModel.forward.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing the flattened feature map (output of the backbone + projection layer), you
can choose to directly pass a flattened representation of an image.`,name:"inputs_embeds"},{anchor:"transformers.DeformableDetrModel.forward.decoder_inputs_embeds",description:`<strong>decoder_inputs_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_queries, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of initializing the queries with a tensor of zeros, you can choose to directly pass an
embedded representation.`,name:"decoder_inputs_embeds"},{anchor:"transformers.DeformableDetrModel.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.DeformableDetrModel.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.DeformableDetrModel.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.30.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.30.0/src/transformers/models/deformable_detr/modeling_deformable_detr.py#L1616",returnDescription:`
<p>A <code>transformers.models.deformable_detr.modeling_deformable_detr.DeformableDetrModelOutput</code> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.30.0/en/model_doc/deformable_detr#transformers.DeformableDetrConfig"
>DeformableDetrConfig</a>) and inputs.</p>
<ul>
<li><strong>init_reference_points</strong> (<code>torch.FloatTensor</code> of shape  <code>(batch_size, num_queries, 4)</code>) \u2014 Initial reference points sent through the Transformer decoder.</li>
<li><strong>last_hidden_state</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_queries, hidden_size)</code>) \u2014 Sequence of hidden-states at the output of the last layer of the decoder of the model.</li>
<li><strong>intermediate_hidden_states</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, config.decoder_layers, num_queries, hidden_size)</code>) \u2014 Stacked intermediate hidden states (output of each layer of the decoder).</li>
<li><strong>intermediate_reference_points</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, config.decoder_layers, num_queries, 4)</code>) \u2014 Stacked intermediate reference points (reference points of each layer of the decoder).</li>
<li><strong>decoder_hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings + one for the output of each layer) of
shape <code>(batch_size, num_queries, hidden_size)</code>. Hidden-states of the decoder at the output of each layer
plus the initial embedding outputs.</li>
<li><strong>decoder_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, num_queries, num_queries)</code>. Attentions weights of the decoder, after the attention softmax, used to compute the weighted
average in the self-attention heads.</li>
<li><strong>cross_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_queries, num_heads, 4, 4)</code>.
Attentions weights of the decoder\u2019s cross-attention layer, after the attention softmax, used to compute the
weighted average in the cross-attention heads.</li>
<li><strong>encoder_last_hidden_state</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) \u2014 Sequence of hidden-states at the output of the last layer of the encoder of the model.</li>
<li><strong>encoder_hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings + one for the output of each layer) of
shape <code>(batch_size, sequence_length, hidden_size)</code>. Hidden-states of the encoder at the output of each
layer plus the initial embedding outputs.</li>
<li><strong>encoder_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_queries, num_heads, 4, 4)</code>.
Attentions weights of the encoder, after the attention softmax, used to compute the weighted average in the
self-attention heads.</li>
<li><strong>enc_outputs_class</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, config.num_labels)</code>, <em>optional</em>, returned when <code>config.with_box_refine=True</code> and <code>config.two_stage=True</code>) \u2014 Predicted bounding boxes scores where the top <code>config.two_stage_num_proposals</code> scoring bounding boxes are
picked as region proposals in the first stage. Output of bounding box binary classification (i.e.
foreground and background).</li>
<li><strong>enc_outputs_coord_logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, 4)</code>, <em>optional</em>, returned when <code>config.with_box_refine=True</code> and <code>config.two_stage=True</code>) \u2014 Logits of predicted bounding boxes coordinates in the first stage.</li>
</ul>
`,returnType:`
<p><code>transformers.models.deformable_detr.modeling_deformable_detr.DeformableDetrModelOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),_e=new Ps({props:{$$slots:{default:[Ss]},$$scope:{ctx:U}}}),be=new ja({props:{anchor:"transformers.DeformableDetrModel.forward.example",$$slots:{default:[Vs]},$$scope:{ctx:U}}}),ro=new $e({}),no=new z({props:{name:"class transformers.DeformableDetrForObjectDetection",anchor:"transformers.DeformableDetrForObjectDetection",parameters:[{name:"config",val:": DeformableDetrConfig"}],parametersDescription:[{anchor:"transformers.DeformableDetrForObjectDetection.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.30.0/en/model_doc/deformable_detr#transformers.DeformableDetrConfig">DeformableDetrConfig</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.30.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.30.0/src/transformers/models/deformable_detr/modeling_deformable_detr.py#L1824"}}),lo=new z({props:{name:"forward",anchor:"transformers.DeformableDetrForObjectDetection.forward",parameters:[{name:"pixel_values",val:""},{name:"pixel_mask",val:" = None"},{name:"decoder_attention_mask",val:" = None"},{name:"encoder_outputs",val:" = None"},{name:"inputs_embeds",val:" = None"},{name:"decoder_inputs_embeds",val:" = None"},{name:"labels",val:" = None"},{name:"output_attentions",val:" = None"},{name:"output_hidden_states",val:" = None"},{name:"return_dict",val:" = None"}],parametersDescription:[{anchor:"transformers.DeformableDetrForObjectDetection.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.</p>
<p>Pixel values can be obtained using <a href="/docs/transformers/v4.30.0/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See <a href="/docs/transformers/v4.30.0/en/model_doc/layoutlmv2#transformers.LayoutLMv2FeatureExtractor.__call__">DeformableDetrImageProcessor.<strong>call</strong>()</a>
for details.`,name:"pixel_values"},{anchor:"transformers.DeformableDetrForObjectDetection.forward.pixel_mask",description:`<strong>pixel_mask</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, height, width)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding pixel values. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for pixels that are real (i.e. <strong>not masked</strong>),</li>
<li>0 for pixels that are padding (i.e. <strong>masked</strong>).</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"pixel_mask"},{anchor:"transformers.DeformableDetrForObjectDetection.forward.decoder_attention_mask",description:`<strong>decoder_attention_mask</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, num_queries)</code>, <em>optional</em>) &#x2014;
Not used by default. Can be used to mask object queries.`,name:"decoder_attention_mask"},{anchor:"transformers.DeformableDetrForObjectDetection.forward.encoder_outputs",description:`<strong>encoder_outputs</strong> (<code>tuple(tuple(torch.FloatTensor)</code>, <em>optional</em>) &#x2014;
Tuple consists of (<code>last_hidden_state</code>, <em>optional</em>: <code>hidden_states</code>, <em>optional</em>: <code>attentions</code>)
<code>last_hidden_state</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) is a sequence of
hidden-states at the output of the last layer of the encoder. Used in the cross-attention of the decoder.`,name:"encoder_outputs"},{anchor:"transformers.DeformableDetrForObjectDetection.forward.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing the flattened feature map (output of the backbone + projection layer), you
can choose to directly pass a flattened representation of an image.`,name:"inputs_embeds"},{anchor:"transformers.DeformableDetrForObjectDetection.forward.decoder_inputs_embeds",description:`<strong>decoder_inputs_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_queries, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of initializing the queries with a tensor of zeros, you can choose to directly pass an
embedded representation.`,name:"decoder_inputs_embeds"},{anchor:"transformers.DeformableDetrForObjectDetection.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.DeformableDetrForObjectDetection.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.DeformableDetrForObjectDetection.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.30.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.DeformableDetrForObjectDetection.forward.labels",description:`<strong>labels</strong> (<code>List[Dict]</code> of len <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for computing the bipartite matching loss. List of dicts, each dictionary containing at least the
following 2 keys: &#x2018;class_labels&#x2019; and &#x2018;boxes&#x2019; (the class labels and bounding boxes of an image in the batch
respectively). The class labels themselves should be a <code>torch.LongTensor</code> of len <code>(number of bounding boxes in the image,)</code> and the boxes a <code>torch.FloatTensor</code> of shape <code>(number of bounding boxes in the image, 4)</code>.`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/v4.30.0/src/transformers/models/deformable_detr/modeling_deformable_detr.py#L1876",returnDescription:`
<p>A <code>transformers.models.deformable_detr.modeling_deformable_detr.DeformableDetrObjectDetectionOutput</code> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.30.0/en/model_doc/deformable_detr#transformers.DeformableDetrConfig"
>DeformableDetrConfig</a>) and inputs.</p>
<ul>
<li><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>labels</code> are provided)) \u2014 Total loss as a linear combination of a negative log-likehood (cross-entropy) for class prediction and a
bounding box loss. The latter is defined as a linear combination of the L1 loss and the generalized
scale-invariant IoU loss.</li>
<li><strong>loss_dict</strong> (<code>Dict</code>, <em>optional</em>) \u2014 A dictionary containing the individual losses. Useful for logging.</li>
<li><strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_queries, num_classes + 1)</code>) \u2014 Classification logits (including no-object) for all queries.</li>
<li><strong>pred_boxes</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_queries, 4)</code>) \u2014 Normalized boxes coordinates for all queries, represented as (center_x, center_y, width, height). These
values are normalized in [0, 1], relative to the size of each individual image in the batch (disregarding
possible padding). You can use <code>~DeformableDetrProcessor.post_process_object_detection</code> to retrieve the
unnormalized bounding boxes.</li>
<li><strong>auxiliary_outputs</strong> (<code>list[Dict]</code>, <em>optional</em>) \u2014 Optional, only returned when auxilary losses are activated (i.e. <code>config.auxiliary_loss</code> is set to <code>True</code>)
and labels are provided. It is a list of dictionaries containing the two above keys (<code>logits</code> and
<code>pred_boxes</code>) for each decoder layer.</li>
<li><strong>last_hidden_state</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_queries, hidden_size)</code>, <em>optional</em>) \u2014 Sequence of hidden-states at the output of the last layer of the decoder of the model.</li>
<li><strong>decoder_hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings + one for the output of each layer) of
shape <code>(batch_size, num_queries, hidden_size)</code>. Hidden-states of the decoder at the output of each layer
plus the initial embedding outputs.</li>
<li><strong>decoder_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, num_queries, num_queries)</code>. Attentions weights of the decoder, after the attention softmax, used to compute the weighted
average in the self-attention heads.</li>
<li><strong>cross_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_queries, num_heads, 4, 4)</code>.
Attentions weights of the decoder\u2019s cross-attention layer, after the attention softmax, used to compute the
weighted average in the cross-attention heads.</li>
<li><strong>encoder_last_hidden_state</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) \u2014 Sequence of hidden-states at the output of the last layer of the encoder of the model.</li>
<li><strong>encoder_hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings + one for the output of each layer) of
shape <code>(batch_size, sequence_length, hidden_size)</code>. Hidden-states of the encoder at the output of each
layer plus the initial embedding outputs.</li>
<li><strong>encoder_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, sequence_length, num_heads, 4, 4)</code>. Attentions weights of the encoder, after the attention softmax, used to compute the weighted average
in the self-attention heads.</li>
<li><strong>intermediate_hidden_states</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, config.decoder_layers, num_queries, hidden_size)</code>) \u2014 Stacked intermediate hidden states (output of each layer of the decoder).</li>
<li><strong>intermediate_reference_points</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, config.decoder_layers, num_queries, 4)</code>) \u2014 Stacked intermediate reference points (reference points of each layer of the decoder).</li>
<li><strong>init_reference_points</strong> (<code>torch.FloatTensor</code> of shape  <code>(batch_size, num_queries, 4)</code>) \u2014 Initial reference points sent through the Transformer decoder.</li>
<li><strong>enc_outputs_class</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, config.num_labels)</code>, <em>optional</em>, returned when <code>config.with_box_refine=True</code> and <code>config.two_stage=True</code>) \u2014 Predicted bounding boxes scores where the top <code>config.two_stage_num_proposals</code> scoring bounding boxes are
picked as region proposals in the first stage. Output of bounding box binary classification (i.e.
foreground and background).</li>
<li><strong>enc_outputs_coord_logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, 4)</code>, <em>optional</em>, returned when <code>config.with_box_refine=True</code> and <code>config.two_stage=True</code>) \u2014 Logits of predicted bounding boxes coordinates in the first stage.</li>
</ul>
`,returnType:`
<p><code>transformers.models.deformable_detr.modeling_deformable_detr.DeformableDetrObjectDetectionOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),ye=new Ps({props:{$$slots:{default:[Gs]},$$scope:{ctx:U}}}),ve=new ja({props:{anchor:"transformers.DeformableDetrForObjectDetection.forward.example",$$slots:{default:[Bs]},$$scope:{ctx:U}}}),{c(){h=r("meta"),M=d(),_=r("h1"),u=r("a"),x=r("span"),b(m.$$.fragment),g=d(),R=r("span"),lr=s("Deformable DETR"),ht=d(),A=r("h2"),ee=r("a"),Ao=r("span"),b(je.$$.fragment),dr=d(),qo=r("span"),cr=s("Overview"),ut=d(),P=r("p"),mr=s("The Deformable DETR model was proposed in "),Ee=r("a"),fr=s("Deformable DETR: Deformable Transformers for End-to-End Object Detection"),pr=s(` by Xizhou Zhu, Weijie Su, Lewei Lu, Bin Li, Xiaogang Wang, Jifeng Dai.
Deformable DETR mitigates the slow convergence issues and limited feature spatial resolution of the original `),fo=r("a"),hr=s("DETR"),ur=s(" by leveraging a new deformable attention module which only attends to a small set of key sampling points around a reference."),gt=d(),po=r("p"),gr=s("The abstract from the paper is the following:"),_t=d(),ho=r("p"),Lo=r("em"),_r=s("DETR has been recently proposed to eliminate the need for many hand-designed components in object detection while demonstrating good performance. However, it suffers from slow convergence and limited feature spatial resolution, due to the limitation of Transformer attention modules in processing image feature maps. To mitigate these issues, we proposed Deformable DETR, whose attention modules only attend to a small set of key sampling points around a reference. Deformable DETR can achieve better performance than DETR (especially on small objects) with 10 times less training epochs. Extensive experiments on the COCO benchmark demonstrate the effectiveness of our approach."),bt=d(),uo=r("p"),br=s("Tips:"),Dt=d(),oe=r("ul"),ke=r("li"),Dr=s("One can use "),go=r("a"),yr=s("DeformableDetrImageProcessor"),vr=s(" to prepare images (and optional targets) for the model."),wr=d(),q=r("li"),Tr=s("Training Deformable DETR is equivalent to training the original "),_o=r("a"),xr=s("DETR"),Mr=s(" model. See the "),bo=r("a"),$r=s("resources"),jr=s(" section below for demo notebooks."),yt=d(),te=r("img"),vt=d(),re=r("small"),Er=s("Deformable DETR architecture. Taken from the "),Do=r("a"),kr=s("original paper"),Cr=s("."),wt=d(),N=r("p"),zr=s("This model was contributed by "),Ce=r("a"),Ur=s("nielsr"),Ir=s(". The original code can be found "),ze=r("a"),Fr=s("here"),Rr=s("."),Tt=d(),L=r("h2"),ne=r("a"),Oo=r("span"),b(Ue.$$.fragment),Pr=d(),So=r("span"),Nr=s("Resources"),xt=d(),yo=r("p"),Zr=s("A list of official Hugging Face and community (indicated by \u{1F30E}) resources to help you get started with Deformable DETR."),Mt=d(),b(Ie.$$.fragment),$t=d(),ae=r("ul"),O=r("li"),Jr=s("Demo notebooks regarding inference + fine-tuning on a custom dataset for "),vo=r("a"),Wr=s("DeformableDetrForObjectDetection"),Ar=s(" can be found "),Fe=r("a"),qr=s("here"),Lr=s("."),Or=d(),Re=r("li"),Sr=s("See also: "),wo=r("a"),Vr=s("Object detection task guide"),Gr=s("."),jt=d(),To=r("p"),Br=s("If you\u2019re interested in submitting a resource to be included here, please feel free to open a Pull Request and we\u2019ll review it! The resource should ideally demonstrate something new instead of duplicating an existing resource."),Et=d(),S=r("h2"),se=r("a"),Vo=r("span"),b(Pe.$$.fragment),Xr=d(),Go=r("span"),Hr=s("DeformableDetrImageProcessor"),kt=d(),$=r("div"),b(Ne.$$.fragment),Qr=d(),Bo=r("p"),Yr=s("Constructs a Deformable DETR image processor."),Kr=d(),ie=r("div"),b(Ze.$$.fragment),en=d(),Xo=r("p"),on=s("Preprocess an image or a batch of images so that it can be used by the model."),tn=d(),le=r("div"),b(Je.$$.fragment),rn=d(),Ho=r("p"),nn=s(`Pads a batch of images with zeros to the size of largest height and width in the batch and returns their
corresponding pixel mask.`),an=d(),de=r("div"),b(We.$$.fragment),sn=d(),Ae=r("p"),ln=s("Converts the raw output of "),xo=r("a"),dn=s("DeformableDetrForObjectDetection"),cn=s(` into final bounding boxes in (top_left_x,
top_left_y, bottom_right_x, bottom_right_y) format. Only supports PyTorch.`),Ct=d(),V=r("h2"),ce=r("a"),Qo=r("span"),b(qe.$$.fragment),mn=d(),Yo=r("span"),fn=s("DeformableDetrFeatureExtractor"),zt=d(),k=r("div"),b(Le.$$.fragment),pn=d(),me=r("div"),b(Oe.$$.fragment),hn=d(),Ko=r("p"),un=s("Preprocess an image or a batch of images."),gn=d(),fe=r("div"),b(Se.$$.fragment),_n=d(),et=r("p"),bn=s(`Pads a batch of images with zeros to the size of largest height and width in the batch and returns their
corresponding pixel mask.`),Dn=d(),pe=r("div"),b(Ve.$$.fragment),yn=d(),Ge=r("p"),vn=s("Converts the raw output of "),Mo=r("a"),wn=s("DeformableDetrForObjectDetection"),Tn=s(` into final bounding boxes in (top_left_x,
top_left_y, bottom_right_x, bottom_right_y) format. Only supports PyTorch.`),Ut=d(),G=r("h2"),he=r("a"),ot=r("span"),b(Be.$$.fragment),xn=d(),tt=r("span"),Mn=s("DeformableDetrConfig"),It=d(),C=r("div"),b(Xe.$$.fragment),$n=d(),B=r("p"),jn=s("This is the configuration class to store the configuration of a "),$o=r("a"),En=s("DeformableDetrModel"),kn=s(`. It is used to instantiate
a Deformable DETR 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 Deformable DETR
`),He=r("a"),Cn=s("SenseTime/deformable-detr"),zn=s(" architecture."),Un=d(),X=r("p"),In=s("Configuration objects inherit from "),jo=r("a"),Fn=s("PretrainedConfig"),Rn=s(` and can be used to control the model outputs. Read the
documentation from `),Eo=r("a"),Pn=s("PretrainedConfig"),Nn=s(" for more information."),Zn=d(),b(ue.$$.fragment),Ft=d(),H=r("h2"),ge=r("a"),rt=r("span"),b(Qe.$$.fragment),Jn=d(),nt=r("span"),Wn=s("DeformableDetrModel"),Rt=d(),j=r("div"),b(Ye.$$.fragment),An=d(),at=r("p"),qn=s(`The bare Deformable DETR Model (consisting of a backbone and encoder-decoder Transformer) outputting raw
hidden-states without any specific head on top.`),Ln=d(),Ke=r("p"),On=s("This model inherits from "),ko=r("a"),Sn=s("PreTrainedModel"),Vn=s(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),Gn=d(),eo=r("p"),Bn=s("This model is also a PyTorch "),oo=r("a"),Xn=s("torch.nn.Module"),Hn=s(` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),Qn=d(),I=r("div"),b(to.$$.fragment),Yn=d(),Q=r("p"),Kn=s("The "),Co=r("a"),ea=s("DeformableDetrModel"),oa=s(" forward method, overrides the "),st=r("code"),ta=s("__call__"),ra=s(" special method."),na=d(),b(_e.$$.fragment),aa=d(),b(be.$$.fragment),Pt=d(),Y=r("h2"),De=r("a"),it=r("span"),b(ro.$$.fragment),sa=d(),lt=r("span"),ia=s("DeformableDetrForObjectDetection"),Nt=d(),E=r("div"),b(no.$$.fragment),la=d(),dt=r("p"),da=s(`Deformable DETR Model (consisting of a backbone and encoder-decoder Transformer) with object detection heads on
top, for tasks such as COCO detection.`),ca=d(),ao=r("p"),ma=s("This model inherits from "),zo=r("a"),fa=s("PreTrainedModel"),pa=s(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),ha=d(),so=r("p"),ua=s("This model is also a PyTorch "),io=r("a"),ga=s("torch.nn.Module"),_a=s(` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),ba=d(),F=r("div"),b(lo.$$.fragment),Da=d(),K=r("p"),ya=s("The "),Uo=r("a"),va=s("DeformableDetrForObjectDetection"),wa=s(" forward method, overrides the "),ct=r("code"),Ta=s("__call__"),xa=s(" special method."),Ma=d(),b(ye.$$.fragment),$a=d(),b(ve.$$.fragment),this.h()},l(o){const f=Ws('[data-svelte="svelte-1phssyn"]',document.head);h=n(f,"META",{name:!0,content:!0}),f.forEach(t),M=c(o),_=n(o,"H1",{class:!0});var co=a(_);u=n(co,"A",{id:!0,class:!0,href:!0});var mt=a(u);x=n(mt,"SPAN",{});var ft=a(x);D(m.$$.fragment,ft),ft.forEach(t),mt.forEach(t),g=c(co),R=n(co,"SPAN",{});var pt=a(R);lr=i(pt,"Deformable DETR"),pt.forEach(t),co.forEach(t),ht=c(o),A=n(o,"H2",{class:!0});var mo=a(A);ee=n(mo,"A",{id:!0,class:!0,href:!0});var za=a(ee);Ao=n(za,"SPAN",{});var Ua=a(Ao);D(je.$$.fragment,Ua),Ua.forEach(t),za.forEach(t),dr=c(mo),qo=n(mo,"SPAN",{});var Ia=a(qo);cr=i(Ia,"Overview"),Ia.forEach(t),mo.forEach(t),ut=c(o),P=n(o,"P",{});var Io=a(P);mr=i(Io,"The Deformable DETR model was proposed in "),Ee=n(Io,"A",{href:!0,rel:!0});var Fa=a(Ee);fr=i(Fa,"Deformable DETR: Deformable Transformers for End-to-End Object Detection"),Fa.forEach(t),pr=i(Io,` by Xizhou Zhu, Weijie Su, Lewei Lu, Bin Li, Xiaogang Wang, Jifeng Dai.
Deformable DETR mitigates the slow convergence issues and limited feature spatial resolution of the original `),fo=n(Io,"A",{href:!0});var Ra=a(fo);hr=i(Ra,"DETR"),Ra.forEach(t),ur=i(Io," by leveraging a new deformable attention module which only attends to a small set of key sampling points around a reference."),Io.forEach(t),gt=c(o),po=n(o,"P",{});var Pa=a(po);gr=i(Pa,"The abstract from the paper is the following:"),Pa.forEach(t),_t=c(o),ho=n(o,"P",{});var Na=a(ho);Lo=n(Na,"EM",{});var Za=a(Lo);_r=i(Za,"DETR has been recently proposed to eliminate the need for many hand-designed components in object detection while demonstrating good performance. However, it suffers from slow convergence and limited feature spatial resolution, due to the limitation of Transformer attention modules in processing image feature maps. To mitigate these issues, we proposed Deformable DETR, whose attention modules only attend to a small set of key sampling points around a reference. Deformable DETR can achieve better performance than DETR (especially on small objects) with 10 times less training epochs. Extensive experiments on the COCO benchmark demonstrate the effectiveness of our approach."),Za.forEach(t),Na.forEach(t),bt=c(o),uo=n(o,"P",{});var Ja=a(uo);br=i(Ja,"Tips:"),Ja.forEach(t),Dt=c(o),oe=n(o,"UL",{});var Jt=a(oe);ke=n(Jt,"LI",{});var Wt=a(ke);Dr=i(Wt,"One can use "),go=n(Wt,"A",{href:!0});var Wa=a(go);yr=i(Wa,"DeformableDetrImageProcessor"),Wa.forEach(t),vr=i(Wt," to prepare images (and optional targets) for the model."),Wt.forEach(t),wr=c(Jt),q=n(Jt,"LI",{});var Fo=a(q);Tr=i(Fo,"Training Deformable DETR is equivalent to training the original "),_o=n(Fo,"A",{href:!0});var Aa=a(_o);xr=i(Aa,"DETR"),Aa.forEach(t),Mr=i(Fo," model. See the "),bo=n(Fo,"A",{href:!0});var qa=a(bo);$r=i(qa,"resources"),qa.forEach(t),jr=i(Fo," section below for demo notebooks."),Fo.forEach(t),Jt.forEach(t),yt=c(o),te=n(o,"IMG",{src:!0,alt:!0,width:!0}),vt=c(o),re=n(o,"SMALL",{});var At=a(re);Er=i(At,"Deformable DETR architecture. Taken from the "),Do=n(At,"A",{href:!0});var La=a(Do);kr=i(La,"original paper"),La.forEach(t),Cr=i(At,"."),At.forEach(t),wt=c(o),N=n(o,"P",{});var Ro=a(N);zr=i(Ro,"This model was contributed by "),Ce=n(Ro,"A",{href:!0,rel:!0});var Oa=a(Ce);Ur=i(Oa,"nielsr"),Oa.forEach(t),Ir=i(Ro,". The original code can be found "),ze=n(Ro,"A",{href:!0,rel:!0});var Sa=a(ze);Fr=i(Sa,"here"),Sa.forEach(t),Rr=i(Ro,"."),Ro.forEach(t),Tt=c(o),L=n(o,"H2",{class:!0});var qt=a(L);ne=n(qt,"A",{id:!0,class:!0,href:!0});var Va=a(ne);Oo=n(Va,"SPAN",{});var Ga=a(Oo);D(Ue.$$.fragment,Ga),Ga.forEach(t),Va.forEach(t),Pr=c(qt),So=n(qt,"SPAN",{});var Ba=a(So);Nr=i(Ba,"Resources"),Ba.forEach(t),qt.forEach(t),xt=c(o),yo=n(o,"P",{});var Xa=a(yo);Zr=i(Xa,"A list of official Hugging Face and community (indicated by \u{1F30E}) resources to help you get started with Deformable DETR."),Xa.forEach(t),Mt=c(o),D(Ie.$$.fragment,o),$t=c(o),ae=n(o,"UL",{});var Lt=a(ae);O=n(Lt,"LI",{});var Po=a(O);Jr=i(Po,"Demo notebooks regarding inference + fine-tuning on a custom dataset for "),vo=n(Po,"A",{href:!0});var Ha=a(vo);Wr=i(Ha,"DeformableDetrForObjectDetection"),Ha.forEach(t),Ar=i(Po," can be found "),Fe=n(Po,"A",{href:!0,rel:!0});var Qa=a(Fe);qr=i(Qa,"here"),Qa.forEach(t),Lr=i(Po,"."),Po.forEach(t),Or=c(Lt),Re=n(Lt,"LI",{});var Ot=a(Re);Sr=i(Ot,"See also: "),wo=n(Ot,"A",{href:!0});var Ya=a(wo);Vr=i(Ya,"Object detection task guide"),Ya.forEach(t),Gr=i(Ot,"."),Ot.forEach(t),Lt.forEach(t),jt=c(o),To=n(o,"P",{});var Ka=a(To);Br=i(Ka,"If you\u2019re interested in submitting a resource to be included here, please feel free to open a Pull Request and we\u2019ll review it! The resource should ideally demonstrate something new instead of duplicating an existing resource."),Ka.forEach(t),Et=c(o),S=n(o,"H2",{class:!0});var St=a(S);se=n(St,"A",{id:!0,class:!0,href:!0});var es=a(se);Vo=n(es,"SPAN",{});var os=a(Vo);D(Pe.$$.fragment,os),os.forEach(t),es.forEach(t),Xr=c(St),Go=n(St,"SPAN",{});var ts=a(Go);Hr=i(ts,"DeformableDetrImageProcessor"),ts.forEach(t),St.forEach(t),kt=c(o),$=n(o,"DIV",{class:!0});var Z=a($);D(Ne.$$.fragment,Z),Qr=c(Z),Bo=n(Z,"P",{});var rs=a(Bo);Yr=i(rs,"Constructs a Deformable DETR image processor."),rs.forEach(t),Kr=c(Z),ie=n(Z,"DIV",{class:!0});var Vt=a(ie);D(Ze.$$.fragment,Vt),en=c(Vt),Xo=n(Vt,"P",{});var ns=a(Xo);on=i(ns,"Preprocess an image or a batch of images so that it can be used by the model."),ns.forEach(t),Vt.forEach(t),tn=c(Z),le=n(Z,"DIV",{class:!0});var Gt=a(le);D(Je.$$.fragment,Gt),rn=c(Gt),Ho=n(Gt,"P",{});var as=a(Ho);nn=i(as,`Pads a batch of images with zeros to the size of largest height and width in the batch and returns their
corresponding pixel mask.`),as.forEach(t),Gt.forEach(t),an=c(Z),de=n(Z,"DIV",{class:!0});var Bt=a(de);D(We.$$.fragment,Bt),sn=c(Bt),Ae=n(Bt,"P",{});var Xt=a(Ae);ln=i(Xt,"Converts the raw output of "),xo=n(Xt,"A",{href:!0});var ss=a(xo);dn=i(ss,"DeformableDetrForObjectDetection"),ss.forEach(t),cn=i(Xt,` into final bounding boxes in (top_left_x,
top_left_y, bottom_right_x, bottom_right_y) format. Only supports PyTorch.`),Xt.forEach(t),Bt.forEach(t),Z.forEach(t),Ct=c(o),V=n(o,"H2",{class:!0});var Ht=a(V);ce=n(Ht,"A",{id:!0,class:!0,href:!0});var is=a(ce);Qo=n(is,"SPAN",{});var ls=a(Qo);D(qe.$$.fragment,ls),ls.forEach(t),is.forEach(t),mn=c(Ht),Yo=n(Ht,"SPAN",{});var ds=a(Yo);fn=i(ds,"DeformableDetrFeatureExtractor"),ds.forEach(t),Ht.forEach(t),zt=c(o),k=n(o,"DIV",{class:!0});var we=a(k);D(Le.$$.fragment,we),pn=c(we),me=n(we,"DIV",{class:!0});var Qt=a(me);D(Oe.$$.fragment,Qt),hn=c(Qt),Ko=n(Qt,"P",{});var cs=a(Ko);un=i(cs,"Preprocess an image or a batch of images."),cs.forEach(t),Qt.forEach(t),gn=c(we),fe=n(we,"DIV",{class:!0});var Yt=a(fe);D(Se.$$.fragment,Yt),_n=c(Yt),et=n(Yt,"P",{});var ms=a(et);bn=i(ms,`Pads a batch of images with zeros to the size of largest height and width in the batch and returns their
corresponding pixel mask.`),ms.forEach(t),Yt.forEach(t),Dn=c(we),pe=n(we,"DIV",{class:!0});var Kt=a(pe);D(Ve.$$.fragment,Kt),yn=c(Kt),Ge=n(Kt,"P",{});var er=a(Ge);vn=i(er,"Converts the raw output of "),Mo=n(er,"A",{href:!0});var fs=a(Mo);wn=i(fs,"DeformableDetrForObjectDetection"),fs.forEach(t),Tn=i(er,` into final bounding boxes in (top_left_x,
top_left_y, bottom_right_x, bottom_right_y) format. Only supports PyTorch.`),er.forEach(t),Kt.forEach(t),we.forEach(t),Ut=c(o),G=n(o,"H2",{class:!0});var or=a(G);he=n(or,"A",{id:!0,class:!0,href:!0});var ps=a(he);ot=n(ps,"SPAN",{});var hs=a(ot);D(Be.$$.fragment,hs),hs.forEach(t),ps.forEach(t),xn=c(or),tt=n(or,"SPAN",{});var us=a(tt);Mn=i(us,"DeformableDetrConfig"),us.forEach(t),or.forEach(t),It=c(o),C=n(o,"DIV",{class:!0});var Te=a(C);D(Xe.$$.fragment,Te),$n=c(Te),B=n(Te,"P",{});var No=a(B);jn=i(No,"This is the configuration class to store the configuration of a "),$o=n(No,"A",{href:!0});var gs=a($o);En=i(gs,"DeformableDetrModel"),gs.forEach(t),kn=i(No,`. It is used to instantiate
a Deformable DETR 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 Deformable DETR
`),He=n(No,"A",{href:!0,rel:!0});var _s=a(He);Cn=i(_s,"SenseTime/deformable-detr"),_s.forEach(t),zn=i(No," architecture."),No.forEach(t),Un=c(Te),X=n(Te,"P",{});var Zo=a(X);In=i(Zo,"Configuration objects inherit from "),jo=n(Zo,"A",{href:!0});var bs=a(jo);Fn=i(bs,"PretrainedConfig"),bs.forEach(t),Rn=i(Zo,` and can be used to control the model outputs. Read the
documentation from `),Eo=n(Zo,"A",{href:!0});var Ds=a(Eo);Pn=i(Ds,"PretrainedConfig"),Ds.forEach(t),Nn=i(Zo," for more information."),Zo.forEach(t),Zn=c(Te),D(ue.$$.fragment,Te),Te.forEach(t),Ft=c(o),H=n(o,"H2",{class:!0});var tr=a(H);ge=n(tr,"A",{id:!0,class:!0,href:!0});var ys=a(ge);rt=n(ys,"SPAN",{});var vs=a(rt);D(Qe.$$.fragment,vs),vs.forEach(t),ys.forEach(t),Jn=c(tr),nt=n(tr,"SPAN",{});var ws=a(nt);Wn=i(ws,"DeformableDetrModel"),ws.forEach(t),tr.forEach(t),Rt=c(o),j=n(o,"DIV",{class:!0});var J=a(j);D(Ye.$$.fragment,J),An=c(J),at=n(J,"P",{});var Ts=a(at);qn=i(Ts,`The bare Deformable DETR Model (consisting of a backbone and encoder-decoder Transformer) outputting raw
hidden-states without any specific head on top.`),Ts.forEach(t),Ln=c(J),Ke=n(J,"P",{});var rr=a(Ke);On=i(rr,"This model inherits from "),ko=n(rr,"A",{href:!0});var xs=a(ko);Sn=i(xs,"PreTrainedModel"),xs.forEach(t),Vn=i(rr,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),rr.forEach(t),Gn=c(J),eo=n(J,"P",{});var nr=a(eo);Bn=i(nr,"This model is also a PyTorch "),oo=n(nr,"A",{href:!0,rel:!0});var Ms=a(oo);Xn=i(Ms,"torch.nn.Module"),Ms.forEach(t),Hn=i(nr,` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),nr.forEach(t),Qn=c(J),I=n(J,"DIV",{class:!0});var xe=a(I);D(to.$$.fragment,xe),Yn=c(xe),Q=n(xe,"P",{});var Jo=a(Q);Kn=i(Jo,"The "),Co=n(Jo,"A",{href:!0});var $s=a(Co);ea=i($s,"DeformableDetrModel"),$s.forEach(t),oa=i(Jo," forward method, overrides the "),st=n(Jo,"CODE",{});var js=a(st);ta=i(js,"__call__"),js.forEach(t),ra=i(Jo," special method."),Jo.forEach(t),na=c(xe),D(_e.$$.fragment,xe),aa=c(xe),D(be.$$.fragment,xe),xe.forEach(t),J.forEach(t),Pt=c(o),Y=n(o,"H2",{class:!0});var ar=a(Y);De=n(ar,"A",{id:!0,class:!0,href:!0});var Es=a(De);it=n(Es,"SPAN",{});var ks=a(it);D(ro.$$.fragment,ks),ks.forEach(t),Es.forEach(t),sa=c(ar),lt=n(ar,"SPAN",{});var Cs=a(lt);ia=i(Cs,"DeformableDetrForObjectDetection"),Cs.forEach(t),ar.forEach(t),Nt=c(o),E=n(o,"DIV",{class:!0});var W=a(E);D(no.$$.fragment,W),la=c(W),dt=n(W,"P",{});var zs=a(dt);da=i(zs,`Deformable DETR Model (consisting of a backbone and encoder-decoder Transformer) with object detection heads on
top, for tasks such as COCO detection.`),zs.forEach(t),ca=c(W),ao=n(W,"P",{});var sr=a(ao);ma=i(sr,"This model inherits from "),zo=n(sr,"A",{href:!0});var Us=a(zo);fa=i(Us,"PreTrainedModel"),Us.forEach(t),pa=i(sr,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),sr.forEach(t),ha=c(W),so=n(W,"P",{});var ir=a(so);ua=i(ir,"This model is also a PyTorch "),io=n(ir,"A",{href:!0,rel:!0});var Is=a(io);ga=i(Is,"torch.nn.Module"),Is.forEach(t),_a=i(ir,` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),ir.forEach(t),ba=c(W),F=n(W,"DIV",{class:!0});var Me=a(F);D(lo.$$.fragment,Me),Da=c(Me),K=n(Me,"P",{});var Wo=a(K);ya=i(Wo,"The "),Uo=n(Wo,"A",{href:!0});var Fs=a(Uo);va=i(Fs,"DeformableDetrForObjectDetection"),Fs.forEach(t),wa=i(Wo," forward method, overrides the "),ct=n(Wo,"CODE",{});var Rs=a(ct);Ta=i(Rs,"__call__"),Rs.forEach(t),xa=i(Wo," special method."),Wo.forEach(t),Ma=c(Me),D(ye.$$.fragment,Me),$a=c(Me),D(ve.$$.fragment,Me),Me.forEach(t),W.forEach(t),this.h()},h(){l(h,"name","hf:doc:metadata"),l(h,"content",JSON.stringify(Hs)),l(u,"id","deformable-detr"),l(u,"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"),l(u,"href","#deformable-detr"),l(_,"class","relative group"),l(ee,"id","overview"),l(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"),l(ee,"href","#overview"),l(A,"class","relative group"),l(Ee,"href","https://arxiv.org/abs/2010.04159"),l(Ee,"rel","nofollow"),l(fo,"href","detr"),l(go,"href","/docs/transformers/v4.30.0/en/model_doc/deformable_detr#transformers.DeformableDetrImageProcessor"),l(_o,"href","detr"),l(bo,"href","#resources"),As(te.src,Ca="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/deformable_detr_architecture.png")||l(te,"src",Ca),l(te,"alt","drawing"),l(te,"width","600"),l(Do,"href","https://arxiv.org/abs/2010.04159"),l(Ce,"href","https://huggingface.co/nielsr"),l(Ce,"rel","nofollow"),l(ze,"href","https://github.com/fundamentalvision/Deformable-DETR"),l(ze,"rel","nofollow"),l(ne,"id","resources"),l(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"),l(ne,"href","#resources"),l(L,"class","relative group"),l(vo,"href","/docs/transformers/v4.30.0/en/model_doc/deformable_detr#transformers.DeformableDetrForObjectDetection"),l(Fe,"href","https://github.com/NielsRogge/Transformers-Tutorials/tree/master/Deformable-DETR"),l(Fe,"rel","nofollow"),l(wo,"href","../tasks/object_detection"),l(se,"id","transformers.DeformableDetrImageProcessor"),l(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"),l(se,"href","#transformers.DeformableDetrImageProcessor"),l(S,"class","relative group"),l(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(xo,"href","/docs/transformers/v4.30.0/en/model_doc/deformable_detr#transformers.DeformableDetrForObjectDetection"),l(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(ce,"id","transformers.DeformableDetrFeatureExtractor"),l(ce,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),l(ce,"href","#transformers.DeformableDetrFeatureExtractor"),l(V,"class","relative group"),l(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(Mo,"href","/docs/transformers/v4.30.0/en/model_doc/deformable_detr#transformers.DeformableDetrForObjectDetection"),l(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(he,"id","transformers.DeformableDetrConfig"),l(he,"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"),l(he,"href","#transformers.DeformableDetrConfig"),l(G,"class","relative group"),l($o,"href","/docs/transformers/v4.30.0/en/model_doc/deformable_detr#transformers.DeformableDetrModel"),l(He,"href","https://huggingface.co/SenseTime/deformable-detr"),l(He,"rel","nofollow"),l(jo,"href","/docs/transformers/v4.30.0/en/main_classes/configuration#transformers.PretrainedConfig"),l(Eo,"href","/docs/transformers/v4.30.0/en/main_classes/configuration#transformers.PretrainedConfig"),l(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(ge,"id","transformers.DeformableDetrModel"),l(ge,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),l(ge,"href","#transformers.DeformableDetrModel"),l(H,"class","relative group"),l(ko,"href","/docs/transformers/v4.30.0/en/main_classes/model#transformers.PreTrainedModel"),l(oo,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),l(oo,"rel","nofollow"),l(Co,"href","/docs/transformers/v4.30.0/en/model_doc/deformable_detr#transformers.DeformableDetrModel"),l(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(De,"id","transformers.DeformableDetrForObjectDetection"),l(De,"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"),l(De,"href","#transformers.DeformableDetrForObjectDetection"),l(Y,"class","relative group"),l(zo,"href","/docs/transformers/v4.30.0/en/main_classes/model#transformers.PreTrainedModel"),l(io,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),l(io,"rel","nofollow"),l(Uo,"href","/docs/transformers/v4.30.0/en/model_doc/deformable_detr#transformers.DeformableDetrForObjectDetection"),l(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(o,f){e(document.head,h),p(o,M,f),p(o,_,f),e(_,u),e(u,x),y(m,x,null),e(_,g),e(_,R),e(R,lr),p(o,ht,f),p(o,A,f),e(A,ee),e(ee,Ao),y(je,Ao,null),e(A,dr),e(A,qo),e(qo,cr),p(o,ut,f),p(o,P,f),e(P,mr),e(P,Ee),e(Ee,fr),e(P,pr),e(P,fo),e(fo,hr),e(P,ur),p(o,gt,f),p(o,po,f),e(po,gr),p(o,_t,f),p(o,ho,f),e(ho,Lo),e(Lo,_r),p(o,bt,f),p(o,uo,f),e(uo,br),p(o,Dt,f),p(o,oe,f),e(oe,ke),e(ke,Dr),e(ke,go),e(go,yr),e(ke,vr),e(oe,wr),e(oe,q),e(q,Tr),e(q,_o),e(_o,xr),e(q,Mr),e(q,bo),e(bo,$r),e(q,jr),p(o,yt,f),p(o,te,f),p(o,vt,f),p(o,re,f),e(re,Er),e(re,Do),e(Do,kr),e(re,Cr),p(o,wt,f),p(o,N,f),e(N,zr),e(N,Ce),e(Ce,Ur),e(N,Ir),e(N,ze),e(ze,Fr),e(N,Rr),p(o,Tt,f),p(o,L,f),e(L,ne),e(ne,Oo),y(Ue,Oo,null),e(L,Pr),e(L,So),e(So,Nr),p(o,xt,f),p(o,yo,f),e(yo,Zr),p(o,Mt,f),y(Ie,o,f),p(o,$t,f),p(o,ae,f),e(ae,O),e(O,Jr),e(O,vo),e(vo,Wr),e(O,Ar),e(O,Fe),e(Fe,qr),e(O,Lr),e(ae,Or),e(ae,Re),e(Re,Sr),e(Re,wo),e(wo,Vr),e(Re,Gr),p(o,jt,f),p(o,To,f),e(To,Br),p(o,Et,f),p(o,S,f),e(S,se),e(se,Vo),y(Pe,Vo,null),e(S,Xr),e(S,Go),e(Go,Hr),p(o,kt,f),p(o,$,f),y(Ne,$,null),e($,Qr),e($,Bo),e(Bo,Yr),e($,Kr),e($,ie),y(Ze,ie,null),e(ie,en),e(ie,Xo),e(Xo,on),e($,tn),e($,le),y(Je,le,null),e(le,rn),e(le,Ho),e(Ho,nn),e($,an),e($,de),y(We,de,null),e(de,sn),e(de,Ae),e(Ae,ln),e(Ae,xo),e(xo,dn),e(Ae,cn),p(o,Ct,f),p(o,V,f),e(V,ce),e(ce,Qo),y(qe,Qo,null),e(V,mn),e(V,Yo),e(Yo,fn),p(o,zt,f),p(o,k,f),y(Le,k,null),e(k,pn),e(k,me),y(Oe,me,null),e(me,hn),e(me,Ko),e(Ko,un),e(k,gn),e(k,fe),y(Se,fe,null),e(fe,_n),e(fe,et),e(et,bn),e(k,Dn),e(k,pe),y(Ve,pe,null),e(pe,yn),e(pe,Ge),e(Ge,vn),e(Ge,Mo),e(Mo,wn),e(Ge,Tn),p(o,Ut,f),p(o,G,f),e(G,he),e(he,ot),y(Be,ot,null),e(G,xn),e(G,tt),e(tt,Mn),p(o,It,f),p(o,C,f),y(Xe,C,null),e(C,$n),e(C,B),e(B,jn),e(B,$o),e($o,En),e(B,kn),e(B,He),e(He,Cn),e(B,zn),e(C,Un),e(C,X),e(X,In),e(X,jo),e(jo,Fn),e(X,Rn),e(X,Eo),e(Eo,Pn),e(X,Nn),e(C,Zn),y(ue,C,null),p(o,Ft,f),p(o,H,f),e(H,ge),e(ge,rt),y(Qe,rt,null),e(H,Jn),e(H,nt),e(nt,Wn),p(o,Rt,f),p(o,j,f),y(Ye,j,null),e(j,An),e(j,at),e(at,qn),e(j,Ln),e(j,Ke),e(Ke,On),e(Ke,ko),e(ko,Sn),e(Ke,Vn),e(j,Gn),e(j,eo),e(eo,Bn),e(eo,oo),e(oo,Xn),e(eo,Hn),e(j,Qn),e(j,I),y(to,I,null),e(I,Yn),e(I,Q),e(Q,Kn),e(Q,Co),e(Co,ea),e(Q,oa),e(Q,st),e(st,ta),e(Q,ra),e(I,na),y(_e,I,null),e(I,aa),y(be,I,null),p(o,Pt,f),p(o,Y,f),e(Y,De),e(De,it),y(ro,it,null),e(Y,sa),e(Y,lt),e(lt,ia),p(o,Nt,f),p(o,E,f),y(no,E,null),e(E,la),e(E,dt),e(dt,da),e(E,ca),e(E,ao),e(ao,ma),e(ao,zo),e(zo,fa),e(ao,pa),e(E,ha),e(E,so),e(so,ua),e(so,io),e(io,ga),e(so,_a),e(E,ba),e(E,F),y(lo,F,null),e(F,Da),e(F,K),e(K,ya),e(K,Uo),e(Uo,va),e(K,wa),e(K,ct),e(ct,Ta),e(K,xa),e(F,Ma),y(ye,F,null),e(F,$a),y(ve,F,null),Zt=!0},p(o,[f]){const co={};f&2&&(co.$$scope={dirty:f,ctx:o}),ue.$set(co);const mt={};f&2&&(mt.$$scope={dirty:f,ctx:o}),_e.$set(mt);const ft={};f&2&&(ft.$$scope={dirty:f,ctx:o}),be.$set(ft);const pt={};f&2&&(pt.$$scope={dirty:f,ctx:o}),ye.$set(pt);const mo={};f&2&&(mo.$$scope={dirty:f,ctx:o}),ve.$set(mo)},i(o){Zt||(v(m.$$.fragment,o),v(je.$$.fragment,o),v(Ue.$$.fragment,o),v(Ie.$$.fragment,o),v(Pe.$$.fragment,o),v(Ne.$$.fragment,o),v(Ze.$$.fragment,o),v(Je.$$.fragment,o),v(We.$$.fragment,o),v(qe.$$.fragment,o),v(Le.$$.fragment,o),v(Oe.$$.fragment,o),v(Se.$$.fragment,o),v(Ve.$$.fragment,o),v(Be.$$.fragment,o),v(Xe.$$.fragment,o),v(ue.$$.fragment,o),v(Qe.$$.fragment,o),v(Ye.$$.fragment,o),v(to.$$.fragment,o),v(_e.$$.fragment,o),v(be.$$.fragment,o),v(ro.$$.fragment,o),v(no.$$.fragment,o),v(lo.$$.fragment,o),v(ye.$$.fragment,o),v(ve.$$.fragment,o),Zt=!0)},o(o){w(m.$$.fragment,o),w(je.$$.fragment,o),w(Ue.$$.fragment,o),w(Ie.$$.fragment,o),w(Pe.$$.fragment,o),w(Ne.$$.fragment,o),w(Ze.$$.fragment,o),w(Je.$$.fragment,o),w(We.$$.fragment,o),w(qe.$$.fragment,o),w(Le.$$.fragment,o),w(Oe.$$.fragment,o),w(Se.$$.fragment,o),w(Ve.$$.fragment,o),w(Be.$$.fragment,o),w(Xe.$$.fragment,o),w(ue.$$.fragment,o),w(Qe.$$.fragment,o),w(Ye.$$.fragment,o),w(to.$$.fragment,o),w(_e.$$.fragment,o),w(be.$$.fragment,o),w(ro.$$.fragment,o),w(no.$$.fragment,o),w(lo.$$.fragment,o),w(ye.$$.fragment,o),w(ve.$$.fragment,o),Zt=!1},d(o){t(h),o&&t(M),o&&t(_),T(m),o&&t(ht),o&&t(A),T(je),o&&t(ut),o&&t(P),o&&t(gt),o&&t(po),o&&t(_t),o&&t(ho),o&&t(bt),o&&t(uo),o&&t(Dt),o&&t(oe),o&&t(yt),o&&t(te),o&&t(vt),o&&t(re),o&&t(wt),o&&t(N),o&&t(Tt),o&&t(L),T(Ue),o&&t(xt),o&&t(yo),o&&t(Mt),T(Ie,o),o&&t($t),o&&t(ae),o&&t(jt),o&&t(To),o&&t(Et),o&&t(S),T(Pe),o&&t(kt),o&&t($),T(Ne),T(Ze),T(Je),T(We),o&&t(Ct),o&&t(V),T(qe),o&&t(zt),o&&t(k),T(Le),T(Oe),T(Se),T(Ve),o&&t(Ut),o&&t(G),T(Be),o&&t(It),o&&t(C),T(Xe),T(ue),o&&t(Ft),o&&t(H),T(Qe),o&&t(Rt),o&&t(j),T(Ye),T(to),T(_e),T(be),o&&t(Pt),o&&t(Y),T(ro),o&&t(Nt),o&&t(E),T(no),T(lo),T(ye),T(ve)}}}const Hs={local:"deformable-detr",sections:[{local:"overview",title:"Overview"},{local:"resources",title:"Resources"},{local:"transformers.DeformableDetrImageProcessor",title:"DeformableDetrImageProcessor"},{local:"transformers.DeformableDetrFeatureExtractor",title:"DeformableDetrFeatureExtractor"},{local:"transformers.DeformableDetrConfig",title:"DeformableDetrConfig"},{local:"transformers.DeformableDetrModel",title:"DeformableDetrModel"},{local:"transformers.DeformableDetrForObjectDetection",title:"DeformableDetrForObjectDetection"}],title:"Deformable DETR"};function Qs(U){return qs(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ai extends Ns{constructor(h){super();Zs(this,h,Qs,Xs,Js,{})}}export{ai as default,Hs as metadata};
