import{s as Dr,o as Or,n as G}from"../chunks/scheduler.9bc65507.js";import{S as Kr,i as ea,g as i,s as d,u as f,A as ta,h as l,f as n,c,j as V,v as _,y as M,k as g,o as s,a as u,w as T,d as v,t as y,x as b}from"../chunks/index.78c82d43.js";import{T as te}from"../chunks/Tip.87d55b76.js";import{D as k}from"../chunks/Docstring.f3d04bd2.js";import{C as Q}from"../chunks/CodeBlock.48618ec2.js";import{I as A}from"../chunks/IconCopyLink.bedaa44d.js";import{E as Y}from"../chunks/ExampleCodeBlock.872b014d.js";function oa($){let t,m="Example:",r,a,h;return a=new Q({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEdyb3VwVmlUVGV4dENvbmZpZyUyQyUyMEdyb3VwVmlUVGV4dE1vZGVsJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMEdyb3VwVmlUVGV4dE1vZGVsJTIwd2l0aCUyMG52aWRpYSUyRmdyb3Vwdml0LWdjYy15ZmNjJTIwc3R5bGUlMjBjb25maWd1cmF0aW9uJTBBY29uZmlndXJhdGlvbiUyMCUzRCUyMEdyb3VwVmlUVGV4dENvbmZpZygpJTBBJTBBbW9kZWwlMjAlM0QlMjBHcm91cFZpVFRleHRNb2RlbChjb25maWd1cmF0aW9uKSUwQSUwQSUyMyUyMEFjY2Vzc2luZyUyMHRoZSUyMG1vZGVsJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBtb2RlbC5jb25maWc=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> GroupViTTextConfig, GroupViTTextModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a GroupViTTextModel with nvidia/groupvit-gcc-yfcc style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = GroupViTTextConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span>model = GroupViTTextModel(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(){t=i("p"),t.textContent=m,r=d(),f(a.$$.fragment)},l(o){t=l(o,"P",{"data-svelte-h":!0}),M(t)!=="svelte-11lpom8"&&(t.textContent=m),r=c(o),_(a.$$.fragment,o)},m(o,w){u(o,t,w),u(o,r,w),T(a,o,w),h=!0},p:G,i(o){h||(v(a.$$.fragment,o),h=!0)},o(o){y(a.$$.fragment,o),h=!1},d(o){o&&(n(t),n(r)),b(a,o)}}}function na($){let t,m="Example:",r,a,h;return a=new Q({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEdyb3VwVmlUVmlzaW9uQ29uZmlnJTJDJTIwR3JvdXBWaVRWaXNpb25Nb2RlbCUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBHcm91cFZpVFZpc2lvbk1vZGVsJTIwd2l0aCUyMG52aWRpYSUyRmdyb3Vwdml0LWdjYy15ZmNjJTIwc3R5bGUlMjBjb25maWd1cmF0aW9uJTBBY29uZmlndXJhdGlvbiUyMCUzRCUyMEdyb3VwVmlUVmlzaW9uQ29uZmlnKCklMEElMEFtb2RlbCUyMCUzRCUyMEdyb3VwVmlUVmlzaW9uTW9kZWwoY29uZmlndXJhdGlvbiklMEElMEElMjMlMjBBY2Nlc3NpbmclMjB0aGUlMjBtb2RlbCUyMGNvbmZpZ3VyYXRpb24lMEFjb25maWd1cmF0aW9uJTIwJTNEJTIwbW9kZWwuY29uZmln",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> GroupViTVisionConfig, GroupViTVisionModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a GroupViTVisionModel with nvidia/groupvit-gcc-yfcc style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = GroupViTVisionConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span>model = GroupViTVisionModel(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(){t=i("p"),t.textContent=m,r=d(),f(a.$$.fragment)},l(o){t=l(o,"P",{"data-svelte-h":!0}),M(t)!=="svelte-11lpom8"&&(t.textContent=m),r=c(o),_(a.$$.fragment,o)},m(o,w){u(o,t,w),u(o,r,w),T(a,o,w),h=!0},p:G,i(o){h||(v(a.$$.fragment,o),h=!0)},o(o){y(a.$$.fragment,o),h=!1},d(o){o&&(n(t),n(r)),b(a,o)}}}function sa($){let t,m=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){t=i("p"),t.innerHTML=m},l(r){t=l(r,"P",{"data-svelte-h":!0}),M(t)!=="svelte-fincs2"&&(t.innerHTML=m)},m(r,a){u(r,t,a)},p:G,d(r){r&&n(t)}}}function ra($){let t,m="Examples:",r,a,h;return a=new Q({props:{code:"ZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Byb2Nlc3NvciUyQyUyMEdyb3VwVmlUTW9kZWwlMEElMEFtb2RlbCUyMCUzRCUyMEdyb3VwVmlUTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMm52aWRpYSUyRmdyb3Vwdml0LWdjYy15ZmNjJTIyKSUwQXByb2Nlc3NvciUyMCUzRCUyMEF1dG9Qcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMm52aWRpYSUyRmdyb3Vwdml0LWdjYy15ZmNjJTIyKSUwQSUwQXVybCUyMCUzRCUyMCUyMmh0dHAlM0ElMkYlMkZpbWFnZXMuY29jb2RhdGFzZXQub3JnJTJGdmFsMjAxNyUyRjAwMDAwMDAzOTc2OS5qcGclMjIlMEFpbWFnZSUyMCUzRCUyMEltYWdlLm9wZW4ocmVxdWVzdHMuZ2V0KHVybCUyQyUyMHN0cmVhbSUzRFRydWUpLnJhdyklMEElMEFpbnB1dHMlMjAlM0QlMjBwcm9jZXNzb3IoJTBBJTIwJTIwJTIwJTIwdGV4dCUzRCU1QiUyMmElMjBwaG90byUyMG9mJTIwYSUyMGNhdCUyMiUyQyUyMCUyMmElMjBwaG90byUyMG9mJTIwYSUyMGRvZyUyMiU1RCUyQyUyMGltYWdlcyUzRGltYWdlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiUyQyUyMHBhZGRpbmclM0RUcnVlJTBBKSUwQSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyklMEFsb2dpdHNfcGVyX2ltYWdlJTIwJTNEJTIwb3V0cHV0cy5sb2dpdHNfcGVyX2ltYWdlJTIwJTIwJTIzJTIwdGhpcyUyMGlzJTIwdGhlJTIwaW1hZ2UtdGV4dCUyMHNpbWlsYXJpdHklMjBzY29yZSUwQXByb2JzJTIwJTNEJTIwbG9naXRzX3Blcl9pbWFnZS5zb2Z0bWF4KGRpbSUzRDEpJTIwJTIwJTIzJTIwd2UlMjBjYW4lMjB0YWtlJTIwdGhlJTIwc29mdG1heCUyMHRvJTIwZ2V0JTIwdGhlJTIwbGFiZWwlMjBwcm9iYWJpbGl0aWVz",highlighted:`<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><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor, GroupViTModel

<span class="hljs-meta">&gt;&gt;&gt; </span>model = GroupViTModel.from_pretrained(<span class="hljs-string">&quot;nvidia/groupvit-gcc-yfcc&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;nvidia/groupvit-gcc-yfcc&quot;</span>)

<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>inputs = processor(
<span class="hljs-meta">... </span>    text=[<span class="hljs-string">&quot;a photo of a cat&quot;</span>, <span class="hljs-string">&quot;a photo of a dog&quot;</span>], images=image, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>, padding=<span class="hljs-literal">True</span>
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits_per_image = outputs.logits_per_image  <span class="hljs-comment"># this is the image-text similarity score</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>probs = logits_per_image.softmax(dim=<span class="hljs-number">1</span>)  <span class="hljs-comment"># we can take the softmax to get the label probabilities</span>`}}),{c(){t=i("p"),t.textContent=m,r=d(),f(a.$$.fragment)},l(o){t=l(o,"P",{"data-svelte-h":!0}),M(t)!=="svelte-kvfsh7"&&(t.textContent=m),r=c(o),_(a.$$.fragment,o)},m(o,w){u(o,t,w),u(o,r,w),T(a,o,w),h=!0},p:G,i(o){h||(v(a.$$.fragment,o),h=!0)},o(o){y(a.$$.fragment,o),h=!1},d(o){o&&(n(t),n(r)),b(a,o)}}}function aa($){let t,m=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){t=i("p"),t.innerHTML=m},l(r){t=l(r,"P",{"data-svelte-h":!0}),M(t)!=="svelte-fincs2"&&(t.innerHTML=m)},m(r,a){u(r,t,a)},p:G,d(r){r&&n(t)}}}function ia($){let t,m="Examples:",r,a,h;return a=new Q({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMENMSVBUb2tlbml6ZXIlMkMlMjBHcm91cFZpVE1vZGVsJTBBJTBBbW9kZWwlMjAlM0QlMjBHcm91cFZpVE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJudmlkaWElMkZncm91cHZpdC1nY2MteWZjYyUyMiklMEF0b2tlbml6ZXIlMjAlM0QlMjBDTElQVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJudmlkaWElMkZncm91cHZpdC1nY2MteWZjYyUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjB0b2tlbml6ZXIoJTVCJTIyYSUyMHBob3RvJTIwb2YlMjBhJTIwY2F0JTIyJTJDJTIwJTIyYSUyMHBob3RvJTIwb2YlMjBhJTIwZG9nJTIyJTVEJTJDJTIwcGFkZGluZyUzRFRydWUlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQXRleHRfZmVhdHVyZXMlMjAlM0QlMjBtb2RlbC5nZXRfdGV4dF9mZWF0dXJlcygqKmlucHV0cyk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> CLIPTokenizer, GroupViTModel

<span class="hljs-meta">&gt;&gt;&gt; </span>model = GroupViTModel.from_pretrained(<span class="hljs-string">&quot;nvidia/groupvit-gcc-yfcc&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = CLIPTokenizer.from_pretrained(<span class="hljs-string">&quot;nvidia/groupvit-gcc-yfcc&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer([<span class="hljs-string">&quot;a photo of a cat&quot;</span>, <span class="hljs-string">&quot;a photo of a dog&quot;</span>], padding=<span class="hljs-literal">True</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>text_features = model.get_text_features(**inputs)`}}),{c(){t=i("p"),t.textContent=m,r=d(),f(a.$$.fragment)},l(o){t=l(o,"P",{"data-svelte-h":!0}),M(t)!=="svelte-kvfsh7"&&(t.textContent=m),r=c(o),_(a.$$.fragment,o)},m(o,w){u(o,t,w),u(o,r,w),T(a,o,w),h=!0},p:G,i(o){h||(v(a.$$.fragment,o),h=!0)},o(o){y(a.$$.fragment,o),h=!1},d(o){o&&(n(t),n(r)),b(a,o)}}}function la($){let t,m=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){t=i("p"),t.innerHTML=m},l(r){t=l(r,"P",{"data-svelte-h":!0}),M(t)!=="svelte-fincs2"&&(t.innerHTML=m)},m(r,a){u(r,t,a)},p:G,d(r){r&&n(t)}}}function da($){let t,m="Examples:",r,a,h;return a=new Q({props:{code:"ZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Byb2Nlc3NvciUyQyUyMEdyb3VwVmlUTW9kZWwlMEElMEFtb2RlbCUyMCUzRCUyMEdyb3VwVmlUTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMm52aWRpYSUyRmdyb3Vwdml0LWdjYy15ZmNjJTIyKSUwQXByb2Nlc3NvciUyMCUzRCUyMEF1dG9Qcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMm52aWRpYSUyRmdyb3Vwdml0LWdjYy15ZmNjJTIyKSUwQSUwQXVybCUyMCUzRCUyMCUyMmh0dHAlM0ElMkYlMkZpbWFnZXMuY29jb2RhdGFzZXQub3JnJTJGdmFsMjAxNyUyRjAwMDAwMDAzOTc2OS5qcGclMjIlMEFpbWFnZSUyMCUzRCUyMEltYWdlLm9wZW4ocmVxdWVzdHMuZ2V0KHVybCUyQyUyMHN0cmVhbSUzRFRydWUpLnJhdyklMEElMEFpbnB1dHMlMjAlM0QlMjBwcm9jZXNzb3IoaW1hZ2VzJTNEaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQSUwQWltYWdlX2ZlYXR1cmVzJTIwJTNEJTIwbW9kZWwuZ2V0X2ltYWdlX2ZlYXR1cmVzKCoqaW5wdXRzKQ==",highlighted:`<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><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor, GroupViTModel

<span class="hljs-meta">&gt;&gt;&gt; </span>model = GroupViTModel.from_pretrained(<span class="hljs-string">&quot;nvidia/groupvit-gcc-yfcc&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;nvidia/groupvit-gcc-yfcc&quot;</span>)

<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>inputs = processor(images=image, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>image_features = model.get_image_features(**inputs)`}}),{c(){t=i("p"),t.textContent=m,r=d(),f(a.$$.fragment)},l(o){t=l(o,"P",{"data-svelte-h":!0}),M(t)!=="svelte-kvfsh7"&&(t.textContent=m),r=c(o),_(a.$$.fragment,o)},m(o,w){u(o,t,w),u(o,r,w),T(a,o,w),h=!0},p:G,i(o){h||(v(a.$$.fragment,o),h=!0)},o(o){y(a.$$.fragment,o),h=!1},d(o){o&&(n(t),n(r)),b(a,o)}}}function ca($){let t,m=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){t=i("p"),t.innerHTML=m},l(r){t=l(r,"P",{"data-svelte-h":!0}),M(t)!=="svelte-fincs2"&&(t.innerHTML=m)},m(r,a){u(r,t,a)},p:G,d(r){r&&n(t)}}}function pa($){let t,m="Examples:",r,a,h;return a=new Q({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMENMSVBUb2tlbml6ZXIlMkMlMjBHcm91cFZpVFRleHRNb2RlbCUwQSUwQXRva2VuaXplciUyMCUzRCUyMENMSVBUb2tlbml6ZXIuZnJvbV9wcmV0cmFpbmVkKCUyMm52aWRpYSUyRmdyb3Vwdml0LWdjYy15ZmNjJTIyKSUwQW1vZGVsJTIwJTNEJTIwR3JvdXBWaVRUZXh0TW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMm52aWRpYSUyRmdyb3Vwdml0LWdjYy15ZmNjJTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMHRva2VuaXplciglNUIlMjJhJTIwcGhvdG8lMjBvZiUyMGElMjBjYXQlMjIlMkMlMjAlMjJhJTIwcGhvdG8lMjBvZiUyMGElMjBkb2clMjIlNUQlMkMlMjBwYWRkaW5nJTNEVHJ1ZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBJTBBb3V0cHV0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzKSUwQWxhc3RfaGlkZGVuX3N0YXRlJTIwJTNEJTIwb3V0cHV0cy5sYXN0X2hpZGRlbl9zdGF0ZSUwQXBvb2xlZF9vdXRwdXQlMjAlM0QlMjBvdXRwdXRzLnBvb2xlcl9vdXRwdXQlMjAlMjAlMjMlMjBwb29sZWQlMjAoRU9TJTIwdG9rZW4pJTIwc3RhdGVz",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> CLIPTokenizer, GroupViTTextModel

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = CLIPTokenizer.from_pretrained(<span class="hljs-string">&quot;nvidia/groupvit-gcc-yfcc&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = GroupViTTextModel.from_pretrained(<span class="hljs-string">&quot;nvidia/groupvit-gcc-yfcc&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer([<span class="hljs-string">&quot;a photo of a cat&quot;</span>, <span class="hljs-string">&quot;a photo of a dog&quot;</span>], padding=<span class="hljs-literal">True</span>, 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_state = outputs.last_hidden_state
<span class="hljs-meta">&gt;&gt;&gt; </span>pooled_output = outputs.pooler_output  <span class="hljs-comment"># pooled (EOS token) states</span>`}}),{c(){t=i("p"),t.textContent=m,r=d(),f(a.$$.fragment)},l(o){t=l(o,"P",{"data-svelte-h":!0}),M(t)!=="svelte-kvfsh7"&&(t.textContent=m),r=c(o),_(a.$$.fragment,o)},m(o,w){u(o,t,w),u(o,r,w),T(a,o,w),h=!0},p:G,i(o){h||(v(a.$$.fragment,o),h=!0)},o(o){y(a.$$.fragment,o),h=!1},d(o){o&&(n(t),n(r)),b(a,o)}}}function ua($){let t,m=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){t=i("p"),t.innerHTML=m},l(r){t=l(r,"P",{"data-svelte-h":!0}),M(t)!=="svelte-fincs2"&&(t.innerHTML=m)},m(r,a){u(r,t,a)},p:G,d(r){r&&n(t)}}}function ma($){let t,m="Examples:",r,a,h;return a=new Q({props:{code:"ZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Byb2Nlc3NvciUyQyUyMEdyb3VwVmlUVmlzaW9uTW9kZWwlMEElMEFwcm9jZXNzb3IlMjAlM0QlMjBBdXRvUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJudmlkaWElMkZncm91cHZpdC1nY2MteWZjYyUyMiklMEFtb2RlbCUyMCUzRCUyMEdyb3VwVmlUVmlzaW9uTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMm52aWRpYSUyRmdyb3Vwdml0LWdjYy15ZmNjJTIyKSUwQSUwQXVybCUyMCUzRCUyMCUyMmh0dHAlM0ElMkYlMkZpbWFnZXMuY29jb2RhdGFzZXQub3JnJTJGdmFsMjAxNyUyRjAwMDAwMDAzOTc2OS5qcGclMjIlMEFpbWFnZSUyMCUzRCUyMEltYWdlLm9wZW4ocmVxdWVzdHMuZ2V0KHVybCUyQyUyMHN0cmVhbSUzRFRydWUpLnJhdyklMEElMEFpbnB1dHMlMjAlM0QlMjBwcm9jZXNzb3IoaW1hZ2VzJTNEaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyklMEFsYXN0X2hpZGRlbl9zdGF0ZSUyMCUzRCUyMG91dHB1dHMubGFzdF9oaWRkZW5fc3RhdGUlMEFwb29sZWRfb3V0cHV0JTIwJTNEJTIwb3V0cHV0cy5wb29sZXJfb3V0cHV0JTIwJTIwJTIzJTIwcG9vbGVkJTIwQ0xTJTIwc3RhdGVz",highlighted:`<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><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor, GroupViTVisionModel

<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;nvidia/groupvit-gcc-yfcc&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = GroupViTVisionModel.from_pretrained(<span class="hljs-string">&quot;nvidia/groupvit-gcc-yfcc&quot;</span>)

<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>inputs = 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_state = outputs.last_hidden_state
<span class="hljs-meta">&gt;&gt;&gt; </span>pooled_output = outputs.pooler_output  <span class="hljs-comment"># pooled CLS states</span>`}}),{c(){t=i("p"),t.textContent=m,r=d(),f(a.$$.fragment)},l(o){t=l(o,"P",{"data-svelte-h":!0}),M(t)!=="svelte-kvfsh7"&&(t.textContent=m),r=c(o),_(a.$$.fragment,o)},m(o,w){u(o,t,w),u(o,r,w),T(a,o,w),h=!0},p:G,i(o){h||(v(a.$$.fragment,o),h=!0)},o(o){y(a.$$.fragment,o),h=!1},d(o){o&&(n(t),n(r)),b(a,o)}}}function ha($){let t,m="TF 2.0 models accepts two formats as inputs:",r,a,h="<li>having all inputs as keyword arguments (like PyTorch models), or</li> <li>having all inputs as a list, tuple or dict in the first positional arguments.</li>",o,w,oe=`This second option is useful when using <code>tf.keras.Model.fit</code> method which currently requires having all the
tensors in the first argument of the model call function: <code>model(inputs)</code>.`,ve,z,Wo=`If you choose this second option, there are three possibilities you can use to gather all the input Tensors in the
first positional argument :`,se,C,D=`<li>a single Tensor with <code>input_ids</code> only and nothing else: <code>model(input_ids)</code></li> <li>a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
<code>model([input_ids, attention_mask])</code> or <code>model([input_ids, attention_mask, token_type_ids])</code></li> <li>a dictionary with one or several input Tensors associated to the input names given in the docstring:
<code>model({&quot;input_ids&quot;: input_ids, &quot;token_type_ids&quot;: token_type_ids})</code></li>`;return{c(){t=i("p"),t.textContent=m,r=d(),a=i("ul"),a.innerHTML=h,o=d(),w=i("p"),w.innerHTML=oe,ve=d(),z=i("p"),z.textContent=Wo,se=d(),C=i("ul"),C.innerHTML=D},l(x){t=l(x,"P",{"data-svelte-h":!0}),M(t)!=="svelte-ha0dwg"&&(t.textContent=m),r=c(x),a=l(x,"UL",{"data-svelte-h":!0}),M(a)!=="svelte-1ar3osv"&&(a.innerHTML=h),o=c(x),w=l(x,"P",{"data-svelte-h":!0}),M(w)!=="svelte-wrmwvd"&&(w.innerHTML=oe),ve=c(x),z=l(x,"P",{"data-svelte-h":!0}),M(z)!=="svelte-11o7mts"&&(z.textContent=Wo),se=c(x),C=l(x,"UL",{"data-svelte-h":!0}),M(C)!=="svelte-15scerc"&&(C.innerHTML=D)},m(x,J){u(x,t,J),u(x,r,J),u(x,a,J),u(x,o,J),u(x,w,J),u(x,ve,J),u(x,z,J),u(x,se,J),u(x,C,J)},p:G,d(x){x&&(n(t),n(r),n(a),n(o),n(w),n(ve),n(z),n(se),n(C))}}}function ga($){let t,m=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){t=i("p"),t.innerHTML=m},l(r){t=l(r,"P",{"data-svelte-h":!0}),M(t)!=="svelte-fincs2"&&(t.innerHTML=m)},m(r,a){u(r,t,a)},p:G,d(r){r&&n(t)}}}function fa($){let t,m="Examples:",r,a,h;return a=new Q({props:{code:"ZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Byb2Nlc3NvciUyQyUyMFRGR3JvdXBWaVRNb2RlbCUwQWltcG9ydCUyMHRlbnNvcmZsb3clMjBhcyUyMHRmJTBBJTBBbW9kZWwlMjAlM0QlMjBURkdyb3VwVmlUTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMm52aWRpYSUyRmdyb3Vwdml0LWdjYy15ZmNjJTIyKSUwQXByb2Nlc3NvciUyMCUzRCUyMEF1dG9Qcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMm52aWRpYSUyRmdyb3Vwdml0LWdjYy15ZmNjJTIyKSUwQSUwQXVybCUyMCUzRCUyMCUyMmh0dHAlM0ElMkYlMkZpbWFnZXMuY29jb2RhdGFzZXQub3JnJTJGdmFsMjAxNyUyRjAwMDAwMDAzOTc2OS5qcGclMjIlMEFpbWFnZSUyMCUzRCUyMEltYWdlLm9wZW4ocmVxdWVzdHMuZ2V0KHVybCUyQyUyMHN0cmVhbSUzRFRydWUpLnJhdyklMEElMEFpbnB1dHMlMjAlM0QlMjBwcm9jZXNzb3IoJTBBJTIwJTIwJTIwJTIwdGV4dCUzRCU1QiUyMmElMjBwaG90byUyMG9mJTIwYSUyMGNhdCUyMiUyQyUyMCUyMmElMjBwaG90byUyMG9mJTIwYSUyMGRvZyUyMiU1RCUyQyUyMGltYWdlcyUzRGltYWdlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJ0ZiUyMiUyQyUyMHBhZGRpbmclM0RUcnVlJTBBKSUwQSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyklMEFsb2dpdHNfcGVyX2ltYWdlJTIwJTNEJTIwb3V0cHV0cy5sb2dpdHNfcGVyX2ltYWdlJTIwJTIwJTIzJTIwdGhpcyUyMGlzJTIwdGhlJTIwaW1hZ2UtdGV4dCUyMHNpbWlsYXJpdHklMjBzY29yZSUwQXByb2JzJTIwJTNEJTIwdGYubWF0aC5zb2Z0bWF4KGxvZ2l0c19wZXJfaW1hZ2UlMkMlMjBheGlzJTNEMSklMjAlMjAlMjMlMjB3ZSUyMGNhbiUyMHRha2UlMjB0aGUlMjBzb2Z0bWF4JTIwdG8lMjBnZXQlMjB0aGUlMjBsYWJlbCUyMHByb2JhYmlsaXRpZXM=",highlighted:`<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><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor, TFGroupViTModel
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> tensorflow <span class="hljs-keyword">as</span> tf

<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFGroupViTModel.from_pretrained(<span class="hljs-string">&quot;nvidia/groupvit-gcc-yfcc&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;nvidia/groupvit-gcc-yfcc&quot;</span>)

<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>inputs = processor(
<span class="hljs-meta">... </span>    text=[<span class="hljs-string">&quot;a photo of a cat&quot;</span>, <span class="hljs-string">&quot;a photo of a dog&quot;</span>], images=image, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>, padding=<span class="hljs-literal">True</span>
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits_per_image = outputs.logits_per_image  <span class="hljs-comment"># this is the image-text similarity score</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>probs = tf.math.softmax(logits_per_image, axis=<span class="hljs-number">1</span>)  <span class="hljs-comment"># we can take the softmax to get the label probabilities</span>`}}),{c(){t=i("p"),t.textContent=m,r=d(),f(a.$$.fragment)},l(o){t=l(o,"P",{"data-svelte-h":!0}),M(t)!=="svelte-kvfsh7"&&(t.textContent=m),r=c(o),_(a.$$.fragment,o)},m(o,w){u(o,t,w),u(o,r,w),T(a,o,w),h=!0},p:G,i(o){h||(v(a.$$.fragment,o),h=!0)},o(o){y(a.$$.fragment,o),h=!1},d(o){o&&(n(t),n(r)),b(a,o)}}}function _a($){let t,m=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){t=i("p"),t.innerHTML=m},l(r){t=l(r,"P",{"data-svelte-h":!0}),M(t)!=="svelte-fincs2"&&(t.innerHTML=m)},m(r,a){u(r,t,a)},p:G,d(r){r&&n(t)}}}function Ta($){let t,m="Examples:",r,a,h;return a=new Q({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMENMSVBUb2tlbml6ZXIlMkMlMjBURkdyb3VwVmlUTW9kZWwlMEElMEFtb2RlbCUyMCUzRCUyMFRGR3JvdXBWaVRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIybnZpZGlhJTJGZ3JvdXB2aXQtZ2NjLXlmY2MlMjIpJTBBdG9rZW5pemVyJTIwJTNEJTIwQ0xJUFRva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIybnZpZGlhJTJGZ3JvdXB2aXQtZ2NjLXlmY2MlMjIpJTBBJTBBaW5wdXRzJTIwJTNEJTIwdG9rZW5pemVyKCU1QiUyMmElMjBwaG90byUyMG9mJTIwYSUyMGNhdCUyMiUyQyUyMCUyMmElMjBwaG90byUyMG9mJTIwYSUyMGRvZyUyMiU1RCUyQyUyMHBhZGRpbmclM0RUcnVlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJ0ZiUyMiklMEF0ZXh0X2ZlYXR1cmVzJTIwJTNEJTIwbW9kZWwuZ2V0X3RleHRfZmVhdHVyZXMoKippbnB1dHMp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> CLIPTokenizer, TFGroupViTModel

<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFGroupViTModel.from_pretrained(<span class="hljs-string">&quot;nvidia/groupvit-gcc-yfcc&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = CLIPTokenizer.from_pretrained(<span class="hljs-string">&quot;nvidia/groupvit-gcc-yfcc&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer([<span class="hljs-string">&quot;a photo of a cat&quot;</span>, <span class="hljs-string">&quot;a photo of a dog&quot;</span>], padding=<span class="hljs-literal">True</span>, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>text_features = model.get_text_features(**inputs)`}}),{c(){t=i("p"),t.textContent=m,r=d(),f(a.$$.fragment)},l(o){t=l(o,"P",{"data-svelte-h":!0}),M(t)!=="svelte-kvfsh7"&&(t.textContent=m),r=c(o),_(a.$$.fragment,o)},m(o,w){u(o,t,w),u(o,r,w),T(a,o,w),h=!0},p:G,i(o){h||(v(a.$$.fragment,o),h=!0)},o(o){y(a.$$.fragment,o),h=!1},d(o){o&&(n(t),n(r)),b(a,o)}}}function va($){let t,m=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){t=i("p"),t.innerHTML=m},l(r){t=l(r,"P",{"data-svelte-h":!0}),M(t)!=="svelte-fincs2"&&(t.innerHTML=m)},m(r,a){u(r,t,a)},p:G,d(r){r&&n(t)}}}function ya($){let t,m="Examples:",r,a,h;return a=new Q({props:{code:"ZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Byb2Nlc3NvciUyQyUyMFRGR3JvdXBWaVRNb2RlbCUwQSUwQW1vZGVsJTIwJTNEJTIwVEZHcm91cFZpVE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJudmlkaWElMkZncm91cHZpdC1nY2MteWZjYyUyMiklMEFwcm9jZXNzb3IlMjAlM0QlMjBBdXRvUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJudmlkaWElMkZncm91cHZpdC1nY2MteWZjYyUyMiklMEElMEF1cmwlMjAlM0QlMjAlMjJodHRwJTNBJTJGJTJGaW1hZ2VzLmNvY29kYXRhc2V0Lm9yZyUyRnZhbDIwMTclMkYwMDAwMDAwMzk3NjkuanBnJTIyJTBBaW1hZ2UlMjAlM0QlMjBJbWFnZS5vcGVuKHJlcXVlc3RzLmdldCh1cmwlMkMlMjBzdHJlYW0lM0RUcnVlKS5yYXcpJTBBJTBBaW5wdXRzJTIwJTNEJTIwcHJvY2Vzc29yKGltYWdlcyUzRGltYWdlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJ0ZiUyMiklMEElMEFpbWFnZV9mZWF0dXJlcyUyMCUzRCUyMG1vZGVsLmdldF9pbWFnZV9mZWF0dXJlcygqKmlucHV0cyk=",highlighted:`<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><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor, TFGroupViTModel

<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFGroupViTModel.from_pretrained(<span class="hljs-string">&quot;nvidia/groupvit-gcc-yfcc&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;nvidia/groupvit-gcc-yfcc&quot;</span>)

<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>inputs = processor(images=image, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>image_features = model.get_image_features(**inputs)`}}),{c(){t=i("p"),t.textContent=m,r=d(),f(a.$$.fragment)},l(o){t=l(o,"P",{"data-svelte-h":!0}),M(t)!=="svelte-kvfsh7"&&(t.textContent=m),r=c(o),_(a.$$.fragment,o)},m(o,w){u(o,t,w),u(o,r,w),T(a,o,w),h=!0},p:G,i(o){h||(v(a.$$.fragment,o),h=!0)},o(o){y(a.$$.fragment,o),h=!1},d(o){o&&(n(t),n(r)),b(a,o)}}}function ba($){let t,m=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){t=i("p"),t.innerHTML=m},l(r){t=l(r,"P",{"data-svelte-h":!0}),M(t)!=="svelte-fincs2"&&(t.innerHTML=m)},m(r,a){u(r,t,a)},p:G,d(r){r&&n(t)}}}function Ma($){let t,m="Examples:",r,a,h;return a=new Q({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMENMSVBUb2tlbml6ZXIlMkMlMjBURkdyb3VwVmlUVGV4dE1vZGVsJTBBJTBBdG9rZW5pemVyJTIwJTNEJTIwQ0xJUFRva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIybnZpZGlhJTJGZ3JvdXB2aXQtZ2NjLXlmY2MlMjIpJTBBbW9kZWwlMjAlM0QlMjBURkdyb3VwVmlUVGV4dE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJudmlkaWElMkZncm91cHZpdC1nY2MteWZjYyUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjB0b2tlbml6ZXIoJTVCJTIyYSUyMHBob3RvJTIwb2YlMjBhJTIwY2F0JTIyJTJDJTIwJTIyYSUyMHBob3RvJTIwb2YlMjBhJTIwZG9nJTIyJTVEJTJDJTIwcGFkZGluZyUzRFRydWUlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnRmJTIyKSUwQSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyklMEFsYXN0X2hpZGRlbl9zdGF0ZSUyMCUzRCUyMG91dHB1dHMubGFzdF9oaWRkZW5fc3RhdGUlMEFwb29sZWRfb3V0cHV0JTIwJTNEJTIwb3V0cHV0cy5wb29sZXJfb3V0cHV0JTIwJTIwJTIzJTIwcG9vbGVkJTIwKEVPUyUyMHRva2VuKSUyMHN0YXRlcw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> CLIPTokenizer, TFGroupViTTextModel

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = CLIPTokenizer.from_pretrained(<span class="hljs-string">&quot;nvidia/groupvit-gcc-yfcc&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFGroupViTTextModel.from_pretrained(<span class="hljs-string">&quot;nvidia/groupvit-gcc-yfcc&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer([<span class="hljs-string">&quot;a photo of a cat&quot;</span>, <span class="hljs-string">&quot;a photo of a dog&quot;</span>], padding=<span class="hljs-literal">True</span>, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>last_hidden_state = outputs.last_hidden_state
<span class="hljs-meta">&gt;&gt;&gt; </span>pooled_output = outputs.pooler_output  <span class="hljs-comment"># pooled (EOS token) states</span>`}}),{c(){t=i("p"),t.textContent=m,r=d(),f(a.$$.fragment)},l(o){t=l(o,"P",{"data-svelte-h":!0}),M(t)!=="svelte-kvfsh7"&&(t.textContent=m),r=c(o),_(a.$$.fragment,o)},m(o,w){u(o,t,w),u(o,r,w),T(a,o,w),h=!0},p:G,i(o){h||(v(a.$$.fragment,o),h=!0)},o(o){y(a.$$.fragment,o),h=!1},d(o){o&&(n(t),n(r)),b(a,o)}}}function wa($){let t,m=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){t=i("p"),t.innerHTML=m},l(r){t=l(r,"P",{"data-svelte-h":!0}),M(t)!=="svelte-fincs2"&&(t.innerHTML=m)},m(r,a){u(r,t,a)},p:G,d(r){r&&n(t)}}}function Va($){let t,m="Examples:",r,a,h;return a=new Q({props:{code:"ZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Byb2Nlc3NvciUyQyUyMFRGR3JvdXBWaVRWaXNpb25Nb2RlbCUwQSUwQXByb2Nlc3NvciUyMCUzRCUyMEF1dG9Qcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMm52aWRpYSUyRmdyb3Vwdml0LWdjYy15ZmNjJTIyKSUwQW1vZGVsJTIwJTNEJTIwVEZHcm91cFZpVFZpc2lvbk1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJudmlkaWElMkZncm91cHZpdC1nY2MteWZjYyUyMiklMEElMEF1cmwlMjAlM0QlMjAlMjJodHRwJTNBJTJGJTJGaW1hZ2VzLmNvY29kYXRhc2V0Lm9yZyUyRnZhbDIwMTclMkYwMDAwMDAwMzk3NjkuanBnJTIyJTBBaW1hZ2UlMjAlM0QlMjBJbWFnZS5vcGVuKHJlcXVlc3RzLmdldCh1cmwlMkMlMjBzdHJlYW0lM0RUcnVlKS5yYXcpJTBBJTBBaW5wdXRzJTIwJTNEJTIwcHJvY2Vzc29yKGltYWdlcyUzRGltYWdlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJ0ZiUyMiklMEElMEFvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpJTBBbGFzdF9oaWRkZW5fc3RhdGUlMjAlM0QlMjBvdXRwdXRzLmxhc3RfaGlkZGVuX3N0YXRlJTBBcG9vbGVkX291dHB1dCUyMCUzRCUyMG91dHB1dHMucG9vbGVyX291dHB1dCUyMCUyMCUyMyUyMHBvb2xlZCUyMENMUyUyMHN0YXRlcw==",highlighted:`<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><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor, TFGroupViTVisionModel

<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;nvidia/groupvit-gcc-yfcc&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFGroupViTVisionModel.from_pretrained(<span class="hljs-string">&quot;nvidia/groupvit-gcc-yfcc&quot;</span>)

<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>inputs = processor(images=image, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>last_hidden_state = outputs.last_hidden_state
<span class="hljs-meta">&gt;&gt;&gt; </span>pooled_output = outputs.pooler_output  <span class="hljs-comment"># pooled CLS states</span>`}}),{c(){t=i("p"),t.textContent=m,r=d(),f(a.$$.fragment)},l(o){t=l(o,"P",{"data-svelte-h":!0}),M(t)!=="svelte-kvfsh7"&&(t.textContent=m),r=c(o),_(a.$$.fragment,o)},m(o,w){u(o,t,w),u(o,r,w),T(a,o,w),h=!0},p:G,i(o){h||(v(a.$$.fragment,o),h=!0)},o(o){y(a.$$.fragment,o),h=!1},d(o){o&&(n(t),n(r)),b(a,o)}}}function $a($){let t,m,r,a,h,o,w,oe,ve,z,Wo="GroupViT",se,C,D,x,J,Pn,oo,er="Overview",sn,ct,tr=`The GroupViT model was proposed in <a href="https://arxiv.org/abs/2202.11094" rel="nofollow">GroupViT: Semantic Segmentation Emerges from Text Supervision</a> by Jiarui Xu, Shalini De Mello, Sifei Liu, Wonmin Byeon, Thomas Breuel, Jan Kautz, Xiaolong Wang.
Inspired by <a href="clip">CLIP</a>, GroupViT is a vision-language model that can perform zero-shot semantic segmentation on any given vocabulary categories.`,rn,pt,or="The abstract from the paper is the following:",an,ut,nr="<em>Grouping and recognition are important components of visual scene understanding, e.g., for object detection and semantic segmentation. With end-to-end deep learning systems, grouping of image regions usually happens implicitly via top-down supervision from pixel-level recognition labels. Instead, in this paper, we propose to bring back the grouping mechanism into deep networks, which allows semantic segments to emerge automatically with only text supervision. We propose a hierarchical Grouping Vision Transformer (GroupViT), which goes beyond the regular grid structure representation and learns to group image regions into progressively larger arbitrary-shaped segments. We train GroupViT jointly with a text encoder on a large-scale image-text dataset via contrastive losses. With only text supervision and without any pixel-level annotations, GroupViT learns to group together semantic regions and successfully transfers to the task of semantic segmentation in a zero-shot manner, i.e., without any further fine-tuning. It achieves a zero-shot accuracy of 52.3% mIoU on the PASCAL VOC 2012 and 22.4% mIoU on PASCAL Context datasets, and performs competitively to state-of-the-art transfer-learning methods requiring greater levels of supervision.</em>",ln,mt,sr="Tips:",dn,ht,rr="<li>You may specify <code>output_segmentation=True</code> in the forward of <code>GroupViTModel</code> to get the segmentation logits of input texts.</li>",cn,gt,ar=`This model was contributed by <a href="https://huggingface.co/xvjiarui" rel="nofollow">xvjiarui</a>. The TensorFlow version was contributed by <a href="https://huggingface.co/ariG23498" rel="nofollow">ariG23498</a> with the help of <a href="https://huggingface.co/ydshieh" rel="nofollow">Yih-Dar SHIEH</a>, <a href="https://huggingface.co/amyeroberts" rel="nofollow">Amy Roberts</a>, and <a href="https://huggingface.co/joaogante" rel="nofollow">Joao Gante</a>.
The original code can be found <a href="https://github.com/NVlabs/GroupViT" rel="nofollow">here</a>.`,pn,re,ye,Io,ft,qn,no,ir="Resources",un,_t,lr="A list of official Hugging Face and community (indicated by 🌎) resources to help you get started with GroupViT.",mn,Tt,dr='<li>The quickest way to get started with GroupViT is by checking the <a href="https://github.com/xvjiarui/GroupViT/blob/main/demo/GroupViT_hf_inference_notebook.ipynb" rel="nofollow">example notebooks</a> (which showcase zero-shot segmentation inference).</li> <li>One can also check out the <a href="https://huggingface.co/spaces/xvjiarui/GroupViT" rel="nofollow">HuggingFace Spaces demo</a> to play with GroupViT.</li>',hn,ae,be,Fo,vt,Ln,so,cr="GroupViTConfig",gn,I,yt,Sn,ro,pr=`<a href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.GroupViTConfig">GroupViTConfig</a> is the configuration class to store the configuration of a <a href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.GroupViTModel">GroupViTModel</a>. It is used to
instantiate a GroupViT model according to the specified arguments, defining the text model and vision model
configs. Instantiating a configuration with the defaults will yield a similar configuration to that of the GroupViT
<a href="https://huggingface.co/nvidia/groupvit-gcc-yfcc" rel="nofollow">nvidia/groupvit-gcc-yfcc</a> architecture.`,Xn,ao,ur=`Configuration objects inherit from <a href="/docs/transformers/v4.33.3/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> and can be used to control the model outputs. Read the
documentation from <a href="/docs/transformers/v4.33.3/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,An,Me,bt,Yn,io,mr=`Instantiate a <a href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.GroupViTConfig">GroupViTConfig</a> (or a derived class) from groupvit text model configuration and groupvit
vision model configuration.`,fn,ie,we,Zo,Mt,Qn,lo,hr="GroupViTTextConfig",_n,F,wt,Dn,co,gr=`This is the configuration class to store the configuration of a <a href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.GroupViTTextModel">GroupViTTextModel</a>. It is used to instantiate an
GroupViT 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 GroupViT
<a href="https://huggingface.co/nvidia/groupvit-gcc-yfcc" rel="nofollow">nvidia/groupvit-gcc-yfcc</a> architecture.`,On,po,fr=`Configuration objects inherit from <a href="/docs/transformers/v4.33.3/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> and can be used to control the model outputs. Read the
documentation from <a href="/docs/transformers/v4.33.3/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,Kn,Ve,Tn,le,$e,Eo,Vt,es,uo,_r="GroupViTVisionConfig",vn,Z,$t,ts,mo,Tr=`This is the configuration class to store the configuration of a <a href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.GroupViTVisionModel">GroupViTVisionModel</a>. It is used to instantiate
an GroupViT 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 GroupViT
<a href="https://huggingface.co/nvidia/groupvit-gcc-yfcc" rel="nofollow">nvidia/groupvit-gcc-yfcc</a> architecture.`,os,ho,vr=`Configuration objects inherit from <a href="/docs/transformers/v4.33.3/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> and can be used to control the model outputs. Read the
documentation from <a href="/docs/transformers/v4.33.3/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,ns,xe,yn,de,Ge,Ho,xt,ss,go,yr="GroupViTModel",bn,U,Gt,rs,fo,br=`This model is a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`,as,E,kt,is,_o,Mr='The <a href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.GroupViTModel">GroupViTModel</a> forward method, overrides the <code>__call__</code> special method.',ls,ke,ds,je,cs,H,jt,ps,To,wr='The <a href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.GroupViTModel">GroupViTModel</a> forward method, overrides the <code>__call__</code> special method.',us,Ce,ms,Je,hs,R,Ct,gs,vo,Vr='The <a href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.GroupViTModel">GroupViTModel</a> forward method, overrides the <code>__call__</code> special method.',fs,Ue,_s,ze,Mn,ce,We,Ro,Jt,Ts,yo,$r="GroupViTTextModel",wn,pe,Ut,vs,B,zt,ys,bo,xr='The <a href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.GroupViTTextModel">GroupViTTextModel</a> forward method, overrides the <code>__call__</code> special method.',bs,Ie,Ms,Fe,Vn,ue,Ze,Bo,Wt,ws,Mo,Gr="GroupViTVisionModel",$n,me,It,Vs,N,Ft,$s,wo,kr='The <a href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.GroupViTVisionModel">GroupViTVisionModel</a> forward method, overrides the <code>__call__</code> special method.',xs,Ee,Gs,He,xn,he,Re,No,Zt,ks,Vo,jr="TFGroupViTModel",Gn,j,Et,js,$o,Cr=`This model inherits from <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>. 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.)`,Cs,xo,Jr=`This model is also a <a href="https://www.tensorflow.org/api_docs/python/tf/keras/Model" rel="nofollow">tf.keras.Model</a> subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`,Js,Be,Us,P,Ht,zs,Go,Ur='The <a href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.TFGroupViTModel">TFGroupViTModel</a> forward method, overrides the <code>__call__</code> special method.',Ws,Ne,Is,Pe,Fs,q,Rt,Zs,ko,zr='The <a href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.TFGroupViTModel">TFGroupViTModel</a> forward method, overrides the <code>__call__</code> special method.',Es,qe,Hs,Le,Rs,L,Bt,Bs,jo,Wr='The <a href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.TFGroupViTModel">TFGroupViTModel</a> forward method, overrides the <code>__call__</code> special method.',Ns,Se,Ps,Xe,kn,ge,Ae,Po,Nt,qs,Co,Ir="TFGroupViTTextModel",jn,fe,Pt,Ls,S,qt,Ss,Jo,Fr='The <a href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.TFGroupViTTextModel">TFGroupViTTextModel</a> forward method, overrides the <code>__call__</code> special method.',Xs,Ye,As,Qe,Cn,_e,De,qo,Lt,Ys,Uo,Zr="TFGroupViTVisionModel",Jn,Te,St,Qs,X,Xt,Ds,zo,Er='The <a href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.TFGroupViTVisionModel">TFGroupViTVisionModel</a> forward method, overrides the <code>__call__</code> special method.',Os,Oe,Ks,Ke,Un,Lo,zn;return oe=new A({}),J=new A({}),ft=new A({}),vt=new A({}),yt=new k({props:{name:"class transformers.GroupViTConfig",anchor:"transformers.GroupViTConfig",parameters:[{name:"text_config",val:" = None"},{name:"vision_config",val:" = None"},{name:"projection_dim",val:" = 256"},{name:"projection_intermediate_dim",val:" = 4096"},{name:"logit_scale_init_value",val:" = 2.6592"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.GroupViTConfig.text_config",description:`<strong>text_config</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Dictionary of configuration options used to initialize <a href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.GroupViTTextConfig">GroupViTTextConfig</a>.`,name:"text_config"},{anchor:"transformers.GroupViTConfig.vision_config",description:`<strong>vision_config</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Dictionary of configuration options used to initialize <a href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.GroupViTVisionConfig">GroupViTVisionConfig</a>.`,name:"vision_config"},{anchor:"transformers.GroupViTConfig.projection_dim",description:`<strong>projection_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 256) &#x2014;
Dimentionality of text and vision projection layers.`,name:"projection_dim"},{anchor:"transformers.GroupViTConfig.projection_intermediate_dim",description:`<strong>projection_intermediate_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 4096) &#x2014;
Dimentionality of intermediate layer of text and vision projection layers.`,name:"projection_intermediate_dim"},{anchor:"transformers.GroupViTConfig.logit_scale_init_value",description:`<strong>logit_scale_init_value</strong> (<code>float</code>, <em>optional</em>, defaults to 2.6592) &#x2014;
The inital value of the <em>logit_scale</em> parameter. Default is used as per the original GroupViT
implementation.`,name:"logit_scale_init_value"},{anchor:"transformers.GroupViTConfig.kwargs",description:`<strong>kwargs</strong> (<em>optional</em>) &#x2014;
Dictionary of keyword arguments.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/groupvit/configuration_groupvit.py#L271"}}),bt=new k({props:{name:"from_text_vision_configs",anchor:"transformers.GroupViTConfig.from_text_vision_configs",parameters:[{name:"text_config",val:": GroupViTTextConfig"},{name:"vision_config",val:": GroupViTVisionConfig"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/groupvit/configuration_groupvit.py#L396",returnDescription:`
<p>An instance of a configuration object</p>
`,returnType:`
<p><a
  href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.GroupViTConfig"
>GroupViTConfig</a></p>
`}}),Mt=new A({}),wt=new k({props:{name:"class transformers.GroupViTTextConfig",anchor:"transformers.GroupViTTextConfig",parameters:[{name:"vocab_size",val:" = 49408"},{name:"hidden_size",val:" = 256"},{name:"intermediate_size",val:" = 1024"},{name:"num_hidden_layers",val:" = 12"},{name:"num_attention_heads",val:" = 4"},{name:"max_position_embeddings",val:" = 77"},{name:"hidden_act",val:" = 'quick_gelu'"},{name:"layer_norm_eps",val:" = 1e-05"},{name:"dropout",val:" = 0.0"},{name:"attention_dropout",val:" = 0.0"},{name:"initializer_range",val:" = 0.02"},{name:"initializer_factor",val:" = 1.0"},{name:"pad_token_id",val:" = 1"},{name:"bos_token_id",val:" = 49406"},{name:"eos_token_id",val:" = 49407"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.GroupViTTextConfig.vocab_size",description:`<strong>vocab_size</strong> (<code>int</code>, <em>optional</em>, defaults to 49408) &#x2014;
Vocabulary size of the GroupViT text model. Defines the number of different tokens that can be represented
by the <code>inputs_ids</code> passed when calling <a href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.GroupViTModel">GroupViTModel</a>.`,name:"vocab_size"},{anchor:"transformers.GroupViTTextConfig.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 256) &#x2014;
Dimensionality of the encoder layers and the pooler layer.`,name:"hidden_size"},{anchor:"transformers.GroupViTTextConfig.intermediate_size",description:`<strong>intermediate_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1024) &#x2014;
Dimensionality of the &#x201C;intermediate&#x201D; (i.e., feed-forward) layer in the Transformer encoder.`,name:"intermediate_size"},{anchor:"transformers.GroupViTTextConfig.num_hidden_layers",description:`<strong>num_hidden_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 12) &#x2014;
Number of hidden layers in the Transformer encoder.`,name:"num_hidden_layers"},{anchor:"transformers.GroupViTTextConfig.num_attention_heads",description:`<strong>num_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014;
Number of attention heads for each attention layer in the Transformer encoder.`,name:"num_attention_heads"},{anchor:"transformers.GroupViTTextConfig.max_position_embeddings",description:`<strong>max_position_embeddings</strong> (<code>int</code>, <em>optional</em>, defaults to 77) &#x2014;
The maximum sequence length that this model might ever be used with. Typically set this to something large
just in case (e.g., 512 or 1024 or 2048).`,name:"max_position_embeddings"},{anchor:"transformers.GroupViTTextConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code> or <code>function</code>, <em>optional</em>, defaults to <code>&quot;quick_gelu&quot;</code>) &#x2014;
The non-linear activation function (function or string) in the encoder and pooler. If string, <code>&quot;gelu&quot;</code>,
<code>&quot;relu&quot;</code>, <code>&quot;selu&quot;</code> and <code>&quot;gelu_new&quot;</code> \`<code>&quot;quick_gelu&quot;</code> are supported.`,name:"hidden_act"},{anchor:"transformers.GroupViTTextConfig.layer_norm_eps",description:`<strong>layer_norm_eps</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-5) &#x2014;
The epsilon used by the layer normalization layers.`,name:"layer_norm_eps"},{anchor:"transformers.GroupViTTextConfig.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.GroupViTTextConfig.dropout",description:`<strong>dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout probability for all fully connected layers in the embeddings, encoder, and pooler.`,name:"dropout"},{anchor:"transformers.GroupViTTextConfig.initializer_range",description:`<strong>initializer_range</strong> (<code>float</code>, <em>optional</em>, defaults to 0.02) &#x2014;
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.`,name:"initializer_range"},{anchor:"transformers.GroupViTTextConfig.initializer_factor",description:`<strong>initializer_factor</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014;
A factor for initializing all weight matrices (should be kept to 1, used internally for initialization
testing).`,name:"initializer_factor"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/groupvit/configuration_groupvit.py#L38"}}),Ve=new Y({props:{anchor:"transformers.GroupViTTextConfig.example",$$slots:{default:[oa]},$$scope:{ctx:$}}}),Vt=new A({}),$t=new k({props:{name:"class transformers.GroupViTVisionConfig",anchor:"transformers.GroupViTVisionConfig",parameters:[{name:"hidden_size",val:" = 384"},{name:"intermediate_size",val:" = 1536"},{name:"depths",val:" = [6, 3, 3]"},{name:"num_hidden_layers",val:" = 12"},{name:"num_group_tokens",val:" = [64, 8, 0]"},{name:"num_output_groups",val:" = [64, 8, 8]"},{name:"num_attention_heads",val:" = 6"},{name:"image_size",val:" = 224"},{name:"patch_size",val:" = 16"},{name:"num_channels",val:" = 3"},{name:"hidden_act",val:" = 'gelu'"},{name:"layer_norm_eps",val:" = 1e-05"},{name:"dropout",val:" = 0.0"},{name:"attention_dropout",val:" = 0.0"},{name:"initializer_range",val:" = 0.02"},{name:"initializer_factor",val:" = 1.0"},{name:"assign_eps",val:" = 1.0"},{name:"assign_mlp_ratio",val:" = [0.5, 4]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.GroupViTVisionConfig.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 384) &#x2014;
Dimensionality of the encoder layers and the pooler layer.`,name:"hidden_size"},{anchor:"transformers.GroupViTVisionConfig.intermediate_size",description:`<strong>intermediate_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1536) &#x2014;
Dimensionality of the &#x201C;intermediate&#x201D; (i.e., feed-forward) layer in the Transformer encoder.`,name:"intermediate_size"},{anchor:"transformers.GroupViTVisionConfig.depths",description:`<strong>depths</strong> (<code>List[int]</code>, <em>optional</em>, defaults to [6, 3, 3]) &#x2014;
The number of layers in each encoder block.`,name:"depths"},{anchor:"transformers.GroupViTVisionConfig.num_group_tokens",description:`<strong>num_group_tokens</strong> (<code>List[int]</code>, <em>optional</em>, defaults to [64, 8, 0]) &#x2014;
The number of group tokens for each stage.`,name:"num_group_tokens"},{anchor:"transformers.GroupViTVisionConfig.num_output_groups",description:`<strong>num_output_groups</strong> (<code>List[int]</code>, <em>optional</em>, defaults to [64, 8, 8]) &#x2014;
The number of output groups for each stage, 0 means no group.`,name:"num_output_groups"},{anchor:"transformers.GroupViTVisionConfig.num_attention_heads",description:`<strong>num_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 6) &#x2014;
Number of attention heads for each attention layer in the Transformer encoder.`,name:"num_attention_heads"},{anchor:"transformers.GroupViTVisionConfig.image_size",description:`<strong>image_size</strong> (<code>int</code>, <em>optional</em>, defaults to 224) &#x2014;
The size (resolution) of each image.`,name:"image_size"},{anchor:"transformers.GroupViTVisionConfig.patch_size",description:`<strong>patch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 16) &#x2014;
The size (resolution) of each patch.`,name:"patch_size"},{anchor:"transformers.GroupViTVisionConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code> or <code>function</code>, <em>optional</em>, defaults to <code>&quot;gelu&quot;</code>) &#x2014;
The non-linear activation function (function or string) in the encoder and pooler. If string, <code>&quot;gelu&quot;</code>,
<code>&quot;relu&quot;</code>, <code>&quot;selu&quot;</code> and <code>&quot;gelu_new&quot;</code> \`<code>&quot;quick_gelu&quot;</code> are supported.`,name:"hidden_act"},{anchor:"transformers.GroupViTVisionConfig.layer_norm_eps",description:`<strong>layer_norm_eps</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-5) &#x2014;
The epsilon used by the layer normalization layers.`,name:"layer_norm_eps"},{anchor:"transformers.GroupViTVisionConfig.dropout",description:`<strong>dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout probabilitiy for all fully connected layers in the embeddings, encoder, and pooler.`,name:"dropout"},{anchor:"transformers.GroupViTVisionConfig.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.GroupViTVisionConfig.initializer_range",description:`<strong>initializer_range</strong> (<code>float</code>, <em>optional</em>, defaults to 0.02) &#x2014;
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.`,name:"initializer_range"},{anchor:"transformers.GroupViTVisionConfig.initializer_factor",description:`<strong>initializer_factor</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014;
A factor for initializing all weight matrices (should be kept to 1, used internally for initialization
testing).`,name:"initializer_factor"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/groupvit/configuration_groupvit.py#L146"}}),xe=new Y({props:{anchor:"transformers.GroupViTVisionConfig.example",$$slots:{default:[na]},$$scope:{ctx:$}}}),xt=new A({}),Gt=new k({props:{name:"class transformers.GroupViTModel",anchor:"transformers.GroupViTModel",parameters:[{name:"config",val:": GroupViTConfig"}],parametersDescription:[{anchor:"transformers.GroupViTModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.GroupViTConfig">GroupViTConfig</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/groupvit/modeling_groupvit.py#L1346"}}),kt=new k({props:{name:"forward",anchor:"transformers.GroupViTModel.forward",parameters:[{name:"input_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"pixel_values",val:": typing.Optional[torch.FloatTensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"position_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"return_loss",val:": typing.Optional[bool] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"output_segmentation",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.GroupViTModel.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary. Padding will be ignored by default should you provide
it.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.33.3/en/model_doc/clip#transformers.CLIPTokenizer">CLIPTokenizer</a>. See <a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.GroupViTModel.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.GroupViTModel.forward.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.GroupViTModel.forward.pixel_values",description:`<strong>pixel_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Pixel values. Pixel values can be obtained using <a href="/docs/transformers/v4.33.3/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/v4.33.3/en/model_doc/mobilevit#transformers.MobileViTFeatureExtractor.__call__">CLIPImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.GroupViTModel.forward.return_loss",description:`<strong>return_loss</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the contrastive loss.`,name:"return_loss"},{anchor:"transformers.GroupViTModel.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.GroupViTModel.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.GroupViTModel.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/groupvit/modeling_groupvit.py#L1488",returnDescription:`
<p>A <code>transformers.models.groupvit.modeling_groupvit.GroupViTModelOutput</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 (<code>&lt;class 'transformers.models.groupvit.configuration_groupvit.GroupViTConfig'&gt;</code>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>return_loss</code> is <code>True</code>) — Contrastive loss for image-text similarity.</p>
</li>
<li>
<p><strong>logits_per_image</strong> (<code>torch.FloatTensor</code> of shape <code>(image_batch_size, text_batch_size)</code>) — The scaled dot product scores between <code>image_embeds</code> and <code>text_embeds</code>. This represents the image-text
similarity scores.</p>
</li>
<li>
<p><strong>logits_per_text</strong> (<code>torch.FloatTensor</code> of shape <code>(text_batch_size, image_batch_size)</code>) — The scaled dot product scores between <code>text_embeds</code> and <code>image_embeds</code>. This represents the text-image
similarity scores.</p>
</li>
<li>
<p><strong>segmentation_logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, config.num_labels, logits_height, logits_width)</code>) — Classification scores for each pixel.</p>
<Tip warning={true}>
<p>The logits returned do not necessarily have the same size as the <code>pixel_values</code> passed as inputs. This is
to avoid doing two interpolations and lose some quality when a user needs to resize the logits to the
original image size as post-processing. You should always check your logits shape and resize as needed.</p>
</Tip>
</li>
<li>
<p><strong>text_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, output_dim</code>) — The text embeddings obtained by applying the projection layer to the pooled output of
<a
  href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.GroupViTTextModel"
