import{s as Xc,o as Ac,n as J}from"../chunks/scheduler.9bc65507.js";import{S as Qc,i as Yc,g as r,s as l,u,A as Dc,h as a,f as n,c as i,j as y,v as g,y as f,k as h,o as t,a as m,w as _,d as b,t as v,x as T}from"../chunks/index.78c82d43.js";import{T as P}from"../chunks/Tip.87d55b76.js";import{D as x}from"../chunks/Docstring.4e7352e2.js";import{C as H}from"../chunks/CodeBlock.73e038be.js";import{I as j}from"../chunks/IconCopyLink.bedaa44d.js";import{E as V}from"../chunks/ExampleCodeBlock.872b014d.js";function Oc(B){let o,M="Example:",d,p,w;return p=new H({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEJsaXBDb25maWclMkMlMjBCbGlwTW9kZWwlMEElMEElMjMlMjBJbml0aWFsaXppbmclMjBhJTIwQmxpcENvbmZpZyUyMHdpdGglMjBTYWxlc2ZvcmNlJTJGYmxpcC12cWEtYmFzZSUyMHN0eWxlJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBCbGlwQ29uZmlnKCklMEElMEElMjMlMjBJbml0aWFsaXppbmclMjBhJTIwQmxpcFBNb2RlbCUyMCh3aXRoJTIwcmFuZG9tJTIwd2VpZ2h0cyklMjBmcm9tJTIwdGhlJTIwU2FsZXNmb3JjZSUyRmJsaXAtdnFhLWJhc2UlMjBzdHlsZSUyMGNvbmZpZ3VyYXRpb24lMEFtb2RlbCUyMCUzRCUyMEJsaXBNb2RlbChjb25maWd1cmF0aW9uKSUwQSUwQSUyMyUyMEFjY2Vzc2luZyUyMHRoZSUyMG1vZGVsJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBtb2RlbC5jb25maWclMEElMEElMjMlMjBXZSUyMGNhbiUyMGFsc28lMjBpbml0aWFsaXplJTIwYSUyMEJsaXBDb25maWclMjBmcm9tJTIwYSUyMEJsaXBUZXh0Q29uZmlnJTIwYW5kJTIwYSUyMEJsaXBWaXNpb25Db25maWclMEElMEElMjMlMjBJbml0aWFsaXppbmclMjBhJTIwQkxJUFRleHQlMjBhbmQlMjBCTElQVmlzaW9uJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ190ZXh0JTIwJTNEJTIwQmxpcFRleHRDb25maWcoKSUwQWNvbmZpZ192aXNpb24lMjAlM0QlMjBCbGlwVmlzaW9uQ29uZmlnKCklMEElMEFjb25maWclMjAlM0QlMjBCbGlwQ29uZmlnLmZyb21fdGV4dF92aXNpb25fY29uZmlncyhjb25maWdfdGV4dCUyQyUyMGNvbmZpZ192aXNpb24p",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> BlipConfig, BlipModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a BlipConfig with Salesforce/blip-vqa-base style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = BlipConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a BlipPModel (with random weights) from the Salesforce/blip-vqa-base style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BlipModel(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

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># We can also initialize a BlipConfig from a BlipTextConfig and a BlipVisionConfig</span>

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a BLIPText and BLIPVision configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>config_text = BlipTextConfig()
<span class="hljs-meta">&gt;&gt;&gt; </span>config_vision = BlipVisionConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span>config = BlipConfig.from_text_vision_configs(config_text, config_vision)`,wrap:!1}}),{c(){o=r("p"),o.textContent=M,d=l(),u(p.$$.fragment)},l(s){o=a(s,"P",{"data-svelte-h":!0}),f(o)!=="svelte-11lpom8"&&(o.textContent=M),d=i(s),g(p.$$.fragment,s)},m(s,$){m(s,o,$),m(s,d,$),_(p,s,$),w=!0},p:J,i(s){w||(b(p.$$.fragment,s),w=!0)},o(s){v(p.$$.fragment,s),w=!1},d(s){s&&(n(o),n(d)),T(p,s)}}}function Kc(B){let o,M="Example:",d,p,w;return p=new H({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEJsaXBUZXh0Q29uZmlnJTJDJTIwQmxpcFRleHRNb2RlbCUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBCbGlwVGV4dENvbmZpZyUyMHdpdGglMjBTYWxlc2ZvcmNlJTJGYmxpcC12cWEtYmFzZSUyMHN0eWxlJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBCbGlwVGV4dENvbmZpZygpJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMEJsaXBUZXh0TW9kZWwlMjAod2l0aCUyMHJhbmRvbSUyMHdlaWdodHMpJTIwZnJvbSUyMHRoZSUyMFNhbGVzZm9yY2UlMkZibGlwLXZxYS1iYXNlJTIwc3R5bGUlMjBjb25maWd1cmF0aW9uJTBBbW9kZWwlMjAlM0QlMjBCbGlwVGV4dE1vZGVsKGNvbmZpZ3VyYXRpb24pJTBBJTBBJTIzJTIwQWNjZXNzaW5nJTIwdGhlJTIwbW9kZWwlMjBjb25maWd1cmF0aW9uJTBBY29uZmlndXJhdGlvbiUyMCUzRCUyMG1vZGVsLmNvbmZpZw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> BlipTextConfig, BlipTextModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a BlipTextConfig with Salesforce/blip-vqa-base style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = BlipTextConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a BlipTextModel (with random weights) from the Salesforce/blip-vqa-base style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BlipTextModel(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`,wrap:!1}}),{c(){o=r("p"),o.textContent=M,d=l(),u(p.$$.fragment)},l(s){o=a(s,"P",{"data-svelte-h":!0}),f(o)!=="svelte-11lpom8"&&(o.textContent=M),d=i(s),g(p.$$.fragment,s)},m(s,$){m(s,o,$),m(s,d,$),_(p,s,$),w=!0},p:J,i(s){w||(b(p.$$.fragment,s),w=!0)},o(s){v(p.$$.fragment,s),w=!1},d(s){s&&(n(o),n(d)),T(p,s)}}}function ep(B){let o,M="Example:",d,p,w;return p=new H({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEJsaXBWaXNpb25Db25maWclMkMlMjBCbGlwVmlzaW9uTW9kZWwlMEElMEElMjMlMjBJbml0aWFsaXppbmclMjBhJTIwQmxpcFZpc2lvbkNvbmZpZyUyMHdpdGglMjBTYWxlc2ZvcmNlJTJGYmxpcC12cWEtYmFzZSUyMHN0eWxlJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBCbGlwVmlzaW9uQ29uZmlnKCklMEElMEElMjMlMjBJbml0aWFsaXppbmclMjBhJTIwQmxpcFZpc2lvbk1vZGVsJTIwKHdpdGglMjByYW5kb20lMjB3ZWlnaHRzKSUyMGZyb20lMjB0aGUlMjBTYWxlc2ZvcmNlJTJGYmxpcC12cWEtYmFzZSUyMHN0eWxlJTIwY29uZmlndXJhdGlvbiUwQW1vZGVsJTIwJTNEJTIwQmxpcFZpc2lvbk1vZGVsKGNvbmZpZ3VyYXRpb24pJTBBJTBBJTIzJTIwQWNjZXNzaW5nJTIwdGhlJTIwbW9kZWwlMjBjb25maWd1cmF0aW9uJTBBY29uZmlndXJhdGlvbiUyMCUzRCUyMG1vZGVsLmNvbmZpZw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> BlipVisionConfig, BlipVisionModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a BlipVisionConfig with Salesforce/blip-vqa-base style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = BlipVisionConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a BlipVisionModel (with random weights) from the Salesforce/blip-vqa-base style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BlipVisionModel(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`,wrap:!1}}),{c(){o=r("p"),o.textContent=M,d=l(),u(p.$$.fragment)},l(s){o=a(s,"P",{"data-svelte-h":!0}),f(o)!=="svelte-11lpom8"&&(o.textContent=M),d=i(s),g(p.$$.fragment,s)},m(s,$){m(s,o,$),m(s,d,$),_(p,s,$),w=!0},p:J,i(s){w||(b(p.$$.fragment,s),w=!0)},o(s){v(p.$$.fragment,s),w=!1},d(s){s&&(n(o),n(d)),T(p,s)}}}function tp(B){let o,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(){o=r("p"),o.innerHTML=M},l(d){o=a(d,"P",{"data-svelte-h":!0}),f(o)!=="svelte-fincs2"&&(o.innerHTML=M)},m(d,p){m(d,o,p)},p:J,d(d){d&&n(o)}}}function op(B){let o,M="Examples:",d,p,w;return p=new H({props:{code:"ZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Byb2Nlc3NvciUyQyUyMEJsaXBNb2RlbCUwQSUwQW1vZGVsJTIwJTNEJTIwQmxpcE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJTYWxlc2ZvcmNlJTJGYmxpcC1pbWFnZS1jYXB0aW9uaW5nLWJhc2UlMjIpJTBBcHJvY2Vzc29yJTIwJTNEJTIwQXV0b1Byb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIyU2FsZXNmb3JjZSUyRmJsaXAtaW1hZ2UtY2FwdGlvbmluZy1iYXNlJTIyKSUwQSUwQXVybCUyMCUzRCUyMCUyMmh0dHAlM0ElMkYlMkZpbWFnZXMuY29jb2RhdGFzZXQub3JnJTJGdmFsMjAxNyUyRjAwMDAwMDAzOTc2OS5qcGclMjIlMEFpbWFnZSUyMCUzRCUyMEltYWdlLm9wZW4ocmVxdWVzdHMuZ2V0KHVybCUyQyUyMHN0cmVhbSUzRFRydWUpLnJhdyklMEElMEFpbnB1dHMlMjAlM0QlMjBwcm9jZXNzb3IoJTBBJTIwJTIwJTIwJTIwdGV4dCUzRCU1QiUyMmElMjBwaG90byUyMG9mJTIwYSUyMGNhdCUyMiUyQyUyMCUyMmElMjBwaG90byUyMG9mJTIwYSUyMGRvZyUyMiU1RCUyQyUyMGltYWdlcyUzRGltYWdlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiUyQyUyMHBhZGRpbmclM0RUcnVlJTBBKSUwQSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyklMEFsb2dpdHNfcGVyX2ltYWdlJTIwJTNEJTIwb3V0cHV0cy5sb2dpdHNfcGVyX2ltYWdlJTIwJTIwJTIzJTIwdGhpcyUyMGlzJTIwdGhlJTIwaW1hZ2UtdGV4dCUyMHNpbWlsYXJpdHklMjBzY29yZSUwQXByb2JzJTIwJTNEJTIwbG9naXRzX3Blcl9pbWFnZS5zb2Z0bWF4KGRpbSUzRDEpJTIwJTIwJTIzJTIwd2UlMjBjYW4lMjB0YWtlJTIwdGhlJTIwc29mdG1heCUyMHRvJTIwZ2V0JTIwdGhlJTIwbGFiZWwlMjBwcm9iYWJpbGl0aWVz",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, BlipModel

<span class="hljs-meta">&gt;&gt;&gt; </span>model = BlipModel.from_pretrained(<span class="hljs-string">&quot;Salesforce/blip-image-captioning-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;Salesforce/blip-image-captioning-base&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>`,wrap:!1}}),{c(){o=r("p"),o.textContent=M,d=l(),u(p.$$.fragment)},l(s){o=a(s,"P",{"data-svelte-h":!0}),f(o)!=="svelte-kvfsh7"&&(o.textContent=M),d=i(s),g(p.$$.fragment,s)},m(s,$){m(s,o,$),m(s,d,$),_(p,s,$),w=!0},p:J,i(s){w||(b(p.$$.fragment,s),w=!0)},o(s){v(p.$$.fragment,s),w=!1},d(s){s&&(n(o),n(d)),T(p,s)}}}function np(B){let o,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(){o=r("p"),o.innerHTML=M},l(d){o=a(d,"P",{"data-svelte-h":!0}),f(o)!=="svelte-fincs2"&&(o.innerHTML=M)},m(d,p){m(d,o,p)},p:J,d(d){d&&n(o)}}}function sp(B){let o,M="Examples:",d,p,w;return p=new H({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMkMlMjBCbGlwTW9kZWwlMEElMEFtb2RlbCUyMCUzRCUyMEJsaXBNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyU2FsZXNmb3JjZSUyRmJsaXAtaW1hZ2UtY2FwdGlvbmluZy1iYXNlJTIyKSUwQXByb2Nlc3NvciUyMCUzRCUyMEF1dG9Qcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMlNhbGVzZm9yY2UlMkZibGlwLWltYWdlLWNhcHRpb25pbmctYmFzZSUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjBwcm9jZXNzb3IodGV4dCUzRCU1QiUyMmElMjBwaG90byUyMG9mJTIwYSUyMGNhdCUyMiUyQyUyMCUyMmElMjBwaG90byUyMG9mJTIwYSUyMGRvZyUyMiU1RCUyQyUyMHBhZGRpbmclM0RUcnVlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEF0ZXh0X2ZlYXR1cmVzJTIwJTNEJTIwbW9kZWwuZ2V0X3RleHRfZmVhdHVyZXMoKippbnB1dHMp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor, BlipModel

<span class="hljs-meta">&gt;&gt;&gt; </span>model = BlipModel.from_pretrained(<span class="hljs-string">&quot;Salesforce/blip-image-captioning-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;Salesforce/blip-image-captioning-base&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(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>], 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)`,wrap:!1}}),{c(){o=r("p"),o.textContent=M,d=l(),u(p.$$.fragment)},l(s){o=a(s,"P",{"data-svelte-h":!0}),f(o)!=="svelte-kvfsh7"&&(o.textContent=M),d=i(s),g(p.$$.fragment,s)},m(s,$){m(s,o,$),m(s,d,$),_(p,s,$),w=!0},p:J,i(s){w||(b(p.$$.fragment,s),w=!0)},o(s){v(p.$$.fragment,s),w=!1},d(s){s&&(n(o),n(d)),T(p,s)}}}function rp(B){let o,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(){o=r("p"),o.innerHTML=M},l(d){o=a(d,"P",{"data-svelte-h":!0}),f(o)!=="svelte-fincs2"&&(o.innerHTML=M)},m(d,p){m(d,o,p)},p:J,d(d){d&&n(o)}}}function ap(B){let o,M="Examples:",d,p,w;return p=new H({props:{code:"ZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Byb2Nlc3NvciUyQyUyMEJsaXBNb2RlbCUwQSUwQW1vZGVsJTIwJTNEJTIwQmxpcE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJTYWxlc2ZvcmNlJTJGYmxpcC1pbWFnZS1jYXB0aW9uaW5nLWJhc2UlMjIpJTBBcHJvY2Vzc29yJTIwJTNEJTIwQXV0b1Byb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIyU2FsZXNmb3JjZSUyRmJsaXAtaW1hZ2UtY2FwdGlvbmluZy1iYXNlJTIyKSUwQSUwQXVybCUyMCUzRCUyMCUyMmh0dHAlM0ElMkYlMkZpbWFnZXMuY29jb2RhdGFzZXQub3JnJTJGdmFsMjAxNyUyRjAwMDAwMDAzOTc2OS5qcGclMjIlMEFpbWFnZSUyMCUzRCUyMEltYWdlLm9wZW4ocmVxdWVzdHMuZ2V0KHVybCUyQyUyMHN0cmVhbSUzRFRydWUpLnJhdyklMEElMEFpbnB1dHMlMjAlM0QlMjBwcm9jZXNzb3IoaW1hZ2VzJTNEaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQSUwQWltYWdlX2ZlYXR1cmVzJTIwJTNEJTIwbW9kZWwuZ2V0X2ltYWdlX2ZlYXR1cmVzKCoqaW5wdXRzKQ==",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, BlipModel

<span class="hljs-meta">&gt;&gt;&gt; </span>model = BlipModel.from_pretrained(<span class="hljs-string">&quot;Salesforce/blip-image-captioning-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;Salesforce/blip-image-captioning-base&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)`,wrap:!1}}),{c(){o=r("p"),o.textContent=M,d=l(),u(p.$$.fragment)},l(s){o=a(s,"P",{"data-svelte-h":!0}),f(o)!=="svelte-kvfsh7"&&(o.textContent=M),d=i(s),g(p.$$.fragment,s)},m(s,$){m(s,o,$),m(s,d,$),_(p,s,$),w=!0},p:J,i(s){w||(b(p.$$.fragment,s),w=!0)},o(s){v(p.$$.fragment,s),w=!1},d(s){s&&(n(o),n(d)),T(p,s)}}}function lp(B){let o,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(){o=r("p"),o.innerHTML=M},l(d){o=a(d,"P",{"data-svelte-h":!0}),f(o)!=="svelte-fincs2"&&(o.innerHTML=M)},m(d,p){m(d,o,p)},p:J,d(d){d&&n(o)}}}function ip(B){let o,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(){o=r("p"),o.innerHTML=M},l(d){o=a(d,"P",{"data-svelte-h":!0}),f(o)!=="svelte-fincs2"&&(o.innerHTML=M)},m(d,p){m(d,o,p)},p:J,d(d){d&&n(o)}}}function dp(B){let o,M="Examples:",d,p,w;return p=new H({props:{code:"ZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Byb2Nlc3NvciUyQyUyMEJsaXBGb3JDb25kaXRpb25hbEdlbmVyYXRpb24lMEElMEFwcm9jZXNzb3IlMjAlM0QlMjBBdXRvUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJTYWxlc2ZvcmNlJTJGYmxpcC1pbWFnZS1jYXB0aW9uaW5nLWJhc2UlMjIpJTBBbW9kZWwlMjAlM0QlMjBCbGlwRm9yQ29uZGl0aW9uYWxHZW5lcmF0aW9uLmZyb21fcHJldHJhaW5lZCglMjJTYWxlc2ZvcmNlJTJGYmxpcC1pbWFnZS1jYXB0aW9uaW5nLWJhc2UlMjIpJTBBJTBBdXJsJTIwJTNEJTIwJTIyaHR0cCUzQSUyRiUyRmltYWdlcy5jb2NvZGF0YXNldC5vcmclMkZ2YWwyMDE3JTJGMDAwMDAwMDM5NzY5LmpwZyUyMiUwQWltYWdlJTIwJTNEJTIwSW1hZ2Uub3BlbihyZXF1ZXN0cy5nZXQodXJsJTJDJTIwc3RyZWFtJTNEVHJ1ZSkucmF3KSUwQXRleHQlMjAlM0QlMjAlMjJBJTIwcGljdHVyZSUyMG9mJTIyJTBBJTBBaW5wdXRzJTIwJTNEJTIwcHJvY2Vzc29yKGltYWdlcyUzRGltYWdlJTJDJTIwdGV4dCUzRHRleHQlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyk=",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, BlipForConditionalGeneration

<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;Salesforce/blip-image-captioning-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BlipForConditionalGeneration.from_pretrained(<span class="hljs-string">&quot;Salesforce/blip-image-captioning-base&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>text = <span class="hljs-string">&quot;A picture of&quot;</span>

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

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)`,wrap:!1}}),{c(){o=r("p"),o.textContent=M,d=l(),u(p.$$.fragment)},l(s){o=a(s,"P",{"data-svelte-h":!0}),f(o)!=="svelte-kvfsh7"&&(o.textContent=M),d=i(s),g(p.$$.fragment,s)},m(s,$){m(s,o,$),m(s,d,$),_(p,s,$),w=!0},p:J,i(s){w||(b(p.$$.fragment,s),w=!0)},o(s){v(p.$$.fragment,s),w=!1},d(s){s&&(n(o),n(d)),T(p,s)}}}function cp(B){let o,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(){o=r("p"),o.innerHTML=M},l(d){o=a(d,"P",{"data-svelte-h":!0}),f(o)!=="svelte-fincs2"&&(o.innerHTML=M)},m(d,p){m(d,o,p)},p:J,d(d){d&&n(o)}}}function pp(B){let o,M="Examples:",d,p,w;return p=new H({props:{code:"ZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Byb2Nlc3NvciUyQyUyMEJsaXBGb3JJbWFnZVRleHRSZXRyaWV2YWwlMEElMEFtb2RlbCUyMCUzRCUyMEJsaXBGb3JJbWFnZVRleHRSZXRyaWV2YWwuZnJvbV9wcmV0cmFpbmVkKCUyMlNhbGVzZm9yY2UlMkZibGlwLWl0bS1iYXNlLWNvY28lMjIpJTBBcHJvY2Vzc29yJTIwJTNEJTIwQXV0b1Byb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIyU2FsZXNmb3JjZSUyRmJsaXAtaXRtLWJhc2UtY29jbyUyMiklMEElMEF1cmwlMjAlM0QlMjAlMjJodHRwJTNBJTJGJTJGaW1hZ2VzLmNvY29kYXRhc2V0Lm9yZyUyRnZhbDIwMTclMkYwMDAwMDAwMzk3NjkuanBnJTIyJTBBaW1hZ2UlMjAlM0QlMjBJbWFnZS5vcGVuKHJlcXVlc3RzLmdldCh1cmwlMkMlMjBzdHJlYW0lM0RUcnVlKS5yYXcpJTBBdGV4dCUyMCUzRCUyMCUyMmFuJTIwaW1hZ2UlMjBvZiUyMGElMjBjYXQlMjIlMEElMEFpbnB1dHMlMjAlM0QlMjBwcm9jZXNzb3IoaW1hZ2VzJTNEaW1hZ2UlMkMlMjB0ZXh0JTNEdGV4dCUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBb3V0cHV0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzKQ==",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, BlipForImageTextRetrieval

<span class="hljs-meta">&gt;&gt;&gt; </span>model = BlipForImageTextRetrieval.from_pretrained(<span class="hljs-string">&quot;Salesforce/blip-itm-base-coco&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;Salesforce/blip-itm-base-coco&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>text = <span class="hljs-string">&quot;an image of a cat&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(images=image, text=text, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)`,wrap:!1}}),{c(){o=r("p"),o.textContent=M,d=l(),u(p.$$.fragment)},l(s){o=a(s,"P",{"data-svelte-h":!0}),f(o)!=="svelte-kvfsh7"&&(o.textContent=M),d=i(s),g(p.$$.fragment,s)},m(s,$){m(s,o,$),m(s,d,$),_(p,s,$),w=!0},p:J,i(s){w||(b(p.$$.fragment,s),w=!0)},o(s){v(p.$$.fragment,s),w=!1},d(s){s&&(n(o),n(d)),T(p,s)}}}function mp(B){let o,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(){o=r("p"),o.innerHTML=M},l(d){o=a(d,"P",{"data-svelte-h":!0}),f(o)!=="svelte-fincs2"&&(o.innerHTML=M)},m(d,p){m(d,o,p)},p:J,d(d){d&&n(o)}}}function hp(B){let o,M="Examples:",d,p,w;return p=new H({props:{code:"ZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Byb2Nlc3NvciUyQyUyMEJsaXBGb3JRdWVzdGlvbkFuc3dlcmluZyUwQSUwQW1vZGVsJTIwJTNEJTIwQmxpcEZvclF1ZXN0aW9uQW5zd2VyaW5nLmZyb21fcHJldHJhaW5lZCglMjJTYWxlc2ZvcmNlJTJGYmxpcC12cWEtYmFzZSUyMiklMEFwcm9jZXNzb3IlMjAlM0QlMjBBdXRvUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJTYWxlc2ZvcmNlJTJGYmxpcC12cWEtYmFzZSUyMiklMEElMEF1cmwlMjAlM0QlMjAlMjJodHRwJTNBJTJGJTJGaW1hZ2VzLmNvY29kYXRhc2V0Lm9yZyUyRnZhbDIwMTclMkYwMDAwMDAwMzk3NjkuanBnJTIyJTBBaW1hZ2UlMjAlM0QlMjBJbWFnZS5vcGVuKHJlcXVlc3RzLmdldCh1cmwlMkMlMjBzdHJlYW0lM0RUcnVlKS5yYXcpJTBBJTBBJTIzJTIwdHJhaW5pbmclMEF0ZXh0JTIwJTNEJTIwJTIySG93JTIwbWFueSUyMGNhdHMlMjBhcmUlMjBpbiUyMHRoZSUyMHBpY3R1cmUlM0YlMjIlMEFsYWJlbCUyMCUzRCUyMCUyMjIlMjIlMEFpbnB1dHMlMjAlM0QlMjBwcm9jZXNzb3IoaW1hZ2VzJTNEaW1hZ2UlMkMlMjB0ZXh0JTNEdGV4dCUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBbGFiZWxzJTIwJTNEJTIwcHJvY2Vzc29yKHRleHQlM0RsYWJlbCUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpLmlucHV0X2lkcyUwQSUwQWlucHV0cyU1QiUyMmxhYmVscyUyMiU1RCUyMCUzRCUyMGxhYmVscyUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyklMEFsb3NzJTIwJTNEJTIwb3V0cHV0cy5sb3NzJTBBbG9zcy5iYWNrd2FyZCgpJTBBJTBBJTIzJTIwaW5mZXJlbmNlJTBBdGV4dCUyMCUzRCUyMCUyMkhvdyUyMG1hbnklMjBjYXRzJTIwYXJlJTIwaW4lMjB0aGUlMjBwaWN0dXJlJTNGJTIyJTBBaW5wdXRzJTIwJTNEJTIwcHJvY2Vzc29yKGltYWdlcyUzRGltYWdlJTJDJTIwdGV4dCUzRHRleHQlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbC5nZW5lcmF0ZSgqKmlucHV0cyklMEFwcmludChwcm9jZXNzb3IuZGVjb2RlKG91dHB1dHMlNUIwJTVEJTJDJTIwc2tpcF9zcGVjaWFsX3Rva2VucyUzRFRydWUpKQ==",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, BlipForQuestionAnswering

<span class="hljs-meta">&gt;&gt;&gt; </span>model = BlipForQuestionAnswering.from_pretrained(<span class="hljs-string">&quot;Salesforce/blip-vqa-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;Salesforce/blip-vqa-base&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><span class="hljs-comment"># training</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>text = <span class="hljs-string">&quot;How many cats are in the picture?&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>label = <span class="hljs-string">&quot;2&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(images=image, text=text, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>labels = processor(text=label, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>).input_ids

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs[<span class="hljs-string">&quot;labels&quot;</span>] = labels
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>loss = outputs.loss
<span class="hljs-meta">&gt;&gt;&gt; </span>loss.backward()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># inference</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>text = <span class="hljs-string">&quot;How many cats are in the picture?&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(images=image, text=text, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model.generate(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(processor.decode(outputs[<span class="hljs-number">0</span>], skip_special_tokens=<span class="hljs-literal">True</span>))
<span class="hljs-number">2</span>`,wrap:!1}}),{c(){o=r("p"),o.textContent=M,d=l(),u(p.$$.fragment)},l(s){o=a(s,"P",{"data-svelte-h":!0}),f(o)!=="svelte-kvfsh7"&&(o.textContent=M),d=i(s),g(p.$$.fragment,s)},m(s,$){m(s,o,$),m(s,d,$),_(p,s,$),w=!0},p:J,i(s){w||(b(p.$$.fragment,s),w=!0)},o(s){v(p.$$.fragment,s),w=!1},d(s){s&&(n(o),n(d)),T(p,s)}}}function fp(B){let o,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(){o=r("p"),o.innerHTML=M},l(d){o=a(d,"P",{"data-svelte-h":!0}),f(o)!=="svelte-fincs2"&&(o.innerHTML=M)},m(d,p){m(d,o,p)},p:J,d(d){d&&n(o)}}}function up(B){let o,M="Examples:",d,p,w;return p=new H({props:{code:"ZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Byb2Nlc3NvciUyQyUyMFRGQmxpcE1vZGVsJTBBJTBBbW9kZWwlMjAlM0QlMjBURkJsaXBNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyU2FsZXNmb3JjZSUyRmJsaXAtaW1hZ2UtY2FwdGlvbmluZy1iYXNlJTIyKSUwQXByb2Nlc3NvciUyMCUzRCUyMEF1dG9Qcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMlNhbGVzZm9yY2UlMkZibGlwLWltYWdlLWNhcHRpb25pbmctYmFzZSUyMiklMEElMEF1cmwlMjAlM0QlMjAlMjJodHRwJTNBJTJGJTJGaW1hZ2VzLmNvY29kYXRhc2V0Lm9yZyUyRnZhbDIwMTclMkYwMDAwMDAwMzk3NjkuanBnJTIyJTBBaW1hZ2UlMjAlM0QlMjBJbWFnZS5vcGVuKHJlcXVlc3RzLmdldCh1cmwlMkMlMjBzdHJlYW0lM0RUcnVlKS5yYXcpJTBBJTBBaW5wdXRzJTIwJTNEJTIwcHJvY2Vzc29yKCUwQSUyMCUyMCUyMCUyMHRleHQlM0QlNUIlMjJhJTIwcGhvdG8lMjBvZiUyMGElMjBjYXQlMjIlMkMlMjAlMjJhJTIwcGhvdG8lMjBvZiUyMGElMjBkb2clMjIlNUQlMkMlMjBpbWFnZXMlM0RpbWFnZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIydGYlMjIlMkMlMjBwYWRkaW5nJTNEVHJ1ZSUwQSklMEElMEFvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpJTBBbG9naXRzX3Blcl9pbWFnZSUyMCUzRCUyMG91dHB1dHMubG9naXRzX3Blcl9pbWFnZSUyMCUyMCUyMyUyMHRoaXMlMjBpcyUyMHRoZSUyMGltYWdlLXRleHQlMjBzaW1pbGFyaXR5JTIwc2NvcmUlMEFwcm9icyUyMCUzRCUyMHRmLm5uLnNvZnRtYXgobG9naXRzX3Blcl9pbWFnZSUyQyUyMGF4aXMlM0QxKSUyMCUyMCUyMyUyMHdlJTIwY2FuJTIwdGFrZSUyMHRoZSUyMHNvZnRtYXglMjB0byUyMGdldCUyMHRoZSUyMGxhYmVsJTIwcHJvYmFiaWxpdGllcw==",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, TFBlipModel

<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFBlipModel.from_pretrained(<span class="hljs-string">&quot;Salesforce/blip-image-captioning-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;Salesforce/blip-image-captioning-base&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.nn.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>`,wrap:!1}}),{c(){o=r("p"),o.textContent=M,d=l(),u(p.$$.fragment)},l(s){o=a(s,"P",{"data-svelte-h":!0}),f(o)!=="svelte-kvfsh7"&&(o.textContent=M),d=i(s),g(p.$$.fragment,s)},m(s,$){m(s,o,$),m(s,d,$),_(p,s,$),w=!0},p:J,i(s){w||(b(p.$$.fragment,s),w=!0)},o(s){v(p.$$.fragment,s),w=!1},d(s){s&&(n(o),n(d)),T(p,s)}}}function gp(B){let o,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(){o=r("p"),o.innerHTML=M},l(d){o=a(d,"P",{"data-svelte-h":!0}),f(o)!=="svelte-fincs2"&&(o.innerHTML=M)},m(d,p){m(d,o,p)},p:J,d(d){d&&n(o)}}}function _p(B){let o,M="Examples:",d,p,w;return p=new H({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMkMlMjBURkJsaXBNb2RlbCUwQSUwQW1vZGVsJTIwJTNEJTIwVEZCbGlwTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMlNhbGVzZm9yY2UlMkZibGlwLWltYWdlLWNhcHRpb25pbmctYmFzZSUyMiklMEFwcm9jZXNzb3IlMjAlM0QlMjBBdXRvUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJTYWxlc2ZvcmNlJTJGYmxpcC1pbWFnZS1jYXB0aW9uaW5nLWJhc2UlMjIpJTBBJTBBaW5wdXRzJTIwJTNEJTIwcHJvY2Vzc29yKHRleHQlM0QlNUIlMjJhJTIwcGhvdG8lMjBvZiUyMGElMjBjYXQlMjIlMkMlMjAlMjJhJTIwcGhvdG8lMjBvZiUyMGElMjBkb2clMjIlNUQlMkMlMjBwYWRkaW5nJTNEVHJ1ZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIydGYlMjIpJTBBdGV4dF9mZWF0dXJlcyUyMCUzRCUyMG1vZGVsLmdldF90ZXh0X2ZlYXR1cmVzKCoqaW5wdXRzKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor, TFBlipModel

<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFBlipModel.from_pretrained(<span class="hljs-string">&quot;Salesforce/blip-image-captioning-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;Salesforce/blip-image-captioning-base&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(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>], 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)`,wrap:!1}}),{c(){o=r("p"),o.textContent=M,d=l(),u(p.$$.fragment)},l(s){o=a(s,"P",{"data-svelte-h":!0}),f(o)!=="svelte-kvfsh7"&&(o.textContent=M),d=i(s),g(p.$$.fragment,s)},m(s,$){m(s,o,$),m(s,d,$),_(p,s,$),w=!0},p:J,i(s){w||(b(p.$$.fragment,s),w=!0)},o(s){v(p.$$.fragment,s),w=!1},d(s){s&&(n(o),n(d)),T(p,s)}}}function bp(B){let o,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(){o=r("p"),o.innerHTML=M},l(d){o=a(d,"P",{"data-svelte-h":!0}),f(o)!=="svelte-fincs2"&&(o.innerHTML=M)},m(d,p){m(d,o,p)},p:J,d(d){d&&n(o)}}}function vp(B){let o,M="Examples:",d,p,w;return p=new H({props:{code:"ZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Byb2Nlc3NvciUyQyUyMFRGQmxpcE1vZGVsJTBBJTBBbW9kZWwlMjAlM0QlMjBURkJsaXBNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyU2FsZXNmb3JjZSUyRmJsaXAtaW1hZ2UtY2FwdGlvbmluZy1iYXNlJTIyKSUwQXByb2Nlc3NvciUyMCUzRCUyMEF1dG9Qcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMlNhbGVzZm9yY2UlMkZibGlwLWltYWdlLWNhcHRpb25pbmctYmFzZSUyMiklMEElMEF1cmwlMjAlM0QlMjAlMjJodHRwJTNBJTJGJTJGaW1hZ2VzLmNvY29kYXRhc2V0Lm9yZyUyRnZhbDIwMTclMkYwMDAwMDAwMzk3NjkuanBnJTIyJTBBaW1hZ2UlMjAlM0QlMjBJbWFnZS5vcGVuKHJlcXVlc3RzLmdldCh1cmwlMkMlMjBzdHJlYW0lM0RUcnVlKS5yYXcpJTBBJTBBaW5wdXRzJTIwJTNEJTIwcHJvY2Vzc29yKGltYWdlcyUzRGltYWdlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJ0ZiUyMiklMEElMEFpbWFnZV9mZWF0dXJlcyUyMCUzRCUyMG1vZGVsLmdldF9pbWFnZV9mZWF0dXJlcygqKmlucHV0cyk=",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, TFBlipModel

<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFBlipModel.from_pretrained(<span class="hljs-string">&quot;Salesforce/blip-image-captioning-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;Salesforce/blip-image-captioning-base&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)`,wrap:!1}}),{c(){o=r("p"),o.textContent=M,d=l(),u(p.$$.fragment)},l(s){o=a(s,"P",{"data-svelte-h":!0}),f(o)!=="svelte-kvfsh7"&&(o.textContent=M),d=i(s),g(p.$$.fragment,s)},m(s,$){m(s,o,$),m(s,d,$),_(p,s,$),w=!0},p:J,i(s){w||(b(p.$$.fragment,s),w=!0)},o(s){v(p.$$.fragment,s),w=!1},d(s){s&&(n(o),n(d)),T(p,s)}}}function Tp(B){let o,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(){o=r("p"),o.innerHTML=M},l(d){o=a(d,"P",{"data-svelte-h":!0}),f(o)!=="svelte-fincs2"&&(o.innerHTML=M)},m(d,p){m(d,o,p)},p:J,d(d){d&&n(o)}}}function yp(B){let o,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(){o=r("p"),o.innerHTML=M},l(d){o=a(d,"P",{"data-svelte-h":!0}),f(o)!=="svelte-fincs2"&&(o.innerHTML=M)},m(d,p){m(d,o,p)},p:J,d(d){d&&n(o)}}}function Mp(B){let o,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(){o=r("p"),o.innerHTML=M},l(d){o=a(d,"P",{"data-svelte-h":!0}),f(o)!=="svelte-fincs2"&&(o.innerHTML=M)},m(d,p){m(d,o,p)},p:J,d(d){d&&n(o)}}}function wp(B){let o,M="Examples:",d,p,w;return p=new H({props:{code:"ZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Byb2Nlc3NvciUyQyUyMFRGQmxpcEZvckNvbmRpdGlvbmFsR2VuZXJhdGlvbiUwQSUwQXByb2Nlc3NvciUyMCUzRCUyMEF1dG9Qcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMlNhbGVzZm9yY2UlMkZibGlwLWltYWdlLWNhcHRpb25pbmctYmFzZSUyMiklMEFtb2RlbCUyMCUzRCUyMFRGQmxpcEZvckNvbmRpdGlvbmFsR2VuZXJhdGlvbi5mcm9tX3ByZXRyYWluZWQoJTIyU2FsZXNmb3JjZSUyRmJsaXAtaW1hZ2UtY2FwdGlvbmluZy1iYXNlJTIyKSUwQSUwQXVybCUyMCUzRCUyMCUyMmh0dHAlM0ElMkYlMkZpbWFnZXMuY29jb2RhdGFzZXQub3JnJTJGdmFsMjAxNyUyRjAwMDAwMDAzOTc2OS5qcGclMjIlMEFpbWFnZSUyMCUzRCUyMEltYWdlLm9wZW4ocmVxdWVzdHMuZ2V0KHVybCUyQyUyMHN0cmVhbSUzRFRydWUpLnJhdyklMEF0ZXh0JTIwJTNEJTIwJTIyQSUyMHBpY3R1cmUlMjBvZiUyMiUwQSUwQWlucHV0cyUyMCUzRCUyMHByb2Nlc3NvcihpbWFnZXMlM0RpbWFnZSUyQyUyMHRleHQlM0R0ZXh0JTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJ0ZiUyMiklMEElMEFvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMp",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, TFBlipForConditionalGeneration

<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;Salesforce/blip-image-captioning-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFBlipForConditionalGeneration.from_pretrained(<span class="hljs-string">&quot;Salesforce/blip-image-captioning-base&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>text = <span class="hljs-string">&quot;A picture of&quot;</span>

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

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)`,wrap:!1}}),{c(){o=r("p"),o.textContent=M,d=l(),u(p.$$.fragment)},l(s){o=a(s,"P",{"data-svelte-h":!0}),f(o)!=="svelte-kvfsh7"&&(o.textContent=M),d=i(s),g(p.$$.fragment,s)},m(s,$){m(s,o,$),m(s,d,$),_(p,s,$),w=!0},p:J,i(s){w||(b(p.$$.fragment,s),w=!0)},o(s){v(p.$$.fragment,s),w=!1},d(s){s&&(n(o),n(d)),T(p,s)}}}function $p(B){let o,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(){o=r("p"),o.innerHTML=M},l(d){o=a(d,"P",{"data-svelte-h":!0}),f(o)!=="svelte-fincs2"&&(o.innerHTML=M)},m(d,p){m(d,o,p)},p:J,d(d){d&&n(o)}}}function Bp(B){let o,M="Examples:",d,p,w;return p=new H({props:{code:"ZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Byb2Nlc3NvciUyQyUyMFRGQmxpcEZvckltYWdlVGV4dFJldHJpZXZhbCUwQSUwQW1vZGVsJTIwJTNEJTIwVEZCbGlwRm9ySW1hZ2VUZXh0UmV0cmlldmFsLmZyb21fcHJldHJhaW5lZCglMjJTYWxlc2ZvcmNlJTJGYmxpcC1pdG0tYmFzZS1jb2NvJTIyKSUwQXByb2Nlc3NvciUyMCUzRCUyMEF1dG9Qcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMlNhbGVzZm9yY2UlMkZibGlwLWl0bS1iYXNlLWNvY28lMjIpJTBBJTBBdXJsJTIwJTNEJTIwJTIyaHR0cCUzQSUyRiUyRmltYWdlcy5jb2NvZGF0YXNldC5vcmclMkZ2YWwyMDE3JTJGMDAwMDAwMDM5NzY5LmpwZyUyMiUwQWltYWdlJTIwJTNEJTIwSW1hZ2Uub3BlbihyZXF1ZXN0cy5nZXQodXJsJTJDJTIwc3RyZWFtJTNEVHJ1ZSkucmF3KSUwQXRleHQlMjAlM0QlMjAlMjJhbiUyMGltYWdlJTIwb2YlMjBhJTIwY2F0JTIyJTBBJTBBaW5wdXRzJTIwJTNEJTIwcHJvY2Vzc29yKGltYWdlcyUzRGltYWdlJTJDJTIwdGV4dCUzRHRleHQlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnRmJTIyKSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyk=",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, TFBlipForImageTextRetrieval

<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFBlipForImageTextRetrieval.from_pretrained(<span class="hljs-string">&quot;Salesforce/blip-itm-base-coco&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;Salesforce/blip-itm-base-coco&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>text = <span class="hljs-string">&quot;an image of a cat&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(images=image, text=text, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)`,wrap:!1}}),{c(){o=r("p"),o.textContent=M,d=l(),u(p.$$.fragment)},l(s){o=a(s,"P",{"data-svelte-h":!0}),f(o)!=="svelte-kvfsh7"&&(o.textContent=M),d=i(s),g(p.$$.fragment,s)},m(s,$){m(s,o,$),m(s,d,$),_(p,s,$),w=!0},p:J,i(s){w||(b(p.$$.fragment,s),w=!0)},o(s){v(p.$$.fragment,s),w=!1},d(s){s&&(n(o),n(d)),T(p,s)}}}function xp(B){let o,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(){o=r("p"),o.innerHTML=M},l(d){o=a(d,"P",{"data-svelte-h":!0}),f(o)!=="svelte-fincs2"&&(o.innerHTML=M)},m(d,p){m(d,o,p)},p:J,d(d){d&&n(o)}}}function Jp(B){let o,M="Examples:",d,p,w;return p=new H({props:{code:"ZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Byb2Nlc3NvciUyQyUyMFRGQmxpcEZvclF1ZXN0aW9uQW5zd2VyaW5nJTBBJTBBbW9kZWwlMjAlM0QlMjBURkJsaXBGb3JRdWVzdGlvbkFuc3dlcmluZy5mcm9tX3ByZXRyYWluZWQoJTIyU2FsZXNmb3JjZSUyRmJsaXAtdnFhLWJhc2UlMjIpJTBBcHJvY2Vzc29yJTIwJTNEJTIwQXV0b1Byb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIyU2FsZXNmb3JjZSUyRmJsaXAtdnFhLWJhc2UlMjIpJTBBJTBBdXJsJTIwJTNEJTIwJTIyaHR0cCUzQSUyRiUyRmltYWdlcy5jb2NvZGF0YXNldC5vcmclMkZ2YWwyMDE3JTJGMDAwMDAwMDM5NzY5LmpwZyUyMiUwQWltYWdlJTIwJTNEJTIwSW1hZ2Uub3BlbihyZXF1ZXN0cy5nZXQodXJsJTJDJTIwc3RyZWFtJTNEVHJ1ZSkucmF3KSUwQSUwQSUyMyUyMHRyYWluaW5nJTBBdGV4dCUyMCUzRCUyMCUyMkhvdyUyMG1hbnklMjBjYXRzJTIwYXJlJTIwaW4lMjB0aGUlMjBwaWN0dXJlJTNGJTIyJTBBbGFiZWwlMjAlM0QlMjAlMjIyJTIyJTBBaW5wdXRzJTIwJTNEJTIwcHJvY2Vzc29yKGltYWdlcyUzRGltYWdlJTJDJTIwdGV4dCUzRHRleHQlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnRmJTIyKSUwQWxhYmVscyUyMCUzRCUyMHByb2Nlc3Nvcih0ZXh0JTNEbGFiZWwlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnRmJTIyKS5pbnB1dF9pZHMlMEElMEFpbnB1dHMlNUIlMjJsYWJlbHMlMjIlNUQlMjAlM0QlMjBsYWJlbHMlMEFvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpJTBBbG9zcyUyMCUzRCUyMG91dHB1dHMubG9zcyUwQSUwQSUyMyUyMGluZmVyZW5jZSUwQXRleHQlMjAlM0QlMjAlMjJIb3clMjBtYW55JTIwY2F0cyUyMGFyZSUyMGluJTIwdGhlJTIwcGljdHVyZSUzRiUyMiUwQWlucHV0cyUyMCUzRCUyMHByb2Nlc3NvcihpbWFnZXMlM0RpbWFnZSUyQyUyMHRleHQlM0R0ZXh0JTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJ0ZiUyMiklMEFvdXRwdXRzJTIwJTNEJTIwbW9kZWwuZ2VuZXJhdGUoKippbnB1dHMpJTBBcHJpbnQocHJvY2Vzc29yLmRlY29kZShvdXRwdXRzJTVCMCU1RCUyQyUyMHNraXBfc3BlY2lhbF90b2tlbnMlM0RUcnVlKSk=",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, TFBlipForQuestionAnswering

<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFBlipForQuestionAnswering.from_pretrained(<span class="hljs-string">&quot;Salesforce/blip-vqa-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;Salesforce/blip-vqa-base&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><span class="hljs-comment"># training</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>text = <span class="hljs-string">&quot;How many cats are in the picture?&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>label = <span class="hljs-string">&quot;2&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(images=image, text=text, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>labels = processor(text=label, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>).input_ids

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs[<span class="hljs-string">&quot;labels&quot;</span>] = labels
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>loss = outputs.loss

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># inference</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>text = <span class="hljs-string">&quot;How many cats are in the picture?&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(images=image, text=text, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model.generate(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(processor.decode(outputs[<span class="hljs-number">0</span>], skip_special_tokens=<span class="hljs-literal">True</span>))
<span class="hljs-number">2</span>`,wrap:!1}}),{c(){o=r("p"),o.textContent=M,d=l(),u(p.$$.fragment)},l(s){o=a(s,"P",{"data-svelte-h":!0}),f(o)!=="svelte-kvfsh7"&&(o.textContent=M),d=i(s),g(p.$$.fragment,s)},m(s,$){m(s,o,$),m(s,d,$),_(p,s,$),w=!0},p:J,i(s){w||(b(p.$$.fragment,s),w=!0)},o(s){v(p.$$.fragment,s),w=!1},d(s){s&&(n(o),n(d)),T(p,s)}}}function jp(B){let o,M,d,p,w,s,$,Kt,Na,wn,Yi="BLIP",Cr,Te,Ee,As,eo,Za,$n,Di="Overview",kr,to,Oi='The BLIP model was proposed in <a href="https://arxiv.org/abs/2201.12086" rel="nofollow">BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generation</a> by Junnan Li, Dongxu Li, Caiming Xiong, Steven Hoi.',Fr,oo,Ki="BLIP is a model that is able to perform various multi-modal tasks including",Ir,no,ed="<li>Visual Question Answering</li> <li>Image-Text retrieval (Image-text matching)</li> <li>Image Captioning</li>",Ur,so,td="The abstract from the paper is the following:",zr,ro,od=`<em>Vision-Language Pre-training (VLP) has advanced the performance for many vision-language tasks.
However, most existing pre-trained models only excel in either understanding-based tasks or generation-based tasks. Furthermore, performance improvement has been largely achieved by scaling up the dataset with noisy image-text pairs collected from the web, which is a suboptimal source of supervision. In this paper, we propose BLIP, a new VLP framework which transfers flexibly to both vision-language understanding and generation tasks. BLIP effectively utilizes the noisy web data by bootstrapping the captions, where a captioner generates synthetic captions and a filter removes the noisy ones. We achieve state-of-the-art results on a wide range of vision-language tasks, such as image-text retrieval (+2.7% in average recall@1), image captioning (+2.8% in CIDEr), and VQA (+1.6% in VQA score). BLIP also demonstrates strong generalization ability when directly transferred to videolanguage tasks in a zero-shot manner. Code, models, and datasets are released.</em>`,Wr,ao,nd='<img src="https://cdn-uploads.huggingface.co/production/uploads/1670928184033-62441d1d9fdefb55a0b7d12c.gif" alt="BLIP.gif"/>',Nr,lo,sd=`This model was contributed by <a href="https://huggingface.co/ybelkada" rel="nofollow">ybelkada</a>.
The original code can be found <a href="https://github.com/salesforce/BLIP" rel="nofollow">here</a>.`,Zr,ye,Re,Qs,io,Pa,Bn,rd="Resources",Pr,co,ad='<li><a href="https://github.com/huggingface/notebooks/blob/main/examples/image_captioning_blip.ipynb" rel="nofollow">Jupyter notebook</a> on how to fine-tune BLIP for image captioning on a custom dataset</li>',Vr,Me,Ge,Ys,po,Va,xn,ld="BlipConfig",Hr,k,mo,Ha,Jn,id=`<a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipConfig">BlipConfig</a> is the configuration class to store the configuration of a <a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipModel">BlipModel</a>. It is used to instantiate
a BLIP 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 BLIP-base
<a href="https://huggingface.co/Salesforce/blip-vqa-base" rel="nofollow">Salesforce/blip-vqa-base</a> architecture.`,Ea,jn,dd=`Configuration objects inherit from <a href="/docs/transformers/v4.34.0/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.34.0/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,Ra,qe,Ga,Le,ho,qa,Cn,cd=`Instantiate a <a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipConfig">BlipConfig</a> (or a derived class) from blip text model configuration and blip vision model
configuration.`,Er,we,Se,Ds,fo,La,kn,pd="BlipTextConfig",Rr,E,uo,Sa,Fn,md=`This is the configuration class to store the configuration of a <a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipTextModel">BlipTextModel</a>. It is used to instantiate a BLIP
text 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 <code>BlipText</code> used by the <a href="https://huggingface.co/Salesforce/blip-vqa-base" rel="nofollow">base
architectures</a>.`,Xa,In,hd=`Configuration objects inherit from <a href="/docs/transformers/v4.34.0/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.34.0/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,Aa,Xe,Gr,$e,Ae,Os,go,Qa,Un,fd="BlipVisionConfig",qr,R,_o,Ya,zn,ud=`This is the configuration class to store the configuration of a <a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipVisionModel">BlipVisionModel</a>. It is used to instantiate a
BLIP vision model according to the specified arguments, defining the model architecture. Instantiating a
configuration defaults will yield a similar configuration to that of the Blip-base
<a href="https://huggingface.co/Salesforce/blip-vqa-base" rel="nofollow">Salesforce/blip-vqa-base</a> architecture.`,Da,Wn,gd=`Configuration objects inherit from <a href="/docs/transformers/v4.34.0/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.34.0/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,Oa,Qe,Lr,Be,Ye,Ks,bo,Ka,Nn,_d="BlipProcessor",Sr,F,vo,el,Zn,bd="Constructs a BLIP processor which wraps a BERT tokenizer and BLIP image processor into a single processor.",tl,Pn,vd=`<a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipProcessor">BlipProcessor</a> offers all the functionalities of <a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipImageProcessor">BlipImageProcessor</a> and <a href="/docs/transformers/v4.34.0/en/model_doc/bert#transformers.BertTokenizerFast">BertTokenizerFast</a>. See the
docstring of <code>__call__()</code> and <a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipProcessor.decode">decode()</a> for more information.`,ol,De,To,nl,Vn,Td=`This method forwards all its arguments to BertTokenizerFast’s <a href="/docs/transformers/v4.34.0/en/model_doc/speecht5#transformers.SpeechT5Tokenizer.batch_decode">batch_decode()</a>. Please
refer to the docstring of this method for more information.`,sl,Oe,yo,rl,Hn,yd=`This method forwards all its arguments to BertTokenizerFast’s <a href="/docs/transformers/v4.34.0/en/model_doc/speecht5#transformers.SpeechT5Tokenizer.decode">decode()</a>. Please refer to
the docstring of this method for more information.`,Xr,xe,Ke,er,Mo,al,En,Md="BlipImageProcessor",Ar,re,wo,ll,Rn,wd="Constructs a BLIP image processor.",il,et,$o,dl,Gn,$d="Preprocess an image or batch of images.",Qr,Je,tt,tr,Bo,cl,qn,Bd="BlipModel",Yr,C,xo,pl,Ln,xd=`This model inherits from <a href="/docs/transformers/v4.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</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.)`,ml,Sn,Jd=`This model is also 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.`,hl,S,Jo,fl,Xn,jd='The <a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipModel">BlipModel</a> forward method, overrides the <code>__call__</code> special method.',ul,ot,gl,nt,_l,X,jo,bl,An,Cd='The <a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipModel">BlipModel</a> forward method, overrides the <code>__call__</code> special method.',vl,st,Tl,rt,yl,A,Co,Ml,Qn,kd='The <a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipModel">BlipModel</a> forward method, overrides the <code>__call__</code> special method.',wl,at,$l,lt,Dr,je,it,or,ko,Bl,Yn,Fd="BlipTextModel",Or,ae,Fo,xl,Dn,Id=`The model can behave as an encoder (with only self-attention) as well as a decoder, in which case a layer of
cross-attention is added between the self-attention layers, following the architecture described in <a href="https://arxiv.org/abs/1706.03762" rel="nofollow">Attention is
all you need</a> by Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit,
Llion Jones, Aidan N. Gomez, Lukasz Kaiser and Illia Polosukhin. argument and <code>is_decoder</code> set to <code>True</code>; an
<code>encoder_hidden_states</code> is then expected as an input to the forward pass.`,Jl,ce,Io,jl,On,Ud=`encoder_hidden_states  (<code>torch.FloatTensor</code>, <em>optional</em>):
Sequence of hidden-states at the output of the last layer of the encoder. Used in the cross-attention if
the model is configured as a decoder.
encoder_attention_mask (<code>torch.FloatTensor</code>, <em>optional</em>):
Mask to avoid performing attention on the padding token indices of the encoder input. This mask is used in
the cross-attention if the model is configured as a decoder. Mask values selected in <code>[0, 1]</code>:`,Cl,Kn,zd=`<li>1 for tokens that are <strong>not masked</strong>,</li> <li>0 for tokens that are <strong>masked</strong>.
past_key_values (<code>tuple(tuple(torch.FloatTensor))</code>, <em>optional</em>):
Contains precomputed key and value hidden states of the attention blocks. Can be used to speed up decoding.
If <code>past_key_values</code> are used, the user can optionally input only the last <code>decoder_input_ids</code> (those that
don’t have their past key value states given to this model) of shape <code>(batch_size, 1)</code> instead of all
<code>decoder_input_ids</code> of shape <code>(batch_size, sequence_length)</code>.
use_cache (<code>bool</code>, <em>optional</em>):
If set to <code>True</code>, <code>past_key_values</code> key value states are returned and can be used to speed up decoding (see
<code>past_key_values</code>).</li>`,Kr,Ce,dt,nr,Uo,kl,es,Wd="BlipVisionModel",ea,ke,zo,Fl,pe,Wo,Il,ts,Nd='The <a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipVisionModel">BlipVisionModel</a> forward method, overrides the <code>__call__</code> special method.',Ul,ct,ta,Fe,pt,sr,No,zl,os,Zd="BlipForConditionalGeneration",oa,I,Zo,Wl,ns,Pd=`BLIP Model for image captioning. The model consists of a vision encoder and a text decoder. One can optionally pass
<code>input_ids</code> to the model, which serve as a text prompt, to make the text decoder continue the prompt. Otherwise,
the decoder starts generating text from the [BOS] (beginning-of-sequence) token. will start generating the caption
from the text input. If no text input is provided, the decoder will start with the [BOS] token only.`,Nl,ss,Vd=`This model inherits from <a href="/docs/transformers/v4.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</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.)`,Zl,rs,Hd=`This model is also 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.`,Pl,Q,Po,Vl,as,Ed='The <a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipForConditionalGeneration">BlipForConditionalGeneration</a> forward method, overrides the <code>__call__</code> special method.',Hl,mt,El,ht,na,Ie,ft,rr,Vo,Rl,ls,Rd="BlipForImageTextRetrieval",sa,U,Ho,Gl,is,Gd=`BLIP Model with a vision and text projector, and a classification head on top. The model is used in the context of
image-text retrieval. Given an image and a text, the model returns the probability of the text being relevant to
the image.`,ql,ds,qd=`This model inherits from <a href="/docs/transformers/v4.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</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.)`,Ll,cs,Ld=`This model is also 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.`,Sl,Y,Eo,Xl,ps,Sd='The <a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipForImageTextRetrieval">BlipForImageTextRetrieval</a> forward method, overrides the <code>__call__</code> special method.',Al,ut,Ql,gt,ra,Ue,_t,ar,Ro,Yl,ms,Xd="BlipForQuestionAnswering",aa,z,Go,Dl,hs,Ad=`BLIP Model for visual question answering. The model consists of a vision encoder, a text encoder as well as a text
decoder. The vision encoder will encode the input image, the text encoder will encode the input question together
with the encoding of the image, and the text decoder will output the answer to the question.`,Ol,fs,Qd=`This model inherits from <a href="/docs/transformers/v4.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</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.)`,Kl,us,Yd=`This model is also 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.`,ei,D,qo,ti,gs,Dd='The <a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipForQuestionAnswering">BlipForQuestionAnswering</a> forward method, overrides the <code>__call__</code> special method.',oi,bt,ni,vt,la,ze,Tt,lr,Lo,si,_s,Od="TFBlipModel",ia,G,So,ri,O,Xo,ai,bs,Kd='The <a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.TFBlipModel">TFBlipModel</a> forward method, overrides the <code>__call__</code> special method.',li,yt,ii,Mt,di,K,Ao,ci,vs,ec='The <a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.TFBlipModel">TFBlipModel</a> forward method, overrides the <code>__call__</code> special method.',pi,wt,mi,$t,hi,ee,Qo,fi,Ts,tc='The <a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.TFBlipModel">TFBlipModel</a> forward method, overrides the <code>__call__</code> special method.',ui,Bt,gi,xt,da,We,Jt,ir,Yo,_i,ys,oc="TFBlipTextModel",ca,le,Do,bi,Ms,nc=`The model can behave as an encoder (with only self-attention) as well as a decoder, in which case a layer of
cross-attention is added between the self-attention layers, following the architecture described in <a href="https://arxiv.org/abs/1706.03762" rel="nofollow">Attention is
all you need</a> by Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit,
Llion Jones, Aidan N. Gomez, Lukasz Kaiser and Illia Polosukhin. argument and <code>is_decoder</code> set to <code>True</code>; an
<code>encoder_hidden_states</code> is then expected as an input to the forward pass.`,vi,me,Oo,Ti,ws,sc='The <a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.TFBlipTextModel">TFBlipTextModel</a> forward method, overrides the <code>__call__</code> special method.',yi,jt,pa,Ne,Ct,dr,Ko,Mi,$s,rc="TFBlipVisionModel",ma,Ze,en,wi,he,tn,$i,Bs,ac='The <a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.TFBlipVisionModel">TFBlipVisionModel</a> forward method, overrides the <code>__call__</code> special method.',Bi,kt,ha,Pe,Ft,cr,on,xi,xs,lc="TFBlipForConditionalGeneration",fa,W,nn,Ji,Js,ic=`BLIP Model for image captioning. The model consists of a vision encoder and a text decoder. One can optionally pass
<code>input_ids</code> to the model, which serve as a text prompt, to make the text decoder continue the prompt. Otherwise,
the decoder starts generating text from the [BOS] (beginning-of-sequence) token. will start generating the caption
from the text input. If no text input is provided, the decoder will start with the [BOS] token only.`,ji,js,dc=`This model inherits from <a href="/docs/transformers/v4.34.0/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.)`,Ci,Cs,cc=`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.`,ki,te,sn,Fi,ks,pc='The <a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.TFBlipForConditionalGeneration">TFBlipForConditionalGeneration</a> forward method, overrides the <code>__call__</code> special method.',Ii,It,Ui,Ut,ua,Ve,zt,pr,rn,zi,Fs,mc="TFBlipForImageTextRetrieval",ga,N,an,Wi,Is,hc=`BLIP Model with a vision and text projector, and a classification head on top. The model is used in the context of
image-text retrieval. Given an image and a text, the model returns the probability of the text being relevant to
the image.`,Ni,Us,fc=`This model inherits from <a href="/docs/transformers/v4.34.0/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.)`,Zi,zs,uc=`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.`,Pi,oe,ln,Vi,Ws,gc='The <a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.TFBlipForImageTextRetrieval">TFBlipForImageTextRetrieval</a> forward method, overrides the <code>__call__</code> special method.',Hi,Wt,Ei,Nt,_a,He,Zt,mr,dn,Ri,Ns,_c="TFBlipForQuestionAnswering",ba,Z,cn,Gi,Zs,bc=`BLIP Model for visual question answering. The model consists of a vision encoder, a text encoder as well as a text
decoder. The vision encoder will encode the input image, the text encoder will encode the input question together
with the encoding of the image, and the text decoder will output the answer to the question.`,qi,Ps,vc=`This model inherits from <a href="/docs/transformers/v4.34.0/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.)`,Li,Vs,Tc=`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.`,Si,ne,pn,Xi,Hs,yc='The <a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.TFBlipForQuestionAnswering">TFBlipForQuestionAnswering</a> forward method, overrides the <code>__call__</code> special method.',Ai,Pt,Qi,Vt,va,hr,Ta;return Kt=new j({}),eo=new j({}),io=new j({}),po=new j({}),mo=new x({props:{name:"class transformers.BlipConfig",anchor:"transformers.BlipConfig",parameters:[{name:"text_config",val:" = None"},{name:"vision_config",val:" = None"},{name:"projection_dim",val:" = 512"},{name:"logit_scale_init_value",val:" = 2.6592"},{name:"image_text_hidden_size",val:" = 256"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.BlipConfig.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.34.0/en/model_doc/blip#transformers.BlipTextConfig">BlipTextConfig</a>.`,name:"text_config"},{anchor:"transformers.BlipConfig.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.34.0/en/model_doc/blip#transformers.BlipVisionConfig">BlipVisionConfig</a>.`,name:"vision_config"},{anchor:"transformers.BlipConfig.projection_dim",description:`<strong>projection_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
Dimentionality of text and vision projection layers.`,name:"projection_dim"},{anchor:"transformers.BlipConfig.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> paramter. Default is used as per the original BLIP implementation.`,name:"logit_scale_init_value"},{anchor:"transformers.BlipConfig.image_text_hidden_size",description:`<strong>image_text_hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 768) &#x2014;
Dimentionality of the hidden state of the image-text fusion layer.`,name:"image_text_hidden_size"},{anchor:"transformers.BlipConfig.kwargs",description:`<strong>kwargs</strong> (<em>optional</em>) &#x2014;
Dictionary of keyword arguments.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/configuration_blip.py#L279"}}),qe=new V({props:{anchor:"transformers.BlipConfig.example",$$slots:{default:[Oc]},$$scope:{ctx:B}}}),ho=new x({props:{name:"from_text_vision_configs",anchor:"transformers.BlipConfig.from_text_vision_configs",parameters:[{name:"text_config",val:": BlipTextConfig"},{name:"vision_config",val:": BlipVisionConfig"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/configuration_blip.py#L358",returnDescription:`
<p>An instance of a configuration object</p>
`,returnType:`
<p><a
  href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipConfig"
>BlipConfig</a></p>
`}}),fo=new j({}),uo=new x({props:{name:"class transformers.BlipTextConfig",anchor:"transformers.BlipTextConfig",parameters:[{name:"vocab_size",val:" = 30524"},{name:"hidden_size",val:" = 768"},{name:"encoder_hidden_size",val:" = 768"},{name:"intermediate_size",val:" = 3072"},{name:"projection_dim",val:" = 768"},{name:"num_hidden_layers",val:" = 12"},{name:"num_attention_heads",val:" = 8"},{name:"max_position_embeddings",val:" = 512"},{name:"hidden_act",val:" = 'gelu'"},{name:"layer_norm_eps",val:" = 1e-12"},{name:"hidden_dropout_prob",val:" = 0.0"},{name:"attention_probs_dropout_prob",val:" = 0.0"},{name:"initializer_range",val:" = 0.02"},{name:"bos_token_id",val:" = 30522"},{name:"eos_token_id",val:" = 2"},{name:"pad_token_id",val:" = 0"},{name:"sep_token_id",val:" = 102"},{name:"is_decoder",val:" = True"},{name:"use_cache",val:" = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.BlipTextConfig.vocab_size",description:`<strong>vocab_size</strong> (<code>int</code>, <em>optional</em>, defaults to 30522) &#x2014;
Vocabulary size of the <code>Blip</code> 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.34.0/en/model_doc/blip#transformers.BlipModel">BlipModel</a>.`,name:"vocab_size"},{anchor:"transformers.BlipTextConfig.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 768) &#x2014;
Dimensionality of the encoder layers and the pooler layer.`,name:"hidden_size"},{anchor:"transformers.BlipTextConfig.encoder_hidden_size",description:`<strong>encoder_hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 768) &#x2014;
Dimensionality of the encoder layers from the vision model.`,name:"encoder_hidden_size"},{anchor:"transformers.BlipTextConfig.intermediate_size",description:`<strong>intermediate_size</strong> (<code>int</code>, <em>optional</em>, defaults to 3072) &#x2014;
Dimensionality of the &#x201C;intermediate&#x201D; (i.e., feed-forward) layer in the Transformer encoder.`,name:"intermediate_size"},{anchor:"transformers.BlipTextConfig.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.BlipTextConfig.num_attention_heads",description:`<strong>num_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
Number of attention heads for each attention layer in the Transformer encoder.`,name:"num_attention_heads"},{anchor:"transformers.BlipTextConfig.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.BlipTextConfig.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;gelu&quot;</code> are supported.`,name:"hidden_act"},{anchor:"transformers.BlipTextConfig.layer_norm_eps",description:`<strong>layer_norm_eps</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-12) &#x2014;
The epsilon used by the layer normalization layers.`,name:"layer_norm_eps"},{anchor:"transformers.BlipTextConfig.hidden_dropout_prob",description:`<strong>hidden_dropout_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout probability for all fully connected layers in the embeddings, encoder, and pooler.`,name:"hidden_dropout_prob"},{anchor:"transformers.BlipTextConfig.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.BlipTextConfig.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.BlipTextConfig.bos_token_id",description:`<strong>bos_token_id</strong> (<code>int</code>, <em>optional</em>, defaults to 30522) &#x2014;
The id of the <code>beginning-of-sequence</code> token.`,name:"bos_token_id"},{anchor:"transformers.BlipTextConfig.eos_token_id",description:`<strong>eos_token_id</strong> (<code>int</code>, <em>optional</em>, defaults to 2) &#x2014;
The id of the <code>end-of-sequence</code> token.`,name:"eos_token_id"},{anchor:"transformers.BlipTextConfig.pad_token_id",description:`<strong>pad_token_id</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
The id of the <code>padding</code> token.`,name:"pad_token_id"},{anchor:"transformers.BlipTextConfig.sep_token_id",description:`<strong>sep_token_id</strong> (<code>int</code>, <em>optional</em>, defaults to 102) &#x2014;
The id of the <code>separator</code> token.`,name:"sep_token_id"},{anchor:"transformers.BlipTextConfig.is_decoder",description:`<strong>is_decoder</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether the model is used as a decoder.`,name:"is_decoder"},{anchor:"transformers.BlipTextConfig.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not the model should return the last key/values attentions (not used by all models).`,name:"use_cache"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/configuration_blip.py#L46"}}),Xe=new V({props:{anchor:"transformers.BlipTextConfig.example",$$slots:{default:[Kc]},$$scope:{ctx:B}}}),go=new j({}),_o=new x({props:{name:"class transformers.BlipVisionConfig",anchor:"transformers.BlipVisionConfig",parameters:[{name:"hidden_size",val:" = 768"},{name:"intermediate_size",val:" = 3072"},{name:"projection_dim",val:" = 512"},{name:"num_hidden_layers",val:" = 12"},{name:"num_attention_heads",val:" = 12"},{name:"image_size",val:" = 384"},{name:"patch_size",val:" = 16"},{name:"hidden_act",val:" = 'gelu'"},{name:"layer_norm_eps",val:" = 1e-05"},{name:"attention_dropout",val:" = 0.0"},{name:"initializer_range",val:" = 1e-10"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.BlipVisionConfig.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 768) &#x2014;
Dimensionality of the encoder layers and the pooler layer.`,name:"hidden_size"},{anchor:"transformers.BlipVisionConfig.intermediate_size",description:`<strong>intermediate_size</strong> (<code>int</code>, <em>optional</em>, defaults to 3072) &#x2014;
Dimensionality of the &#x201C;intermediate&#x201D; (i.e., feed-forward) layer in the Transformer encoder.`,name:"intermediate_size"},{anchor:"transformers.BlipVisionConfig.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.BlipVisionConfig.num_attention_heads",description:`<strong>num_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 12) &#x2014;
Number of attention heads for each attention layer in the Transformer encoder.`,name:"num_attention_heads"},{anchor:"transformers.BlipVisionConfig.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.BlipVisionConfig.patch_size",description:`<strong>patch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 32) &#x2014;
The size (resolution) of each patch.`,name:"patch_size"},{anchor:"transformers.BlipVisionConfig.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;gelu&quot;</code> are supported.`,name:"hidden_act"},{anchor:"transformers.BlipVisionConfig.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.BlipVisionConfig.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.BlipVisionConfig.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"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/configuration_blip.py#L180"}}),Qe=new V({props:{anchor:"transformers.BlipVisionConfig.example",$$slots:{default:[ep]},$$scope:{ctx:B}}}),bo=new j({}),vo=new x({props:{name:"class transformers.BlipProcessor",anchor:"transformers.BlipProcessor",parameters:[{name:"image_processor",val:""},{name:"tokenizer",val:""}],parametersDescription:[{anchor:"transformers.BlipProcessor.image_processor",description:`<strong>image_processor</strong> (<code>BlipImageProcessor</code>) &#x2014;
An instance of <a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipImageProcessor">BlipImageProcessor</a>. The image processor is a required input.`,name:"image_processor"},{anchor:"transformers.BlipProcessor.tokenizer",description:"<strong>tokenizer</strong> (<code>BertTokenizerFast</code>) &#x2014;\nAn instance of [&#x2018;BertTokenizerFast`]. The tokenizer is a required input.",name:"tokenizer"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/processing_blip.py#L27"}}),To=new x({props:{name:"batch_decode",anchor:"transformers.BlipProcessor.batch_decode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/processing_blip.py#L131"}}),yo=new x({props:{name:"decode",anchor:"transformers.BlipProcessor.decode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/processing_blip.py#L138"}}),Mo=new j({}),wo=new x({props:{name:"class transformers.BlipImageProcessor",anchor:"transformers.BlipImageProcessor",parameters:[{name:"do_resize",val:": bool = True"},{name:"size",val:": typing.Dict[str, int] = None"},{name:"resample",val:": Resampling = <Resampling.BICUBIC: 3>"},{name:"do_rescale",val:": bool = True"},{name:"rescale_factor",val:": typing.Union[int, float] = 0.00392156862745098"},{name:"do_normalize",val:": bool = True"},{name:"image_mean",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"image_std",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"do_convert_rgb",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.BlipImageProcessor.do_resize",description:`<strong>do_resize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to resize the image&#x2019;s (height, width) dimensions to the specified <code>size</code>. Can be overridden by the
<code>do_resize</code> parameter in the <code>preprocess</code> method.`,name:"do_resize"},{anchor:"transformers.BlipImageProcessor.size",description:`<strong>size</strong> (<code>dict</code>, <em>optional</em>, defaults to <code>{&quot;height&quot; -- 384, &quot;width&quot;: 384}</code>):
Size of the output image after resizing. Can be overridden by the <code>size</code> parameter in the <code>preprocess</code>
method.`,name:"size"},{anchor:"transformers.BlipImageProcessor.resample",description:`<strong>resample</strong> (<code>PILImageResampling</code>, <em>optional</em>, defaults to <code>PILImageResampling.BICUBIC</code>) &#x2014;
Resampling filter to use if resizing the image. Only has an effect if <code>do_resize</code> is set to <code>True</code>. Can be
overridden by the <code>resample</code> parameter in the <code>preprocess</code> method.`,name:"resample"},{anchor:"transformers.BlipImageProcessor.do_rescale",description:`<strong>do_rescale</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Wwhether to rescale the image by the specified scale <code>rescale_factor</code>. Can be overridden by the
<code>do_rescale</code> parameter in the <code>preprocess</code> method.`,name:"do_rescale"},{anchor:"transformers.BlipImageProcessor.rescale_factor",description:`<strong>rescale_factor</strong> (<code>int</code> or <code>float</code>, <em>optional</em>, defaults to <code>1/255</code>) &#x2014;
Scale factor to use if rescaling the image. Only has an effect if <code>do_rescale</code> is set to <code>True</code>. Can be
overridden by the <code>rescale_factor</code> parameter in the <code>preprocess</code> method.`,name:"rescale_factor"},{anchor:"transformers.BlipImageProcessor.do_normalize",description:`<strong>do_normalize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to normalize the image. Can be overridden by the <code>do_normalize</code> parameter in the <code>preprocess</code>
method. Can be overridden by the <code>do_normalize</code> parameter in the <code>preprocess</code> method.`,name:"do_normalize"},{anchor:"transformers.BlipImageProcessor.image_mean",description:`<strong>image_mean</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>IMAGENET_STANDARD_MEAN</code>) &#x2014;
Mean to use if normalizing the image. This is a float or list of floats the length of the number of
channels in the image. Can be overridden by the <code>image_mean</code> parameter in the <code>preprocess</code> method. Can be
overridden by the <code>image_mean</code> parameter in the <code>preprocess</code> method.`,name:"image_mean"},{anchor:"transformers.BlipImageProcessor.image_std",description:`<strong>image_std</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>IMAGENET_STANDARD_STD</code>) &#x2014;
Standard deviation to use if normalizing the image. This is a float or list of floats the length of the
number of channels in the image. Can be overridden by the <code>image_std</code> parameter in the <code>preprocess</code> method.
Can be overridden by the <code>image_std</code> parameter in the <code>preprocess</code> method.`,name:"image_std"},{anchor:"transformers.BlipImageProcessor.do_convert_rgb",description:`<strong>do_convert_rgb</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to convert the image to RGB.`,name:"do_convert_rgb"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/image_processing_blip.py#L45"}}),$o=new x({props:{name:"preprocess",anchor:"transformers.BlipImageProcessor.preprocess",parameters:[{name:"images",val:": typing.Union[ForwardRef('PIL.Image.Image'), numpy.ndarray, ForwardRef('torch.Tensor'), typing.List[ForwardRef('PIL.Image.Image')], typing.List[numpy.ndarray], typing.List[ForwardRef('torch.Tensor')]]"},{name:"do_resize",val:": typing.Optional[bool] = None"},{name:"size",val:": typing.Union[typing.Dict[str, int], NoneType] = None"},{name:"resample",val:": Resampling = None"},{name:"do_rescale",val:": typing.Optional[bool] = None"},{name:"rescale_factor",val:": typing.Optional[float] = None"},{name:"do_normalize",val:": typing.Optional[bool] = None"},{name:"image_mean",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"image_std",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"return_tensors",val:": typing.Union[str, transformers.utils.generic.TensorType, NoneType] = None"},{name:"do_convert_rgb",val:": bool = None"},{name:"data_format",val:": ChannelDimension = <ChannelDimension.FIRST: 'channels_first'>"},{name:"input_data_format",val:": typing.Union[str, transformers.image_utils.ChannelDimension, NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.BlipImageProcessor.preprocess.images",description:`<strong>images</strong> (<code>ImageInput</code>) &#x2014;
Image to preprocess. Expects a single or batch of images with pixel values ranging from 0 to 255. If
passing in images with pixel values between 0 and 1, set <code>do_rescale=False</code>.`,name:"images"},{anchor:"transformers.BlipImageProcessor.preprocess.do_resize",description:`<strong>do_resize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_resize</code>) &#x2014;
Whether to resize the image.`,name:"do_resize"},{anchor:"transformers.BlipImageProcessor.preprocess.size",description:`<strong>size</strong> (<code>Dict[str, int]</code>, <em>optional</em>, defaults to <code>self.size</code>) &#x2014;
Controls the size of the image after <code>resize</code>. The shortest edge of the image is resized to
<code>size[&quot;shortest_edge&quot;]</code> whilst preserving the aspect ratio. If the longest edge of this resized image
is &gt; <code>int(size[&quot;shortest_edge&quot;] * (1333 / 800))</code>, then the image is resized again to make the longest
edge equal to <code>int(size[&quot;shortest_edge&quot;] * (1333 / 800))</code>.`,name:"size"},{anchor:"transformers.BlipImageProcessor.preprocess.resample",description:`<strong>resample</strong> (<code>PILImageResampling</code>, <em>optional</em>, defaults to <code>self.resample</code>) &#x2014;
Resampling filter to use if resizing the image. Only has an effect if <code>do_resize</code> is set to <code>True</code>.`,name:"resample"},{anchor:"transformers.BlipImageProcessor.preprocess.do_rescale",description:`<strong>do_rescale</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_rescale</code>) &#x2014;
Whether to rescale the image values between [0 - 1].`,name:"do_rescale"},{anchor:"transformers.BlipImageProcessor.preprocess.rescale_factor",description:`<strong>rescale_factor</strong> (<code>float</code>, <em>optional</em>, defaults to <code>self.rescale_factor</code>) &#x2014;
Rescale factor to rescale the image by if <code>do_rescale</code> is set to <code>True</code>.`,name:"rescale_factor"},{anchor:"transformers.BlipImageProcessor.preprocess.do_normalize",description:`<strong>do_normalize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_normalize</code>) &#x2014;
Whether to normalize the image.`,name:"do_normalize"},{anchor:"transformers.BlipImageProcessor.preprocess.image_mean",description:`<strong>image_mean</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>self.image_mean</code>) &#x2014;
Image mean to normalize the image by if <code>do_normalize</code> is set to <code>True</code>.`,name:"image_mean"},{anchor:"transformers.BlipImageProcessor.preprocess.image_std",description:`<strong>image_std</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>self.image_std</code>) &#x2014;
Image standard deviation to normalize the image by if <code>do_normalize</code> is set to <code>True</code>.`,name:"image_std"},{anchor:"transformers.BlipImageProcessor.preprocess.do_convert_rgb",description:`<strong>do_convert_rgb</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_convert_rgb</code>) &#x2014;
Whether to convert the image to RGB.`,name:"do_convert_rgb"},{anchor:"transformers.BlipImageProcessor.preprocess.return_tensors",description:`<strong>return_tensors</strong> (<code>str</code> or <code>TensorType</code>, <em>optional</em>) &#x2014;
The type of tensors to return. Can be one of:<ul>
<li>Unset: Return a list of <code>np.ndarray</code>.</li>
<li><code>TensorType.TENSORFLOW</code> or <code>&apos;tf&apos;</code>: Return a batch of type <code>tf.Tensor</code>.</li>
<li><code>TensorType.PYTORCH</code> or <code>&apos;pt&apos;</code>: Return a batch of type <code>torch.Tensor</code>.</li>
<li><code>TensorType.NUMPY</code> or <code>&apos;np&apos;</code>: Return a batch of type <code>np.ndarray</code>.</li>
<li><code>TensorType.JAX</code> or <code>&apos;jax&apos;</code>: Return a batch of type <code>jax.numpy.ndarray</code>.</li>
</ul>`,name:"return_tensors"},{anchor:"transformers.BlipImageProcessor.preprocess.data_format",description:`<strong>data_format</strong> (<code>ChannelDimension</code> or <code>str</code>, <em>optional</em>, defaults to <code>ChannelDimension.FIRST</code>) &#x2014;
The channel dimension format for the output image. Can be one of:<ul>
<li><code>&quot;channels_first&quot;</code> or <code>ChannelDimension.FIRST</code>: image in (num_channels, height, width) format.</li>
<li><code>&quot;channels_last&quot;</code> or <code>ChannelDimension.LAST</code>: image in (height, width, num_channels) format.</li>
<li>Unset: Use the channel dimension format of the input image.</li>
</ul>`,name:"data_format"},{anchor:"transformers.BlipImageProcessor.preprocess.input_data_format",description:`<strong>input_data_format</strong> (<code>ChannelDimension</code> or <code>str</code>, <em>optional</em>) &#x2014;
The channel dimension format for the input image. If unset, the channel dimension format is inferred
from the input image. Can be one of:<ul>
<li><code>&quot;channels_first&quot;</code> or <code>ChannelDimension.FIRST</code>: image in (num_channels, height, width) format.</li>
<li><code>&quot;channels_last&quot;</code> or <code>ChannelDimension.LAST</code>: image in (height, width, num_channels) format.</li>
<li><code>&quot;none&quot;</code> or <code>ChannelDimension.NONE</code>: image in (height, width) format.</li>
</ul>`,name:"input_data_format"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/image_processing_blip.py#L158"}}),Bo=new j({}),xo=new x({props:{name:"class transformers.BlipModel",anchor:"transformers.BlipModel",parameters:[{name:"config",val:": BlipConfig"}],parametersDescription:[{anchor:"transformers.BlipModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipConfig">BlipConfig</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.34.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_blip.py#L726"}}),Jo=new x({props:{name:"forward",anchor:"transformers.BlipModel.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:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.BlipModel.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.34.0/en/model_doc/auto#transformers.AutoProcessor">AutoProcessor</a>. See <code>BlipProcessor.__call__()</code> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.BlipModel.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.BlipModel.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.BlipModel.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.34.0/en/model_doc/blip#transformers.BlipImageProcessor">BlipImageProcessor</a>. See <a href="/docs/transformers/v4.34.0/en/model_doc/deit#transformers.DeiTFeatureExtractor.__call__">BlipImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.BlipModel.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.BlipModel.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.BlipModel.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.BlipModel.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.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_blip.py#L836",returnDescription:`
<p>A <code>transformers.models.blip.modeling_blip.BlipOutput</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.blip.configuration_blip.BlipConfig'&gt;</code>) and inputs.</p>
<ul>
<li><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.</li>
<li><strong>logits_per_image:(<code>torch.FloatTensor</code></strong> 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.</li>
<li><strong>logits_per_text:(<code>torch.FloatTensor</code></strong> 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.</li>
<li><strong>text_embeds(<code>torch.FloatTensor</code></strong> 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.34.0/en/model_doc/blip#transformers.BlipTextModel"
>BlipTextModel</a>.</li>
<li><strong>image_embeds(<code>torch.FloatTensor</code></strong> 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.34.0/en/model_doc/blip#transformers.BlipVisionModel"
>BlipVisionModel</a>.</li>
<li><strong>text_model_output(<code>BaseModelOutputWithPooling</code>):</strong>
The output of the <a
  href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipTextModel"
>BlipTextModel</a>.</li>
<li><strong>vision_model_output(<code>BaseModelOutputWithPooling</code>):</strong>
The output of the <a
  href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipVisionModel"
>BlipVisionModel</a>.</li>
</ul>
`,returnType:`
<p><code>transformers.models.blip.modeling_blip.BlipOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),ot=new P({props:{$$slots:{default:[tp]},$$scope:{ctx:B}}}),nt=new V({props:{anchor:"transformers.BlipModel.forward.example",$$slots:{default:[op]},$$scope:{ctx:B}}}),jo=new x({props:{name:"get_text_features",anchor:"transformers.BlipModel.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:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.BlipModel.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.34.0/en/model_doc/auto#transformers.AutoProcessor">AutoProcessor</a>. See <code>BlipProcessor.__call__()</code> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.BlipModel.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.BlipModel.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.BlipModel.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.BlipModel.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.BlipModel.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.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_blip.py#L761",returnDescription:`
<p>The text embeddings obtained by
applying the projection layer to the pooled output of <a
  href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipTextModel"
>BlipTextModel</a>.</p>
`,returnType:`
<p>text_features (<code>torch.FloatTensor</code> of shape <code>(batch_size, output_dim</code>)</p>
`}}),st=new P({props:{$$slots:{default:[np]},$$scope:{ctx:B}}}),rt=new V({props:{anchor:"transformers.BlipModel.get_text_features.example",$$slots:{default:[sp]},$$scope:{ctx:B}}}),Co=new x({props:{name:"get_image_features",anchor:"transformers.BlipModel.get_image_features",parameters:[{name:"pixel_values",val:": typing.Optional[torch.FloatTensor] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.BlipModel.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.34.0/en/model_doc/blip#transformers.BlipImageProcessor">BlipImageProcessor</a>. See <a href="/docs/transformers/v4.34.0/en/model_doc/deit#transformers.DeiTFeatureExtractor.__call__">BlipImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.BlipModel.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.BlipModel.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.BlipModel.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.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_blip.py#L799",returnDescription:`
<p>The image embeddings obtained by
applying the projection layer to the pooled output of <a
  href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipVisionModel"
>BlipVisionModel</a>.</p>
`,returnType:`
<p>image_features (<code>torch.FloatTensor</code> of shape <code>(batch_size, output_dim</code>)</p>
`}}),at=new P({props:{$$slots:{default:[rp]},$$scope:{ctx:B}}}),lt=new V({props:{anchor:"transformers.BlipModel.get_image_features.example",$$slots:{default:[ap]},$$scope:{ctx:B}}}),ko=new j({}),Fo=new x({props:{name:"class transformers.BlipTextModel",anchor:"transformers.BlipTextModel",parameters:[{name:"config",val:""},{name:"add_pooling_layer",val:" = True"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_blip_text.py#L572"}}),Io=new x({props:{name:"forward",anchor:"transformers.BlipTextModel.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:"head_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"inputs_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"encoder_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"encoder_hidden_states",val:": typing.Optional[torch.Tensor] = None"},{name:"encoder_attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"past_key_values",val:": typing.Optional[typing.List[torch.FloatTensor]] = None"},{name:"use_cache",val:": typing.Optional[bool] = 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"},{name:"is_decoder",val:": typing.Optional[bool] = False"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_blip_text.py#L671"}}),Uo=new j({}),zo=new x({props:{name:"class transformers.BlipVisionModel",anchor:"transformers.BlipVisionModel",parameters:[{name:"config",val:": BlipVisionConfig"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_blip.py#L659"}}),Wo=new x({props:{name:"forward",anchor:"transformers.BlipVisionModel.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.BlipVisionModel.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.34.0/en/model_doc/blip#transformers.BlipImageProcessor">BlipImageProcessor</a>. See <a href="/docs/transformers/v4.34.0/en/model_doc/deit#transformers.DeiTFeatureExtractor.__call__">BlipImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.BlipVisionModel.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.BlipVisionModel.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.BlipVisionModel.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.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_blip.py#L674",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.34.0/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.blip.configuration_blip.BlipVisionConfig'&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.34.0/en/main_classes/output#transformers.modeling_outputs.BaseModelOutputWithPooling"
>transformers.modeling_outputs.BaseModelOutputWithPooling</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),ct=new P({props:{$$slots:{default:[lp]},$$scope:{ctx:B}}}),No=new j({}),Zo=new x({props:{name:"class transformers.BlipForConditionalGeneration",anchor:"transformers.BlipForConditionalGeneration",parameters:[{name:"config",val:": BlipConfig"}],parametersDescription:[{anchor:"transformers.BlipForConditionalGeneration.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipConfig">BlipConfig</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.34.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_blip.py#L939"}}),Po=new x({props:{name:"forward",anchor:"transformers.BlipForConditionalGeneration.forward",parameters:[{name:"pixel_values",val:": FloatTensor"},{name:"input_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.LongTensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"labels",val:": typing.Optional[torch.LongTensor] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.BlipForConditionalGeneration.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.34.0/en/model_doc/blip#transformers.BlipImageProcessor">BlipImageProcessor</a>. See <a href="/docs/transformers/v4.34.0/en/model_doc/deit#transformers.DeiTFeatureExtractor.__call__">BlipImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.BlipForConditionalGeneration.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.BlipForConditionalGeneration.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.BlipForConditionalGeneration.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.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_blip.py#L960",returnDescription:`
<p>A <code>transformers.models.blip.modeling_blip.BlipForConditionalGenerationModelOutput</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.blip.configuration_blip.BlipVisionConfig'&gt;</code>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>torch.FloatTensor</code>, <em>optional</em>, returned when <code>labels</code> is provided, <code>torch.FloatTensor</code> of shape <code>(1,)</code>) — Languge modeling loss from the text decoder.</p>
</li>
<li>
<p><strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, config.vocab_size)</code>, <em>optional</em>) — Prediction scores of the language modeling head of the text decoder model.</p>
</li>
<li>
<p><strong>image_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, output_dim)</code>, <em>optional</em>) — The image embeddings obtained after applying the Vision Transformer model to the input image.</p>
</li>
<li>
<p><strong>last_hidden_state</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) — Sequence of hidden-states at the output of the last layer of the model.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code>) — 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) — 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><code>transformers.models.blip.modeling_blip.BlipForConditionalGenerationModelOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),mt=new P({props:{$$slots:{default:[ip]},$$scope:{ctx:B}}}),ht=new V({props:{anchor:"transformers.BlipForConditionalGeneration.forward.example",$$slots:{default:[dp]},$$scope:{ctx:B}}}),Vo=new j({}),Ho=new x({props:{name:"class transformers.BlipForImageTextRetrieval",anchor:"transformers.BlipForImageTextRetrieval",parameters:[{name:"config",val:": BlipConfig"}],parametersDescription:[{anchor:"transformers.BlipForImageTextRetrieval.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipConfig">BlipConfig</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.34.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_blip.py#L1333"}}),Eo=new x({props:{name:"forward",anchor:"transformers.BlipForImageTextRetrieval.forward",parameters:[{name:"input_ids",val:": LongTensor"},{name:"pixel_values",val:": FloatTensor"},{name:"use_itm_head",val:": typing.Optional[bool] = True"},{name:"attention_mask",val:": typing.Optional[torch.LongTensor] = 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.BlipForImageTextRetrieval.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.34.0/en/model_doc/blip#transformers.BlipImageProcessor">BlipImageProcessor</a>. See <a href="/docs/transformers/v4.34.0/en/model_doc/deit#transformers.DeiTFeatureExtractor.__call__">BlipImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.BlipForImageTextRetrieval.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.BlipForImageTextRetrieval.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.BlipForImageTextRetrieval.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.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_blip.py#L1369",returnDescription:`
<p>A <code>transformers.models.blip.modeling_blip.BlipTextVisionModelOutput</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.blip.configuration_blip.BlipVisionConfig'&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>labels</code> is provided) — Languge modeling loss from the text decoder.</p>
</li>
<li>
<p><strong>image_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, output_dim)</code> <em>optional</em> returned when model is initialized with <code>with_projection=True</code>) — The image embeddings obtained by applying the projection layer to the pooler_output.</p>
</li>
<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>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><code>transformers.models.blip.modeling_blip.BlipTextVisionModelOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),ut=new P({props:{$$slots:{default:[cp]},$$scope:{ctx:B}}}),gt=new V({props:{anchor:"transformers.BlipForImageTextRetrieval.forward.example",$$slots:{default:[pp]},$$scope:{ctx:B}}}),Ro=new j({}),Go=new x({props:{name:"class transformers.BlipForQuestionAnswering",anchor:"transformers.BlipForQuestionAnswering",parameters:[{name:"config",val:": BlipConfig"}],parametersDescription:[{anchor:"transformers.BlipForQuestionAnswering.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipConfig">BlipConfig</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.34.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_blip.py#L1111"}}),qo=new x({props:{name:"forward",anchor:"transformers.BlipForQuestionAnswering.forward",parameters:[{name:"input_ids",val:": LongTensor"},{name:"pixel_values",val:": FloatTensor"},{name:"decoder_input_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"decoder_attention_mask",val:": typing.Optional[torch.LongTensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.LongTensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"labels",val:": typing.Optional[torch.LongTensor] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.BlipForQuestionAnswering.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.34.0/en/model_doc/blip#transformers.BlipImageProcessor">BlipImageProcessor</a>. See <a href="/docs/transformers/v4.34.0/en/model_doc/deit#transformers.DeiTFeatureExtractor.__call__">BlipImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.BlipForQuestionAnswering.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.BlipForQuestionAnswering.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.BlipForQuestionAnswering.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.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_blip.py#L1133",returnDescription:`
<p>A <code>transformers.models.blip.modeling_blip.BlipTextVisionModelOutput</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.blip.configuration_blip.BlipVisionConfig'&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>labels</code> is provided) — Languge modeling loss from the text decoder.</p>
</li>
<li>
<p><strong>image_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, output_dim)</code> <em>optional</em> returned when model is initialized with <code>with_projection=True</code>) — The image embeddings obtained by applying the projection layer to the pooler_output.</p>
</li>
<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>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><code>transformers.models.blip.modeling_blip.BlipTextVisionModelOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),bt=new P({props:{$$slots:{default:[mp]},$$scope:{ctx:B}}}),vt=new V({props:{anchor:"transformers.BlipForQuestionAnswering.forward.example",$$slots:{default:[hp]},$$scope:{ctx:B}}}),Lo=new j({}),So=new x({props:{name:"class transformers.TFBlipModel",anchor:"transformers.TFBlipModel",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_tf_blip.py#L853"}}),Xo=new x({props:{name:"call",anchor:"transformers.TFBlipModel.call",parameters:[{name:"input_ids",val:": tf.Tensor | None = None"},{name:"pixel_values",val:": tf.Tensor | None = None"},{name:"attention_mask",val:": tf.Tensor | None = None"},{name:"position_ids",val:": 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:"return_dict",val:": Optional[bool] = None"},{name:"training",val:": Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.TFBlipModel.call.input_ids",description:`<strong>input_ids</strong> (<code>tf.Tensor</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.34.0/en/model_doc/auto#transformers.AutoProcessor">AutoProcessor</a>. See <code>BlipProcessor.__call__()</code> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.TFBlipModel.call.attention_mask",description:`<strong>attention_mask</strong> (<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.TFBlipModel.call.position_ids",description:`<strong>position_ids</strong> (<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.TFBlipModel.call.pixel_values",description:`<strong>pixel_values</strong> (<code>tf.Tensor</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.34.0/en/model_doc/blip#transformers.BlipImageProcessor">BlipImageProcessor</a>. See <a href="/docs/transformers/v4.34.0/en/model_doc/deit#transformers.DeiTFeatureExtractor.__call__">BlipImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.TFBlipModel.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.TFBlipModel.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.`,name:"output_attentions"},{anchor:"transformers.TFBlipModel.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.`,name:"output_hidden_states"},{anchor:"transformers.TFBlipModel.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.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_tf_blip.py#L871",returnDescription:`
<p>A <code>transformers.models.blip.modeling_tf_blip.TFBlipOutput</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.blip.configuration_blip.BlipConfig'&gt;</code>) and inputs.</p>
<ul>
<li><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.</li>
<li><strong>logits_per_image:(<code>tf.Tensor</code></strong> 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.</li>
<li><strong>logits_per_text:(<code>tf.Tensor</code></strong> 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.</li>
<li><strong>text_embeds(<code>tf.Tensor</code></strong> 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.34.0/en/model_doc/blip#transformers.BlipTextModel"
>BlipTextModel</a>.</li>
<li><strong>image_embeds(<code>tf.Tensor</code></strong> 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.34.0/en/model_doc/blip#transformers.BlipVisionModel"
>BlipVisionModel</a>.</li>
<li><strong>text_model_output(<code>BaseModelOutputWithPooling</code>):</strong>
The output of the <a
  href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipTextModel"
>BlipTextModel</a>.</li>
<li><strong>vision_model_output(<code>BaseModelOutputWithPooling</code>):</strong>
The output of the <a
  href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipVisionModel"
>BlipVisionModel</a>.</li>
</ul>
`,returnType:`
<p><code>transformers.models.blip.modeling_tf_blip.TFBlipOutput</code> or <code>tuple(tf.Tensor)</code></p>
`}}),yt=new P({props:{$$slots:{default:[fp]},$$scope:{ctx:B}}}),Mt=new V({props:{anchor:"transformers.TFBlipModel.call.example",$$slots:{default:[up]},$$scope:{ctx:B}}}),Ao=new x({props:{name:"get_text_features",anchor:"transformers.TFBlipModel.get_text_features",parameters:[{name:"input_ids",val:": tf.Tensor | None = None"},{name:"attention_mask",val:": tf.Tensor | None = None"},{name:"position_ids",val:": tf.Tensor | None = None"},{name:"return_dict",val:": Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.TFBlipModel.get_text_features.input_ids",description:`<strong>input_ids</strong> (<code>tf.Tensor</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.34.0/en/model_doc/auto#transformers.AutoProcessor">AutoProcessor</a>. See <code>BlipProcessor.__call__()</code> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.TFBlipModel.get_text_features.attention_mask",description:`<strong>attention_mask</strong> (<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.TFBlipModel.get_text_features.position_ids",description:`<strong>position_ids</strong> (<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.TFBlipModel.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.TFBlipModel.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.TFBlipModel.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.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_tf_blip.py#L923",returnDescription:`
<p>The text embeddings obtained by applying
the projection layer to the pooled output of <a
  href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.TFBlipTextModel"
>TFBlipTextModel</a>.</p>
`,returnType:`
<p>text_features (<code>tf.Tensor</code> of shape <code>(batch_size, output_dim</code>)</p>
`}}),wt=new P({props:{$$slots:{default:[gp]},$$scope:{ctx:B}}}),$t=new V({props:{anchor:"transformers.TFBlipModel.get_text_features.example",$$slots:{default:[_p]},$$scope:{ctx:B}}}),Qo=new x({props:{name:"get_image_features",anchor:"transformers.TFBlipModel.get_image_features",parameters:[{name:"pixel_values",val:": tf.Tensor | None = None"},{name:"return_dict",val:": Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.TFBlipModel.get_image_features.pixel_values",description:`<strong>pixel_values</strong> (<code>tf.Tensor</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.34.0/en/model_doc/blip#transformers.BlipImageProcessor">BlipImageProcessor</a>. See <a href="/docs/transformers/v4.34.0/en/model_doc/deit#transformers.DeiTFeatureExtractor.__call__">BlipImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.TFBlipModel.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.TFBlipModel.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.TFBlipModel.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.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_tf_blip.py#L961",returnDescription:`
<p>The image embeddings obtained by applying
the projection layer to the pooled output of <a
  href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.TFBlipVisionModel"
>TFBlipVisionModel</a>.</p>
`,returnType:`
<p>image_features (<code>tf.Tensor</code> of shape <code>(batch_size, output_dim</code>)</p>
`}}),Bt=new P({props:{$$slots:{default:[bp]},$$scope:{ctx:B}}}),xt=new V({props:{anchor:"transformers.TFBlipModel.get_image_features.example",$$slots:{default:[vp]},$$scope:{ctx:B}}}),Yo=new j({}),Do=new x({props:{name:"class transformers.TFBlipTextModel",anchor:"transformers.TFBlipTextModel",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_tf_blip_text.py#L580"}}),Oo=new x({props:{name:"call",anchor:"transformers.TFBlipTextModel.call",parameters:[{name:"input_ids",val:": TFModelInputType | None = None"},{name:"attention_mask",val:": tf.Tensor | None = None"},{name:"position_ids",val:": tf.Tensor | None = None"},{name:"head_mask",val:": tf.Tensor | None = None"},{name:"inputs_embeds",val:": tf.Tensor | None = None"},{name:"encoder_embeds",val:": tf.Tensor | None = None"},{name:"encoder_hidden_states",val:": tf.Tensor | None = None"},{name:"encoder_attention_mask",val:": tf.Tensor | None = None"},{name:"past_key_values",val:": Tuple[Tuple[tf.Tensor]] | None = None"},{name:"use_cache",val:": bool | None = None"},{name:"output_attentions",val:": bool | None = None"},{name:"output_hidden_states",val:": bool | None = None"},{name:"return_dict",val:": bool | None = None"},{name:"is_decoder",val:": bool = False"},{name:"training",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TFBlipTextModel.call.input_ids",description:`<strong>input_ids</strong> (<code>tf.Tensor</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.34.0/en/model_doc/auto#transformers.AutoProcessor">AutoProcessor</a>. See <code>BlipProcessor.__call__()</code> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.TFBlipTextModel.call.attention_mask",description:`<strong>attention_mask</strong> (<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.TFBlipTextModel.call.position_ids",description:`<strong>position_ids</strong> (<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.TFBlipTextModel.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.`,name:"output_attentions"},{anchor:"transformers.TFBlipTextModel.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.`,name:"output_hidden_states"},{anchor:"transformers.TFBlipTextModel.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.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.TFBlipTextModel.call.encoder_hidden_states",description:`<strong>encoder_hidden_states</strong>  (<code>tf.Tensor</code>, <em>optional</em>) &#x2014;
Sequence of hidden-states at the output of the last layer of the encoder. Used in the cross-attention if
the model is configured as a decoder.`,name:"encoder_hidden_states"},{anchor:"transformers.TFBlipTextModel.call.encoder_attention_mask",description:`<strong>encoder_attention_mask</strong> (<code>tf.Tensor</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on the padding token indices of the encoder input. This mask is used in
the cross-attention if the model is configured as a decoder. 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>`,name:"encoder_attention_mask"},{anchor:"transformers.TFBlipTextModel.call.past_key_values",description:`<strong>past_key_values</strong> (<code>tuple(tuple(tf.Tensor))</code>, <em>optional</em>) &#x2014;
Contains precomputed key and value hidden states of the attention blocks. Can be used to speed up decoding.
If <code>past_key_values</code> are used, the user can optionally input only the last <code>decoder_input_ids</code> (those that
don&#x2019;t have their past key value states given to this model) of shape <code>(batch_size, 1)</code> instead of all
<code>decoder_input_ids</code> of shape <code>(batch_size, sequence_length)</code>.`,name:"past_key_values"},{anchor:"transformers.TFBlipTextModel.call.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If set to <code>True</code>, <code>past_key_values</code> key value states are returned and can be used to speed up decoding (see
<code>past_key_values</code>).`,name:"use_cache"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_tf_blip_text.py#L668"}}),jt=new P({props:{$$slots:{default:[Tp]},$$scope:{ctx:B}}}),Ko=new j({}),en=new x({props:{name:"class transformers.TFBlipVisionModel",anchor:"transformers.TFBlipVisionModel",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_tf_blip.py#L649"}}),tn=new x({props:{name:"call",anchor:"transformers.TFBlipVisionModel.call",parameters:[{name:"pixel_values",val:": 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:": Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.TFBlipVisionModel.call.pixel_values",description:`<strong>pixel_values</strong> (<code>tf.Tensor</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.34.0/en/model_doc/blip#transformers.BlipImageProcessor">BlipImageProcessor</a>. See <a href="/docs/transformers/v4.34.0/en/model_doc/deit#transformers.DeiTFeatureExtractor.__call__">BlipImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.TFBlipVisionModel.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.`,name:"output_attentions"},{anchor:"transformers.TFBlipVisionModel.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.`,name:"output_hidden_states"},{anchor:"transformers.TFBlipVisionModel.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.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_tf_blip.py#L672",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.34.0/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.blip.configuration_blip.BlipVisionConfig'&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.34.0/en/main_classes/output#transformers.modeling_tf_outputs.TFBaseModelOutputWithPooling"
>transformers.modeling_tf_outputs.TFBaseModelOutputWithPooling</a> or <code>tuple(tf.Tensor)</code></p>
`}}),kt=new P({props:{$$slots:{default:[yp]},$$scope:{ctx:B}}}),on=new j({}),nn=new x({props:{name:"class transformers.TFBlipForConditionalGeneration",anchor:"transformers.TFBlipForConditionalGeneration",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFBlipForConditionalGeneration.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipConfig">BlipConfig</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.34.0/en/main_classes/model#transformers.TFPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_tf_blip.py#L1008"}}),sn=new x({props:{name:"call",anchor:"transformers.TFBlipForConditionalGeneration.call",parameters:[{name:"pixel_values",val:": tf.Tensor"},{name:"input_ids",val:": tf.Tensor | None = None"},{name:"attention_mask",val:": tf.Tensor | None = None"},{name:"output_attentions",val:": Optional[bool] = None"},{name:"output_hidden_states",val:": Optional[bool] = None"},{name:"labels",val:": tf.Tensor | None = None"},{name:"return_dict",val:": Optional[bool] = None"},{name:"training",val:": Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.TFBlipForConditionalGeneration.call.pixel_values",description:`<strong>pixel_values</strong> (<code>tf.Tensor</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.34.0/en/model_doc/blip#transformers.BlipImageProcessor">BlipImageProcessor</a>. See <a href="/docs/transformers/v4.34.0/en/model_doc/deit#transformers.DeiTFeatureExtractor.__call__">BlipImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.TFBlipForConditionalGeneration.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.`,name:"output_attentions"},{anchor:"transformers.TFBlipForConditionalGeneration.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.`,name:"output_hidden_states"},{anchor:"transformers.TFBlipForConditionalGeneration.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.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_tf_blip.py#L1026",returnDescription:`
<p>A <code>transformers.models.blip.modeling_tf_blip.TFBlipForConditionalGenerationModelOutput</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.blip.configuration_blip.BlipConfig'&gt;</code>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>tf.Tensor</code>, <em>optional</em>, returned when <code>labels</code> is provided, <code>tf.Tensor</code> of shape <code>(1,)</code>) — Languge modeling loss from the text decoder.</p>
</li>
<li>
<p><strong>logits</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, config.vocab_size)</code>, <em>optional</em>) — Prediction scores of the language modeling head of the text decoder model.</p>
</li>
<li>
<p><strong>image_embeds</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, output_dim)</code>, <em>optional</em>) — The image embeddings obtained after applying the Vision Transformer model to the input image.</p>
</li>
<li>
<p><strong>last_hidden_state</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) — Sequence of hidden-states at the output of the last layer of the model.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code>) — Tuple of <code>tf.Tensor</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(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed) — 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><code>transformers.models.blip.modeling_tf_blip.TFBlipForConditionalGenerationModelOutput</code> or <code>tuple(tf.Tensor)</code></p>
`}}),It=new P({props:{$$slots:{default:[Mp]},$$scope:{ctx:B}}}),Ut=new V({props:{anchor:"transformers.TFBlipForConditionalGeneration.call.example",$$slots:{default:[wp]},$$scope:{ctx:B}}}),rn=new j({}),an=new x({props:{name:"class transformers.TFBlipForImageTextRetrieval",anchor:"transformers.TFBlipForImageTextRetrieval",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFBlipForImageTextRetrieval.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipConfig">BlipConfig</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.34.0/en/main_classes/model#transformers.TFPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_tf_blip.py#L1421"}}),ln=new x({props:{name:"call",anchor:"transformers.TFBlipForImageTextRetrieval.call",parameters:[{name:"input_ids",val:": tf.Tensor"},{name:"pixel_values",val:": tf.Tensor | None = None"},{name:"use_itm_head",val:": Optional[bool] = True"},{name:"attention_mask",val:": 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:": Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.TFBlipForImageTextRetrieval.call.pixel_values",description:`<strong>pixel_values</strong> (<code>tf.Tensor</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.34.0/en/model_doc/blip#transformers.BlipImageProcessor">BlipImageProcessor</a>. See <a href="/docs/transformers/v4.34.0/en/model_doc/deit#transformers.DeiTFeatureExtractor.__call__">BlipImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.TFBlipForImageTextRetrieval.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.`,name:"output_attentions"},{anchor:"transformers.TFBlipForImageTextRetrieval.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.`,name:"output_hidden_states"},{anchor:"transformers.TFBlipForImageTextRetrieval.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.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_tf_blip.py#L1464",returnDescription:`
<p>A <code>transformers.models.blip.modeling_tf_blip.TFBlipImageTextMatchingModelOutput</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.blip.configuration_blip.BlipVisionConfig'&gt;</code>) and inputs.</p>
<ul>
<li>
<p><strong>itm_score</strong> (<code>tf.Tensor</code>) — The image-text similarity scores.</p>
</li>
<li>
<p><strong>loss</strong> (<code>tf.Tensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>labels</code> is provided) — Languge modeling loss from the text decoder.</p>
</li>
<li>
<p><strong>image_embeds</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, output_dim)</code> <em>optional</em> returned when model is initialized with <code>with_projection=True</code>) — The image embeddings obtained by applying the projection layer to the pooler_output.</p>
</li>
<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>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, 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>vision_pooler_output</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, hidden_size)</code>, <em>optional</em>) — Last layer hidden-state of the vision of the vision-only branch of the model.</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>
<li>
<p><strong>question_embeds</strong> (<code>tf.Tensor</code>) — The question embeddings obtained by the text projection layer.</p>
</li>
</ul>
`,returnType:`
<p><code>transformers.models.blip.modeling_tf_blip.TFBlipImageTextMatchingModelOutput</code> or <code>tuple(tf.Tensor)</code></p>
`}}),Wt=new P({props:{$$slots:{default:[$p]},$$scope:{ctx:B}}}),Nt=new V({props:{anchor:"transformers.TFBlipForImageTextRetrieval.call.example",$$slots:{default:[Bp]},$$scope:{ctx:B}}}),dn=new j({}),cn=new x({props:{name:"class transformers.TFBlipForQuestionAnswering",anchor:"transformers.TFBlipForQuestionAnswering",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFBlipForQuestionAnswering.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.34.0/en/model_doc/blip#transformers.BlipConfig">BlipConfig</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.34.0/en/main_classes/model#transformers.TFPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_tf_blip.py#L1180"}}),pn=new x({props:{name:"call",anchor:"transformers.TFBlipForQuestionAnswering.call",parameters:[{name:"input_ids",val:": tf.Tensor"},{name:"pixel_values",val:": tf.Tensor | None = None"},{name:"decoder_input_ids",val:": tf.Tensor | None = None"},{name:"decoder_attention_mask",val:": tf.Tensor | None = None"},{name:"attention_mask",val:": tf.Tensor | None = None"},{name:"output_attentions",val:": Optional[bool] = None"},{name:"output_hidden_states",val:": Optional[bool] = None"},{name:"labels",val:": tf.Tensor | None = None"},{name:"return_dict",val:": Optional[bool] = None"},{name:"training",val:": Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.TFBlipForQuestionAnswering.call.pixel_values",description:`<strong>pixel_values</strong> (<code>tf.Tensor</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.34.0/en/model_doc/blip#transformers.BlipImageProcessor">BlipImageProcessor</a>. See <a href="/docs/transformers/v4.34.0/en/model_doc/deit#transformers.DeiTFeatureExtractor.__call__">BlipImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.TFBlipForQuestionAnswering.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.`,name:"output_attentions"},{anchor:"transformers.TFBlipForQuestionAnswering.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.`,name:"output_hidden_states"},{anchor:"transformers.TFBlipForQuestionAnswering.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.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/blip/modeling_tf_blip.py#L1223",returnDescription:`
<p>A <code>transformers.models.blip.modeling_tf_blip.TFBlipTextVisionModelOutput</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.blip.configuration_blip.BlipVisionConfig'&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>labels</code> is provided) — Languge modeling loss from the text decoder.</p>
</li>
<li>
<p><strong>image_embeds</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, output_dim)</code> <em>optional</em> returned when model is initialized with <code>with_projection=True</code>) — The image embeddings obtained by applying the projection layer to the pooler_output.</p>
</li>
<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>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, 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(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><code>transformers.models.blip.modeling_tf_blip.TFBlipTextVisionModelOutput</code> or <code>tuple(tf.Tensor)</code></p>
`}}),Pt=new P({props:{$$slots:{default:[xp]},$$scope:{ctx:B}}}),Vt=new V({props:{anchor:"transformers.TFBlipForQuestionAnswering.call.example",$$slots:{default:[Jp]},$$scope:{ctx:B}}}),{c(){o=r("meta"),M=l(),d=r("p"),p=l(),w=r("h1"),s=r("a"),$=r("span"),u(Kt.$$.fragment),Na=l(),wn=r("span"),wn.textContent=Yi,Cr=l(),Te=r("h2"),Ee=r("a"),As=r("span"),u(eo.$$.fragment),Za=l(),$n=r("span"),$n.textContent=Di,kr=l(),to=r("p"),to.innerHTML=Oi,Fr=l(),oo=r("p"),oo.textContent=Ki,Ir=l(),no=r("ul"),no.innerHTML=ed,Ur=l(),so=r("p"),so.textContent=td,zr=l(),ro=r("p"),ro.innerHTML=od,Wr=l(),ao=r("p"),ao.innerHTML=nd,Nr=l(),lo=r("p"),lo.innerHTML=sd,Zr=l(),ye=r("h2"),Re=r("a"),Qs=r("span"),u(io.$$.fragment),Pa=l(),Bn=r("span"),Bn.textContent=rd,Pr=l(),co=r("ul"),co.innerHTML=ad,Vr=l(),Me=r("h2"),Ge=r("a"),Ys=r("span"),u(po.$$.fragment),Va=l(),xn=r("span"),xn.textContent=ld,Hr=l(),k=r("div"),u(mo.$$.fragment),Ha=l(),Jn=r("p"),Jn.innerHTML=id,Ea=l(),jn=r("p"),jn.innerHTML=dd,Ra=l(),u(qe.$$.fragment),Ga=l(),Le=r("div"),u(ho.$$.fragment),qa=l(),Cn=r("p"),Cn.innerHTML=cd,Er=l(),we=r("h2"),Se=r("a"),Ds=r("span"),u(fo.$$.fragment),La=l(),kn=r("span"),kn.textContent=pd,Rr=l(),E=r("div"),u(uo.$$.fragment),Sa=l(),Fn=r("p"),Fn.innerHTML=md,Xa=l(),In=r("p"),In.innerHTML=hd,Aa=l(),u(Xe.$$.fragment),Gr=l(),$e=r("h2"),Ae=r("a"),Os=r("span"),u(go.$$.fragment),Qa=l(),Un=r("span"),Un.textContent=fd,qr=l(),R=r("div"),u(_o.$$.fragment),Ya=l(),zn=r("p"),zn.innerHTML=ud,Da=l(),Wn=r("p"),Wn.innerHTML=gd,Oa=l(),u(Qe.$$.fragment),Lr=l(),Be=r("h2"),Ye=r("a"),Ks=r("span"),u(bo.$$.fragment),Ka=l(),Nn=r("span"),Nn.textContent=_d,Sr=l(),F=r("div"),u(vo.$$.fragment),el=l(),Zn=r("p"),Zn.textContent=bd,tl=l(),Pn=r("p"),Pn.innerHTML=vd,ol=l(),De=r("div"),u(To.$$.fragment),nl=l(),Vn=r("p"),Vn.innerHTML=Td,sl=l(),Oe=r("div"),u(yo.$$.fragment),rl=l(),Hn=r("p"),Hn.innerHTML=yd,Xr=l(),xe=r("h2"),Ke=r("a"),er=r("span"),u(Mo.$$.fragment),al=l(),En=r("span"),En.textContent=Md,Ar=l(),re=r("div"),u(wo.$$.fragment),ll=l(),Rn=r("p"),Rn.textContent=wd,il=l(),et=r("div"),u($o.$$.fragment),dl=l(),Gn=r("p"),Gn.textContent=$d,Qr=l(),Je=r("h2"),tt=r("a"),tr=r("span"),u(Bo.$$.fragment),cl=l(),qn=r("span"),qn.textContent=Bd,Yr=l(),C=r("div"),u(xo.$$.fragment),pl=l(),Ln=r("p"),Ln.innerHTML=xd,ml=l(),Sn=r("p"),Sn.innerHTML=Jd,hl=l(),S=r("div"),u(Jo.$$.fragment),fl=l(),Xn=r("p"),Xn.innerHTML=jd,ul=l(),u(ot.$$.fragment),gl=l(),u(nt.$$.fragment),_l=l(),X=r("div"),u(jo.$$.fragment),bl=l(),An=r("p"),An.innerHTML=Cd,vl=l(),u(st.$$.fragment),Tl=l(),u(rt.$$.fragment),yl=l(),A=r("div"),u(Co.$$.fragment),Ml=l(),Qn=r("p"),Qn.innerHTML=kd,wl=l(),u(at.$$.fragment),$l=l(),u(lt.$$.fragment),Dr=l(),je=r("h2"),it=r("a"),or=r("span"),u(ko.$$.fragment),Bl=l(),Yn=r("span"),Yn.textContent=Fd,Or=l(),ae=r("div"),u(Fo.$$.fragment),xl=l(),Dn=r("p"),Dn.innerHTML=Id,Jl=l(),ce=r("div"),u(Io.$$.fragment),jl=l(),On=r("p"),On.innerHTML=Ud,Cl=l(),Kn=r("ul"),Kn.innerHTML=zd,Kr=l(),Ce=r("h2"),dt=r("a"),nr=r("span"),u(Uo.$$.fragment),kl=l(),es=r("span"),es.textContent=Wd,ea=l(),ke=r("div"),u(zo.$$.fragment),Fl=l(),pe=r("div"),u(Wo.$$.fragment),Il=l(),ts=r("p"),ts.innerHTML=Nd,Ul=l(),u(ct.$$.fragment),ta=l(),Fe=r("h2"),pt=r("a"),sr=r("span"),u(No.$$.fragment),zl=l(),os=r("span"),os.textContent=Zd,oa=l(),I=r("div"),u(Zo.$$.fragment),Wl=l(),ns=r("p"),ns.innerHTML=Pd,Nl=l(),ss=r("p"),ss.innerHTML=Vd,Zl=l(),rs=r("p"),rs.innerHTML=Hd,Pl=l(),Q=r("div"),u(Po.$$.fragment),Vl=l(),as=r("p"),as.innerHTML=Ed,Hl=l(),u(mt.$$.fragment),El=l(),u(ht.$$.fragment),na=l(),Ie=r("h2"),ft=r("a"),rr=r("span"),u(Vo.$$.fragment),Rl=l(),ls=r("span"),ls.textContent=Rd,sa=l(),U=r("div"),u(Ho.$$.fragment),Gl=l(),is=r("p"),is.textContent=Gd,ql=l(),ds=r("p"),ds.innerHTML=qd,Ll=l(),cs=r("p"),cs.innerHTML=Ld,Sl=l(),Y=r("div"),u(Eo.$$.fragment),Xl=l(),ps=r("p"),ps.innerHTML=Sd,Al=l(),u(ut.$$.fragment),Ql=l(),u(gt.$$.fragment),ra=l(),Ue=r("h2"),_t=r("a"),ar=r("span"),u(Ro.$$.fragment),Yl=l(),ms=r("span"),ms.textContent=Xd,aa=l(),z=r("div"),u(Go.$$.fragment),Dl=l(),hs=r("p"),hs.textContent=Ad,Ol=l(),fs=r("p"),fs.innerHTML=Qd,Kl=l(),us=r("p"),us.innerHTML=Yd,ei=l(),D=r("div"),u(qo.$$.fragment),ti=l(),gs=r("p"),gs.innerHTML=Dd,oi=l(),u(bt.$$.fragment),ni=l(),u(vt.$$.fragment),la=l(),ze=r("h2"),Tt=r("a"),lr=r("span"),u(Lo.$$.fragment),si=l(),_s=r("span"),_s.textContent=Od,ia=l(),G=r("div"),u(So.$$.fragment),ri=l(),O=r("div"),u(Xo.$$.fragment),ai=l(),bs=r("p"),bs.innerHTML=Kd,li=l(),u(yt.$$.fragment),ii=l(),u(Mt.$$.fragment),di=l(),K=r("div"),u(Ao.$$.fragment),ci=l(),vs=r("p"),vs.innerHTML=ec,pi=l(),u(wt.$$.fragment),mi=l(),u($t.$$.fragment),hi=l(),ee=r("div"),u(Qo.$$.fragment),fi=l(),Ts=r("p"),Ts.innerHTML=tc,ui=l(),u(Bt.$$.fragment),gi=l(),u(xt.$$.fragment),da=l(),We=r("h2"),Jt=r("a"),ir=r("span"),u(Yo.$$.fragment),_i=l(),ys=r("span"),ys.textContent=oc,ca=l(),le=r("div"),u(Do.$$.fragment),bi=l(),Ms=r("p"),Ms.innerHTML=nc,vi=l(),me=r("div"),u(Oo.$$.fragment),Ti=l(),ws=r("p"),ws.innerHTML=sc,yi=l(),u(jt.$$.fragment),pa=l(),Ne=r("h2"),Ct=r("a"),dr=r("span"),u(Ko.$$.fragment),Mi=l(),$s=r("span"),$s.textContent=rc,ma=l(),Ze=r("div"),u(en.$$.fragment),wi=l(),he=r("div"),u(tn.$$.fragment),$i=l(),Bs=r("p"),Bs.innerHTML=ac,Bi=l(),u(kt.$$.fragment),ha=l(),Pe=r("h2"),Ft=r("a"),cr=r("span"),u(on.$$.fragment),xi=l(),xs=r("span"),xs.textContent=lc,fa=l(),W=r("div"),u(nn.$$.fragment),Ji=l(),Js=r("p"),Js.innerHTML=ic,ji=l(),js=r("p"),js.innerHTML=dc,Ci=l(),Cs=r("p"),Cs.innerHTML=cc,ki=l(),te=r("div"),u(sn.$$.fragment),Fi=l(),ks=r("p"),ks.innerHTML=pc,Ii=l(),u(It.$$.fragment),Ui=l(),u(Ut.$$.fragment),ua=l(),Ve=r("h2"),zt=r("a"),pr=r("span"),u(rn.$$.fragment),zi=l(),Fs=r("span"),Fs.textContent=mc,ga=l(),N=r("div"),u(an.$$.fragment),Wi=l(),Is=r("p"),Is.textContent=hc,Ni=l(),Us=r("p"),Us.innerHTML=fc,Zi=l(),zs=r("p"),zs.innerHTML=uc,Pi=l(),oe=r("div"),u(ln.$$.fragment),Vi=l(),Ws=r("p"),Ws.innerHTML=gc,Hi=l(),u(Wt.$$.fragment),Ei=l(),u(Nt.$$.fragment),_a=l(),He=r("h2"),Zt=r("a"),mr=r("span"),u(dn.$$.fragment),Ri=l(),Ns=r("span"),Ns.textContent=_c,ba=l(),Z=r("div"),u(cn.$$.fragment),Gi=l(),Zs=r("p"),Zs.textContent=bc,qi=l(),Ps=r("p"),Ps.innerHTML=vc,Li=l(),Vs=r("p"),Vs.innerHTML=Tc,Si=l(),ne=r("div"),u(pn.$$.fragment),Xi=l(),Hs=r("p"),Hs.innerHTML=yc,Ai=l(),u(Pt.$$.fragment),Qi=l(),u(Vt.$$.fragment),va=l(),hr=r("p"),this.h()},l(e){const c=Dc("svelte-1phssyn",document.head);o=a(c,"META",{name:!0,content:!0}),c.forEach(n),M=i(e),d=a(e,"P",{}),y(d).forEach(n),p=i(e),w=a(e,"H1",{class:!0});var mn=y(w);s=a(mn,"A",{id:!0,class:!0,href:!0});var fr=y(s);$=a(fr,"SPAN",{});var ur=y($);g(Kt.$$.fragment,ur),ur.forEach(n),fr.forEach(n),Na=i(mn),wn=a(mn,"SPAN",{"data-svelte-h":!0}),f(wn)!=="svelte-1h49ik0"&&(wn.textContent=Yi),mn.forEach(n),Cr=i(e),Te=a(e,"H2",{class:!0});var hn=y(Te);Ee=a(hn,"A",{id:!0,class:!0,href:!0});var gr=y(Ee);As=a(gr,"SPAN",{});var _r=y(As);g(eo.$$.fragment,_r),_r.forEach(n),gr.forEach(n),Za=i(hn),$n=a(hn,"SPAN",{"data-svelte-h":!0}),f($n)!=="svelte-1jsw1pg"&&($n.textContent=Di),hn.forEach(n),kr=i(e),to=a(e,"P",{"data-svelte-h":!0}),f(to)!=="svelte-17k3ayt"&&(to.innerHTML=Oi),Fr=i(e),oo=a(e,"P",{"data-svelte-h":!0}),f(oo)!=="svelte-azn6pl"&&(oo.textContent=Ki),Ir=i(e),no=a(e,"UL",{"data-svelte-h":!0}),f(no)!=="svelte-nylfz4"&&(no.innerHTML=ed),Ur=i(e),so=a(e,"P",{"data-svelte-h":!0}),f(so)!=="svelte-vfdo9a"&&(so.textContent=td),zr=i(e),ro=a(e,"P",{"data-svelte-h":!0}),f(ro)!=="svelte-4jmih4"&&(ro.innerHTML=od),Wr=i(e),ao=a(e,"P",{"data-svelte-h":!0}),f(ao)!=="svelte-1nlkgp7"&&(ao.innerHTML=nd),Nr=i(e),lo=a(e,"P",{"data-svelte-h":!0}),f(lo)!=="svelte-1kg7i71"&&(lo.innerHTML=sd),Zr=i(e),ye=a(e,"H2",{class:!0});var fn=y(ye);Re=a(fn,"A",{id:!0,class:!0,href:!0});var br=y(Re);Qs=a(br,"SPAN",{});var vr=y(Qs);g(io.$$.fragment,vr),vr.forEach(n),br.forEach(n),Pa=i(fn),Bn=a(fn,"SPAN",{"data-svelte-h":!0}),f(Bn)!=="svelte-w4zzv6"&&(Bn.textContent=rd),fn.forEach(n),Pr=i(e),co=a(e,"UL",{"data-svelte-h":!0}),f(co)!=="svelte-1ag1pc7"&&(co.innerHTML=ad),Vr=i(e),Me=a(e,"H2",{class:!0});var un=y(Me);Ge=a(un,"A",{id:!0,class:!0,href:!0});var Tr=y(Ge);Ys=a(Tr,"SPAN",{});var yr=y(Ys);g(po.$$.fragment,yr),yr.forEach(n),Tr.forEach(n),Va=i(un),xn=a(un,"SPAN",{"data-svelte-h":!0}),f(xn)!=="svelte-rmi4l6"&&(xn.textContent=ld),un.forEach(n),Hr=i(e),k=a(e,"DIV",{class:!0});var q=y(k);g(mo.$$.fragment,q),Ha=i(q),Jn=a(q,"P",{"data-svelte-h":!0}),f(Jn)!=="svelte-19fndpf"&&(Jn.innerHTML=id),Ea=i(q),jn=a(q,"P",{"data-svelte-h":!0}),f(jn)!=="svelte-10kqkkl"&&(jn.innerHTML=dd),Ra=i(q),g(qe.$$.fragment,q),Ga=i(q),Le=a(q,"DIV",{class:!0});var gn=y(Le);g(ho.$$.fragment,gn),qa=i(gn),Cn=a(gn,"P",{"data-svelte-h":!0}),f(Cn)!=="svelte-1rpi3jt"&&(Cn.innerHTML=cd),gn.forEach(n),q.forEach(n),Er=i(e),we=a(e,"H2",{class:!0});var _n=y(we);Se=a(_n,"A",{id:!0,class:!0,href:!0});var Mr=y(Se);Ds=a(Mr,"SPAN",{});var wr=y(Ds);g(fo.$$.fragment,wr),wr.forEach(n),Mr.forEach(n),La=i(_n),kn=a(_n,"SPAN",{"data-svelte-h":!0}),f(kn)!=="svelte-1s4w6dv"&&(kn.textContent=pd),_n.forEach(n),Rr=i(e),E=a(e,"DIV",{class:!0});var ie=y(E);g(uo.$$.fragment,ie),Sa=i(ie),Fn=a(ie,"P",{"data-svelte-h":!0}),f(Fn)!=="svelte-qom65w"&&(Fn.innerHTML=md),Xa=i(ie),In=a(ie,"P",{"data-svelte-h":!0}),f(In)!=="svelte-10kqkkl"&&(In.innerHTML=hd),Aa=i(ie),g(Xe.$$.fragment,ie),ie.forEach(n),Gr=i(e),$e=a(e,"H2",{class:!0});var bn=y($e);Ae=a(bn,"A",{id:!0,class:!0,href:!0});var $r=y(Ae);Os=a($r,"SPAN",{});var Br=y(Os);g(go.$$.fragment,Br),Br.forEach(n),$r.forEach(n),Qa=i(bn),Un=a(bn,"SPAN",{"data-svelte-h":!0}),f(Un)!=="svelte-1j6lvly"&&(Un.textContent=fd),bn.forEach(n),qr=i(e),R=a(e,"DIV",{class:!0});var de=y(R);g(_o.$$.fragment,de),Ya=i(de),zn=a(de,"P",{"data-svelte-h":!0}),f(zn)!=="svelte-za2rzt"&&(zn.innerHTML=ud),Da=i(de),Wn=a(de,"P",{"data-svelte-h":!0}),f(Wn)!=="svelte-10kqkkl"&&(Wn.innerHTML=gd),Oa=i(de),g(Qe.$$.fragment,de),de.forEach(n),Lr=i(e),Be=a(e,"H2",{class:!0});var vn=y(Be);Ye=a(vn,"A",{id:!0,class:!0,href:!0});var xr=y(Ye);Ks=a(xr,"SPAN",{});var Jr=y(Ks);g(bo.$$.fragment,Jr),Jr.forEach(n),xr.forEach(n),Ka=i(vn),Nn=a(vn,"SPAN",{"data-svelte-h":!0}),f(Nn)!=="svelte-1ap4cbq"&&(Nn.textContent=_d),vn.forEach(n),Sr=i(e),F=a(e,"DIV",{class:!0});var L=y(F);g(vo.$$.fragment,L),el=i(L),Zn=a(L,"P",{"data-svelte-h":!0}),f(Zn)!=="svelte-4ee3u1"&&(Zn.textContent=bd),tl=i(L),Pn=a(L,"P",{"data-svelte-h":!0}),f(Pn)!=="svelte-ky42j1"&&(Pn.innerHTML=vd),ol=i(L),De=a(L,"DIV",{class:!0});var Tn=y(De);g(To.$$.fragment,Tn),nl=i(Tn),Vn=a(Tn,"P",{"data-svelte-h":!0}),f(Vn)!=="svelte-48s7rv"&&(Vn.innerHTML=Td),Tn.forEach(n),sl=i(L),Oe=a(L,"DIV",{class:!0});var yn=y(Oe);g(yo.$$.fragment,yn),rl=i(yn),Hn=a(yn,"P",{"data-svelte-h":!0}),f(Hn)!=="svelte-zkzkjx"&&(Hn.innerHTML=yd),yn.forEach(n),L.forEach(n),Xr=i(e),xe=a(e,"H2",{class:!0});var Mn=y(xe);Ke=a(Mn,"A",{id:!0,class:!0,href:!0});var jr=y(Ke);er=a(jr,"SPAN",{});var Mc=y(er);g(Mo.$$.fragment,Mc),Mc.forEach(n),jr.forEach(n),al=i(Mn),En=a(Mn,"SPAN",{"data-svelte-h":!0}),f(En)!=="svelte-1hhi3k9"&&(En.textContent=Md),Mn.forEach(n),Ar=i(e),re=a(e,"DIV",{class:!0});var Es=y(re);g(wo.$$.fragment,Es),ll=i(Es),Rn=a(Es,"P",{"data-svelte-h":!0}),f(Rn)!=="svelte-17e80zr"&&(Rn.textContent=wd),il=i(Es),et=a(Es,"DIV",{class:!0});var ya=y(et);g($o.$$.fragment,ya),dl=i(ya),Gn=a(ya,"P",{"data-svelte-h":!0}),f(Gn)!=="svelte-1x3yxsa"&&(Gn.textContent=$d),ya.forEach(n),Es.forEach(n),Qr=i(e),Je=a(e,"H2",{class:!0});var Ma=y(Je);tt=a(Ma,"A",{id:!0,class:!0,href:!0});var wc=y(tt);tr=a(wc,"SPAN",{});var $c=y(tr);g(Bo.$$.fragment,$c),$c.forEach(n),wc.forEach(n),cl=i(Ma),qn=a(Ma,"SPAN",{"data-svelte-h":!0}),f(qn)!=="svelte-1mi2msr"&&(qn.textContent=Bd),Ma.forEach(n),Yr=i(e),C=a(e,"DIV",{class:!0});var se=y(C);g(xo.$$.fragment,se),pl=i(se),Ln=a(se,"P",{"data-svelte-h":!0}),f(Ln)!=="svelte-hmtw9k"&&(Ln.innerHTML=xd),ml=i(se),Sn=a(se,"P",{"data-svelte-h":!0}),f(Sn)!=="svelte-hswkmf"&&(Sn.innerHTML=Jd),hl=i(se),S=a(se,"DIV",{class:!0});var Ht=y(S);g(Jo.$$.fragment,Ht),fl=i(Ht),Xn=a(Ht,"P",{"data-svelte-h":!0}),f(Xn)!=="svelte-1o5cpjm"&&(Xn.innerHTML=jd),ul=i(Ht),g(ot.$$.fragment,Ht),gl=i(Ht),g(nt.$$.fragment,Ht),Ht.forEach(n),_l=i(se),X=a(se,"DIV",{class:!0});var Et=y(X);g(jo.$$.fragment,Et),bl=i(Et),An=a(Et,"P",{"data-svelte-h":!0}),f(An)!=="svelte-1o5cpjm"&&(An.innerHTML=Cd),vl=i(Et),g(st.$$.fragment,Et),Tl=i(Et),g(rt.$$.fragment,Et),Et.forEach(n),yl=i(se),A=a(se,"DIV",{class:!0});var Rt=y(A);g(Co.$$.fragment,Rt),Ml=i(Rt),Qn=a(Rt,"P",{"data-svelte-h":!0}),f(Qn)!=="svelte-1o5cpjm"&&(Qn.innerHTML=kd),wl=i(Rt),g(at.$$.fragment,Rt),$l=i(Rt),g(lt.$$.fragment,Rt),Rt.forEach(n),se.forEach(n),Dr=i(e),je=a(e,"H2",{class:!0});var wa=y(je);it=a(wa,"A",{id:!0,class:!0,href:!0});var Bc=y(it);or=a(Bc,"SPAN",{});var xc=y(or);g(ko.$$.fragment,xc),xc.forEach(n),Bc.forEach(n),Bl=i(wa),Yn=a(wa,"SPAN",{"data-svelte-h":!0}),f(Yn)!=="svelte-pxgbve"&&(Yn.textContent=Fd),wa.forEach(n),Or=i(e),ae=a(e,"DIV",{class:!0});var Rs=y(ae);g(Fo.$$.fragment,Rs),xl=i(Rs),Dn=a(Rs,"P",{"data-svelte-h":!0}),f(Dn)!=="svelte-ehxhk2"&&(Dn.innerHTML=Id),Jl=i(Rs),ce=a(Rs,"DIV",{class:!0});var Gs=y(ce);g(Io.$$.fragment,Gs),jl=i(Gs),On=a(Gs,"P",{"data-svelte-h":!0}),f(On)!=="svelte-1misbdl"&&(On.innerHTML=Ud),Cl=i(Gs),Kn=a(Gs,"UL",{"data-svelte-h":!0}),f(Kn)!=="svelte-64obm2"&&(Kn.innerHTML=zd),Gs.forEach(n),Rs.forEach(n),Kr=i(e),Ce=a(e,"H2",{class:!0});var $a=y(Ce);dt=a($a,"A",{id:!0,class:!0,href:!0});var Jc=y(dt);nr=a(Jc,"SPAN",{});var jc=y(nr);g(Uo.$$.fragment,jc),jc.forEach(n),Jc.forEach(n),kl=i($a),es=a($a,"SPAN",{"data-svelte-h":!0}),f(es)!=="svelte-19zv76b"&&(es.textContent=Wd),$a.forEach(n),ea=i(e),ke=a(e,"DIV",{class:!0});var Ba=y(ke);g(zo.$$.fragment,Ba),Fl=i(Ba),pe=a(Ba,"DIV",{class:!0});var qs=y(pe);g(Wo.$$.fragment,qs),Il=i(qs),ts=a(qs,"P",{"data-svelte-h":!0}),f(ts)!=="svelte-1p0agzm"&&(ts.innerHTML=Nd),Ul=i(qs),g(ct.$$.fragment,qs),qs.forEach(n),Ba.forEach(n),ta=i(e),Fe=a(e,"H2",{class:!0});var xa=y(Fe);pt=a(xa,"A",{id:!0,class:!0,href:!0});var Cc=y(pt);sr=a(Cc,"SPAN",{});var kc=y(sr);g(No.$$.fragment,kc),kc.forEach(n),Cc.forEach(n),zl=i(xa),os=a(xa,"SPAN",{"data-svelte-h":!0}),f(os)!=="svelte-12139wh"&&(os.textContent=Zd),xa.forEach(n),oa=i(e),I=a(e,"DIV",{class:!0});var fe=y(I);g(Zo.$$.fragment,fe),Wl=i(fe),ns=a(fe,"P",{"data-svelte-h":!0}),f(ns)!=="svelte-u9sua2"&&(ns.innerHTML=Pd),Nl=i(fe),ss=a(fe,"P",{"data-svelte-h":!0}),f(ss)!=="svelte-hmtw9k"&&(ss.innerHTML=Vd),Zl=i(fe),rs=a(fe,"P",{"data-svelte-h":!0}),f(rs)!=="svelte-hswkmf"&&(rs.innerHTML=Hd),Pl=i(fe),Q=a(fe,"DIV",{class:!0});var Gt=y(Q);g(Po.$$.fragment,Gt),Vl=i(Gt),as=a(Gt,"P",{"data-svelte-h":!0}),f(as)!=="svelte-5676uy"&&(as.innerHTML=Ed),Hl=i(Gt),g(mt.$$.fragment,Gt),El=i(Gt),g(ht.$$.fragment,Gt),Gt.forEach(n),fe.forEach(n),na=i(e),Ie=a(e,"H2",{class:!0});var Ja=y(Ie);ft=a(Ja,"A",{id:!0,class:!0,href:!0});var Fc=y(ft);rr=a(Fc,"SPAN",{});var Ic=y(rr);g(Vo.$$.fragment,Ic),Ic.forEach(n),Fc.forEach(n),Rl=i(Ja),ls=a(Ja,"SPAN",{"data-svelte-h":!0}),f(ls)!=="svelte-j84n8f"&&(ls.textContent=Rd),Ja.forEach(n),sa=i(e),U=a(e,"DIV",{class:!0});var ue=y(U);g(Ho.$$.fragment,ue),Gl=i(ue),is=a(ue,"P",{"data-svelte-h":!0}),f(is)!=="svelte-1cwza0e"&&(is.textContent=Gd),ql=i(ue),ds=a(ue,"P",{"data-svelte-h":!0}),f(ds)!=="svelte-hmtw9k"&&(ds.innerHTML=qd),Ll=i(ue),cs=a(ue,"P",{"data-svelte-h":!0}),f(cs)!=="svelte-hswkmf"&&(cs.innerHTML=Ld),Sl=i(ue),Y=a(ue,"DIV",{class:!0});var qt=y(Y);g(Eo.$$.fragment,qt),Xl=i(qt),ps=a(qt,"P",{"data-svelte-h":!0}),f(ps)!=="svelte-sinak2"&&(ps.innerHTML=Sd),Al=i(qt),g(ut.$$.fragment,qt),Ql=i(qt),g(gt.$$.fragment,qt),qt.forEach(n),ue.forEach(n),ra=i(e),Ue=a(e,"H2",{class:!0});var ja=y(Ue);_t=a(ja,"A",{id:!0,class:!0,href:!0});var Uc=y(_t);ar=a(Uc,"SPAN",{});var zc=y(ar);g(Ro.$$.fragment,zc),zc.forEach(n),Uc.forEach(n),Yl=i(ja),ms=a(ja,"SPAN",{"data-svelte-h":!0}),f(ms)!=="svelte-1vmlncl"&&(ms.textContent=Xd),ja.forEach(n),aa=i(e),z=a(e,"DIV",{class:!0});var ge=y(z);g(Go.$$.fragment,ge),Dl=i(ge),hs=a(ge,"P",{"data-svelte-h":!0}),f(hs)!=="svelte-tf7otj"&&(hs.textContent=Ad),Ol=i(ge),fs=a(ge,"P",{"data-svelte-h":!0}),f(fs)!=="svelte-hmtw9k"&&(fs.innerHTML=Qd),Kl=i(ge),us=a(ge,"P",{"data-svelte-h":!0}),f(us)!=="svelte-hswkmf"&&(us.innerHTML=Yd),ei=i(ge),D=a(ge,"DIV",{class:!0});var Lt=y(D);g(qo.$$.fragment,Lt),ti=i(Lt),gs=a(Lt,"P",{"data-svelte-h":!0}),f(gs)!=="svelte-1suokwq"&&(gs.innerHTML=Dd),oi=i(Lt),g(bt.$$.fragment,Lt),ni=i(Lt),g(vt.$$.fragment,Lt),Lt.forEach(n),ge.forEach(n),la=i(e),ze=a(e,"H2",{class:!0});var Ca=y(ze);Tt=a(Ca,"A",{id:!0,class:!0,href:!0});var Wc=y(Tt);lr=a(Wc,"SPAN",{});var Nc=y(lr);g(Lo.$$.fragment,Nc),Nc.forEach(n),Wc.forEach(n),si=i(Ca),_s=a(Ca,"SPAN",{"data-svelte-h":!0}),f(_s)!=="svelte-xbr9v9"&&(_s.textContent=Od),Ca.forEach(n),ia=i(e),G=a(e,"DIV",{class:!0});var St=y(G);g(So.$$.fragment,St),ri=i(St),O=a(St,"DIV",{class:!0});var Xt=y(O);g(Xo.$$.fragment,Xt),ai=i(Xt),bs=a(Xt,"P",{"data-svelte-h":!0}),f(bs)!=="svelte-chsore"&&(bs.innerHTML=Kd),li=i(Xt),g(yt.$$.fragment,Xt),ii=i(Xt),g(Mt.$$.fragment,Xt),Xt.forEach(n),di=i(St),K=a(St,"DIV",{class:!0});var At=y(K);g(Ao.$$.fragment,At),ci=i(At),vs=a(At,"P",{"data-svelte-h":!0}),f(vs)!=="svelte-chsore"&&(vs.innerHTML=ec),pi=i(At),g(wt.$$.fragment,At),mi=i(At),g($t.$$.fragment,At),At.forEach(n),hi=i(St),ee=a(St,"DIV",{class:!0});var Qt=y(ee);g(Qo.$$.fragment,Qt),fi=i(Qt),Ts=a(Qt,"P",{"data-svelte-h":!0}),f(Ts)!=="svelte-chsore"&&(Ts.innerHTML=tc),ui=i(Qt),g(Bt.$$.fragment,Qt),gi=i(Qt),g(xt.$$.fragment,Qt),Qt.forEach(n),St.forEach(n),da=i(e),We=a(e,"H2",{class:!0});var ka=y(We);Jt=a(ka,"A",{id:!0,class:!0,href:!0});var Zc=y(Jt);ir=a(Zc,"SPAN",{});var Pc=y(ir);g(Yo.$$.fragment,Pc),Pc.forEach(n),Zc.forEach(n),_i=i(ka),ys=a(ka,"SPAN",{"data-svelte-h":!0}),f(ys)!=="svelte-4rfpik"&&(ys.textContent=oc),ka.forEach(n),ca=i(e),le=a(e,"DIV",{class:!0});var Ls=y(le);g(Do.$$.fragment,Ls),bi=i(Ls),Ms=a(Ls,"P",{"data-svelte-h":!0}),f(Ms)!=="svelte-ehxhk2"&&(Ms.innerHTML=nc),vi=i(Ls),me=a(Ls,"DIV",{class:!0});var Ss=y(me);g(Oo.$$.fragment,Ss),Ti=i(Ss),ws=a(Ss,"P",{"data-svelte-h":!0}),f(ws)!=="svelte-qhq7tm"&&(ws.innerHTML=sc),yi=i(Ss),g(jt.$$.fragment,Ss),Ss.forEach(n),Ls.forEach(n),pa=i(e),Ne=a(e,"H2",{class:!0});var Fa=y(Ne);Ct=a(Fa,"A",{id:!0,class:!0,href:!0});var Vc=y(Ct);dr=a(Vc,"SPAN",{});var Hc=y(dr);g(Ko.$$.fragment,Hc),Hc.forEach(n),Vc.forEach(n),Mi=i(Fa),$s=a(Fa,"SPAN",{"data-svelte-h":!0}),f($s)!=="svelte-1w89oql"&&($s.textContent=rc),Fa.forEach(n),ma=i(e),Ze=a(e,"DIV",{class:!0});var Ia=y(Ze);g(en.$$.fragment,Ia),wi=i(Ia),he=a(Ia,"DIV",{class:!0});var Xs=y(he);g(tn.$$.fragment,Xs),$i=i(Xs),Bs=a(Xs,"P",{"data-svelte-h":!0}),f(Bs)!=="svelte-14z8odu"&&(Bs.innerHTML=ac),Bi=i(Xs),g(kt.$$.fragment,Xs),Xs.forEach(n),Ia.forEach(n),ha=i(e),Pe=a(e,"H2",{class:!0});var Ua=y(Pe);Ft=a(Ua,"A",{id:!0,class:!0,href:!0});var Ec=y(Ft);cr=a(Ec,"SPAN",{});var Rc=y(cr);g(on.$$.fragment,Rc),Rc.forEach(n),Ec.forEach(n),xi=i(Ua),xs=a(Ua,"SPAN",{"data-svelte-h":!0}),f(xs)!=="svelte-zf3zrr"&&(xs.textContent=lc),Ua.forEach(n),fa=i(e),W=a(e,"DIV",{class:!0});var _e=y(W);g(nn.$$.fragment,_e),Ji=i(_e),Js=a(_e,"P",{"data-svelte-h":!0}),f(Js)!=="svelte-u9sua2"&&(Js.innerHTML=ic),ji=i(_e),js=a(_e,"P",{"data-svelte-h":!0}),f(js)!=="svelte-1i0vt4o"&&(js.innerHTML=dc),Ci=i(_e),Cs=a(_e,"P",{"data-svelte-h":!0}),f(Cs)!=="svelte-1ivrf8m"&&(Cs.innerHTML=cc),ki=i(_e),te=a(_e,"DIV",{class:!0});var Yt=y(te);g(sn.$$.fragment,Yt),Fi=i(Yt),ks=a(Yt,"P",{"data-svelte-h":!0}),f(ks)!=="svelte-8nq44a"&&(ks.innerHTML=pc),Ii=i(Yt),g(It.$$.fragment,Yt),Ui=i(Yt),g(Ut.$$.fragment,Yt),Yt.forEach(n),_e.forEach(n),ua=i(e),Ve=a(e,"H2",{class:!0});var za=y(Ve);zt=a(za,"A",{id:!0,class:!0,href:!0});var Gc=y(zt);pr=a(Gc,"SPAN",{});var qc=y(pr);g(rn.$$.fragment,qc),qc.forEach(n),Gc.forEach(n),zi=i(za),Fs=a(za,"SPAN",{"data-svelte-h":!0}),f(Fs)!=="svelte-4lzqo9"&&(Fs.textContent=mc),za.forEach(n),ga=i(e),N=a(e,"DIV",{class:!0});var be=y(N);g(an.$$.fragment,be),Wi=i(be),Is=a(be,"P",{"data-svelte-h":!0}),f(Is)!=="svelte-1cwza0e"&&(Is.textContent=hc),Ni=i(be),Us=a(be,"P",{"data-svelte-h":!0}),f(Us)!=="svelte-1i0vt4o"&&(Us.innerHTML=fc),Zi=i(be),zs=a(be,"P",{"data-svelte-h":!0}),f(zs)!=="svelte-1ivrf8m"&&(zs.innerHTML=uc),Pi=i(be),oe=a(be,"DIV",{class:!0});var Dt=y(oe);g(ln.$$.fragment,Dt),Vi=i(Dt),Ws=a(Dt,"P",{"data-svelte-h":!0}),f(Ws)!=="svelte-1s8cyiy"&&(Ws.innerHTML=gc),Hi=i(Dt),g(Wt.$$.fragment,Dt),Ei=i(Dt),g(Nt.$$.fragment,Dt),Dt.forEach(n),be.forEach(n),_a=i(e),He=a(e,"H2",{class:!0});var Wa=y(He);Zt=a(Wa,"A",{id:!0,class:!0,href:!0});var Lc=y(Zt);mr=a(Lc,"SPAN",{});var Sc=y(mr);g(dn.$$.fragment,Sc),Sc.forEach(n),Lc.forEach(n),Ri=i(Wa),Ns=a(Wa,"SPAN",{"data-svelte-h":!0}),f(Ns)!=="svelte-1y02zv"&&(Ns.textContent=_c),Wa.forEach(n),ba=i(e),Z=a(e,"DIV",{class:!0});var ve=y(Z);g(cn.$$.fragment,ve),Gi=i(ve),Zs=a(ve,"P",{"data-svelte-h":!0}),f(Zs)!=="svelte-tf7otj"&&(Zs.textContent=bc),qi=i(ve),Ps=a(ve,"P",{"data-svelte-h":!0}),f(Ps)!=="svelte-1i0vt4o"&&(Ps.innerHTML=vc),Li=i(ve),Vs=a(ve,"P",{"data-svelte-h":!0}),f(Vs)!=="svelte-1ivrf8m"&&(Vs.innerHTML=Tc),Si=i(ve),ne=a(ve,"DIV",{class:!0});var Ot=y(ne);g(pn.$$.fragment,Ot),Xi=i(Ot),Hs=a(Ot,"P",{"data-svelte-h":!0}),f(Hs)!=="svelte-137a1ji"&&(Hs.innerHTML=yc),Ai=i(Ot),g(Pt.$$.fragment,Ot),Qi=i(Ot),g(Vt.$$.fragment,Ot),Ot.forEach(n),ve.forEach(n),va=i(e),hr=a(e,"P",{}),y(hr).forEach(n),this.h()},h(){h(o,"name","hf:doc:metadata"),h(o,"content",JSON.stringify(Cp)),h(s,"id","blip"),h(s,"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"),h(s,"href","#blip"),h(w,"class","relative group"),h(Ee,"id","overview"),h(Ee,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Ee,"href","#overview"),h(Te,"class","relative group"),h(Re,"id","resources"),h(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"),h(Re,"href","#resources"),h(ye,"class","relative group"),h(Ge,"id","transformers.BlipConfig"),h(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"),h(Ge,"href","#transformers.BlipConfig"),h(Me,"class","relative group"),h(Le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Se,"id","transformers.BlipTextConfig"),h(Se,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Se,"href","#transformers.BlipTextConfig"),h(we,"class","relative group"),h(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Ae,"id","transformers.BlipVisionConfig"),h(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"),h(Ae,"href","#transformers.BlipVisionConfig"),h($e,"class","relative group"),h(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Ye,"id","transformers.BlipProcessor"),h(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"),h(Ye,"href","#transformers.BlipProcessor"),h(Be,"class","relative group"),h(De,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Ke,"id","transformers.BlipImageProcessor"),h(Ke,"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"),h(Ke,"href","#transformers.BlipImageProcessor"),h(xe,"class","relative group"),h(et,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(tt,"id","transformers.BlipModel"),h(tt,"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"),h(tt,"href","#transformers.BlipModel"),h(Je,"class","relative group"),h(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(it,"id","transformers.BlipTextModel"),h(it,"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"),h(it,"href","#transformers.BlipTextModel"),h(je,"class","relative group"),h(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(dt,"id","transformers.BlipVisionModel"),h(dt,"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"),h(dt,"href","#transformers.BlipVisionModel"),h(Ce,"class","relative group"),h(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(pt,"id","transformers.BlipForConditionalGeneration"),h(pt,"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"),h(pt,"href","#transformers.BlipForConditionalGeneration"),h(Fe,"class","relative group"),h(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ft,"id","transformers.BlipForImageTextRetrieval"),h(ft,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(ft,"href","#transformers.BlipForImageTextRetrieval"),h(Ie,"class","relative group"),h(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(_t,"id","transformers.BlipForQuestionAnswering"),h(_t,"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"),h(_t,"href","#transformers.BlipForQuestionAnswering"),h(Ue,"class","relative group"),h(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Tt,"id","transformers.TFBlipModel"),h(Tt,"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"),h(Tt,"href","#transformers.TFBlipModel"),h(ze,"class","relative group"),h(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Jt,"id","transformers.TFBlipTextModel"),h(Jt,"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"),h(Jt,"href","#transformers.TFBlipTextModel"),h(We,"class","relative group"),h(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Ct,"id","transformers.TFBlipVisionModel"),h(Ct,"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"),h(Ct,"href","#transformers.TFBlipVisionModel"),h(Ne,"class","relative group"),h(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Ft,"id","transformers.TFBlipForConditionalGeneration"),h(Ft,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Ft,"href","#transformers.TFBlipForConditionalGeneration"),h(Pe,"class","relative group"),h(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(zt,"id","transformers.TFBlipForImageTextRetrieval"),h(zt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(zt,"href","#transformers.TFBlipForImageTextRetrieval"),h(Ve,"class","relative group"),h(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Zt,"id","transformers.TFBlipForQuestionAnswering"),h(Zt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Zt,"href","#transformers.TFBlipForQuestionAnswering"),h(He,"class","relative group"),h(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,c){t(document.head,o),m(e,M,c),m(e,d,c),m(e,p,c),m(e,w,c),t(w,s),t(s,$),_(Kt,$,null),t(w,Na),t(w,wn),m(e,Cr,c),m(e,Te,c),t(Te,Ee),t(Ee,As),_(eo,As,null),t(Te,Za),t(Te,$n),m(e,kr,c),m(e,to,c),m(e,Fr,c),m(e,oo,c),m(e,Ir,c),m(e,no,c),m(e,Ur,c),m(e,so,c),m(e,zr,c),m(e,ro,c),m(e,Wr,c),m(e,ao,c),m(e,Nr,c),m(e,lo,c),m(e,Zr,c),m(e,ye,c),t(ye,Re),t(Re,Qs),_(io,Qs,null),t(ye,Pa),t(ye,Bn),m(e,Pr,c),m(e,co,c),m(e,Vr,c),m(e,Me,c),t(Me,Ge),t(Ge,Ys),_(po,Ys,null),t(Me,Va),t(Me,xn),m(e,Hr,c),m(e,k,c),_(mo,k,null),t(k,Ha),t(k,Jn),t(k,Ea),t(k,jn),t(k,Ra),_(qe,k,null),t(k,Ga),t(k,Le),_(ho,Le,null),t(Le,qa),t(Le,Cn),m(e,Er,c),m(e,we,c),t(we,Se),t(Se,Ds),_(fo,Ds,null),t(we,La),t(we,kn),m(e,Rr,c),m(e,E,c),_(uo,E,null),t(E,Sa),t(E,Fn),t(E,Xa),t(E,In),t(E,Aa),_(Xe,E,null),m(e,Gr,c),m(e,$e,c),t($e,Ae),t(Ae,Os),_(go,Os,null),t($e,Qa),t($e,Un),m(e,qr,c),m(e,R,c),_(_o,R,null),t(R,Ya),t(R,zn),t(R,Da),t(R,Wn),t(R,Oa),_(Qe,R,null),m(e,Lr,c),m(e,Be,c),t(Be,Ye),t(Ye,Ks),_(bo,Ks,null),t(Be,Ka),t(Be,Nn),m(e,Sr,c),m(e,F,c),_(vo,F,null),t(F,el),t(F,Zn),t(F,tl),t(F,Pn),t(F,ol),t(F,De),_(To,De,null),t(De,nl),t(De,Vn),t(F,sl),t(F,Oe),_(yo,Oe,null),t(Oe,rl),t(Oe,Hn),m(e,Xr,c),m(e,xe,c),t(xe,Ke),t(Ke,er),_(Mo,er,null),t(xe,al),t(xe,En),m(e,Ar,c),m(e,re,c),_(wo,re,null),t(re,ll),t(re,Rn),t(re,il),t(re,et),_($o,et,null),t(et,dl),t(et,Gn),m(e,Qr,c),m(e,Je,c),t(Je,tt),t(tt,tr),_(Bo,tr,null),t(Je,cl),t(Je,qn),m(e,Yr,c),m(e,C,c),_(xo,C,null),t(C,pl),t(C,Ln),t(C,ml),t(C,Sn),t(C,hl),t(C,S),_(Jo,S,null),t(S,fl),t(S,Xn),t(S,ul),_(ot,S,null),t(S,gl),_(nt,S,null),t(C,_l),t(C,X),_(jo,X,null),t(X,bl),t(X,An),t(X,vl),_(st,X,null),t(X,Tl),_(rt,X,null),t(C,yl),t(C,A),_(Co,A,null),t(A,Ml),t(A,Qn),t(A,wl),_(at,A,null),t(A,$l),_(lt,A,null),m(e,Dr,c),m(e,je,c),t(je,it),t(it,or),_(ko,or,null),t(je,Bl),t(je,Yn),m(e,Or,c),m(e,ae,c),_(Fo,ae,null),t(ae,xl),t(ae,Dn),t(ae,Jl),t(ae,ce),_(Io,ce,null),t(ce,jl),t(ce,On),t(ce,Cl),t(ce,Kn),m(e,Kr,c),m(e,Ce,c),t(Ce,dt),t(dt,nr),_(Uo,nr,null),t(Ce,kl),t(Ce,es),m(e,ea,c),m(e,ke,c),_(zo,ke,null),t(ke,Fl),t(ke,pe),_(Wo,pe,null),t(pe,Il),t(pe,ts),t(pe,Ul),_(ct,pe,null),m(e,ta,c),m(e,Fe,c),t(Fe,pt),t(pt,sr),_(No,sr,null),t(Fe,zl),t(Fe,os),m(e,oa,c),m(e,I,c),_(Zo,I,null),t(I,Wl),t(I,ns),t(I,Nl),t(I,ss),t(I,Zl),t(I,rs),t(I,Pl),t(I,Q),_(Po,Q,null),t(Q,Vl),t(Q,as),t(Q,Hl),_(mt,Q,null),t(Q,El),_(ht,Q,null),m(e,na,c),m(e,Ie,c),t(Ie,ft),t(ft,rr),_(Vo,rr,null),t(Ie,Rl),t(Ie,ls),m(e,sa,c),m(e,U,c),_(Ho,U,null),t(U,Gl),t(U,is),t(U,ql),t(U,ds),t(U,Ll),t(U,cs),t(U,Sl),t(U,Y),_(Eo,Y,null),t(Y,Xl),t(Y,ps),t(Y,Al),_(ut,Y,null),t(Y,Ql),_(gt,Y,null),m(e,ra,c),m(e,Ue,c),t(Ue,_t),t(_t,ar),_(Ro,ar,null),t(Ue,Yl),t(Ue,ms),m(e,aa,c),m(e,z,c),_(Go,z,null),t(z,Dl),t(z,hs),t(z,Ol),t(z,fs),t(z,Kl),t(z,us),t(z,ei),t(z,D),_(qo,D,null),t(D,ti),t(D,gs),t(D,oi),_(bt,D,null),t(D,ni),_(vt,D,null),m(e,la,c),m(e,ze,c),t(ze,Tt),t(Tt,lr),_(Lo,lr,null),t(ze,si),t(ze,_s),m(e,ia,c),m(e,G,c),_(So,G,null),t(G,ri),t(G,O),_(Xo,O,null),t(O,ai),t(O,bs),t(O,li),_(yt,O,null),t(O,ii),_(Mt,O,null),t(G,di),t(G,K),_(Ao,K,null),t(K,ci),t(K,vs),t(K,pi),_(wt,K,null),t(K,mi),_($t,K,null),t(G,hi),t(G,ee),_(Qo,ee,null),t(ee,fi),t(ee,Ts),t(ee,ui),_(Bt,ee,null),t(ee,gi),_(xt,ee,null),m(e,da,c),m(e,We,c),t(We,Jt),t(Jt,ir),_(Yo,ir,null),t(We,_i),t(We,ys),m(e,ca,c),m(e,le,c),_(Do,le,null),t(le,bi),t(le,Ms),t(le,vi),t(le,me),_(Oo,me,null),t(me,Ti),t(me,ws),t(me,yi),_(jt,me,null),m(e,pa,c),m(e,Ne,c),t(Ne,Ct),t(Ct,dr),_(Ko,dr,null),t(Ne,Mi),t(Ne,$s),m(e,ma,c),m(e,Ze,c),_(en,Ze,null),t(Ze,wi),t(Ze,he),_(tn,he,null),t(he,$i),t(he,Bs),t(he,Bi),_(kt,he,null),m(e,ha,c),m(e,Pe,c),t(Pe,Ft),t(Ft,cr),_(on,cr,null),t(Pe,xi),t(Pe,xs),m(e,fa,c),m(e,W,c),_(nn,W,null),t(W,Ji),t(W,Js),t(W,ji),t(W,js),t(W,Ci),t(W,Cs),t(W,ki),t(W,te),_(sn,te,null),t(te,Fi),t(te,ks),t(te,Ii),_(It,te,null),t(te,Ui),_(Ut,te,null),m(e,ua,c),m(e,Ve,c),t(Ve,zt),t(zt,pr),_(rn,pr,null),t(Ve,zi),t(Ve,Fs),m(e,ga,c),m(e,N,c),_(an,N,null),t(N,Wi),t(N,Is),t(N,Ni),t(N,Us),t(N,Zi),t(N,zs),t(N,Pi),t(N,oe),_(ln,oe,null),t(oe,Vi),t(oe,Ws),t(oe,Hi),_(Wt,oe,null),t(oe,Ei),_(Nt,oe,null),m(e,_a,c),m(e,He,c),t(He,Zt),t(Zt,mr),_(dn,mr,null),t(He,Ri),t(He,Ns),m(e,ba,c),m(e,Z,c),_(cn,Z,null),t(Z,Gi),t(Z,Zs),t(Z,qi),t(Z,Ps),t(Z,Li),t(Z,Vs),t(Z,Si),t(Z,ne),_(pn,ne,null),t(ne,Xi),t(ne,Hs),t(ne,Ai),_(Pt,ne,null),t(ne,Qi),_(Vt,ne,null),m(e,va,c),m(e,hr,c),Ta=!0},p(e,[c]){const mn={};c&2&&(mn.$$scope={dirty:c,ctx:e}),qe.$set(mn);const fr={};c&2&&(fr.$$scope={dirty:c,ctx:e}),Xe.$set(fr);const ur={};c&2&&(ur.$$scope={dirty:c,ctx:e}),Qe.$set(ur);const hn={};c&2&&(hn.$$scope={dirty:c,ctx:e}),ot.$set(hn);const gr={};c&2&&(gr.$$scope={dirty:c,ctx:e}),nt.$set(gr);const _r={};c&2&&(_r.$$scope={dirty:c,ctx:e}),st.$set(_r);const fn={};c&2&&(fn.$$scope={dirty:c,ctx:e}),rt.$set(fn);const br={};c&2&&(br.$$scope={dirty:c,ctx:e}),at.$set(br);const vr={};c&2&&(vr.$$scope={dirty:c,ctx:e}),lt.$set(vr);const un={};c&2&&(un.$$scope={dirty:c,ctx:e}),ct.$set(un);const Tr={};c&2&&(Tr.$$scope={dirty:c,ctx:e}),mt.$set(Tr);const yr={};c&2&&(yr.$$scope={dirty:c,ctx:e}),ht.$set(yr);const q={};c&2&&(q.$$scope={dirty:c,ctx:e}),ut.$set(q);const gn={};c&2&&(gn.$$scope={dirty:c,ctx:e}),gt.$set(gn);const _n={};c&2&&(_n.$$scope={dirty:c,ctx:e}),bt.$set(_n);const Mr={};c&2&&(Mr.$$scope={dirty:c,ctx:e}),vt.$set(Mr);const wr={};c&2&&(wr.$$scope={dirty:c,ctx:e}),yt.$set(wr);const ie={};c&2&&(ie.$$scope={dirty:c,ctx:e}),Mt.$set(ie);const bn={};c&2&&(bn.$$scope={dirty:c,ctx:e}),wt.$set(bn);const $r={};c&2&&($r.$$scope={dirty:c,ctx:e}),$t.$set($r);const Br={};c&2&&(Br.$$scope={dirty:c,ctx:e}),Bt.$set(Br);const de={};c&2&&(de.$$scope={dirty:c,ctx:e}),xt.$set(de);const vn={};c&2&&(vn.$$scope={dirty:c,ctx:e}),jt.$set(vn);const xr={};c&2&&(xr.$$scope={dirty:c,ctx:e}),kt.$set(xr);const Jr={};c&2&&(Jr.$$scope={dirty:c,ctx:e}),It.$set(Jr);const L={};c&2&&(L.$$scope={dirty:c,ctx:e}),Ut.$set(L);const Tn={};c&2&&(Tn.$$scope={dirty:c,ctx:e}),Wt.$set(Tn);const yn={};c&2&&(yn.$$scope={dirty:c,ctx:e}),Nt.$set(yn);const Mn={};c&2&&(Mn.$$scope={dirty:c,ctx:e}),Pt.$set(Mn);const jr={};c&2&&(jr.$$scope={dirty:c,ctx:e}),Vt.$set(jr)},i(e){Ta||(b(Kt.$$.fragment,e),b(eo.$$.fragment,e),b(io.$$.fragment,e),b(po.$$.fragment,e),b(mo.$$.fragment,e),b(qe.$$.fragment,e),b(ho.$$.fragment,e),b(fo.$$.fragment,e),b(uo.$$.fragment,e),b(Xe.$$.fragment,e),b(go.$$.fragment,e),b(_o.$$.fragment,e),b(Qe.$$.fragment,e),b(bo.$$.fragment,e),b(vo.$$.fragment,e),b(To.$$.fragment,e),b(yo.$$.fragment,e),b(Mo.$$.fragment,e),b(wo.$$.fragment,e),b($o.$$.fragment,e),b(Bo.$$.fragment,e),b(xo.$$.fragment,e),b(Jo.$$.fragment,e),b(ot.$$.fragment,e),b(nt.$$.fragment,e),b(jo.$$.fragment,e),b(st.$$.fragment,e),b(rt.$$.fragment,e),b(Co.$$.fragment,e),b(at.$$.fragment,e),b(lt.$$.fragment,e),b(ko.$$.fragment,e),b(Fo.$$.fragment,e),b(Io.$$.fragment,e),b(Uo.$$.fragment,e),b(zo.$$.fragment,e),b(Wo.$$.fragment,e),b(ct.$$.fragment,e),b(No.$$.fragment,e),b(Zo.$$.fragment,e),b(Po.$$.fragment,e),b(mt.$$.fragment,e),b(ht.$$.fragment,e),b(Vo.$$.fragment,e),b(Ho.$$.fragment,e),b(Eo.$$.fragment,e),b(ut.$$.fragment,e),b(gt.$$.fragment,e),b(Ro.$$.fragment,e),b(Go.$$.fragment,e),b(qo.$$.fragment,e),b(bt.$$.fragment,e),b(vt.$$.fragment,e),b(Lo.$$.fragment,e),b(So.$$.fragment,e),b(Xo.$$.fragment,e),b(yt.$$.fragment,e),b(Mt.$$.fragment,e),b(Ao.$$.fragment,e),b(wt.$$.fragment,e),b($t.$$.fragment,e),b(Qo.$$.fragment,e),b(Bt.$$.fragment,e),b(xt.$$.fragment,e),b(Yo.$$.fragment,e),b(Do.$$.fragment,e),b(Oo.$$.fragment,e),b(jt.$$.fragment,e),b(Ko.$$.fragment,e),b(en.$$.fragment,e),b(tn.$$.fragment,e),b(kt.$$.fragment,e),b(on.$$.fragment,e),b(nn.$$.fragment,e),b(sn.$$.fragment,e),b(It.$$.fragment,e),b(Ut.$$.fragment,e),b(rn.$$.fragment,e),b(an.$$.fragment,e),b(ln.$$.fragment,e),b(Wt.$$.fragment,e),b(Nt.$$.fragment,e),b(dn.$$.fragment,e),b(cn.$$.fragment,e),b(pn.$$.fragment,e),b(Pt.$$.fragment,e),b(Vt.$$.fragment,e),Ta=!0)},o(e){v(Kt.$$.fragment,e),v(eo.$$.fragment,e),v(io.$$.fragment,e),v(po.$$.fragment,e),v(mo.$$.fragment,e),v(qe.$$.fragment,e),v(ho.$$.fragment,e),v(fo.$$.fragment,e),v(uo.$$.fragment,e),v(Xe.$$.fragment,e),v(go.$$.fragment,e),v(_o.$$.fragment,e),v(Qe.$$.fragment,e),v(bo.$$.fragment,e),v(vo.$$.fragment,e),v(To.$$.fragment,e),v(yo.$$.fragment,e),v(Mo.$$.fragment,e),v(wo.$$.fragment,e),v($o.$$.fragment,e),v(Bo.$$.fragment,e),v(xo.$$.fragment,e),v(Jo.$$.fragment,e),v(ot.$$.fragment,e),v(nt.$$.fragment,e),v(jo.$$.fragment,e),v(st.$$.fragment,e),v(rt.$$.fragment,e),v(Co.$$.fragment,e),v(at.$$.fragment,e),v(lt.$$.fragment,e),v(ko.$$.fragment,e),v(Fo.$$.fragment,e),v(Io.$$.fragment,e),v(Uo.$$.fragment,e),v(zo.$$.fragment,e),v(Wo.$$.fragment,e),v(ct.$$.fragment,e),v(No.$$.fragment,e),v(Zo.$$.fragment,e),v(Po.$$.fragment,e),v(mt.$$.fragment,e),v(ht.$$.fragment,e),v(Vo.$$.fragment,e),v(Ho.$$.fragment,e),v(Eo.$$.fragment,e),v(ut.$$.fragment,e),v(gt.$$.fragment,e),v(Ro.$$.fragment,e),v(Go.$$.fragment,e),v(qo.$$.fragment,e),v(bt.$$.fragment,e),v(vt.$$.fragment,e),v(Lo.$$.fragment,e),v(So.$$.fragment,e),v(Xo.$$.fragment,e),v(yt.$$.fragment,e),v(Mt.$$.fragment,e),v(Ao.$$.fragment,e),v(wt.$$.fragment,e),v($t.$$.fragment,e),v(Qo.$$.fragment,e),v(Bt.$$.fragment,e),v(xt.$$.fragment,e),v(Yo.$$.fragment,e),v(Do.$$.fragment,e),v(Oo.$$.fragment,e),v(jt.$$.fragment,e),v(Ko.$$.fragment,e),v(en.$$.fragment,e),v(tn.$$.fragment,e),v(kt.$$.fragment,e),v(on.$$.fragment,e),v(nn.$$.fragment,e),v(sn.$$.fragment,e),v(It.$$.fragment,e),v(Ut.$$.fragment,e),v(rn.$$.fragment,e),v(an.$$.fragment,e),v(ln.$$.fragment,e),v(Wt.$$.fragment,e),v(Nt.$$.fragment,e),v(dn.$$.fragment,e),v(cn.$$.fragment,e),v(pn.$$.fragment,e),v(Pt.$$.fragment,e),v(Vt.$$.fragment,e),Ta=!1},d(e){e&&(n(M),n(d),n(p),n(w),n(Cr),n(Te),n(kr),n(to),n(Fr),n(oo),n(Ir),n(no),n(Ur),n(so),n(zr),n(ro),n(Wr),n(ao),n(Nr),n(lo),n(Zr),n(ye),n(Pr),n(co),n(Vr),n(Me),n(Hr),n(k),n(Er),n(we),n(Rr),n(E),n(Gr),n($e),n(qr),n(R),n(Lr),n(Be),n(Sr),n(F),n(Xr),n(xe),n(Ar),n(re),n(Qr),n(Je),n(Yr),n(C),n(Dr),n(je),n(Or),n(ae),n(Kr),n(Ce),n(ea),n(ke),n(ta),n(Fe),n(oa),n(I),n(na),n(Ie),n(sa),n(U),n(ra),n(Ue),n(aa),n(z),n(la),n(ze),n(ia),n(G),n(da),n(We),n(ca),n(le),n(pa),n(Ne),n(ma),n(Ze),n(ha),n(Pe),n(fa),n(W),n(ua),n(Ve),n(ga),n(N),n(_a),n(He),n(ba),n(Z),n(va),n(hr)),n(o),T(Kt),T(eo),T(io),T(po),T(mo),T(qe),T(ho),T(fo),T(uo),T(Xe),T(go),T(_o),T(Qe),T(bo),T(vo),T(To),T(yo),T(Mo),T(wo),T($o),T(Bo),T(xo),T(Jo),T(ot),T(nt),T(jo),T(st),T(rt),T(Co),T(at),T(lt),T(ko),T(Fo),T(Io),T(Uo),T(zo),T(Wo),T(ct),T(No),T(Zo),T(Po),T(mt),T(ht),T(Vo),T(Ho),T(Eo),T(ut),T(gt),T(Ro),T(Go),T(qo),T(bt),T(vt),T(Lo),T(So),T(Xo),T(yt),T(Mt),T(Ao),T(wt),T($t),T(Qo),T(Bt),T(xt),T(Yo),T(Do),T(Oo),T(jt),T(Ko),T(en),T(tn),T(kt),T(on),T(nn),T(sn),T(It),T(Ut),T(rn),T(an),T(ln),T(Wt),T(Nt),T(dn),T(cn),T(pn),T(Pt),T(Vt)}}}const Cp={local:"blip",sections:[{local:"overview",title:"Overview"},{local:"resources",title:"Resources"},{local:"transformers.BlipConfig",title:"BlipConfig"},{local:"transformers.BlipTextConfig",title:"BlipTextConfig"},{local:"transformers.BlipVisionConfig",title:"BlipVisionConfig"},{local:"transformers.BlipProcessor",title:"BlipProcessor"},{local:"transformers.BlipImageProcessor",title:"BlipImageProcessor"},{local:"transformers.BlipModel",title:"BlipModel"},{local:"transformers.BlipTextModel",title:"BlipTextModel"},{local:"transformers.BlipVisionModel",title:"BlipVisionModel"},{local:"transformers.BlipForConditionalGeneration",title:"BlipForConditionalGeneration"},{local:"transformers.BlipForImageTextRetrieval",title:"BlipForImageTextRetrieval"},{local:"transformers.BlipForQuestionAnswering",title:"BlipForQuestionAnswering"},{local:"transformers.TFBlipModel",title:"TFBlipModel"},{local:"transformers.TFBlipTextModel",title:"TFBlipTextModel"},{local:"transformers.TFBlipVisionModel",title:"TFBlipVisionModel"},{local:"transformers.TFBlipForConditionalGeneration",title:"TFBlipForConditionalGeneration"},{local:"transformers.TFBlipForImageTextRetrieval",title:"TFBlipForImageTextRetrieval"},{local:"transformers.TFBlipForQuestionAnswering",title:"TFBlipForQuestionAnswering"}],title:"BLIP"};function kp(B){return Ac(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Pp extends Qc{constructor(o){super(),Yc(this,o,kp,jp,Xc,{})}}export{Pp as component};
