Buckets:

HuggingFaceDocBuilder's picture
download
raw
25 kB
import{s as ze,o as Ye,n as De}from"../chunks/scheduler.53228c21.js";import{S as Oe,i as Ae,e as i,s as a,c as u,h as Qe,a as l,d as n,b as o,f as F,g,j as b,k as B,l as r,m as s,n as f,t as h,o as _,p as v}from"../chunks/index.cac5d66a.js";import{C as Xe}from"../chunks/CopyLLMTxtMenu.94f1b9f3.js";import{D as oe}from"../chunks/Docstring.ad6457df.js";import{C as Be}from"../chunks/CodeBlock.606cbaf4.js";import{E as Ke}from"../chunks/ExampleCodeBlock.1a02521d.js";import{H as ye,E as et}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.fff5b5d9.js";function tt(se){let p,k="Examples:",$,y,x;return y=new Be({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwSWRlb2dyYW00UGlwZWxpbmUlMEElMEFwaXBlJTIwJTNEJTIwSWRlb2dyYW00UGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUyMmlkZW9ncmFtLWFpJTJGaWRlb2dyYW0tdjQlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmJmbG9hdDE2KSUwQXBpcGUudG8oJTIyY3VkYSUyMiklMEElMEFwcm9tcHQlMjAlM0QlMjAlMjJBJTIwcGhvdG8lMjBvZiUyMGElMjBjYXQlMjBob2xkaW5nJTIwYSUyMHNpZ24lMjB0aGF0JTIwc2F5cyUyMGhlbGxvJTIwd29ybGQlMjIlMEElMjMlMjBUaGUlMjBkZWZhdWx0cyUyMGFyZSUyMHRoZSUyMHJlY29tbWVuZGVkJTIwc2V0dGluZ3MlMjBmb3IlMjBiZXN0JTIwcXVhbGl0eS4lMEFpbWFnZSUyMCUzRCUyMHBpcGUocHJvbXB0JTJDJTIwaGVpZ2h0JTNEMjA0OCUyQyUyMHdpZHRoJTNEMjA0OCUyQyUyMGdlbmVyYXRvciUzRHRvcmNoLkdlbmVyYXRvciglMjJjdWRhJTIyKS5tYW51YWxfc2VlZCgwKSkuaW1hZ2VzJTVCMCU1RCUwQWltYWdlLnNhdmUoJTIyaWRlb2dyYW00LnBuZyUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> Ideogram4Pipeline
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = Ideogram4Pipeline.from_pretrained(<span class="hljs-string">&quot;ideogram-ai/ideogram-v4&quot;</span>, torch_dtype=torch.bfloat16)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;A photo of a cat holding a sign that says hello world&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># The defaults are the recommended settings for best quality.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>image = pipe(prompt, height=<span class="hljs-number">2048</span>, width=<span class="hljs-number">2048</span>, generator=torch.Generator(<span class="hljs-string">&quot;cuda&quot;</span>).manual_seed(<span class="hljs-number">0</span>)).images[<span class="hljs-number">0</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>image.save(<span class="hljs-string">&quot;ideogram4.png&quot;</span>)`,lang:"py",wrap:!1}}),{c(){p=i("p"),p.textContent=k,$=a(),u(y.$$.fragment)},l(d){p=l(d,"P",{"data-svelte-h":!0}),b(p)!=="svelte-kvfsh7"&&(p.textContent=k),$=o(d),g(y.$$.fragment,d)},m(d,w){s(d,p,w),s(d,$,w),f(y,d,w),x=!0},p:De,i(d){x||(h(y.$$.fragment,d),x=!0)},o(d){_(y.$$.fragment,d),x=!1},d(d){d&&(n(p),n($)),v(y,d)}}}function nt(se){let p,k,$,y,x,d,w,re,J,Ge=`Ideogram 4 is a flow-matching text-to-image model that uses a multimodal text encoder and an asymmetric
classifier-free guidance scheme: a dedicated <code>unconditional_transformer</code> produces the negative branch with zeroed text
features, while the main <code>transformer</code> consumes the full packed text + image sequence.`,ie,C,We=`The pipeline defaults are the recommended settings for best quality, so a plain <code>pipe(prompt)</code> call produces
best-quality results out of the box: 48 flow-matching steps on a logit-normal schedule (<code>mu=0.0</code>, <code>std=1.5</code>) with
classifier-free guidance held at 7.0 for the main steps and dropped to 3.0 for the final 3 “polish” steps.`,le,U,Ee="Key inference-time knobs are exposed via the pipeline call:",de,G,qe="<li><code>num_inference_steps</code>, <code>mu</code>, and <code>std</code> control the resolution-aware logit-normal flow-matching schedule.</li> <li><code>guidance_scale</code> (or a full per-step <code>guidance_schedule</code>) blends the conditional and unconditional velocities.</li>",pe,W,ce,E,me,q,ue,c,Z,xe,z,Ze="Text-to-image pipeline for Ideogram4.",we,Y,Ne=`Ideogram4 is a flow-matching model trained with asymmetric classifier-free guidance: a <code>transformer</code> consumes
text-conditioned features alongside the image latents, while a separate <code>unconditional_transformer</code> denoises with
zeroed text features. The two velocity predictions are linearly blended each step.`,$e,I,N,Ie,D,Le="Run text-to-image generation.",Me,P,Te,M,L,je,O,Re="Prepare the conditioning for the packed text+image sequence (one entry per prompt).",Pe,A,Ve=`Returns a flat tuple <code>(prompt_embeds, position_ids, segment_ids, indicator)</code>. The unconditional branch carries
no text, so the pipeline builds its (zeroed) inputs directly rather than encoding a negative prompt.`,ke,T,R,Je,Q,He="Rewrite each prompt into Ideogram4’s native structured JSON caption.",Ce,X,Se=`Requires the optional <code>prompt_enhancer_head</code> component, which is grafted onto the shared <code>text_encoder</code> body to
make it generative. Generation is schema-constrained when <code>outlines</code> is installed, otherwise it runs
unconstrained. Pass <code>generator</code> (the same one accepted by <code>__call__</code>) to make sampling reproducible.`,ge,V,fe,j,H,Ue,K,Fe="Output class for the Ideogram 4 pipeline.",he,S,_e,ae,ve;return x=new Xe({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),w=new ye({props:{title:"Ideogram 4",local:"ideogram-4",headingTag:"h1"}}),W=new ye({props:{title:"Text-to-image",local:"text-to-image",headingTag:"h2"}}),E=new Be({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwSWRlb2dyYW00UGlwZWxpbmUlMEElMEFwaXBlJTIwJTNEJTIwSWRlb2dyYW00UGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUyMmlkZW9ncmFtLWFpJTJGaWRlb2dyYW0tdjQlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmJmbG9hdDE2KSUwQXBpcGUudG8oJTIyY3VkYSUyMiklMEElMEFwcm9tcHQlMjAlM0QlMjAlMjJBJTIwcGhvdG8lMjBvZiUyMGElMjBjYXQlMjBob2xkaW5nJTIwYSUyMHNpZ24lMjB0aGF0JTIwc2F5cyUyMGhlbGxvJTIwd29ybGQlMjIlMEElMjMlMjBUaGUlMjBkZWZhdWx0cyUyMGFyZSUyMHRoZSUyMHJlY29tbWVuZGVkJTIwc2V0dGluZ3MlMjBmb3IlMjBiZXN0JTIwcXVhbGl0eS4lMEFpbWFnZSUyMCUzRCUyMHBpcGUocHJvbXB0JTJDJTIwaGVpZ2h0JTNEMTAyNCUyQyUyMHdpZHRoJTNEMTAyNCUyQyUyMGdlbmVyYXRvciUzRHRvcmNoLkdlbmVyYXRvciglMjJjdWRhJTIyKS5tYW51YWxfc2VlZCgwKSkuaW1hZ2VzJTVCMCU1RCUwQWltYWdlLnNhdmUoJTIyaWRlb2dyYW00LnBuZyUyMik=",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> Ideogram4Pipeline
pipe = Ideogram4Pipeline.from_pretrained(<span class="hljs-string">&quot;ideogram-ai/ideogram-v4&quot;</span>, torch_dtype=torch.bfloat16)
pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)
prompt = <span class="hljs-string">&quot;A photo of a cat holding a sign that says hello world&quot;</span>
<span class="hljs-comment"># The defaults are the recommended settings for best quality.</span>
image = pipe(prompt, height=<span class="hljs-number">1024</span>, width=<span class="hljs-number">1024</span>, generator=torch.Generator(<span class="hljs-string">&quot;cuda&quot;</span>).manual_seed(<span class="hljs-number">0</span>)).images[<span class="hljs-number">0</span>]
image.save(<span class="hljs-string">&quot;ideogram4.png&quot;</span>)`,lang:"python",wrap:!1}}),q=new ye({props:{title:"Ideogram4Pipeline",local:"diffusers.Ideogram4Pipeline",headingTag:"h2"}}),Z=new oe({props:{name:"class diffusers.Ideogram4Pipeline",anchor:"diffusers.Ideogram4Pipeline",parameters:[{name:"scheduler",val:": FlowMatchEulerDiscreteScheduler"},{name:"vae",val:": AutoencoderKLFlux2"},{name:"text_encoder",val:": PreTrainedModel"},{name:"tokenizer",val:": AutoTokenizer"},{name:"transformer",val:": Ideogram4Transformer2DModel"},{name:"unconditional_transformer",val:": Ideogram4Transformer2DModel"},{name:"prompt_enhancer_head",val:": diffusers.pipelines.ideogram4.prompt_enhancer.Ideogram4PromptEnhancerHead | None = None"}],parametersDescription:[{anchor:"diffusers.Ideogram4Pipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/pr_13860/en/api/schedulers/flow_match_euler_discrete#diffusers.FlowMatchEulerDiscreteScheduler">FlowMatchEulerDiscreteScheduler</a>) &#x2014;
Flow-matching scheduler. The pipeline overrides the default sigma schedule with a resolution-aware
logit-normal schedule.`,name:"scheduler"},{anchor:"diffusers.Ideogram4Pipeline.vae",description:`<strong>vae</strong> (<code>AutoencoderKLFlux2</code>) &#x2014;
Variational auto-encoder used to decode latents back into images.`,name:"vae"},{anchor:"diffusers.Ideogram4Pipeline.text_encoder",description:`<strong>text_encoder</strong> (<code>PreTrainedModel</code>) &#x2014;
Multimodal text encoder. The pipeline consumes hidden states from a fixed set of intermediate decoder
layers (see <code>QWEN3_VL_ACTIVATION_LAYERS</code>).`,name:"text_encoder"},{anchor:"diffusers.Ideogram4Pipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>AutoTokenizer</code>) &#x2014;
Tokenizer paired with <code>text_encoder</code>.`,name:"tokenizer"},{anchor:"diffusers.Ideogram4Pipeline.transformer",description:`<strong>transformer</strong> (<a href="/docs/diffusers/pr_13860/en/api/models/ideogram4_transformer2d#diffusers.Ideogram4Transformer2DModel">Ideogram4Transformer2DModel</a>) &#x2014;
Conditional flow-matching transformer.`,name:"transformer"},{anchor:"diffusers.Ideogram4Pipeline.unconditional_transformer",description:`<strong>unconditional_transformer</strong> (<a href="/docs/diffusers/pr_13860/en/api/models/ideogram4_transformer2d#diffusers.Ideogram4Transformer2DModel">Ideogram4Transformer2DModel</a>) &#x2014;
Unconditional (asymmetric-CFG) flow-matching transformer.`,name:"unconditional_transformer"}],source:"https://github.com/huggingface/diffusers/blob/vr_13860/src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py#L140"}}),N=new oe({props:{name:"__call__",anchor:"diffusers.Ideogram4Pipeline.__call__",parameters:[{name:"prompt",val:": str | list[str] | None = None"},{name:"height",val:": int = 2048"},{name:"width",val:": int = 2048"},{name:"num_inference_steps",val:": int = 48"},{name:"guidance_scale",val:": float | None = None"},{name:"guidance_schedule",val:": list[float] | torch.Tensor | None = (7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 3.0, 3.0, 3.0)"},{name:"mu",val:": float = 0.0"},{name:"std",val:": float = 1.5"},{name:"prompt_upsampling",val:": bool = False"},{name:"prompt_upsampling_temperature",val:": float = 1.0"},{name:"max_sequence_length",val:": int = 2048"},{name:"num_images_per_prompt",val:": int = 1"},{name:"generator",val:": torch._C.Generator | list[torch._C.Generator] | None = None"},{name:"latents",val:": torch.Tensor | None = None"},{name:"output_type",val:": str = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"callback_on_step_end",val:": typing.Optional[typing.Callable[[ForwardRef('Ideogram4Pipeline'), int, int, dict[str, typing.Any]], dict[str, typing.Any]]] = None"},{name:"callback_on_step_end_tensor_inputs",val:": list = ['latents']"}],parametersDescription:[{anchor:"diffusers.Ideogram4Pipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>list[str]</code>) &#x2014;
Prompt(s) to guide image generation.`,name:"prompt"},{anchor:"diffusers.Ideogram4Pipeline.__call__.height",description:`<strong>height</strong> (<code>int</code>, <em>optional</em>, defaults to 2048) &#x2014;
Output image height in pixels; must be a multiple of <code>vae_scale_factor * patch_size</code>.`,name:"height"},{anchor:"diffusers.Ideogram4Pipeline.__call__.width",description:`<strong>width</strong> (<code>int</code>, <em>optional</em>, defaults to 2048) &#x2014;
Output image width in pixels; must be a multiple of <code>vae_scale_factor * patch_size</code>.`,name:"width"},{anchor:"diffusers.Ideogram4Pipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 48) &#x2014;
Number of flow-matching steps. The default is the recommended setting for best quality.`,name:"num_inference_steps"},{anchor:"diffusers.Ideogram4Pipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Constant classifier-free guidance scale applied at every step. The conditional and unconditional
velocity predictions are blended as <code>v = guidance_scale * v_pos + (1 - guidance_scale) * v_neg</code>.
Mutually exclusive with <code>guidance_schedule</code> (setting both raises). Defaults to <code>None</code>.`,name:"guidance_scale"},{anchor:"diffusers.Ideogram4Pipeline.__call__.guidance_schedule",description:`<strong>guidance_schedule</strong> (<code>list[float]</code> or <code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Per-step guidance scale schedule; must have length <code>num_inference_steps</code>. The first entry corresponds
to the first step (largest noise level). Mutually exclusive with <code>guidance_scale</code>; exactly one must be
set. Defaults to the recommended schedule (7.0 for the main steps, dropping to 3.0 for the final 3
&#x201C;polish&#x201D; steps). To use a constant scale instead, pass <code>guidance_scale</code> and <code>guidance_schedule=None</code>.`,name:"guidance_schedule"},{anchor:"diffusers.Ideogram4Pipeline.__call__.mu",description:`<strong>mu</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Base mean of the logit-normal flow-matching schedule. The schedule mean is shifted by half the log of
the resolution ratio relative to 512x512.`,name:"mu"},{anchor:"diffusers.Ideogram4Pipeline.__call__.std",description:`<strong>std</strong> (<code>float</code>, <em>optional</em>, defaults to 1.5) &#x2014;
Standard deviation of the logit-normal flow-matching schedule.`,name:"std"},{anchor:"diffusers.Ideogram4Pipeline.__call__.prompt_upsampling",description:`<strong>prompt_upsampling</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, rewrite <code>prompt</code> into Ideogram4&#x2019;s native structured JSON caption via
<a href="/docs/diffusers/pr_13860/en/api/pipelines/ideogram4#diffusers.Ideogram4Pipeline.upsample_prompt">upsample_prompt()</a> before encoding. Requires the optional <code>prompt_enhancer_head</code>
component; install <code>outlines</code> for schema-constrained captions. <code>generator</code> is reused to make the
upsampling reproducible.`,name:"prompt_upsampling"},{anchor:"diffusers.Ideogram4Pipeline.__call__.prompt_upsampling_temperature",description:`<strong>prompt_upsampling_temperature</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014;
Sampling temperature for prompt upsampling when <code>prompt_upsampling=True</code>.`,name:"prompt_upsampling_temperature"},{anchor:"diffusers.Ideogram4Pipeline.__call__.max_sequence_length",description:`<strong>max_sequence_length</strong> (<code>int</code>, <em>optional</em>, defaults to 2048) &#x2014;
Maximum number of text tokens per prompt.`,name:"max_sequence_length"},{anchor:"diffusers.Ideogram4Pipeline.__call__.num_images_per_prompt",description:`<strong>num_images_per_prompt</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Number of images to generate per prompt.`,name:"num_images_per_prompt"},{anchor:"diffusers.Ideogram4Pipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code> or <code>list[torch.Generator]</code>, <em>optional</em>) &#x2014;
Generator(s) used to make sampling deterministic.`,name:"generator"},{anchor:"diffusers.Ideogram4Pipeline.__call__.latents",description:`<strong>latents</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Pre-generated noise of shape <code>(batch_size, num_image_tokens, latent_dim)</code>.`,name:"latents"},{anchor:"diffusers.Ideogram4Pipeline.__call__.output_type",description:`<strong>output_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;pil&quot;</code>) &#x2014;
One of <code>&quot;pil&quot;</code>, <code>&quot;np&quot;</code>, <code>&quot;pt&quot;</code>, or <code>&quot;latent&quot;</code>.`,name:"output_type"},{anchor:"diffusers.Ideogram4Pipeline.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to return an <a href="/docs/diffusers/pr_13860/en/api/pipelines/ideogram4#diffusers.pipelines.ideogram4.Ideogram4PipelineOutput">Ideogram4PipelineOutput</a>.`,name:"return_dict"},{anchor:"diffusers.Ideogram4Pipeline.__call__.callback_on_step_end",description:`<strong>callback_on_step_end</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
Callback invoked at the end of every denoising step.`,name:"callback_on_step_end"},{anchor:"diffusers.Ideogram4Pipeline.__call__.callback_on_step_end_tensor_inputs",description:`<strong>callback_on_step_end_tensor_inputs</strong> (<code>list[str]</code>, <em>optional</em>) &#x2014;
Names of tensors to expose to the callback via <code>callback_kwargs</code>.`,name:"callback_on_step_end_tensor_inputs"}],source:"https://github.com/huggingface/diffusers/blob/vr_13860/src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py#L468",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p><a
href="/docs/diffusers/pr_13860/en/api/pipelines/ideogram4#diffusers.pipelines.ideogram4.Ideogram4PipelineOutput"
>Ideogram4PipelineOutput</a> or <code>tuple</code>.</p>
`}}),P=new Ke({props:{anchor:"diffusers.Ideogram4Pipeline.__call__.example",$$slots:{default:[tt]},$$scope:{ctx:se}}}),L=new oe({props:{name:"encode_prompt",anchor:"diffusers.Ideogram4Pipeline.encode_prompt",parameters:[{name:"prompt",val:": str | list[str]"},{name:"grid_h",val:": int"},{name:"grid_w",val:": int"},{name:"max_sequence_length",val:": int"},{name:"device",val:": device"}],source:"https://github.com/huggingface/diffusers/blob/vr_13860/src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py#L334"}}),R=new oe({props:{name:"upsample_prompt",anchor:"diffusers.Ideogram4Pipeline.upsample_prompt",parameters:[{name:"prompt",val:": str | list[str]"},{name:"height",val:": int = 2048"},{name:"width",val:": int = 2048"},{name:"temperature",val:": float = 1.0"},{name:"max_new_tokens",val:": int = 1024"},{name:"generator",val:": torch._C.Generator | list[torch._C.Generator] | None = None"},{name:"device",val:": torch.device | None = None"}],source:"https://github.com/huggingface/diffusers/blob/vr_13860/src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py#L203"}}),V=new ye({props:{title:"Ideogram4PipelineOutput",local:"diffusers.pipelines.ideogram4.Ideogram4PipelineOutput",headingTag:"h2"}}),H=new oe({props:{name:"class diffusers.pipelines.ideogram4.Ideogram4PipelineOutput",anchor:"diffusers.pipelines.ideogram4.Ideogram4PipelineOutput",parameters:[{name:"images",val:": list[PIL.Image.Image] | numpy.ndarray"}],parametersDescription:[{anchor:"diffusers.pipelines.ideogram4.Ideogram4PipelineOutput.images",description:`<strong>images</strong> (<code>list[PIL.Image.Image]</code> or <code>np.ndarray</code>) &#x2014;
List of denoised PIL images of length <code>batch_size</code>, or numpy array of shape <code>(batch_size, height, width, num_channels)</code>.`,name:"images"}],source:"https://github.com/huggingface/diffusers/blob/vr_13860/src/diffusers/pipelines/ideogram4/pipeline_output.py#L24"}}),S=new et({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/pipelines/ideogram4.md"}}),{c(){p=i("meta"),k=a(),$=i("p"),y=a(),u(x.$$.fragment),d=a(),u(w.$$.fragment),re=a(),J=i("p"),J.innerHTML=Ge,ie=a(),C=i("p"),C.innerHTML=We,le=a(),U=i("p"),U.textContent=Ee,de=a(),G=i("ul"),G.innerHTML=qe,pe=a(),u(W.$$.fragment),ce=a(),u(E.$$.fragment),me=a(),u(q.$$.fragment),ue=a(),c=i("div"),u(Z.$$.fragment),xe=a(),z=i("p"),z.textContent=Ze,we=a(),Y=i("p"),Y.innerHTML=Ne,$e=a(),I=i("div"),u(N.$$.fragment),Ie=a(),D=i("p"),D.textContent=Le,Me=a(),u(P.$$.fragment),Te=a(),M=i("div"),u(L.$$.fragment),je=a(),O=i("p"),O.textContent=Re,Pe=a(),A=i("p"),A.innerHTML=Ve,ke=a(),T=i("div"),u(R.$$.fragment),Je=a(),Q=i("p"),Q.textContent=He,Ce=a(),X=i("p"),X.innerHTML=Se,ge=a(),u(V.$$.fragment),fe=a(),j=i("div"),u(H.$$.fragment),Ue=a(),K=i("p"),K.textContent=Fe,he=a(),u(S.$$.fragment),_e=a(),ae=i("p"),this.h()},l(e){const t=Qe("svelte-u9bgzb",document.head);p=l(t,"META",{name:!0,content:!0}),t.forEach(n),k=o(e),$=l(e,"P",{}),F($).forEach(n),y=o(e),g(x.$$.fragment,e),d=o(e),g(w.$$.fragment,e),re=o(e),J=l(e,"P",{"data-svelte-h":!0}),b(J)!=="svelte-z8pr89"&&(J.innerHTML=Ge),ie=o(e),C=l(e,"P",{"data-svelte-h":!0}),b(C)!=="svelte-xco4w2"&&(C.innerHTML=We),le=o(e),U=l(e,"P",{"data-svelte-h":!0}),b(U)!=="svelte-gyrac2"&&(U.textContent=Ee),de=o(e),G=l(e,"UL",{"data-svelte-h":!0}),b(G)!=="svelte-1s1ga53"&&(G.innerHTML=qe),pe=o(e),g(W.$$.fragment,e),ce=o(e),g(E.$$.fragment,e),me=o(e),g(q.$$.fragment,e),ue=o(e),c=l(e,"DIV",{class:!0});var m=F(c);g(Z.$$.fragment,m),xe=o(m),z=l(m,"P",{"data-svelte-h":!0}),b(z)!=="svelte-ysojjo"&&(z.textContent=Ze),we=o(m),Y=l(m,"P",{"data-svelte-h":!0}),b(Y)!=="svelte-1jolije"&&(Y.innerHTML=Ne),$e=o(m),I=l(m,"DIV",{class:!0});var ee=F(I);g(N.$$.fragment,ee),Ie=o(ee),D=l(ee,"P",{"data-svelte-h":!0}),b(D)!=="svelte-1n34az2"&&(D.textContent=Le),Me=o(ee),g(P.$$.fragment,ee),ee.forEach(n),Te=o(m),M=l(m,"DIV",{class:!0});var te=F(M);g(L.$$.fragment,te),je=o(te),O=l(te,"P",{"data-svelte-h":!0}),b(O)!=="svelte-p737jv"&&(O.textContent=Re),Pe=o(te),A=l(te,"P",{"data-svelte-h":!0}),b(A)!=="svelte-1ymcwo9"&&(A.innerHTML=Ve),te.forEach(n),ke=o(m),T=l(m,"DIV",{class:!0});var ne=F(T);g(R.$$.fragment,ne),Je=o(ne),Q=l(ne,"P",{"data-svelte-h":!0}),b(Q)!=="svelte-hhy1np"&&(Q.textContent=He),Ce=o(ne),X=l(ne,"P",{"data-svelte-h":!0}),b(X)!=="svelte-dqjpxm"&&(X.innerHTML=Se),ne.forEach(n),m.forEach(n),ge=o(e),g(V.$$.fragment,e),fe=o(e),j=l(e,"DIV",{class:!0});var be=F(j);g(H.$$.fragment,be),Ue=o(be),K=l(be,"P",{"data-svelte-h":!0}),b(K)!=="svelte-5vp3kd"&&(K.textContent=Fe),be.forEach(n),he=o(e),g(S.$$.fragment,e),_e=o(e),ae=l(e,"P",{}),F(ae).forEach(n),this.h()},h(){B(p,"name","hf:doc:metadata"),B(p,"content",at),B(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),B(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),B(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),B(c,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),B(j,"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,t){r(document.head,p),s(e,k,t),s(e,$,t),s(e,y,t),f(x,e,t),s(e,d,t),f(w,e,t),s(e,re,t),s(e,J,t),s(e,ie,t),s(e,C,t),s(e,le,t),s(e,U,t),s(e,de,t),s(e,G,t),s(e,pe,t),f(W,e,t),s(e,ce,t),f(E,e,t),s(e,me,t),f(q,e,t),s(e,ue,t),s(e,c,t),f(Z,c,null),r(c,xe),r(c,z),r(c,we),r(c,Y),r(c,$e),r(c,I),f(N,I,null),r(I,Ie),r(I,D),r(I,Me),f(P,I,null),r(c,Te),r(c,M),f(L,M,null),r(M,je),r(M,O),r(M,Pe),r(M,A),r(c,ke),r(c,T),f(R,T,null),r(T,Je),r(T,Q),r(T,Ce),r(T,X),s(e,ge,t),f(V,e,t),s(e,fe,t),s(e,j,t),f(H,j,null),r(j,Ue),r(j,K),s(e,he,t),f(S,e,t),s(e,_e,t),s(e,ae,t),ve=!0},p(e,[t]){const m={};t&2&&(m.$$scope={dirty:t,ctx:e}),P.$set(m)},i(e){ve||(h(x.$$.fragment,e),h(w.$$.fragment,e),h(W.$$.fragment,e),h(E.$$.fragment,e),h(q.$$.fragment,e),h(Z.$$.fragment,e),h(N.$$.fragment,e),h(P.$$.fragment,e),h(L.$$.fragment,e),h(R.$$.fragment,e),h(V.$$.fragment,e),h(H.$$.fragment,e),h(S.$$.fragment,e),ve=!0)},o(e){_(x.$$.fragment,e),_(w.$$.fragment,e),_(W.$$.fragment,e),_(E.$$.fragment,e),_(q.$$.fragment,e),_(Z.$$.fragment,e),_(N.$$.fragment,e),_(P.$$.fragment,e),_(L.$$.fragment,e),_(R.$$.fragment,e),_(V.$$.fragment,e),_(H.$$.fragment,e),_(S.$$.fragment,e),ve=!1},d(e){e&&(n(k),n($),n(y),n(d),n(re),n(J),n(ie),n(C),n(le),n(U),n(de),n(G),n(pe),n(ce),n(me),n(ue),n(c),n(ge),n(fe),n(j),n(he),n(_e),n(ae)),n(p),v(x,e),v(w,e),v(W,e),v(E,e),v(q,e),v(Z),v(N),v(P),v(L),v(R),v(V,e),v(H),v(S,e)}}}const at='{"title":"Ideogram 4","local":"ideogram-4","sections":[{"title":"Text-to-image","local":"text-to-image","sections":[],"depth":2},{"title":"Ideogram4Pipeline","local":"diffusers.Ideogram4Pipeline","sections":[],"depth":2},{"title":"Ideogram4PipelineOutput","local":"diffusers.pipelines.ideogram4.Ideogram4PipelineOutput","sections":[],"depth":2}],"depth":1}';function ot(se){return Ye(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class mt extends Oe{constructor(p){super(),Ae(this,p,ot,nt,ze,{})}}export{mt as component};

Xet Storage Details

Size:
25 kB
·
Xet hash:
4de188b7fc131ffb5a9bf112f09e55dc53a0283c977766dd1c9389bbf95d1b7e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.