import{s as Ze,n as ge,o as _e}from"../chunks/scheduler.56725da7.js";import{S as Ce,i as We,e as i,s,c as o,h as Ie,a as p,d as l,b as n,f as je,g as m,j as y,k as Me,l as Xe,m as a,n as r,t as M,o as d,p as u}from"../chunks/index.18a26576.js";import{C as Be}from"../chunks/CopyLLMTxtMenu.f6923459.js";import{C as re}from"../chunks/CodeBlock.26af9520.js";import{H as G}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.898afa74.js";function Re(de){let c,F,Y,Q,h,k,U,q,J,H,b,ue='<a href="https://hf.co/papers/2308.06721" rel="nofollow">IP-Adapter</a> is an image prompt adapter that can be plugged into diffusion models to enable image prompting without any changes to the underlying model. Furthermore, this adapter can be reused with other models finetuned from the same base model and it can be combined with other adapters like <a href="../using-diffusers/controlnet">ControlNet</a>. The key idea behind IP-Adapter is the <em>decoupled cross-attention</em> mechanism which adds a separate cross-attention layer just for image features instead of using the same cross-attention layer for both text and image features. This allows the model to learn more image-specific features.',x,T,ye="🤗 <code>Optimum</code> extends <code>Diffusers</code> to support inference on the second generation of Neuron devices(powering Trainium and Inferentia 2). It aims at inheriting the ease of Diffusers on Neuron.",E,w,A,j,ce="To deploy models, you will need to compile them to TorchScript optimized for AWS Neuron.",z,Z,fe="You can either compile and export a Stable Diffusion Checkpoint via CLI or <code>NeuronStableDiffusionPipeline</code> class.",L,g,D,_,he="Here is an example of exporting stable diffusion components with <code>Optimum</code> CLI:",P,C,O,f,Ue="<p>We recommend using a <code>inf2.8xlarge</code> or a larger instance for the model compilation. You will also be able to compile the model with the Optimum CLI on a CPU-only instance (needs ~35 GB memory), and then run the pre-compiled model on <code>inf2.xlarge</code> to reduce the expenses. In this case, don’t forget to disable validation of inference by adding the <code>--disable-validation</code> argument.</p>",K,W,ee,I,Je="Here is an example of exporting stable diffusion components with <code>NeuronStableDiffusionPipeline</code>:",te,X,le,B,ae,R,be="<li>With <code>ip_adapter_image</code> as input</li>",se,N,ne,$,Te="<li>With <code>ip_adapter_image_embeds</code> as input (encode the image first)</li>",ie,v,pe,S,we='Are there any other diffusion features that you want us to support in 🤗<code>Optimum-neuron</code>? Please file an issue to <a href="https://github.com/huggingface/optimum-neuron" rel="nofollow"><code>Optimum-neuron</code> Github repo</a> or discuss with us on <a href="https://discuss.huggingface.co/c/optimum/" rel="nofollow">HuggingFace’s community forum</a>, cheers 🤗 !',oe,V,me;return h=new Be({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),U=new G({props:{title:"IP-Adapter",local:"ip-adapter",headingTag:"h1"}}),J=new G({props:{title:"Overview",local:"overview",headingTag:"h2"}}),w=new G({props:{title:"Export to Neuron",local:"export-to-neuron",headingTag:"h2"}}),g=new G({props:{title:"Option 1: CLI",local:"option-1-cli",headingTag:"h3"}}),C=new re({props:{code:"b3B0aW11bS1jbGklMjBleHBvcnQlMjBuZXVyb24lMjAtLW1vZGVsJTIwc3RhYmxlLWRpZmZ1c2lvbi12MS01JTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTBBJTIwJTIwJTIwJTIwLS1pcF9hZGFwdGVyX2lkJTIwaDk0JTJGSVAtQWRhcHRlciUwQSUyMCUyMCUyMCUyMC0taXBfYWRhcHRlcl9zdWJmb2xkZXIlMjBtb2RlbHMlMEElMjAlMjAlMjAlMjAtLWlwX2FkYXB0ZXJfd2VpZ2h0X25hbWUlMjBpcC1hZGFwdGVyLWZ1bGwtZmFjZV9zZDE1LmJpbiUwQSUyMCUyMCUyMCUyMC0taXBfYWRhcHRlcl9zY2FsZSUyMDAuNSUwQSUyMCUyMCUyMCUyMC0tYmF0Y2hfc2l6ZSUyMDElMjAtLWhlaWdodCUyMDUxMiUyMC0td2lkdGglMjA1MTIlMjAtLW51bV9pbWFnZXNfcGVyX3Byb21wdCUyMDElMEElMjAlMjAlMjAlMjAtLWF1dG9fY2FzdCUyMG1hdG11bCUyMC0tYXV0b19jYXN0X3R5cGUlMjBiZjE2JTIwaXBfYWRhcHRlcl9uZXVyb24lMkY=",highlighted:`optimum-cli <span class="hljs-built_in">export</span> neuron --model stable-diffusion-v1-5/stable-diffusion-v1-5
    --ip_adapter_id h94/IP-Adapter
    --ip_adapter_subfolder models
    --ip_adapter_weight_name ip-adapter-full-face_sd15.bin
    --ip_adapter_scale 0.5
    --batch_size 1 --height 512 --width 512 --num_images_per_prompt 1
    --auto_cast matmul --auto_cast_type bf16 ip_adapter_neuron/`,wrap:!1}}),W=new G({props:{title:"Option 2: Python API",local:"option-2-python-api",headingTag:"h3"}}),X=new re({props:{code:"ZnJvbSUyMG9wdGltdW0ubmV1cm9uJTIwaW1wb3J0JTIwTmV1cm9uU3RhYmxlRGlmZnVzaW9uUGlwZWxpbmUlMEElMEFtb2RlbF9pZCUyMCUzRCUyMCUyMnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiUwQWNvbXBpbGVyX2FyZ3MlMjAlM0QlMjAlN0IlMjJhdXRvX2Nhc3QlMjIlM0ElMjAlMjJtYXRtdWwlMjIlMkMlMjAlMjJhdXRvX2Nhc3RfdHlwZSUyMiUzQSUyMCUyMmJmMTYlMjIlN0QlMEFpbnB1dF9zaGFwZXMlMjAlM0QlMjAlN0IlMjJiYXRjaF9zaXplJTIyJTNBJTIwMSUyQyUyMCUyMmhlaWdodCUyMiUzQSUyMDUxMiUyQyUyMCUyMndpZHRoJTIyJTNBJTIwNTEyJTdEJTBBJTBBc3RhYmxlX2RpZmZ1c2lvbiUyMCUzRCUyME5ldXJvblN0YWJsZURpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjBtb2RlbF9pZCUyQyUwQSUyMCUyMCUyMCUyMGV4cG9ydCUzRFRydWUlMkMlMEElMjAlMjAlMjAlMjBpcF9hZGFwdGVyX2lkJTNEJTIyaDk0JTJGSVAtQWRhcHRlciUyMiUyQyUwQSUyMCUyMCUyMCUyMGlwX2FkYXB0ZXJfc3ViZm9sZGVyJTNEJTIybW9kZWxzJTIyJTJDJTBBJTIwJTIwJTIwJTIwaXBfYWRhcHRlcl93ZWlnaHRfbmFtZSUzRCUyMmlwLWFkYXB0ZXItZnVsbC1mYWNlX3NkMTUuYmluJTIyJTJDJTBBJTIwJTIwJTIwJTIwaXBfYWRhcHRlcl9zY2FsZSUzRDAuNSUyQyUwQSUyMCUyMCUyMCUyMCoqY29tcGlsZXJfYXJncyUyQyUwQSUyMCUyMCUyMCUyMCoqaW5wdXRfc2hhcGVzJTJDJTBBKSUwQSUwQSUyMyUyMFNhdmUlMjBsb2NhbGx5JTIwb3IlMjB1cGxvYWQlMjB0byUyMHRoZSUyMEh1Z2dpbmdGYWNlJTIwSHViJTBBc2F2ZV9kaXJlY3RvcnklMjAlM0QlMjAlMjJpcF9hZGFwdGVyX25ldXJvbiUyRiUyMiUwQXN0YWJsZV9kaWZmdXNpb24uc2F2ZV9wcmV0cmFpbmVkKHNhdmVfZGlyZWN0b3J5KQ==",highlighted:`<span class="hljs-keyword">from</span> optimum.neuron <span class="hljs-keyword">import</span> NeuronStableDiffusionPipeline