>GroupViTTextModel</a>.</p>
</li>
<li>
<p><strong>image_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, output_dim</code>) — The image embeddings obtained by applying the projection layer to the pooled output of
<a
  href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.GroupViTVisionModel"
>GroupViTVisionModel</a>.</p>
</li>
<li>
<p><strong>text_model_output</strong> (<code>BaseModelOutputWithPooling</code>) — The output of the <a
  href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.GroupViTTextModel"
>GroupViTTextModel</a>.</p>
</li>
<li>
<p><strong>vision_model_output</strong> (<code>BaseModelOutputWithPooling</code>) — The output of the <a
  href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.GroupViTVisionModel"
>GroupViTVisionModel</a>.</p>
</li>
</ul>
`,returnType:`
<p><code>transformers.models.groupvit.modeling_groupvit.GroupViTModelOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),ke=new te({props:{$$slots:{default:[sa]},$$scope:{ctx:$}}}),je=new Y({props:{anchor:"transformers.GroupViTModel.forward.example",$$slots:{default:[ra]},$$scope:{ctx:$}}}),jt=new k({props:{name:"get_text_features",anchor:"transformers.GroupViTModel.get_text_features",parameters:[{name:"input_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"position_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.GroupViTModel.get_text_features.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary. Padding will be ignored by default should you provide
it.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.33.3/en/model_doc/clip#transformers.CLIPTokenizer">CLIPTokenizer</a>. See <a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.GroupViTModel.get_text_features.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.GroupViTModel.get_text_features.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.GroupViTModel.get_text_features.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.GroupViTModel.get_text_features.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.GroupViTModel.get_text_features.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/groupvit/modeling_groupvit.py#L1392",returnDescription:`
<p>The text embeddings obtained by
applying the projection layer to the pooled output of <a
  href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.GroupViTTextModel"
>GroupViTTextModel</a>.</p>
`,returnType:`
<p>text_features (<code>torch.FloatTensor</code> of shape <code>(batch_size, output_dim</code>)</p>
`}}),Ce=new te({props:{$$slots:{default:[aa]},$$scope:{ctx:$}}}),Je=new Y({props:{anchor:"transformers.GroupViTModel.get_text_features.example",$$slots:{default:[ia]},$$scope:{ctx:$}}}),Ct=new k({props:{name:"get_image_features",anchor:"transformers.GroupViTModel.get_image_features",parameters:[{name:"pixel_values",val:": typing.Optional[torch.FloatTensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.GroupViTModel.get_image_features.pixel_values",description:`<strong>pixel_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Pixel values. Padding will be ignored by default should you provide it. Pixel values can be obtained using
<a href="/docs/transformers/v4.33.3/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See <a href="/docs/transformers/v4.33.3/en/model_doc/mobilevit#transformers.MobileViTFeatureExtractor.__call__">CLIPImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.GroupViTModel.get_image_features.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.GroupViTModel.get_image_features.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.GroupViTModel.get_image_features.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/groupvit/modeling_groupvit.py#L1439",returnDescription:`
<p>The image embeddings obtained by
applying the projection layer to the pooled output of <a
  href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.GroupViTVisionModel"
>GroupViTVisionModel</a>.</p>
`,returnType:`
<p>image_features (<code>torch.FloatTensor</code> of shape <code>(batch_size, output_dim</code>)</p>
`}}),Ue=new te({props:{$$slots:{default:[la]},$$scope:{ctx:$}}}),ze=new Y({props:{anchor:"transformers.GroupViTModel.get_image_features.example",$$slots:{default:[da]},$$scope:{ctx:$}}}),Jt=new A({}),Ut=new k({props:{name:"class transformers.GroupViTTextModel",anchor:"transformers.GroupViTTextModel",parameters:[{name:"config",val:": GroupViTTextConfig"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/groupvit/modeling_groupvit.py#L1182"}}),zt=new k({props:{name:"forward",anchor:"transformers.GroupViTTextModel.forward",parameters:[{name:"input_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"position_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.GroupViTTextModel.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary. Padding will be ignored by default should you provide
it.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.33.3/en/model_doc/clip#transformers.CLIPTokenizer">CLIPTokenizer</a>. See <a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.GroupViTTextModel.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.GroupViTTextModel.forward.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.GroupViTTextModel.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.GroupViTTextModel.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.GroupViTTextModel.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/groupvit/modeling_groupvit.py#L1197",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.modeling_outputs.BaseModelOutputWithPooling"
>transformers.modeling_outputs.BaseModelOutputWithPooling</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<code>&lt;class 'transformers.models.groupvit.configuration_groupvit.GroupViTTextConfig'&gt;</code>) and inputs.</p>
<ul>
<li>
<p><strong>last_hidden_state</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>) — Sequence of hidden-states at the output of the last layer of the model.</p>
</li>
<li>
<p><strong>pooler_output</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, hidden_size)</code>) — Last layer hidden-state of the first token of the sequence (classification token) after further processing
through the layers used for the auxiliary pretraining task. E.g. for BERT-family of models, this returns
the classification token after processing through a linear layer and a tanh activation function. The linear
layer weights are trained from the next sentence prediction (classification) objective during pretraining.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) — Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) — Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.modeling_outputs.BaseModelOutputWithPooling"
>transformers.modeling_outputs.BaseModelOutputWithPooling</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Ie=new te({props:{$$slots:{default:[ca]},$$scope:{ctx:$}}}),Fe=new Y({props:{anchor:"transformers.GroupViTTextModel.forward.example",$$slots:{default:[pa]},$$scope:{ctx:$}}}),Wt=new A({}),It=new k({props:{name:"class transformers.GroupViTVisionModel",anchor:"transformers.GroupViTVisionModel",parameters:[{name:"config",val:": GroupViTVisionConfig"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/groupvit/modeling_groupvit.py#L1293"}}),Ft=new k({props:{name:"forward",anchor:"transformers.GroupViTVisionModel.forward",parameters:[{name:"pixel_values",val:": typing.Optional[torch.FloatTensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.GroupViTVisionModel.forward.pixel_values",description:`<strong>pixel_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Pixel values. Padding will be ignored by default should you provide it. Pixel values can be obtained using
<a href="/docs/transformers/v4.33.3/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See <a href="/docs/transformers/v4.33.3/en/model_doc/mobilevit#transformers.MobileViTFeatureExtractor.__call__">CLIPImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.GroupViTVisionModel.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.GroupViTVisionModel.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.GroupViTVisionModel.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/groupvit/modeling_groupvit.py#L1306",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.modeling_outputs.BaseModelOutputWithPooling"
>transformers.modeling_outputs.BaseModelOutputWithPooling</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<code>&lt;class 'transformers.models.groupvit.configuration_groupvit.GroupViTVisionConfig'&gt;</code>) and inputs.</p>
<ul>
<li>
<p><strong>last_hidden_state</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>) — Sequence of hidden-states at the output of the last layer of the model.</p>
</li>
<li>
<p><strong>pooler_output</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, hidden_size)</code>) — Last layer hidden-state of the first token of the sequence (classification token) after further processing
through the layers used for the auxiliary pretraining task. E.g. for BERT-family of models, this returns
the classification token after processing through a linear layer and a tanh activation function. The linear
layer weights are trained from the next sentence prediction (classification) objective during pretraining.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) — Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) — Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.modeling_outputs.BaseModelOutputWithPooling"
>transformers.modeling_outputs.BaseModelOutputWithPooling</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Ee=new te({props:{$$slots:{default:[ua]},$$scope:{ctx:$}}}),He=new Y({props:{anchor:"transformers.GroupViTVisionModel.forward.example",$$slots:{default:[ma]},$$scope:{ctx:$}}}),Zt=new A({}),Et=new k({props:{name:"class transformers.TFGroupViTModel",anchor:"transformers.TFGroupViTModel",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFGroupViTModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.GroupViTConfig">GroupViTConfig</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/groupvit/modeling_tf_groupvit.py#L1728"}}),Be=new te({props:{$$slots:{default:[ha]},$$scope:{ctx:$}}}),Ht=new k({props:{name:"call",anchor:"transformers.TFGroupViTModel.call",parameters:[{name:"input_ids",val:": TFModelInputType | None = None"},{name:"pixel_values",val:": TFModelInputType | None = None"},{name:"attention_mask",val:": np.ndarray | tf.Tensor | None = None"},{name:"position_ids",val:": np.ndarray | tf.Tensor | None = None"},{name:"return_loss",val:": Optional[bool] = None"},{name:"output_attentions",val:": Optional[bool] = None"},{name:"output_hidden_states",val:": Optional[bool] = None"},{name:"output_segmentation",val:": Optional[bool] = None"},{name:"return_dict",val:": Optional[bool] = None"},{name:"training",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TFGroupViTModel.call.input_ids",description:`<strong>input_ids</strong> (<code>np.ndarray</code>, <code>tf.Tensor</code>, <code>List[tf.Tensor]</code> \`<code>Dict[str, tf.Tensor]</code> or <code>Dict[str, np.ndarray]</code> and each example must have the shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.33.3/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> and
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.TFGroupViTModel.call.pixel_values",description:`<strong>pixel_values</strong> (<code>np.ndarray</code>, <code>tf.Tensor</code>, <code>List[tf.Tensor]</code> <code>Dict[str, tf.Tensor]</code> or <code>Dict[str, np.ndarray]</code> and each example must have the shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Pixel values. Pixel values can be obtained using <a href="/docs/transformers/v4.33.3/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/v4.33.3/en/model_doc/mobilevit#transformers.MobileViTFeatureExtractor.__call__">CLIPImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.TFGroupViTModel.call.attention_mask",description:`<strong>attention_mask</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.TFGroupViTModel.call.position_ids",description:`<strong>position_ids</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.TFGroupViTModel.call.return_loss",description:`<strong>return_loss</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the contrastive loss.`,name:"return_loss"},{anchor:"transformers.TFGroupViTModel.call.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail. This argument can be used only in eager mode, in graph mode the value in the
config will be used instead.`,name:"output_attentions"},{anchor:"transformers.TFGroupViTModel.call.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail. This argument can be used only in eager mode, in graph mode the value in the config will be
used instead.`,name:"output_hidden_states"},{anchor:"transformers.TFGroupViTModel.call.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple. This argument can be used in
eager mode, in graph mode the value will always be set to True.`,name:"return_dict"},{anchor:"transformers.TFGroupViTModel.call.training",description:`<strong>training</strong> (<code>bool</code>, <em>optional</em>, defaults to \`False&#x201C;) &#x2014;
Whether or not to use the model in training mode (some modules like dropout modules have different
behaviors between training and evaluation).`,name:"training"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/groupvit/modeling_tf_groupvit.py#L1820",returnDescription:`
<p>A <code>transformers.models.groupvit.modeling_tf_groupvit.TFGroupViTModelOutput</code> or a tuple of <code>tf.Tensor</code> (if
<code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various elements depending on the
configuration (<code>&lt;class 'transformers.models.groupvit.configuration_groupvit.GroupViTConfig'&gt;</code>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>tf.Tensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>return_loss</code> is <code>True</code>) — Contrastive loss for image-text similarity.</p>
</li>
<li>
<p><strong>logits_per_image</strong> (<code>tf.Tensor</code> of shape <code>(image_batch_size, text_batch_size)</code>) — The scaled dot product scores between <code>image_embeds</code> and <code>text_embeds</code>. This represents the image-text
similarity scores.</p>
</li>
<li>
<p><strong>logits_per_text</strong> (<code>tf.Tensor</code> of shape <code>(text_batch_size, image_batch_size)</code>) — The scaled dot product scores between <code>text_embeds</code> and <code>image_embeds</code>. This represents the text-image
similarity scores.</p>
</li>
<li>
<p><strong>segmentation_logits</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, config.num_labels, logits_height, logits_width)</code>) — Classification scores for each pixel.</p>
<Tip warning={true}>
<p>The logits returned do not necessarily have the same size as the <code>pixel_values</code> passed as inputs. This is
to avoid doing two interpolations and lose some quality when a user needs to resize the logits to the
original image size as post-processing. You should always check your logits shape and resize as needed.</p>
</Tip>
</li>
<li>
<p><strong>text_embeds</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, output_dim</code>) — The text embeddings obtained by applying the projection layer to the pooled output of
<a
  href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.TFGroupViTTextModel"
>TFGroupViTTextModel</a>.</p>
</li>
<li>
<p><strong>image_embeds</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, output_dim</code>) — The image embeddings obtained by applying the projection layer to the pooled output of
<a
  href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.TFGroupViTVisionModel"
>TFGroupViTVisionModel</a>.</p>
</li>
<li>
<p><strong>text_model_output</strong> (<code>TFBaseModelOutputWithPooling</code>) — The output of the <a
  href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.TFGroupViTTextModel"
>TFGroupViTTextModel</a>.</p>
</li>
<li>
<p><strong>vision_model_output</strong> (<code>TFBaseModelOutputWithPooling</code>) — The output of the <a
  href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.TFGroupViTVisionModel"
>TFGroupViTVisionModel</a>.</p>
</li>
</ul>
`,returnType:`
<p><code>transformers.models.groupvit.modeling_tf_groupvit.TFGroupViTModelOutput</code> or <code>tuple(tf.Tensor)</code></p>
`}}),Ne=new te({props:{$$slots:{default:[ga]},$$scope:{ctx:$}}}),Pe=new Y({props:{anchor:"transformers.TFGroupViTModel.call.example",$$slots:{default:[fa]},$$scope:{ctx:$}}}),Rt=new k({props:{name:"get_text_features",anchor:"transformers.TFGroupViTModel.get_text_features",parameters:[{name:"input_ids",val:": TFModelInputType | None = None"},{name:"attention_mask",val:": np.ndarray | tf.Tensor | None = None"},{name:"position_ids",val:": np.ndarray | tf.Tensor | None = None"},{name:"output_attentions",val:": Optional[bool] = None"},{name:"output_hidden_states",val:": Optional[bool] = None"},{name:"return_dict",val:": Optional[bool] = None"},{name:"training",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TFGroupViTModel.get_text_features.input_ids",description:`<strong>input_ids</strong> (<code>np.ndarray</code>, <code>tf.Tensor</code>, <code>List[tf.Tensor]</code> \`<code>Dict[str, tf.Tensor]</code> or <code>Dict[str, np.ndarray]</code> and each example must have the shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.33.3/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> and
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.TFGroupViTModel.get_text_features.attention_mask",description:`<strong>attention_mask</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.TFGroupViTModel.get_text_features.position_ids",description:`<strong>position_ids</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.TFGroupViTModel.get_text_features.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail. This argument can be used only in eager mode, in graph mode the value in the
config will be used instead.`,name:"output_attentions"},{anchor:"transformers.TFGroupViTModel.get_text_features.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail. This argument can be used only in eager mode, in graph mode the value in the config will be
used instead.`,name:"output_hidden_states"},{anchor:"transformers.TFGroupViTModel.get_text_features.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple. This argument can be used in
eager mode, in graph mode the value will always be set to True.`,name:"return_dict"},{anchor:"transformers.TFGroupViTModel.get_text_features.training",description:`<strong>training</strong> (<code>bool</code>, <em>optional</em>, defaults to \`False&#x201C;) &#x2014;
Whether or not to use the model in training mode (some modules like dropout modules have different
behaviors between training and evaluation).`,name:"training"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/groupvit/modeling_tf_groupvit.py#L1736",returnDescription:`
<p>The text embeddings obtained by applying
the projection layer to the pooled output of <a
  href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.TFGroupViTTextModel"
>TFGroupViTTextModel</a>.</p>
`,returnType:`
<p>text_features (<code>tf.Tensor</code> of shape <code>(batch_size, output_dim</code>)</p>
`}}),qe=new te({props:{$$slots:{default:[_a]},$$scope:{ctx:$}}}),Le=new Y({props:{anchor:"transformers.TFGroupViTModel.get_text_features.example",$$slots:{default:[Ta]},$$scope:{ctx:$}}}),Bt=new k({props:{name:"get_image_features",anchor:"transformers.TFGroupViTModel.get_image_features",parameters:[{name:"pixel_values",val:": TFModelInputType | None = None"},{name:"output_attentions",val:": Optional[bool] = None"},{name:"output_hidden_states",val:": Optional[bool] = None"},{name:"return_dict",val:": Optional[bool] = None"},{name:"training",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TFGroupViTModel.get_image_features.pixel_values",description:`<strong>pixel_values</strong> (<code>np.ndarray</code>, <code>tf.Tensor</code>, <code>List[tf.Tensor]</code>, <code>Dict[str, tf.Tensor]</code> or <code>Dict[str, np.ndarray]</code> and each example must have the shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Pixel values. Pixel values can be obtained using <a href="/docs/transformers/v4.33.3/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/v4.33.3/en/model_doc/mobilevit#transformers.MobileViTFeatureExtractor.__call__">CLIPImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.TFGroupViTModel.get_image_features.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail. This argument can be used only in eager mode, in graph mode the value in the
config will be used instead.`,name:"output_attentions"},{anchor:"transformers.TFGroupViTModel.get_image_features.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail. This argument can be used only in eager mode, in graph mode the value in the config will be
used instead.`,name:"output_hidden_states"},{anchor:"transformers.TFGroupViTModel.get_image_features.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple. This argument can be used in
eager mode, in graph mode the value will always be set to True.`,name:"return_dict"},{anchor:"transformers.TFGroupViTModel.get_image_features.training",description:`<strong>training</strong> (<code>bool</code>, <em>optional</em>, defaults to \`False&#x201C;) &#x2014;
Whether or not to use the model in training mode (some modules like dropout modules have different
behaviors between training and evaluation).`,name:"training"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/groupvit/modeling_tf_groupvit.py#L1777",returnDescription:`
<p>The image embeddings obtained by applying
the projection layer to the pooled output of <a
  href="/docs/transformers/v4.33.3/en/model_doc/groupvit#transformers.TFGroupViTVisionModel"
>TFGroupViTVisionModel</a>.</p>
`,returnType:`
<p>image_features (<code>tf.Tensor</code> of shape <code>(batch_size, output_dim</code>)</p>
`}}),Se=new te({props:{$$slots:{default:[va]},$$scope:{ctx:$}}}),Xe=new Y({props:{anchor:"transformers.TFGroupViTModel.get_image_features.example",$$slots:{default:[ya]},$$scope:{ctx:$}}}),Nt=new A({}),Pt=new k({props:{name:"class transformers.TFGroupViTTextModel",anchor:"transformers.TFGroupViTTextModel",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/groupvit/modeling_tf_groupvit.py#L1620"}}),qt=new k({props:{name:"call",anchor:"transformers.TFGroupViTTextModel.call",parameters:[{name:"input_ids",val:": TFModelInputType | None = None"},{name:"attention_mask",val:": np.ndarray | tf.Tensor | None = None"},{name:"position_ids",val:": np.ndarray | tf.Tensor | None = None"},{name:"output_attentions",val:": Optional[bool] = None"},{name:"output_hidden_states",val:": Optional[bool] = None"},{name:"return_dict",val:": Optional[bool] = None"},{name:"training",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TFGroupViTTextModel.call.input_ids",description:`<strong>input_ids</strong> (<code>np.ndarray</code>, <code>tf.Tensor</code>, <code>List[tf.Tensor]</code> \`<code>Dict[str, tf.Tensor]</code> or <code>Dict[str, np.ndarray]</code> and each example must have the shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.33.3/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> and
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.TFGroupViTTextModel.call.attention_mask",description:`<strong>attention_mask</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.TFGroupViTTextModel.call.position_ids",description:`<strong>position_ids</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.TFGroupViTTextModel.call.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail. This argument can be used only in eager mode, in graph mode the value in the
config will be used instead.`,name:"output_attentions"},{anchor:"transformers.TFGroupViTTextModel.call.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail. This argument can be used only in eager mode, in graph mode the value in the config will be
used instead.`,name:"output_hidden_states"},{anchor:"transformers.TFGroupViTTextModel.call.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple. This argument can be used in
eager mode, in graph mode the value will always be set to True.`,name:"return_dict"},{anchor:"transformers.TFGroupViTTextModel.call.training",description:`<strong>training</strong> (<code>bool</code>, <em>optional</em>, defaults to \`False&#x201C;) &#x2014;
Whether or not to use the model in training mode (some modules like dropout modules have different
behaviors between training and evaluation).`,name:"training"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/groupvit/modeling_tf_groupvit.py#L1629",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.modeling_tf_outputs.TFBaseModelOutputWithPooling"
>transformers.modeling_tf_outputs.TFBaseModelOutputWithPooling</a> or a tuple of <code>tf.Tensor</code> (if
<code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various elements depending on the
configuration (<code>&lt;class 'transformers.models.groupvit.configuration_groupvit.GroupViTTextConfig'&gt;</code>) and inputs.</p>
<ul>
<li>
<p><strong>last_hidden_state</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>) — Sequence of hidden-states at the output of the last layer of the model.</p>
</li>
<li>
<p><strong>pooler_output</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, hidden_size)</code>) — Last layer hidden-state of the first token of the sequence (classification token) further processed by a
Linear layer and a Tanh activation function. The Linear layer weights are trained from the next sentence
prediction (classification) objective during pretraining.</p>
<p>This output is usually <em>not</em> a good summary of the semantic content of the input, you’re often better with
averaging or pooling the sequence of hidden-states for the whole input sequence.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) — Tuple of <code>tf.Tensor</code> (one for the output of the embeddings + one for the output of each layer) of shape
<code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) — Tuple of <code>tf.Tensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.modeling_tf_outputs.TFBaseModelOutputWithPooling"
>transformers.modeling_tf_outputs.TFBaseModelOutputWithPooling</a> or <code>tuple(tf.Tensor)</code></p>
`}}),Ye=new te({props:{$$slots:{default:[ba]},$$scope:{ctx:$}}}),Qe=new Y({props:{anchor:"transformers.TFGroupViTTextModel.call.example",$$slots:{default:[Ma]},$$scope:{ctx:$}}}),Lt=new A({}),St=new k({props:{name:"class transformers.TFGroupViTVisionModel",anchor:"transformers.TFGroupViTVisionModel",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/groupvit/modeling_tf_groupvit.py#L1673"}}),Xt=new k({props:{name:"call",anchor:"transformers.TFGroupViTVisionModel.call",parameters:[{name:"pixel_values",val:": TFModelInputType | None = None"},{name:"output_attentions",val:": Optional[bool] = None"},{name:"output_hidden_states",val:": Optional[bool] = None"},{name:"return_dict",val:": Optional[bool] = None"},{name:"training",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TFGroupViTVisionModel.call.pixel_values",description:`<strong>pixel_values</strong> (<code>np.ndarray</code>, <code>tf.Tensor</code>, <code>List[tf.Tensor]</code>, <code>Dict[str, tf.Tensor]</code> or <code>Dict[str, np.ndarray]</code> and each example must have the shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Pixel values. Pixel values can be obtained using <a href="/docs/transformers/v4.33.3/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/v4.33.3/en/model_doc/mobilevit#transformers.MobileViTFeatureExtractor.__call__">CLIPImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.TFGroupViTVisionModel.call.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail. This argument can be used only in eager mode, in graph mode the value in the
config will be used instead.`,name:"output_attentions"},{anchor:"transformers.TFGroupViTVisionModel.call.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail. This argument can be used only in eager mode, in graph mode the value in the config will be
used instead.`,name:"output_hidden_states"},{anchor:"transformers.TFGroupViTVisionModel.call.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple. This argument can be used in
eager mode, in graph mode the value will always be set to True.`,name:"return_dict"},{anchor:"transformers.TFGroupViTVisionModel.call.training",description:`<strong>training</strong> (<code>bool</code>, <em>optional</em>, defaults to \`False&#x201C;) &#x2014;
Whether or not to use the model in training mode (some modules like dropout modules have different
behaviors between training and evaluation).`,name:"training"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/groupvit/modeling_tf_groupvit.py#L1682",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.modeling_tf_outputs.TFBaseModelOutputWithPooling"
>transformers.modeling_tf_outputs.TFBaseModelOutputWithPooling</a> or a tuple of <code>tf.Tensor</code> (if
<code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various elements depending on the
configuration (<code>&lt;class 'transformers.models.groupvit.configuration_groupvit.GroupViTVisionConfig'&gt;</code>) and inputs.</p>
<ul>
<li>
<p><strong>last_hidden_state</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>) — Sequence of hidden-states at the output of the last layer of the model.</p>
</li>
<li>
<p><strong>pooler_output</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, hidden_size)</code>) — Last layer hidden-state of the first token of the sequence (classification token) further processed by a
Linear layer and a Tanh activation function. The Linear layer weights are trained from the next sentence
prediction (classification) objective during pretraining.</p>
<p>This output is usually <em>not</em> a good summary of the semantic content of the input, you’re often better with
averaging or pooling the sequence of hidden-states for the whole input sequence.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) — Tuple of <code>tf.Tensor</code> (one for the output of the embeddings + one for the output of each layer) of shape
<code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) — Tuple of <code>tf.Tensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.modeling_tf_outputs.TFBaseModelOutputWithPooling"
>transformers.modeling_tf_outputs.TFBaseModelOutputWithPooling</a> or <code>tuple(tf.Tensor)</code></p>
`}}),Oe=new te({props:{$$slots:{default:[wa]},$$scope:{ctx:$}}}),Ke=new Y({props:{anchor:"transformers.TFGroupViTVisionModel.call.example",$$slots:{default:[Va]},$$scope:{ctx:$}}}),{c(){t=i("meta"),m=d(),r=i("p"),a=d(),h=i("h1"),o=i("a"),w=i("span"),f(oe.$$.fragment),ve=d(),z=i("span"),z.textContent=Wo,se=d(),C=i("h2"),D=i("a"),x=i("span"),f(J.$$.fragment),Pn=d(),oo=i("span"),oo.textContent=er,sn=d(),ct=i("p"),ct.innerHTML=tr,rn=d(),pt=i("p"),pt.textContent=or,an=d(),ut=i("p"),ut.innerHTML=nr,ln=d(),mt=i("p"),mt.textContent=sr,dn=d(),ht=i("ul"),ht.innerHTML=rr,cn=d(),gt=i("p"),gt.innerHTML=ar,pn=d(),re=i("h2"),ye=i("a"),Io=i("span"),f(ft.$$.fragment),qn=d(),no=i("span"),no.textContent=ir,un=d(),_t=i("p"),_t.textContent=lr,mn=d(),Tt=i("ul"),Tt.innerHTML=dr,hn=d(),ae=i("h2"),be=i("a"),Fo=i("span"),f(vt.$$.fragment),Ln=d(),so=i("span"),so.textContent=cr,gn=d(),I=i("div"),f(yt.$$.fragment),Sn=d(),ro=i("p"),ro.innerHTML=pr,Xn=d(),ao=i("p"),ao.innerHTML=ur,An=d(),Me=i("div"),f(bt.$$.fragment),Yn=d(),io=i("p"),io.innerHTML=mr,fn=d(),ie=i("h2"),we=i("a"),Zo=i("span"),f(Mt.$$.fragment),Qn=d(),lo=i("span"),lo.textContent=hr,_n=d(),F=i("div"),f(wt.$$.fragment),Dn=d(),co=i("p"),co.innerHTML=gr,On=d(),po=i("p"),po.innerHTML=fr,Kn=d(),f(Ve.$$.fragment),Tn=d(),le=i("h2"),$e=i("a"),Eo=i("span"),f(Vt.$$.fragment),es=d(),uo=i("span"),uo.textContent=_r,vn=d(),Z=i("div"),f($t.$$.fragment),ts=d(),mo=i("p"),mo.innerHTML=Tr,os=d(),ho=i("p"),ho.innerHTML=vr,ns=d(),f(xe.$$.fragment),yn=d(),de=i("h2"),Ge=i("a"),Ho=i("span"),f(xt.$$.fragment),ss=d(),go=i("span"),go.textContent=yr,bn=d(),U=i("div"),f(Gt.$$.fragment),rs=d(),fo=i("p"),fo.innerHTML=br,as=d(),E=i("div"),f(kt.$$.fragment),is=d(),_o=i("p"),_o.innerHTML=Mr,ls=d(),f(ke.$$.fragment),ds=d(),f(je.$$.fragment),cs=d(),H=i("div"),f(jt.$$.fragment),ps=d(),To=i("p"),To.innerHTML=wr,us=d(),f(Ce.$$.fragment),ms=d(),f(Je.$$.fragment),hs=d(),R=i("div"),f(Ct.$$.fragment),gs=d(),vo=i("p"),vo.innerHTML=Vr,fs=d(),f(Ue.$$.fragment),_s=d(),f(ze.$$.fragment),Mn=d(),ce=i("h2"),We=i("a"),Ro=i("span"),f(Jt.$$.fragment),Ts=d(),yo=i("span"),yo.textContent=$r,wn=d(),pe=i("div"),f(Ut.$$.fragment),vs=d(),B=i("div"),f(zt.$$.fragment),ys=d(),bo=i("p"),bo.innerHTML=xr,bs=d(),f(Ie.$$.fragment),Ms=d(),f(Fe.$$.fragment),Vn=d(),ue=i("h2"),Ze=i("a"),Bo=i("span"),f(Wt.$$.fragment),ws=d(),Mo=i("span"),Mo.textContent=Gr,$n=d(),me=i("div"),f(It.$$.fragment),Vs=d(),N=i("div"),f(Ft.$$.fragment),$s=d(),wo=i("p"),wo.innerHTML=kr,xs=d(),f(Ee.$$.fragment),Gs=d(),f(He.$$.fragment),xn=d(),he=i("h2"),Re=i("a"),No=i("span"),f(Zt.$$.fragment),ks=d(),Vo=i("span"),Vo.textContent=jr,Gn=d(),j=i("div"),f(Et.$$.fragment),js=d(),$o=i("p"),$o.innerHTML=Cr,Cs=d(),xo=i("p"),xo.innerHTML=Jr,Js=d(),f(Be.$$.fragment),Us=d(),P=i("div"),f(Ht.$$.fragment),zs=d(),Go=i("p"),Go.innerHTML=Ur,Ws=d(),f(Ne.$$.fragment),Is=d(),f(Pe.$$.fragment),Fs=d(),q=i("div"),f(Rt.$$.fragment),Zs=d(),ko=i("p"),ko.innerHTML=zr,Es=d(),f(qe.$$.fragment),Hs=d(),f(Le.$$.fragment),Rs=d(),L=i("div"),f(Bt.$$.fragment),Bs=d(),jo=i("p"),jo.innerHTML=Wr,Ns=d(),f(Se.$$.fragment),Ps=d(),f(Xe.$$.fragment),kn=d(),ge=i("h2"),Ae=i("a"),Po=i("span"),f(Nt.$$.fragment),qs=d(),Co=i("span"),Co.textContent=Ir,jn=d(),fe=i("div"),f(Pt.$$.fragment),Ls=d(),S=i("div"),f(qt.$$.fragment),Ss=d(),Jo=i("p"),Jo.innerHTML=Fr,Xs=d(),f(Ye.$$.fragment),As=d(),f(Qe.$$.fragment),Cn=d(),_e=i("h2"),De=i("a"),qo=i("span"),f(Lt.$$.fragment),Ys=d(),Uo=i("span"),Uo.textContent=Zr,Jn=d(),Te=i("div"),f(St.$$.fragment),Qs=d(),X=i("div"),f(Xt.$$.fragment),Ds=d(),zo=i("p"),zo.innerHTML=Er,Os=d(),f(Oe.$$.fragment),Ks=d(),f(Ke.$$.fragment),Un=d(),Lo=i("p"),this.h()},l(e){const p=ta("svelte-1phssyn",document.head);t=l(p,"META",{name:!0,content:!0}),p.forEach(n),m=c(e),r=l(e,"P",{}),V(r).forEach(n),a=c(e),h=l(e,"H1",{class:!0});var At=V(h);o=l(At,"A",{id:!0,class:!0,href:!0});var So=V(o);w=l(So,"SPAN",{});var Xo=V(w);_(oe.$$.fragment,Xo),Xo.forEach(n),So.forEach(n),ve=c(At),z=l(At,"SPAN",{"data-svelte-h":!0}),M(z)!=="svelte-1ok0u3f"&&(z.textContent=Wo),At.forEach(n),se=c(e),C=l(e,"H2",{class:!0});var Yt=V(C);D=l(Yt,"A",{id:!0,class:!0,href:!0});var Ao=V(D);x=l(Ao,"SPAN",{});var Yo=V(x);_(J.$$.fragment,Yo),Yo.forEach(n),Ao.forEach(n),Pn=c(Yt),oo=l(Yt,"SPAN",{"data-svelte-h":!0}),M(oo)!=="svelte-1jsw1pg"&&(oo.textContent=er),Yt.forEach(n),sn=c(e),ct=l(e,"P",{"data-svelte-h":!0}),M(ct)!=="svelte-9ila0d"&&(ct.innerHTML=tr),rn=c(e),pt=l(e,"P",{"data-svelte-h":!0}),M(pt)!=="svelte-vfdo9a"&&(pt.textContent=or),an=c(e),ut=l(e,"P",{"data-svelte-h":!0}),M(ut)!=="svelte-15lxkm3"&&(ut.innerHTML=nr),ln=c(e),mt=l(e,"P",{"data-svelte-h":!0}),M(mt)!=="svelte-axv494"&&(mt.textContent=sr),dn=c(e),ht=l(e,"UL",{"data-svelte-h":!0}),M(ht)!=="svelte-1u8mcsj"&&(ht.innerHTML=rr),cn=c(e),gt=l(e,"P",{"data-svelte-h":!0}),M(gt)!=="svelte-1d5dihc"&&(gt.innerHTML=ar),pn=c(e),re=l(e,"H2",{class:!0});var Qt=V(re);ye=l(Qt,"A",{id:!0,class:!0,href:!0});var Qo=V(ye);Io=l(Qo,"SPAN",{});var Do=V(Io);_(ft.$$.fragment,Do),Do.forEach(n),Qo.forEach(n),qn=c(Qt),no=l(Qt,"SPAN",{"data-svelte-h":!0}),M(no)!=="svelte-w4zzv6"&&(no.textContent=ir),Qt.forEach(n),un=c(e),_t=l(e,"P",{"data-svelte-h":!0}),M(_t)!=="svelte-3razzh"&&(_t.textContent=lr),mn=c(e),Tt=l(e,"UL",{"data-svelte-h":!0}),M(Tt)!=="svelte-gxpanf"&&(Tt.innerHTML=dr),hn=c(e),ae=l(e,"H2",{class:!0});var Dt=V(ae);be=l(Dt,"A",{id:!0,class:!0,href:!0});var Oo=V(be);Fo=l(Oo,"SPAN",{});var Ko=V(Fo);_(vt.$$.fragment,Ko),Ko.forEach(n),Oo.forEach(n),Ln=c(Dt),so=l(Dt,"SPAN",{"data-svelte-h":!0}),M(so)!=="svelte-1cnsj95"&&(so.textContent=cr),Dt.forEach(n),gn=c(e),I=l(e,"DIV",{class:!0});var O=V(I);_(yt.$$.fragment,O),Sn=c(O),ro=l(O,"P",{"data-svelte-h":!0}),M(ro)!=="svelte-1hphs3h"&&(ro.innerHTML=pr),Xn=c(O),ao=l(O,"P",{"data-svelte-h":!0}),M(ao)!=="svelte-cfh5wl"&&(ao.innerHTML=ur),An=c(O),Me=l(O,"DIV",{class:!0});var Ot=V(Me);_(bt.$$.fragment,Ot),Yn=c(Ot),io=l(Ot,"P",{"data-svelte-h":!0}),M(io)!=="svelte-1ojza6i"&&(io.innerHTML=mr),Ot.forEach(n),O.forEach(n),fn=c(e),ie=l(e,"H2",{class:!0});var Kt=V(ie);we=l(Kt,"A",{id:!0,class:!0,href:!0});var en=V(we);Zo=l(en,"SPAN",{});var tn=V(Zo);_(Mt.$$.fragment,tn),tn.forEach(n),en.forEach(n),Qn=c(Kt),lo=l(Kt,"SPAN",{"data-svelte-h":!0}),M(lo)!=="svelte-1b8iqis"&&(lo.textContent=hr),Kt.forEach(n),_n=c(e),F=l(e,"DIV",{class:!0});var K=V(F);_(wt.$$.fragment,K),Dn=c(K),co=l(K,"P",{"data-svelte-h":!0}),M(co)!=="svelte-14xbel1"&&(co.innerHTML=gr),On=c(K),po=l(K,"P",{"data-svelte-h":!0}),M(po)!=="svelte-cfh5wl"&&(po.innerHTML=fr),Kn=c(K),_(Ve.$$.fragment,K),K.forEach(n),Tn=c(e),le=l(e,"H2",{class:!0});var eo=V(le);$e=l(eo,"A",{id:!0,class:!0,href:!0});var on=V($e);Eo=l(on,"SPAN",{});var nn=V(Eo);_(Vt.$$.fragment,nn),nn.forEach(n),on.forEach(n),es=c(eo),uo=l(eo,"SPAN",{"data-svelte-h":!0}),M(uo)!=="svelte-1fsm7px"&&(uo.textContent=_r),eo.forEach(n),vn=c(e),Z=l(e,"DIV",{class:!0});var ee=V(Z);_($t.$$.fragment,ee),ts=c(ee),mo=l(ee,"P",{"data-svelte-h":!0}),M(mo)!=="svelte-k75w89"&&(mo.innerHTML=Tr),os=c(ee),ho=l(ee,"P",{"data-svelte-h":!0}),M(ho)!=="svelte-cfh5wl"&&(ho.innerHTML=vr),ns=c(ee),_(xe.$$.fragment,ee),ee.forEach(n),yn=c(e),de=l(e,"H2",{class:!0});var to=V(de);Ge=l(to,"A",{id:!0,class:!0,href:!0});var Hr=V(Ge);Ho=l(Hr,"SPAN",{});var Rr=V(Ho);_(xt.$$.fragment,Rr),Rr.forEach(n),Hr.forEach(n),ss=c(to),go=l(to,"SPAN",{"data-svelte-h":!0}),M(go)!=="svelte-r9864"&&(go.textContent=yr),to.forEach(n),bn=c(e),U=l(e,"DIV",{class:!0});var ne=V(U);_(Gt.$$.fragment,ne),rs=c(ne),fo=l(ne,"P",{"data-svelte-h":!0}),M(fo)!=="svelte-1gjh92c"&&(fo.innerHTML=br),as=c(ne),E=l(ne,"DIV",{class:!0});var et=V(E);_(kt.$$.fragment,et),is=c(et),_o=l(et,"P",{"data-svelte-h":!0}),M(_o)!=="svelte-1n5vthr"&&(_o.innerHTML=Mr),ls=c(et),_(ke.$$.fragment,et),ds=c(et),_(je.$$.fragment,et),et.forEach(n),cs=c(ne),H=l(ne,"DIV",{class:!0});var tt=V(H);_(jt.$$.fragment,tt),ps=c(tt),To=l(tt,"P",{"data-svelte-h":!0}),M(To)!=="svelte-1n5vthr"&&(To.innerHTML=wr),us=c(tt),_(Ce.$$.fragment,tt),ms=c(tt),_(Je.$$.fragment,tt),tt.forEach(n),hs=c(ne),R=l(ne,"DIV",{class:!0});var ot=V(R);_(Ct.$$.fragment,ot),gs=c(ot),vo=l(ot,"P",{"data-svelte-h":!0}),M(vo)!=="svelte-1n5vthr"&&(vo.innerHTML=Vr),fs=c(ot),_(Ue.$$.fragment,ot),_s=c(ot),_(ze.$$.fragment,ot),ot.forEach(n),ne.forEach(n),Mn=c(e),ce=l(e,"H2",{class:!0});var Wn=V(ce);We=l(Wn,"A",{id:!0,class:!0,href:!0});var Br=V(We);Ro=l(Br,"SPAN",{});var Nr=V(Ro);_(Jt.$$.fragment,Nr),Nr.forEach(n),Br.forEach(n),Ts=c(Wn),yo=l(Wn,"SPAN",{"data-svelte-h":!0}),M(yo)!=="svelte-19d6tzt"&&(yo.textContent=$r),Wn.forEach(n),wn=c(e),pe=l(e,"DIV",{class:!0});var In=V(pe);_(Ut.$$.fragment,In),vs=c(In),B=l(In,"DIV",{class:!0});var nt=V(B);_(zt.$$.fragment,nt),ys=c(nt),bo=l(nt,"P",{"data-svelte-h":!0}),M(bo)!=="svelte-1iyeonn"&&(bo.innerHTML=xr),bs=c(nt),_(Ie.$$.fragment,nt),Ms=c(nt),_(Fe.$$.fragment,nt),nt.forEach(n),In.forEach(n),Vn=c(e),ue=l(e,"H2",{class:!0});var Fn=V(ue);Ze=l(Fn,"A",{id:!0,class:!0,href:!0});var Pr=V(Ze);Bo=l(Pr,"SPAN",{});var qr=V(Bo);_(Wt.$$.fragment,qr),qr.forEach(n),Pr.forEach(n),ws=c(Fn),Mo=l(Fn,"SPAN",{"data-svelte-h":!0}),M(Mo)!=="svelte-p6j890"&&(Mo.textContent=Gr),Fn.forEach(n),$n=c(e),me=l(e,"DIV",{class:!0});var Zn=V(me);_(It.$$.fragment,Zn),Vs=c(Zn),N=l(Zn,"DIV",{class:!0});var st=V(N);_(Ft.$$.fragment,st),$s=c(st),wo=l(st,"P",{"data-svelte-h":!0}),M(wo)!=="svelte-1rbb2ab"&&(wo.innerHTML=kr),xs=c(st),_(Ee.$$.fragment,st),Gs=c(st),_(He.$$.fragment,st),st.forEach(n),Zn.forEach(n),xn=c(e),he=l(e,"H2",{class:!0});var En=V(he);Re=l(En,"A",{id:!0,class:!0,href:!0});var Lr=V(Re);No=l(Lr,"SPAN",{});var Sr=V(No);_(Zt.$$.fragment,Sr),Sr.forEach(n),Lr.forEach(n),ks=c(En),Vo=l(En,"SPAN",{"data-svelte-h":!0}),M(Vo)!=="svelte-1tymcxu"&&(Vo.textContent=jr),En.forEach(n),Gn=c(e),j=l(e,"DIV",{class:!0});var W=V(j);_(Et.$$.fragment,W),js=c(W),$o=l(W,"P",{"data-svelte-h":!0}),M($o)!=="svelte-1e9g3w8"&&($o.innerHTML=Cr),Cs=c(W),xo=l(W,"P",{"data-svelte-h":!0}),M(xo)!=="svelte-1ivrf8m"&&(xo.innerHTML=Jr),Js=c(W),_(Be.$$.fragment,W),Us=c(W),P=l(W,"DIV",{class:!0});var rt=V(P);_(Ht.$$.fragment,rt),zs=c(rt),Go=l(rt,"P",{"data-svelte-h":!0}),M(Go)!=="svelte-p54kuf"&&(Go.innerHTML=Ur),Ws=c(rt),_(Ne.$$.fragment,rt),Is=c(rt),_(Pe.$$.fragment,rt),rt.forEach(n),Fs=c(W),q=l(W,"DIV",{class:!0});var at=V(q);_(Rt.$$.fragment,at),Zs=c(at),ko=l(at,"P",{"data-svelte-h":!0}),M(ko)!=="svelte-p54kuf"&&(ko.innerHTML=zr),Es=c(at),_(qe.$$.fragment,at),Hs=c(at),_(Le.$$.fragment,at),at.forEach(n),Rs=c(W),L=l(W,"DIV",{class:!0});var it=V(L);_(Bt.$$.fragment,it),Bs=c(it),jo=l(it,"P",{"data-svelte-h":!0}),M(jo)!=="svelte-p54kuf"&&(jo.innerHTML=Wr),Ns=c(it),_(Se.$$.fragment,it),Ps=c(it),_(Xe.$$.fragment,it),it.forEach(n),W.forEach(n),kn=c(e),ge=l(e,"H2",{class:!0});var Hn=V(ge);Ae=l(Hn,"A",{id:!0,class:!0,href:!0});var Xr=V(Ae);Po=l(Xr,"SPAN",{});var Ar=V(Po);_(Nt.$$.fragment,Ar),Ar.forEach(n),Xr.forEach(n),qs=c(Hn),Co=l(Hn,"SPAN",{"data-svelte-h":!0}),M(Co)!=="svelte-1iojkpb"&&(Co.textContent=Ir),Hn.forEach(n),jn=c(e),fe=l(e,"DIV",{class:!0});var Rn=V(fe);_(Pt.$$.fragment,Rn),Ls=c(Rn),S=l(Rn,"DIV",{class:!0});var lt=V(S);_(qt.$$.fragment,lt),Ss=c(lt),Jo=l(lt,"P",{"data-svelte-h":!0}),M(Jo)!=="svelte-1tsksgz"&&(Jo.innerHTML=Fr),Xs=c(lt),_(Ye.$$.fragment,lt),As=c(lt),_(Qe.$$.fragment,lt),lt.forEach(n),Rn.forEach(n),Cn=c(e),_e=l(e,"H2",{class:!0});var Bn=V(_e);De=l(Bn,"A",{id:!0,class:!0,href:!0});var Yr=V(De);qo=l(Yr,"SPAN",{});var Qr=V(qo);_(Lt.$$.fragment,Qr),Qr.forEach(n),Yr.forEach(n),Ys=c(Bn),Uo=l(Bn,"SPAN",{"data-svelte-h":!0}),M(Uo)!=="svelte-1ytgo2y"&&(Uo.textContent=Zr),Bn.forEach(n),Jn=c(e),Te=l(e,"DIV",{class:!0});var Nn=V(Te);_(St.$$.fragment,Nn),Qs=c(Nn),X=l(Nn,"DIV",{class:!0});var dt=V(X);_(Xt.$$.fragment,dt),Ds=c(dt),zo=l(dt,"P",{"data-svelte-h":!0}),M(zo)!=="svelte-17dqdfv"&&(zo.innerHTML=Er),Os=c(dt),_(Oe.$$.fragment,dt),Ks=c(dt),_(Ke.$$.fragment,dt),dt.forEach(n),Nn.forEach(n),Un=c(e),Lo=l(e,"P",{}),V(Lo).forEach(n),this.h()},h(){g(t,"name","hf:doc:metadata"),g(t,"content",JSON.stringify(xa)),g(o,"id","groupvit"),g(o,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),g(o,"href","#groupvit"),g(h,"class","relative group"),g(D,"id","overview"),g(D,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),g(D,"href","#overview"),g(C,"class","relative group"),g(ye,"id","resources"),g(ye,"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"),g(ye,"href","#resources"),g(re,"class","relative group"),g(be,"id","transformers.GroupViTConfig"),g(be,"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"),g(be,"href","#transformers.GroupViTConfig"),g(ae,"class","relative group"),g(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),g(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),g(we,"id","transformers.GroupViTTextConfig"),g(we,"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"),g(we,"href","#transformers.GroupViTTextConfig"),g(ie,"class","relative group"),g(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),g($e,"id","transformers.GroupViTVisionConfig"),g($e,"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"),g($e,"href","#transformers.GroupViTVisionConfig"),g(le,"class","relative group"),g(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),g(Ge,"id","transformers.GroupViTModel"),g(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"),g(Ge,"href","#transformers.GroupViTModel"),g(de,"class","relative group"),g(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),g(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),g(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),g(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),g(We,"id","transformers.GroupViTTextModel"),g(We,"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"),g(We,"href","#transformers.GroupViTTextModel"),g(ce,"class","relative group"),g(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),g(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),g(Ze,"id","transformers.GroupViTVisionModel"),g(Ze,"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"),g(Ze,"href","#transformers.GroupViTVisionModel"),g(ue,"class","relative group"),g(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),g(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),g(Re,"id","transformers.TFGroupViTModel"),g(Re,"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"),g(Re,"href","#transformers.TFGroupViTModel"),g(he,"class","relative group"),g(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),g(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),g(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),g(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),g(Ae,"id","transformers.TFGroupViTTextModel"),g(Ae,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),g(Ae,"href","#transformers.TFGroupViTTextModel"),g(ge,"class","relative group"),g(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),g(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),g(De,"id","transformers.TFGroupViTVisionModel"),g(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"),g(De,"href","#transformers.TFGroupViTVisionModel"),g(_e,"class","relative group"),g(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),g(Te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,p){s(document.head,t),u(e,m,p),u(e,r,p),u(e,a,p),u(e,h,p),s(h,o),s(o,w),T(oe,w,null),s(h,ve),s(h,z),u(e,se,p),u(e,C,p),s(C,D),s(D,x),T(J,x,null),s(C,Pn),s(C,oo),u(e,sn,p),u(e,ct,p),u(e,rn,p),u(e,pt,p),u(e,an,p),u(e,ut,p),u(e,ln,p),u(e,mt,p),u(e,dn,p),u(e,ht,p),u(e,cn,p),u(e,gt,p),u(e,pn,p),u(e,re,p),s(re,ye),s(ye,Io),T(ft,Io,null),s(re,qn),s(re,no),u(e,un,p),u(e,_t,p),u(e,mn,p),u(e,Tt,p),u(e,hn,p),u(e,ae,p),s(ae,be),s(be,Fo),T(vt,Fo,null),s(ae,Ln),s(ae,so),u(e,gn,p),u(e,I,p),T(yt,I,null),s(I,Sn),s(I,ro),s(I,Xn),s(I,ao),s(I,An),s(I,Me),T(bt,Me,null),s(Me,Yn),s(Me,io),u(e,fn,p),u(e,ie,p),s(ie,we),s(we,Zo),T(Mt,Zo,null),s(ie,Qn),s(ie,lo),u(e,_n,p),u(e,F,p),T(wt,F,null),s(F,Dn),s(F,co),s(F,On),s(F,po),s(F,Kn),T(Ve,F,null),u(e,Tn,p),u(e,le,p),s(le,$e),s($e,Eo),T(Vt,Eo,null),s(le,es),s(le,uo),u(e,vn,p),u(e,Z,p),T($t,Z,null),s(Z,ts),s(Z,mo),s(Z,os),s(Z,ho),s(Z,ns),T(xe,Z,null),u(e,yn,p),u(e,de,p),s(de,Ge),s(Ge,Ho),T(xt,Ho,null),s(de,ss),s(de,go),u(e,bn,p),u(e,U,p),T(Gt,U,null),s(U,rs),s(U,fo),s(U,as),s(U,E),T(kt,E,null),s(E,is),s(E,_o),s(E,ls),T(ke,E,null),s(E,ds),T(je,E,null),s(U,cs),s(U,H),T(jt,H,null),s(H,ps),s(H,To),s(H,us),T(Ce,H,null),s(H,ms),T(Je,H,null),s(U,hs),s(U,R),T(Ct,R,null),s(R,gs),s(R,vo),s(R,fs),T(Ue,R,null),s(R,_s),T(ze,R,null),u(e,Mn,p),u(e,ce,p),s(ce,We),s(We,Ro),T(Jt,Ro,null),s(ce,Ts),s(ce,yo),u(e,wn,p),u(e,pe,p),T(Ut,pe,null),s(pe,vs),s(pe,B),T(zt,B,null),s(B,ys),s(B,bo),s(B,bs),T(Ie,B,null),s(B,Ms),T(Fe,B,null),u(e,Vn,p),u(e,ue,p),s(ue,Ze),s(Ze,Bo),T(Wt,Bo,null),s(ue,ws),s(ue,Mo),u(e,$n,p),u(e,me,p),T(It,me,null),s(me,Vs),s(me,N),T(Ft,N,null),s(N,$s),s(N,wo),s(N,xs),T(Ee,N,null),s(N,Gs),T(He,N,null),u(e,xn,p),u(e,he,p),s(he,Re),s(Re,No),T(Zt,No,null),s(he,ks),s(he,Vo),u(e,Gn,p),u(e,j,p),T(Et,j,null),s(j,js),s(j,$o),s(j,Cs),s(j,xo),s(j,Js),T(Be,j,null),s(j,Us),s(j,P),T(Ht,P,null),s(P,zs),s(P,Go),s(P,Ws),T(Ne,P,null),s(P,Is),T(Pe,P,null),s(j,Fs),s(j,q),T(Rt,q,null),s(q,Zs),s(q,ko),s(q,Es),T(qe,q,null),s(q,Hs),T(Le,q,null),s(j,Rs),s(j,L),T(Bt,L,null),s(L,Bs),s(L,jo),s(L,Ns),T(Se,L,null),s(L,Ps),T(Xe,L,null),u(e,kn,p),u(e,ge,p),s(ge,Ae),s(Ae,Po),T(Nt,Po,null),s(ge,qs),s(ge,Co),u(e,jn,p),u(e,fe,p),T(Pt,fe,null),s(fe,Ls),s(fe,S),T(qt,S,null),s(S,Ss),s(S,Jo),s(S,Xs),T(Ye,S,null),s(S,As),T(Qe,S,null),u(e,Cn,p),u(e,_e,p),s(_e,De),s(De,qo),T(Lt,qo,null),s(_e,Ys),s(_e,Uo),u(e,Jn,p),u(e,Te,p),T(St,Te,null),s(Te,Qs),s(Te,X),T(Xt,X,null),s(X,Ds),s(X,zo),s(X,Os),T(Oe,X,null),s(X,Ks),T(Ke,X,null),u(e,Un,p),u(e,Lo,p),zn=!0},p(e,[p]){const At={};p&2&&(At.$$scope={dirty:p,ctx:e}),Ve.$set(At);const So={};p&2&&(So.$$scope={dirty:p,ctx:e}),xe.$set(So);const Xo={};p&2&&(Xo.$$scope={dirty:p,ctx:e}),ke.$set(Xo);const Yt={};p&2&&(Yt.$$scope={dirty:p,ctx:e}),je.$set(Yt);const Ao={};p&2&&(Ao.$$scope={dirty:p,ctx:e}),Ce.$set(Ao);const Yo={};p&2&&(Yo.$$scope={dirty:p,ctx:e}),Je.$set(Yo);const Qt={};p&2&&(Qt.$$scope={dirty:p,ctx:e}),Ue.$set(Qt);const Qo={};p&2&&(Qo.$$scope={dirty:p,ctx:e}),ze.$set(Qo);const Do={};p&2&&(Do.$$scope={dirty:p,ctx:e}),Ie.$set(Do);const Dt={};p&2&&(Dt.$$scope={dirty:p,ctx:e}),Fe.$set(Dt);const Oo={};p&2&&(Oo.$$scope={dirty:p,ctx:e}),Ee.$set(Oo);const Ko={};p&2&&(Ko.$$scope={dirty:p,ctx:e}),He.$set(Ko);const O={};p&2&&(O.$$scope={dirty:p,ctx:e}),Be.$set(O);const Ot={};p&2&&(Ot.$$scope={dirty:p,ctx:e}),Ne.$set(Ot);const Kt={};p&2&&(Kt.$$scope={dirty:p,ctx:e}),Pe.$set(Kt);const en={};p&2&&(en.$$scope={dirty:p,ctx:e}),qe.$set(en);const tn={};p&2&&(tn.$$scope={dirty:p,ctx:e}),Le.$set(tn);const K={};p&2&&(K.$$scope={dirty:p,ctx:e}),Se.$set(K);const eo={};p&2&&(eo.$$scope={dirty:p,ctx:e}),Xe.$set(eo);const on={};p&2&&(on.$$scope={dirty:p,ctx:e}),Ye.$set(on);const nn={};p&2&&(nn.$$scope={dirty:p,ctx:e}),Qe.$set(nn);const ee={};p&2&&(ee.$$scope={dirty:p,ctx:e}),Oe.$set(ee);const to={};p&2&&(to.$$scope={dirty:p,ctx:e}),Ke.$set(to)},i(e){zn||(v(oe.$$.fragment,e),v(J.$$.fragment,e),v(ft.$$.fragment,e),v(vt.$$.fragment,e),v(yt.$$.fragment,e),v(bt.$$.fragment,e),v(Mt.$$.fragment,e),v(wt.$$.fragment,e),v(Ve.$$.fragment,e),v(Vt.$$.fragment,e),v($t.$$.fragment,e),v(xe.$$.fragment,e),v(xt.$$.fragment,e),v(Gt.$$.fragment,e),v(kt.$$.fragment,e),v(ke.$$.fragment,e),v(je.$$.fragment,e),v(jt.$$.fragment,e),v(Ce.$$.fragment,e),v(Je.$$.fragment,e),v(Ct.$$.fragment,e),v(Ue.$$.fragment,e),v(ze.$$.fragment,e),v(Jt.$$.fragment,e),v(Ut.$$.fragment,e),v(zt.$$.fragment,e),v(Ie.$$.fragment,e),v(Fe.$$.fragment,e),v(Wt.$$.fragment,e),v(It.$$.fragment,e),v(Ft.$$.fragment,e),v(Ee.$$.fragment,e),v(He.$$.fragment,e),v(Zt.$$.fragment,e),v(Et.$$.fragment,e),v(Be.$$.fragment,e),v(Ht.$$.fragment,e),v(Ne.$$.fragment,e),v(Pe.$$.fragment,e),v(Rt.$$.fragment,e),v(qe.$$.fragment,e),v(Le.$$.fragment,e),v(Bt.$$.fragment,e),v(Se.$$.fragment,e),v(Xe.$$.fragment,e),v(Nt.$$.fragment,e),v(Pt.$$.fragment,e),v(qt.$$.fragment,e),v(Ye.$$.fragment,e),v(Qe.$$.fragment,e),v(Lt.$$.fragment,e),v(St.$$.fragment,e),v(Xt.$$.fragment,e),v(Oe.$$.fragment,e),v(Ke.$$.fragment,e),zn=!0)},o(e){y(oe.$$.fragment,e),y(J.$$.fragment,e),y(ft.$$.fragment,e),y(vt.$$.fragment,e),y(yt.$$.fragment,e),y(bt.$$.fragment,e),y(Mt.$$.fragment,e),y(wt.$$.fragment,e),y(Ve.$$.fragment,e),y(Vt.$$.fragment,e),y($t.$$.fragment,e),y(xe.$$.fragment,e),y(xt.$$.fragment,e),y(Gt.$$.fragment,e),y(kt.$$.fragment,e),y(ke.$$.fragment,e),y(je.$$.fragment,e),y(jt.$$.fragment,e),y(Ce.$$.fragment,e),y(Je.$$.fragment,e),y(Ct.$$.fragment,e),y(Ue.$$.fragment,e),y(ze.$$.fragment,e),y(Jt.$$.fragment,e),y(Ut.$$.fragment,e),y(zt.$$.fragment,e),y(Ie.$$.fragment,e),y(Fe.$$.fragment,e),y(Wt.$$.fragment,e),y(It.$$.fragment,e),y(Ft.$$.fragment,e),y(Ee.$$.fragment,e),y(He.$$.fragment,e),y(Zt.$$.fragment,e),y(Et.$$.fragment,e),y(Be.$$.fragment,e),y(Ht.$$.fragment,e),y(Ne.$$.fragment,e),y(Pe.$$.fragment,e),y(Rt.$$.fragment,e),y(qe.$$.fragment,e),y(Le.$$.fragment,e),y(Bt.$$.fragment,e),y(Se.$$.fragment,e),y(Xe.$$.fragment,e),y(Nt.$$.fragment,e),y(Pt.$$.fragment,e),y(qt.$$.fragment,e),y(Ye.$$.fragment,e),y(Qe.$$.fragment,e),y(Lt.$$.fragment,e),y(St.$$.fragment,e),y(Xt.$$.fragment,e),y(Oe.$$.fragment,e),y(Ke.$$.fragment,e),zn=!1},d(e){e&&(n(m),n(r),n(a),n(h),n(se),n(C),n(sn),n(ct),n(rn),n(pt),n(an),n(ut),n(ln),n(mt),n(dn),n(ht),n(cn),n(gt),n(pn),n(re),n(un),n(_t),n(mn),n(Tt),n(hn),n(ae),n(gn),n(I),n(fn),n(ie),n(_n),n(F),n(Tn),n(le),n(vn),n(Z),n(yn),n(de),n(bn),n(U),n(Mn),n(ce),n(wn),n(pe),n(Vn),n(ue),n($n),n(me),n(xn),n(he),n(Gn),n(j),n(kn),n(ge),n(jn),n(fe),n(Cn),n(_e),n(Jn),n(Te),n(Un),n(Lo)),n(t),b(oe),b(J),b(ft),b(vt),b(yt),b(bt),b(Mt),b(wt),b(Ve),b(Vt),b($t),b(xe),b(xt),b(Gt),b(kt),b(ke),b(je),b(jt),b(Ce),b(Je),b(Ct),b(Ue),b(ze),b(Jt),b(Ut),b(zt),b(Ie),b(Fe),b(Wt),b(It),b(Ft),b(Ee),b(He),b(Zt),b(Et),b(Be),b(Ht),b(Ne),b(Pe),b(Rt),b(qe),b(Le),b(Bt),b(Se),b(Xe),b(Nt),b(Pt),b(qt),b(Ye),b(Qe),b(Lt),b(St),b(Xt),b(Oe),b(Ke)}}}const xa={local:"groupvit",sections:[{local:"overview",title:"Overview"},{local:"resources",title:"Resources"},{local:"transformers.GroupViTConfig",title:"GroupViTConfig"},{local:"transformers.GroupViTTextConfig",title:"GroupViTTextConfig"},{local:"transformers.GroupViTVisionConfig",title:"GroupViTVisionConfig"},{local:"transformers.GroupViTModel",title:"GroupViTModel"},{local:"transformers.GroupViTTextModel",title:"GroupViTTextModel"},{local:"transformers.GroupViTVisionModel",title:"GroupViTVisionModel"},{local:"transformers.TFGroupViTModel",title:"TFGroupViTModel"},{local:"transformers.TFGroupViTTextModel",title:"TFGroupViTTextModel"},{local:"transformers.TFGroupViTVisionModel",title:"TFGroupViTVisionModel"}],title:"GroupViT"};function Ga($){return Or(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ia extends Kr{constructor(t){super(),ea(this,t,Ga,$a,Dr,{})}}export{Ia as component};
