Buckets:
| import{s as me,o as ge,n as ue}from"../chunks/scheduler.53228c21.js";import{S as fe,i as _e,e as m,s,c as g,h as he,a as u,d as n,b as r,f as X,g as f,j as z,k as L,l as T,m as o,n as _,t as h,o as b,p as y}from"../chunks/index.100fac89.js";import{C as be}from"../chunks/CopyLLMTxtMenu.7e3a37a5.js";import{D as ie}from"../chunks/Docstring.2834cebb.js";import{C as ce}from"../chunks/CodeBlock.d30a6509.js";import{E as ye}from"../chunks/ExampleCodeBlock.51e765f4.js";import{H as ae,E as we}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.042439d5.js";function ve(R){let a,x="Example:",w,l,p;return l=new ce({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwQnJpYUZpYm9FZGl0UGlwZWxpbmUlMEFmcm9tJTIwZGlmZnVzZXJzLm1vZHVsYXJfcGlwZWxpbmVzJTIwaW1wb3J0JTIwTW9kdWxhclBpcGVsaW5lJTBBJTBBdG9yY2guc2V0X2dyYWRfZW5hYmxlZChGYWxzZSklMEF2bG1fcGlwZSUyMCUzRCUyME1vZHVsYXJQaXBlbGluZUJsb2Nrcy5mcm9tX3ByZXRyYWluZWQoJTIyYnJpYWFpJTJGRklCTy1WTE0tcHJvbXB0LXRvLUpTT04lMjIlMkMlMjB0cnVzdF9yZW1vdGVfY29kZSUzRFRydWUpJTBBdmxtX3BpcGUlMjAlM0QlMjB2bG1fcGlwZS5pbml0X3BpcGVsaW5lKCklMEElMEFwaXBlJTIwJTNEJTIwQnJpYUZpYm9FZGl0UGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMmJyaWFhaSUyRmZpYm8tZWRpdCUyMiUyQyUwQSUyMCUyMCUyMCUyMHRvcmNoX2R0eXBlJTNEdG9yY2guYmZsb2F0MTYlMkMlMEEpJTBBcGlwZS50byglMjJjdWRhJTIyKSUwQSUwQW91dHB1dCUyMCUzRCUyMHZsbV9waXBlKCUwQSUyMCUyMCUyMCUyMHByb21wdCUzRCUyMkElMjBoeXBlci1kZXRhaWxlZCUyQyUyMHVsdHJhLWZsdWZmeSUyMG93bCUyMHNpdHRpbmclMjBpbiUyMHRoZSUyMHRyZWVzJTIwYXQlMjBuaWdodCUyQyUyMGxvb2tpbmclMjBkaXJlY3RseSUyMGF0JTIwdGhlJTIwY2FtZXJhJTIwd2l0aCUyMHdpZGUlMkMlMjBhZG9yYWJsZSUyQyUyMGV4cHJlc3NpdmUlMjBleWVzLiUyMEl0cyUyMGZlYXRoZXJzJTIwYXJlJTIwc29mdCUyMGFuZCUyMHZvbHVtaW5vdXMlMkMlMjBjYXRjaGluZyUyMHRoZSUyMGNvb2wlMjBtb29ubGlnaHQlMjB3aXRoJTIwc3VidGxlJTIwc2lsdmVyJTIwaGlnaGxpZ2h0cy4lMjBUaGUlMjBvd2wncyUyMGdhemUlMjBpcyUyMGN1cmlvdXMlMjBhbmQlMjBmdWxsJTIwb2YlMjBjaGFybSUyQyUyMGdpdmluZyUyMGl0JTIwYSUyMHdoaW1zaWNhbCUyQyUyMHN0b3J5Ym9vay1saWtlJTIwcGVyc29uYWxpdHkuJTIyJTBBKSUwQWpzb25fcHJvbXB0X2dlbmVyYXRlJTIwJTNEJTIwanNvbi5sb2FkcyhvdXRwdXQudmFsdWVzJTVCJTIyanNvbl9wcm9tcHQlMjIlNUQpJTBBJTBBaW1hZ2UlMjAlM0QlMjBJbWFnZS5vcGVuKCUyMmltYWdlX2dlbmVyYXRlLnBuZyUyMiklMEElMEFlZGl0X3Byb21wdCUyMCUzRCUyMCUyMk1ha2UlMjB0aGUlMjBvd2wlMjB0byUyMGJlJTIwYSUyMGNhdCUyMiUwQSUwQWpzb25fcHJvbXB0X2dlbmVyYXRlJTVCJTIyZWRpdF9pbnN0cnVjdGlvbiUyMiU1RCUyMCUzRCUyMGVkaXRfcHJvbXB0JTBBJTBBcmVzdWx0c19nZW5lcmF0ZSUyMCUzRCUyMHBpcGUoJTBBJTIwJTIwJTIwJTIwcHJvbXB0JTNEanNvbl9wcm9tcHRfZ2VuZXJhdGUlMkMlMjBudW1faW5mZXJlbmNlX3N0ZXBzJTNENTAlMkMlMjBndWlkYW5jZV9zY2FsZSUzRDMuNSUyQyUyMGltYWdlJTNEaW1hZ2UlMkMlMjBvdXRwdXRfdHlwZSUzRCUyMm5wJTIyJTBBKQ==",highlighted:`<span class="hljs-keyword">import</span> torch | |
| <span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> BriaFiboEditPipeline | |
| <span class="hljs-keyword">from</span> diffusers.modular_pipelines <span class="hljs-keyword">import</span> ModularPipeline | |
| torch.set_grad_enabled(<span class="hljs-literal">False</span>) | |
| vlm_pipe = ModularPipelineBlocks.from_pretrained(<span class="hljs-string">"briaai/FIBO-VLM-prompt-to-JSON"</span>, trust_remote_code=<span class="hljs-literal">True</span>) | |
| vlm_pipe = vlm_pipe.init_pipeline() | |
| pipe = BriaFiboEditPipeline.from_pretrained( | |
| <span class="hljs-string">"briaai/fibo-edit"</span>, | |
| torch_dtype=torch.bfloat16, | |
| ) | |
| pipe.to(<span class="hljs-string">"cuda"</span>) | |
| output = vlm_pipe( | |
| prompt=<span class="hljs-string">"A hyper-detailed, ultra-fluffy owl sitting in the trees at night, looking directly at the camera with wide, adorable, expressive eyes. Its feathers are soft and voluminous, catching the cool moonlight with subtle silver highlights. The owl's gaze is curious and full of charm, giving it a whimsical, storybook-like personality."</span> | |
| ) | |
| json_prompt_generate = json.loads(output.values[<span class="hljs-string">"json_prompt"</span>]) | |
| image = Image.<span class="hljs-built_in">open</span>(<span class="hljs-string">"image_generate.png"</span>) | |
| edit_prompt = <span class="hljs-string">"Make the owl to be a cat"</span> | |
| json_prompt_generate[<span class="hljs-string">"edit_instruction"</span>] = edit_prompt | |
| results_generate = pipe( | |
| prompt=json_prompt_generate, num_inference_steps=<span class="hljs-number">50</span>, guidance_scale=<span class="hljs-number">3.5</span>, image=image, output_type=<span class="hljs-string">"np"</span> | |
| )`,wrap:!1}}),{c(){a=m("p"),a.textContent=x,w=s(),g(l.$$.fragment)},l(i){a=u(i,"P",{"data-svelte-h":!0}),z(a)!=="svelte-11lpom8"&&(a.textContent=x),w=r(i),f(l.$$.fragment,i)},m(i,d){o(i,a,d),o(i,w,d),_(l,i,d),p=!0},p:ue,i(i){p||(h(l.$$.fragment,i),p=!0)},o(i){b(l.$$.fragment,i),p=!1},d(i){i&&(n(a),n(w)),y(l,i)}}}function Me(R){let a,x,w,l,p,i,d,S,U,se=`Fibo Edit is an 8B parameter image-to-image model that introduces a new paradigm of structured control, operating on JSON inputs paired with source images to enable deterministic and repeatable editing workflows. | |
| Featuring native masking for granular precision, it moves beyond simple prompt-based diffusion to offer explicit, interpretable control optimized for production environments. | |
| Its lightweight architecture is designed for deep customization, empowering researchers to build specialized “Edit” models for domain-specific tasks while delivering top-tier aesthetic quality`,Y,F,V,$,re='<em>As the model is gated, before using it with diffusers you first need to go to the <a href="https://huggingface.co/briaai/Fibo-Edit" rel="nofollow">Bria Fibo Hugging Face page</a>, fill in the form and accept the gate. Once you are in, you need to login so that your system knows you’ve accepted the gate.</em>',H,J,le="Use the command below to log in:",q,E,Q,k,D,c,C,ee,v,I,te,j,pe="Function invoked when calling the pipeline for generation.",ne,B,oe,Z,P,O,G,A,N,K;return p=new be({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),d=new ae({props:{title:"Bria Fibo Edit",local:"bria-fibo-edit",headingTag:"h1"}}),F=new ae({props:{title:"Usage",local:"usage",headingTag:"h2"}}),E=new ce({props:{code:"aGYlMjBhdXRoJTIwbG9naW4=",highlighted:"hf auth login",wrap:!1}}),k=new ae({props:{title:"BriaFiboEditPipeline",local:"diffusers.BriaFiboEditPipeline",headingTag:"h2"}}),C=new ie({props:{name:"class diffusers.BriaFiboEditPipeline",anchor:"diffusers.BriaFiboEditPipeline",parameters:[{name:"transformer",val:": BriaFiboTransformer2DModel"},{name:"scheduler",val:": typing.Union[diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler, diffusers.schedulers.scheduling_utils.KarrasDiffusionSchedulers]"},{name:"vae",val:": AutoencoderKLWan"},{name:"text_encoder",val:": SmolLM3ForCausalLM"},{name:"tokenizer",val:": AutoTokenizer"}],parametersDescription:[{anchor:"diffusers.BriaFiboEditPipeline.transformer",description:`<strong>transformer</strong> (<code>BriaFiboTransformer2DModel</code>) — | |
| The transformer model for 2D diffusion modeling.`,name:"transformer"},{anchor:"diffusers.BriaFiboEditPipeline.scheduler",description:`<strong>scheduler</strong> (<code>FlowMatchEulerDiscreteScheduler</code> or <code>KarrasDiffusionSchedulers</code>) — | |
| Scheduler to be used with <code>transformer</code> to denoise the encoded latents.`,name:"scheduler"},{anchor:"diffusers.BriaFiboEditPipeline.vae",description:`<strong>vae</strong> (<code>AutoencoderKLWan</code>) — | |
| Variational Auto-Encoder for encoding and decoding images to and from latent representations.`,name:"vae"},{anchor:"diffusers.BriaFiboEditPipeline.text_encoder",description:`<strong>text_encoder</strong> (<code>SmolLM3ForCausalLM</code>) — | |
| Text encoder for processing input prompts.`,name:"text_encoder"},{anchor:"diffusers.BriaFiboEditPipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>AutoTokenizer</code>) — | |
| Tokenizer used for processing the input text prompts for the text_encoder.`,name:"tokenizer"}],source:"https://github.com/huggingface/diffusers/blob/vr_12747/src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py#L234"}}),I=new ie({props:{name:"__call__",anchor:"diffusers.BriaFiboEditPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]] = None"},{name:"image",val:": typing.Union[PIL.Image.Image, numpy.ndarray, torch.Tensor, typing.List[PIL.Image.Image], typing.List[numpy.ndarray], typing.List[torch.Tensor], NoneType] = None"},{name:"mask",val:": typing.Union[torch.FloatTensor, PIL.Image.Image, typing.List[PIL.Image.Image], typing.List[torch.FloatTensor], numpy.ndarray, typing.List[numpy.ndarray], NoneType] = None"},{name:"height",val:": typing.Optional[int] = None"},{name:"width",val:": typing.Optional[int] = None"},{name:"num_inference_steps",val:": int = 30"},{name:"timesteps",val:": typing.List[int] = None"},{name:"seed",val:": typing.Optional[int] = None"},{name:"guidance_scale",val:": float = 5"},{name:"negative_prompt",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"num_images_per_prompt",val:": typing.Optional[int] = 1"},{name:"generator",val:": typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None"},{name:"latents",val:": typing.Optional[torch.FloatTensor] = None"},{name:"prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"negative_prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"output_type",val:": typing.Optional[str] = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"joint_attention_kwargs",val:": typing.Optional[typing.Dict[str, typing.Any]] = None"},{name:"callback_on_step_end",val:": typing.Optional[typing.Callable[[int, int, typing.Dict], NoneType]] = None"},{name:"callback_on_step_end_tensor_inputs",val:": typing.List[str] = ['latents']"},{name:"max_sequence_length",val:": int = 3000"},{name:"do_patching",val:" = False"},{name:"_auto_resize",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.BriaFiboEditPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) — | |
| The prompt or prompts to guide the image generation. If not defined, one has to pass <code>prompt_embeds</code>. | |
| instead.`,name:"prompt"},{anchor:"diffusers.BriaFiboEditPipeline.__call__.image",description:`<strong>image</strong> (<code>PIL.Image.Image</code> or <code>torch.FloatTensor</code>, <em>optional</em>) — | |
| The image to guide the image generation. If not defined, the pipeline will generate an image from | |
| scratch.`,name:"image"},{anchor:"diffusers.BriaFiboEditPipeline.__call__.height",description:`<strong>height</strong> (<code>int</code>, <em>optional</em>, defaults to self.unet.config.sample_size * self.vae_scale_factor) — | |
| The height in pixels of the generated image. This is set to 1024 by default for the best results.`,name:"height"},{anchor:"diffusers.BriaFiboEditPipeline.__call__.width",description:`<strong>width</strong> (<code>int</code>, <em>optional</em>, defaults to self.unet.config.sample_size * self.vae_scale_factor) — | |
| The width in pixels of the generated image. This is set to 1024 by default for the best results.`,name:"width"},{anchor:"diffusers.BriaFiboEditPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 50) — | |
| The number of denoising steps. More denoising steps usually lead to a higher quality image at the | |
| expense of slower inference.`,name:"num_inference_steps"},{anchor:"diffusers.BriaFiboEditPipeline.__call__.seed",description:`<strong>seed</strong> (<code>int</code>, <em>optional</em>) — | |
| A seed used to make generation deterministic.`,name:"seed"},{anchor:"diffusers.BriaFiboEditPipeline.__call__.timesteps",description:`<strong>timesteps</strong> (<code>List[int]</code>, <em>optional</em>) — | |
| Custom timesteps to use for the denoising process with schedulers which support a <code>timesteps</code> argument | |
| in their <code>set_timesteps</code> method. If not defined, the default behavior when <code>num_inference_steps</code> is | |
| passed will be used. Must be in descending order.`,name:"timesteps"},{anchor:"diffusers.BriaFiboEditPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 5.0) — | |
| Guidance scale as defined in <a href="https://huggingface.co/papers/2207.12598" rel="nofollow">Classifier-Free Diffusion | |
| Guidance</a>. <code>guidance_scale</code> is defined as <code>w</code> of equation 2. | |
| of <a href="https://huggingface.co/papers/2205.11487" rel="nofollow">Imagen Paper</a>. Guidance scale is enabled by setting | |
| <code>guidance_scale > 1</code>. Higher guidance scale encourages to generate images that are closely linked to | |
| the text <code>prompt</code>, usually at the expense of lower image quality.`,name:"guidance_scale"},{anchor:"diffusers.BriaFiboEditPipeline.__call__.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) — | |
| The prompt or prompts not to guide the image generation. If not defined, one has to pass | |
| <code>negative_prompt_embeds</code> instead. Ignored when not using guidance (i.e., ignored if <code>guidance_scale</code> is | |
| less than <code>1</code>).`,name:"negative_prompt"},{anchor:"diffusers.BriaFiboEditPipeline.__call__.num_images_per_prompt",description:`<strong>num_images_per_prompt</strong> (<code>int</code>, <em>optional</em>, defaults to 1) — | |
| The number of images to generate per prompt.`,name:"num_images_per_prompt"},{anchor:"diffusers.BriaFiboEditPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code> or <code>List[torch.Generator]</code>, <em>optional</em>) — | |
| One or a list of <a href="https://pytorch.org/docs/stable/generated/torch.Generator.html" rel="nofollow">torch generator(s)</a> | |
| to make generation deterministic.`,name:"generator"},{anchor:"diffusers.BriaFiboEditPipeline.__call__.latents",description:`<strong>latents</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) — | |
| Pre-generated noisy latents, sampled from a Gaussian distribution, to be used as inputs for image | |
| generation. Can be used to tweak the same generation with different prompts. If not provided, a latents | |
| tensor will ge generated by sampling using the supplied random <code>generator</code>.`,name:"latents"},{anchor:"diffusers.BriaFiboEditPipeline.__call__.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) — | |
| Pre-generated text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt weighting. If not | |
| provided, text embeddings will be generated from <code>prompt</code> input argument.`,name:"prompt_embeds"},{anchor:"diffusers.BriaFiboEditPipeline.__call__.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) — | |
| Pre-generated negative text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt | |
| weighting. If not provided, negative_prompt_embeds will be generated from <code>negative_prompt</code> input | |
| argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.BriaFiboEditPipeline.__call__.output_type",description:`<strong>output_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"pil"</code>) — | |
| The output format of the generate image. Choose between | |
| <a href="https://pillow.readthedocs.io/en/stable/" rel="nofollow">PIL</a>: <code>PIL.Image.Image</code> or <code>np.array</code>.`,name:"output_type"},{anchor:"diffusers.BriaFiboEditPipeline.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether or not to return a <code>~pipelines.stable_diffusion_xl.StableDiffusionXLPipelineOutput</code> instead | |
| of a plain tuple.`,name:"return_dict"},{anchor:"diffusers.BriaFiboEditPipeline.__call__.joint_attention_kwargs",description:`<strong>joint_attention_kwargs</strong> (<code>dict</code>, <em>optional</em>) — | |
| A kwargs dictionary that if specified is passed along to the <code>AttentionProcessor</code> as defined under | |
| <code>self.processor</code> in | |
| <a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py" rel="nofollow">diffusers.models.attention_processor</a>.`,name:"joint_attention_kwargs"},{anchor:"diffusers.BriaFiboEditPipeline.__call__.callback_on_step_end",description:`<strong>callback_on_step_end</strong> (<code>Callable</code>, <em>optional</em>) — | |
| A function that calls at the end of each denoising steps during the inference. The function is called | |
| with the following arguments: <code>callback_on_step_end(self: DiffusionPipeline, step: int, timestep: int, callback_kwargs: Dict)</code>. <code>callback_kwargs</code> will include a list of all tensors as specified by | |
| <code>callback_on_step_end_tensor_inputs</code>.`,name:"callback_on_step_end"},{anchor:"diffusers.BriaFiboEditPipeline.__call__.callback_on_step_end_tensor_inputs",description:`<strong>callback_on_step_end_tensor_inputs</strong> (<code>List</code>, <em>optional</em>) — | |
| The list of tensor inputs for the <code>callback_on_step_end</code> function. The tensors specified in the list | |
| will be passed as <code>callback_kwargs</code> argument. You will only be able to include variables listed in the | |
| <code>._callback_tensor_inputs</code> attribute of your pipeline class.`,name:"callback_on_step_end_tensor_inputs"},{anchor:"diffusers.BriaFiboEditPipeline.__call__.max_sequence_length",description:"<strong>max_sequence_length</strong> (<code>int</code> defaults to 3000) — Maximum sequence length to use with the <code>prompt</code>.",name:"max_sequence_length"},{anchor:"diffusers.BriaFiboEditPipeline.__call__.do_patching",description:"<strong>do_patching</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — Whether to use patching.",name:"do_patching"}],source:"https://github.com/huggingface/diffusers/blob/vr_12747/src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py#L616",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p><code>~pipelines.flux.BriaFiboPipelineOutput</code> if | |
| <code>return_dict</code> is True, otherwise a <code>tuple</code>. When returning a tuple, the first element is a list with the | |
| generated images.</p> | |
| `,returnType:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p><code>~pipelines.flux.BriaFiboPipelineOutput</code> or <code>tuple</code></p> | |
| `}}),B=new ye({props:{anchor:"diffusers.BriaFiboEditPipeline.__call__.example",$$slots:{default:[ve]},$$scope:{ctx:R}}}),P=new ie({props:{name:"encode_prompt",anchor:"diffusers.BriaFiboEditPipeline.encode_prompt",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]]"},{name:"device",val:": typing.Optional[torch.device] = None"},{name:"num_images_per_prompt",val:": int = 1"},{name:"guidance_scale",val:": float = 5"},{name:"negative_prompt",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"negative_prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"max_sequence_length",val:": int = 3000"},{name:"lora_scale",val:": typing.Optional[float] = None"}],parametersDescription:[{anchor:"diffusers.BriaFiboEditPipeline.encode_prompt.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) — | |
| prompt to be encoded`,name:"prompt"},{anchor:"diffusers.BriaFiboEditPipeline.encode_prompt.device",description:`<strong>device</strong> — (<code>torch.device</code>): | |
| torch device`,name:"device"},{anchor:"diffusers.BriaFiboEditPipeline.encode_prompt.num_images_per_prompt",description:`<strong>num_images_per_prompt</strong> (<code>int</code>) — | |
| number of images that should be generated per prompt`,name:"num_images_per_prompt"},{anchor:"diffusers.BriaFiboEditPipeline.encode_prompt.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>) — | |
| Guidance scale for classifier free guidance.`,name:"guidance_scale"},{anchor:"diffusers.BriaFiboEditPipeline.encode_prompt.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) — | |
| The prompt or prompts not to guide the image generation. If not defined, one has to pass | |
| <code>negative_prompt_embeds</code> instead. Ignored when not using guidance (i.e., ignored if <code>guidance_scale</code> is | |
| less than <code>1</code>).`,name:"negative_prompt"},{anchor:"diffusers.BriaFiboEditPipeline.encode_prompt.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) — | |
| Pre-generated text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt weighting. If not | |
| provided, text embeddings will be generated from <code>prompt</code> input argument.`,name:"prompt_embeds"},{anchor:"diffusers.BriaFiboEditPipeline.encode_prompt.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) — | |
| Pre-generated negative text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt | |
| weighting. If not provided, negative_prompt_embeds will be generated from <code>negative_prompt</code> input | |
| argument.`,name:"negative_prompt_embeds"}],source:"https://github.com/huggingface/diffusers/blob/vr_12747/src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py#L359"}}),G=new we({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/pipelines/bria_fibo_edit.md"}}),{c(){a=m("meta"),x=s(),w=m("p"),l=s(),g(p.$$.fragment),i=s(),g(d.$$.fragment),S=s(),U=m("p"),U.textContent=se,Y=s(),g(F.$$.fragment),V=s(),$=m("p"),$.innerHTML=re,H=s(),J=m("p"),J.textContent=le,q=s(),g(E.$$.fragment),Q=s(),g(k.$$.fragment),D=s(),c=m("div"),g(C.$$.fragment),ee=s(),v=m("div"),g(I.$$.fragment),te=s(),j=m("p"),j.textContent=pe,ne=s(),g(B.$$.fragment),oe=s(),Z=m("div"),g(P.$$.fragment),O=s(),g(G.$$.fragment),A=s(),N=m("p"),this.h()},l(e){const t=he("svelte-u9bgzb",document.head);a=u(t,"META",{name:!0,content:!0}),t.forEach(n),x=r(e),w=u(e,"P",{}),X(w).forEach(n),l=r(e),f(p.$$.fragment,e),i=r(e),f(d.$$.fragment,e),S=r(e),U=u(e,"P",{"data-svelte-h":!0}),z(U)!=="svelte-1134m5l"&&(U.textContent=se),Y=r(e),f(F.$$.fragment,e),V=r(e),$=u(e,"P",{"data-svelte-h":!0}),z($)!=="svelte-p8xkrg"&&($.innerHTML=re),H=r(e),J=u(e,"P",{"data-svelte-h":!0}),z(J)!=="svelte-12sg8l0"&&(J.textContent=le),q=r(e),f(E.$$.fragment,e),Q=r(e),f(k.$$.fragment,e),D=r(e),c=u(e,"DIV",{class:!0});var M=X(c);f(C.$$.fragment,M),ee=r(M),v=u(M,"DIV",{class:!0});var W=X(v);f(I.$$.fragment,W),te=r(W),j=u(W,"P",{"data-svelte-h":!0}),z(j)!=="svelte-v78lg8"&&(j.textContent=pe),ne=r(W),f(B.$$.fragment,W),W.forEach(n),oe=r(M),Z=u(M,"DIV",{class:!0});var de=X(Z);f(P.$$.fragment,de),de.forEach(n),M.forEach(n),O=r(e),f(G.$$.fragment,e),A=r(e),N=u(e,"P",{}),X(N).forEach(n),this.h()},h(){L(a,"name","hf:doc:metadata"),L(a,"content",Be),L(v,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),L(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),L(c,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,t){T(document.head,a),o(e,x,t),o(e,w,t),o(e,l,t),_(p,e,t),o(e,i,t),_(d,e,t),o(e,S,t),o(e,U,t),o(e,Y,t),_(F,e,t),o(e,V,t),o(e,$,t),o(e,H,t),o(e,J,t),o(e,q,t),_(E,e,t),o(e,Q,t),_(k,e,t),o(e,D,t),o(e,c,t),_(C,c,null),T(c,ee),T(c,v),_(I,v,null),T(v,te),T(v,j),T(v,ne),_(B,v,null),T(c,oe),T(c,Z),_(P,Z,null),o(e,O,t),_(G,e,t),o(e,A,t),o(e,N,t),K=!0},p(e,[t]){const M={};t&2&&(M.$$scope={dirty:t,ctx:e}),B.$set(M)},i(e){K||(h(p.$$.fragment,e),h(d.$$.fragment,e),h(F.$$.fragment,e),h(E.$$.fragment,e),h(k.$$.fragment,e),h(C.$$.fragment,e),h(I.$$.fragment,e),h(B.$$.fragment,e),h(P.$$.fragment,e),h(G.$$.fragment,e),K=!0)},o(e){b(p.$$.fragment,e),b(d.$$.fragment,e),b(F.$$.fragment,e),b(E.$$.fragment,e),b(k.$$.fragment,e),b(C.$$.fragment,e),b(I.$$.fragment,e),b(B.$$.fragment,e),b(P.$$.fragment,e),b(G.$$.fragment,e),K=!1},d(e){e&&(n(x),n(w),n(l),n(i),n(S),n(U),n(Y),n(V),n($),n(H),n(J),n(q),n(Q),n(D),n(c),n(O),n(A),n(N)),n(a),y(p,e),y(d,e),y(F,e),y(E,e),y(k,e),y(C),y(I),y(B),y(P),y(G,e)}}}const Be='{"title":"Bria Fibo Edit","local":"bria-fibo-edit","sections":[{"title":"Usage","local":"usage","sections":[],"depth":2},{"title":"BriaFiboEditPipeline","local":"diffusers.BriaFiboEditPipeline","sections":[],"depth":2}],"depth":1}';function Te(R){return ge(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ce extends fe{constructor(a){super(),_e(this,a,Te,Me,me,{})}}export{Ce as component}; | |
Xet Storage Details
- Size:
- 25.1 kB
- Xet hash:
- 2cf9ca14ae5b8783417994fde2d70a3fe73617a01edda82317bcb46c53f7ba07
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.