model_id = <span class="hljs-string">&quot;stable-diffusion-v1-5/stable-diffusion-v1-5&quot;</span>
compiler_args = {<span class="hljs-string">&quot;auto_cast&quot;</span>: <span class="hljs-string">&quot;matmul&quot;</span>, <span class="hljs-string">&quot;auto_cast_type&quot;</span>: <span class="hljs-string">&quot;bf16&quot;</span>}
input_shapes = {<span class="hljs-string">&quot;batch_size&quot;</span>: <span class="hljs-number">1</span>, <span class="hljs-string">&quot;height&quot;</span>: <span class="hljs-number">512</span>, <span class="hljs-string">&quot;width&quot;</span>: <span class="hljs-number">512</span>}

stable_diffusion = NeuronStableDiffusionPipeline.from_pretrained(
    model_id,
    export=<span class="hljs-literal">True</span>,
    ip_adapter_id=<span class="hljs-string">&quot;h94/IP-Adapter&quot;</span>,
    ip_adapter_subfolder=<span class="hljs-string">&quot;models&quot;</span>,
    ip_adapter_weight_name=<span class="hljs-string">&quot;ip-adapter-full-face_sd15.bin&quot;</span>,
    ip_adapter_scale=<span class="hljs-number">0.5</span>,
    **compiler_args,
    **input_shapes,
)

<span class="hljs-comment"># Save locally or upload to the HuggingFace Hub</span>
save_directory = <span class="hljs-string">&quot;ip_adapter_neuron/&quot;</span>
stable_diffusion.save_pretrained(save_directory)`,wrap:!1}}),B=new G({props:{title:"Text-to-Image",local:"text-to-image",headingTag:"h2"}}),N=new re({props:{code:"ZnJvbSUyMG9wdGltdW0ubmV1cm9uJTIwaW1wb3J0JTIwTmV1cm9uU3RhYmxlRGlmZnVzaW9uUGlwZWxpbmUlMEElMEFtb2RlbF9pZCUyMCUzRCUyMCUyMnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiUwQWNvbXBpbGVyX2FyZ3MlMjAlM0QlMjAlN0IlMjJhdXRvX2Nhc3QlMjIlM0ElMjAlMjJtYXRtdWwlMjIlMkMlMjAlMjJhdXRvX2Nhc3RfdHlwZSUyMiUzQSUyMCUyMmJmMTYlMjIlN0QlMEFpbnB1dF9zaGFwZXMlMjAlM0QlMjAlN0IlMjJiYXRjaF9zaXplJTIyJTNBJTIwMSUyQyUyMCUyMmhlaWdodCUyMiUzQSUyMDUxMiUyQyUyMCUyMndpZHRoJTIyJTNBJTIwNTEyJTdEJTBBJTBBc3RhYmxlX2RpZmZ1c2lvbiUyMCUzRCUyME5ldXJvblN0YWJsZURpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjBtb2RlbF9pZCUyQyUwQSUyMCUyMCUyMCUyMGV4cG9ydCUzRFRydWUlMkMlMEElMjAlMjAlMjAlMjBpcF9hZGFwdGVyX2lkJTNEJTIyaDk0JTJGSVAtQWRhcHRlciUyMiUyQyUwQSUyMCUyMCUyMCUyMGlwX2FkYXB0ZXJfc3ViZm9sZGVyJTNEJTIybW9kZWxzJTIyJTJDJTBBJTIwJTIwJTIwJTIwaXBfYWRhcHRlcl93ZWlnaHRfbmFtZSUzRCUyMmlwLWFkYXB0ZXItZnVsbC1mYWNlX3NkMTUuYmluJTIyJTJDJTBBJTIwJTIwJTIwJTIwaXBfYWRhcHRlcl9zY2FsZSUzRDAuNSUyQyUwQSUyMCUyMCUyMCUyMCoqY29tcGlsZXJfYXJncyUyQyUwQSUyMCUyMCUyMCUyMCoqaW5wdXRfc2hhcGVzJTJDJTBBKSUwQSUwQSUyMyUyMFNhdmUlMjBsb2NhbGx5JTIwb3IlMjB1cGxvYWQlMjB0byUyMHRoZSUyMEh1Z2dpbmdGYWNlJTIwSHViJTBBc2F2ZV9kaXJlY3RvcnklMjAlM0QlMjAlMjJpcF9hZGFwdGVyX25ldXJvbiUyRiUyMiUwQXN0YWJsZV9kaWZmdXNpb24uc2F2ZV9wcmV0cmFpbmVkKHNhdmVfZGlyZWN0b3J5KQ==",highlighted:`<span class="hljs-keyword">from</span> optimum.neuron <span class="hljs-keyword">import</span> NeuronStableDiffusionPipeline

model_id = <span class="hljs-string">&quot;stable-diffusion-v1-5/stable-diffusion-v1-5&quot;</span>
compiler_args = {<span class="hljs-string">&quot;auto_cast&quot;</span>: <span class="hljs-string">&quot;matmul&quot;</span>, <span class="hljs-string">&quot;auto_cast_type&quot;</span>: <span class="hljs-string">&quot;bf16&quot;</span>}
input_shapes = {<span class="hljs-string">&quot;batch_size&quot;</span>: <span class="hljs-number">1</span>, <span class="hljs-string">&quot;height&quot;</span>: <span class="hljs-number">512</span>, <span class="hljs-string">&quot;width&quot;</span>: <span class="hljs-number">512</span>}

stable_diffusion = NeuronStableDiffusionPipeline.from_pretrained(
    model_id,
    export=<span class="hljs-literal">True</span>,
    ip_adapter_id=<span class="hljs-string">&quot;h94/IP-Adapter&quot;</span>,
    ip_adapter_subfolder=<span class="hljs-string">&quot;models&quot;</span>,
    ip_adapter_weight_name=<span class="hljs-string">&quot;ip-adapter-full-face_sd15.bin&quot;</span>,
    ip_adapter_scale=<span class="hljs-number">0.5</span>,
    **compiler_args,
    **input_shapes,
)

<span class="hljs-comment"># Save locally or upload to the HuggingFace Hub</span>
save_directory = <span class="hljs-string">&quot;ip_adapter_neuron/&quot;</span>
stable_diffusion.save_pretrained(save_directory)`,wrap:!1}}),v=new re({props:{code:"aW1hZ2VfZW1iZWRzJTIwJTNEJTIwc3RhYmxlX2RpZmZ1c2lvbi5wcmVwYXJlX2lwX2FkYXB0ZXJfaW1hZ2VfZW1iZWRzKCUwQSUyMCUyMCUyMCUyMGlwX2FkYXB0ZXJfaW1hZ2UlM0RpbWFnZSUyQyUwQSUyMCUyMCUyMCUyMGlwX2FkYXB0ZXJfaW1hZ2VfZW1iZWRzJTNETm9uZSUyQyUwQSUyMCUyMCUyMCUyMGRldmljZSUzRE5vbmUlMkMlMEElMjAlMjAlMjAlMjBudW1faW1hZ2VzX3Blcl9wcm9tcHQlM0QxJTJDJTBBJTIwJTIwJTIwJTIwZG9fY2xhc3NpZmllcl9mcmVlX2d1aWRhbmNlJTNEVHJ1ZSUyQyUwQSklMEF0b3JjaC5zYXZlKGltYWdlX2VtYmVkcyUyQyUyMCUyMmltYWdlX2VtYmVkcy5pcGFkcHQlMjIpJTBBJTBBaW1hZ2VfZW1iZWRzJTIwJTNEJTIwdG9yY2gubG9hZCglMjJpbWFnZV9lbWJlZHMuaXBhZHB0JTIyKSUwQWltYWdlcyUyMCUzRCUyMHN0YWJsZV9kaWZmdXNpb24oJTBBJTIwJTIwJTIwJTIwcHJvbXB0JTNEJTIyYSUyMHBvbGFyJTIwYmVhciUyMHNpdHRpbmclMjBpbiUyMGElMjBjaGFpciUyMGRyaW5raW5nJTIwYSUyMG1pbGtzaGFrZSUyMiUyQyUwQSUyMCUyMCUyMCUyMGlwX2FkYXB0ZXJfaW1hZ2VfZW1iZWRzJTNEaW1hZ2VfZW1iZWRzJTJDJTBBJTIwJTIwJTIwJTIwbmVnYXRpdmVfcHJvbXB0JTNEJTIyZGVmb3JtZWQlMkMlMjB1Z2x5JTJDJTIwd3JvbmclMjBwcm9wb3J0aW9uJTJDJTIwbG93JTIwcmVzJTJDJTIwYmFkJTIwYW5hdG9teSUyQyUyMHdvcnN0JTIwcXVhbGl0eSUyQyUyMGxvdyUyMHF1YWxpdHklMjIlMkMlMEElMjAlMjAlMjAlMjBudW1faW5mZXJlbmNlX3N0ZXBzJTNEMTAwJTJDJTBBJTIwJTIwJTIwJTIwZ2VuZXJhdG9yJTNEZ2VuZXJhdG9yJTJDJTBBKS5pbWFnZXMlNUIwJTVEJTBBJTBBaW1hZ2Uuc2F2ZSglMjJwb2xhcl9iZWFyLnBuZyUyMik=",highlighted:`image_embeds = stable_diffusion.prepare_ip_adapter_image_embeds(
    ip_adapter_image=image,
    ip_adapter_image_embeds=<span class="hljs-literal">None</span>,
    device=<span class="hljs-literal">None</span>,
    num_images_per_prompt=<span class="hljs-number">1</span>,
    do_classifier_free_guidance=<span class="hljs-literal">True</span>,
)
torch.save(image_embeds, <span class="hljs-string">&quot;image_embeds.ipadpt&quot;</span>)

image_embeds = torch.load(<span class="hljs-string">&quot;image_embeds.ipadpt&quot;</span>)
images = stable_diffusion(
    prompt=<span class="hljs-string">&quot;a polar bear sitting in a chair drinking a milkshake&quot;</span>,
    ip_adapter_image_embeds=image_embeds,
    negative_prompt=<span class="hljs-string">&quot;deformed, ugly, wrong proportion, low res, bad anatomy, worst quality, low quality&quot;</span>,
    num_inference_steps=<span class="hljs-number">100</span>,
    generator=generator,
).images[<span class="hljs-number">0</span>]

image.save(<span class="hljs-string">&quot;polar_bear.png&quot;</span>)`,wrap:!1}}),{c(){c=i("meta"),F=s(),Y=i("p"),Q=s(),o(h.$$.fragment),k=s(),o(U.$$.fragment),q=s(),o(J.$$.fragment),H=s(),b=i("p"),b.innerHTML=ue,x=s(),T=i("p"),T.innerHTML=ye,E=s(),o(w.$$.fragment),A=s(),j=i("p"),j.textContent=ce,z=s(),Z=i("p"),Z.innerHTML=fe,L=s(),o(g.$$.fragment),D=s(),_=i("p"),_.innerHTML=he,P=s(),o(C.$$.fragment),O=s(),f=i("blockquote"),f.innerHTML=Ue,K=s(),o(W.$$.fragment),ee=s(),I=i("p"),I.innerHTML=Je,te=s(),o(X.$$.fragment),le=s(),o(B.$$.fragment),ae=s(),R=i("ul"),R.innerHTML=be,se=s(),o(N.$$.fragment),ne=s(),$=i("ul"),$.innerHTML=Te,ie=s(),o(v.$$.fragment),pe=s(),S=i("p"),S.innerHTML=we,oe=s(),V=i("p"),this.h()},l(e){const t=Ie("svelte-u9bgzb",document.head);c=p(t,"META",{name:!0,content:!0}),t.forEach(l),F=n(e),Y=p(e,"P",{}),je(Y).forEach(l),Q=n(e),m(h.$$.fragment,e),k=n(e),m(U.$$.fragment,e),q=n(e),m(J.$$.fragment,e),H=n(e),b=p(e,"P",{"data-svelte-h":!0}),y(b)!=="svelte-rd9njz"&&(b.innerHTML=ue),x=n(e),T=p(e,"P",{"data-svelte-h":!0}),y(T)!=="svelte-1g87d8z"&&(T.innerHTML=ye),E=n(e),m(w.$$.fragment,e),A=n(e),j=p(e,"P",{"data-svelte-h":!0}),y(j)!=="svelte-mxgu63"&&(j.textContent=ce),z=n(e),Z=p(e,"P",{"data-svelte-h":!0}),y(Z)!=="svelte-15y00oa"&&(Z.innerHTML=fe),L=n(e),m(g.$$.fragment,e),D=n(e),_=p(e,"P",{"data-svelte-h":!0}),y(_)!=="svelte-ktaj8q"&&(_.innerHTML=he),P=n(e),m(C.$$.fragment,e),O=n(e),f=p(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),y(f)!=="svelte-6gfoqi"&&(f.innerHTML=Ue),K=n(e),m(W.$$.fragment,e),ee=n(e),I=p(e,"P",{"data-svelte-h":!0}),y(I)!=="svelte-1bahy14"&&(I.innerHTML=Je),te=n(e),m(X.$$.fragment,e),le=n(e),m(B.$$.fragment,e),ae=n(e),R=p(e,"UL",{"data-svelte-h":!0}),y(R)!=="svelte-1erevtl"&&(R.innerHTML=be),se=n(e),m(N.$$.fragment,e),ne=n(e),$=p(e,"UL",{"data-svelte-h":!0}),y($)!=="svelte-1mmoknp"&&($.innerHTML=Te),ie=n(e),m(v.$$.fragment,e),pe=n(e),S=p(e,"P",{"data-svelte-h":!0}),y(S)!=="svelte-1wos5lv"&&(S.innerHTML=we),oe=n(e),V=p(e,"P",{}),je(V).forEach(l),this.h()},h(){Me(c,"name","hf:doc:metadata"),Me(c,"content",Ne),Me(f,"class","tip")},m(e,t){Xe(document.head,c),a(e,F,t),a(e,Y,t),a(e,Q,t),r(h,e,t),a(e,k,t),r(U,e,t),a(e,q,t),r(J,e,t),a(e,H,t),a(e,b,t),a(e,x,t),a(e,T,t),a(e,E,t),r(w,e,t),a(e,A,t),a(e,j,t),a(e,z,t),a(e,Z,t),a(e,L,t),r(g,e,t),a(e,D,t),a(e,_,t),a(e,P,t),r(C,e,t),a(e,O,t),a(e,f,t),a(e,K,t),r(W,e,t),a(e,ee,t),a(e,I,t),a(e,te,t),r(X,e,t),a(e,le,t),r(B,e,t),a(e,ae,t),a(e,R,t),a(e,se,t),r(N,e,t),a(e,ne,t),a(e,$,t),a(e,ie,t),r(v,e,t),a(e,pe,t),a(e,S,t),a(e,oe,t),a(e,V,t),me=!0},p:ge,i(e){me||(M(h.$$.fragment,e),M(U.$$.fragment,e),M(J.$$.fragment,e),M(w.$$.fragment,e),M(g.$$.fragment,e),M(C.$$.fragment,e),M(W.$$.fragment,e),M(X.$$.fragment,e),M(B.$$.fragment,e),M(N.$$.fragment,e),M(v.$$.fragment,e),me=!0)},o(e){d(h.$$.fragment,e),d(U.$$.fragment,e),d(J.$$.fragment,e),d(w.$$.fragment,e),d(g.$$.fragment,e),d(C.$$.fragment,e),d(W.$$.fragment,e),d(X.$$.fragment,e),d(B.$$.fragment,e),d(N.$$.fragment,e),d(v.$$.fragment,e),me=!1},d(e){e&&(l(F),l(Y),l(Q),l(k),l(q),l(H),l(b),l(x),l(T),l(E),l(A),l(j),l(z),l(Z),l(L),l(D),l(_),l(P),l(O),l(f),l(K),l(ee),l(I),l(te),l(le),l(ae),l(R),l(se),l(ne),l($),l(ie),l(pe),l(S),l(oe),l(V)),l(c),u(h,e),u(U,e),u(J,e),u(w,e),u(g,e),u(C,e),u(W,e),u(X,e),u(B,e),u(N,e),u(v,e)}}}const Ne='{"title":"IP-Adapter","local":"ip-adapter","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"Export to Neuron","local":"export-to-neuron","sections":[{"title":"Option 1: CLI","local":"option-1-cli","sections":[],"depth":3},{"title":"Option 2: Python API","local":"option-2-python-api","sections":[],"depth":3}],"depth":2},{"title":"Text-to-Image","local":"text-to-image","sections":[],"depth":2}],"depth":1}';function $e(de){return _e(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Fe extends Ce{constructor(c){super(),We(this,c,$e,Re,Ze,{})}}export{Fe as component};
