Buckets:
| <meta charset="utf-8" /><meta name="hf:doc:metadata" content="{"title":"Utilisation de blocs personnalisés avec Mellon","local":"using-custom-blocks-with-mellon","sections":[],"depth":2}"/> | |
| <link href="/docs/diffusers/main/en/_app/immutable/entry/start.0S0_iEoG.js" rel="modulepreload"> | |
| <link href="/docs/diffusers/main/en/_app/immutable/chunks/I9eooN77.js" rel="modulepreload"> | |
| <link href="/docs/diffusers/main/en/_app/immutable/chunks/Bupkjr9f.js" rel="modulepreload"> | |
| <link href="/docs/diffusers/main/en/_app/immutable/entry/app.CPdOxCbw.js" rel="modulepreload"> | |
| <link href="/docs/diffusers/main/en/_app/immutable/chunks/CyvZ3FS5.js" rel="modulepreload"> | |
| <link href="/docs/diffusers/main/en/_app/immutable/chunks/l0QnnOED.js" rel="modulepreload"> | |
| <link href="/docs/diffusers/main/en/_app/immutable/chunks/DnVIJfC5.js" rel="modulepreload"> | |
| <link href="/docs/diffusers/main/en/_app/immutable/chunks/DsnmJJEf.js" rel="modulepreload"> | |
| <link href="/docs/diffusers/main/en/_app/immutable/nodes/0.DteTvmQZ.js" rel="modulepreload"> | |
| <link href="/docs/diffusers/main/en/_app/immutable/chunks/CoSrdQax.js" rel="modulepreload"> | |
| <link href="/docs/diffusers/main/en/_app/immutable/nodes/323.Dfgiz8-i.js" rel="modulepreload"> | |
| <link href="/docs/diffusers/main/en/_app/immutable/chunks/DSPDl1gz.js" rel="modulepreload"> | |
| <!--1gvor5n--><meta name="hf:doc:metadata" content="{"title":"Using Custom Blocks with Mellon","local":"using-custom-blocks-with-mellon","sections":[],"depth":2}"/><!----> | |
| <link href="/docs/diffusers/main/en/_app/immutable/assets/0.tn0RQdqM.css" rel="modulepreload"> <!--[--><!--[0--><!--[--><!--[0--><!--[--><p></p> <!--[1--><h2 class="relative group"><a id="using-custom-blocks-with-mellon" 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" href="#using-custom-blocks-with-mellon"><span><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!----></span></a> <span><!---->Utilisation de blocs personnalisés avec Mellon<!----></span></h2><!--]--><!----> <p><a href="https://github.com/cubiq/Mellon" rel="nofollow">Mellon</a> est une interface de flux de travail visuel qui s'intègre à Modular Diffusers et qui est conçue pour les flux de travail basés sur des nœuds.</p> <blockquote class="warning"><p>Mellon est en phase de développement précoce et n'est pas encore prêt pour une utilisation en production. Considérez ceci comme un aperçu de la façon dont l'intégration fonctionne !</p></blockquote> <p>Les blocs personnalisés fonctionnent dans Mellon sans configuration supplémentaire - il suffit d'ajouter un <code>mellon_pipeline_config.json</code> à votre dépôt. Ce fichier de configuration indique à Mellon comment afficher les paramètres de votre bloc sous forme de composants d'interface utilisateur.</p> <p>Voici à quoi cela ressemble en action avec le bloc <a href="https://huggingface.co/diffusers/gemini-prompt-expander-mellon" rel="nofollow">Gemini Prompt Expander</a> :</p> <p><img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/modular_demo_dynamic.gif" alt="Mellon custom block demo"/></p> <p>Pour utiliser un bloc personnalisé modulaire de diffusers dans Mellon :</p> <ol><li>Faites glisser un <strong>Dynamic Block Node</strong> depuis la section ModularDiffusers</li> <li>Saisissez le <code>repo_id</code> (par exemple, <code>diffusers/gemini-prompt-expander-mellon</code>)</li> <li>Cliquez sur <strong>Charger un bloc personnalisé</strong></li> <li>Le nœud se transforme pour afficher les entrées et les sorties de votre bloc</li></ol> <p>Passons maintenant en revue la création de cette configuration pour votre propre bloc personnalisé.</p> <!--[1--><h2 class="relative group"><a id="steps-to-create-a-mellon-config" 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" href="#steps-to-create-a-mellon-config"><span><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!----></span></a> <span><!---->Étapes pour créer une configuration Mellon<!----></span></h2><!--]--><!----> <ol><li><strong>Spécifiez les types Mellon pour vos paramètres</strong> - Chaque <code>InputParam</code>/<code>OutputParam</code> a besoin d'un type qui indique à Mellon quel composant d'interface à afficher (par exemple, <code>"textbox"</code>, <code>"dropdown"</code>, <code>"image"</code>).</li> <li><strong>Générer <code>mellon_pipeline_config.json</code></strong> - Utilisez notre utilitaire pour générer un modèle de configuration et le pousser vers votre dépôt Hub.</li> <li><strong>(Facultatif) Ajuster manuellement la configuration</strong> - Affinez la configuration générée pour répondre à vos besoins spécifiques.</li></ol> <!--[1--><h2 class="relative group"><a id="specify-mellon-types-for-parameters" 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" href="#specify-mellon-types-for-parameters"><span><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!----></span></a> <span><!---->Spécifier les types Mellon pour les paramètres<!----></span></h2><!--]--><!----> <p>Les types Mellon déterminent la façon dont chaque paramètre est rendu dans l’interface utilisateur. Si vous ne spécifiez pas de type pour un paramètre, il prend par défaut la valeur <code>"custom"</code>, qui s’affiche sous forme de simple point de connexion. Vous pouvez toujours ajuster cela plus tard dans la configuration générée.</p> <table><thead><tr><th>Type</th><th>Entrées/Sorties</th><th>Description</th></tr></thead><tbody><tr><td><code>image</code></td><td>Les deux</td><td>Image (Image PIL)</td></tr><tr><td><code>video</code></td><td>Les deux</td><td>Vidéo</td></tr><tr><td><code>text</code></td><td>Les deux</td><td>Affichage du texte</td></tr><tr><td><code>textbox</code></td><td>Entrée</td><td>Saisie de texte</td></tr><tr><td><code>dropdown</code></td><td>Entrée</td><td>Menu de sélection déroulant</td></tr><tr><td><code>slider</code></td><td>Entrée</td><td>Curseur pour les valeurs numériques</td></tr><tr><td><code>number</code></td><td>Entrée</td><td>Entrée numérique</td></tr><tr><td><code>checkbox</code></td><td>Entrée</td><td>Bascule booléenne</td></tr></tbody></table> <p>Pour les paramètres nécessitant une configuration plus poussée (comme des menus déroulants avec des options, ou des curseurs avec des valeurs min/max), passez directement une instance de <code>MellonParam</code> au lieu d'une chaîne de caractères. Vous pouvez utiliser l'une des méthodes de classe ci-dessous, ou en créer une entièrement personnalisée avec <code>MellonParam(name, label, type, ...)</code>.</p> <table><thead><tr><th>Méthode</th><th>Description</th></tr></thead><tbody><tr><td><code>MellonParam.Input.image(name)</code></td><td>Entrée d'image</td></tr><tr><td><code>MellonParam.Input.textbox(name, default)</code></td><td>Saisie de texte en tant que zone de texte</td></tr><tr><td><code>MellonParam.Input.dropdown(name, options, default)</code></td><td>Sélection par menu déroulant</td></tr><tr><td><code>MellonParam.Input.slider(name, default, min, max, step)</code></td><td>Curseur pour les valeurs numériques</td></tr><tr><td><code>MellonParam.Input.number(name, default, min, max, step)</code></td><td>Entrée numérique (sans curseur)</td></tr><tr><td><code>MellonParam.Input.seed(name, default)</code></td><td>Entrée de graine avec bouton d'aléatisation</td></tr><tr><td><code>MellonParam.Input.checkbox(name, default)</code></td><td>Case à cocher booléenne</td></tr><tr><td><code>MellonParam.Input.model(name)</code></td><td>Entrée du modèle pour les composants de diffusers</td></tr><tr><td><code>MellonParam.Output.image(name)</code></td><td>Sortie d'image</td></tr><tr><td><code>MellonParam.Output.video(name)</code></td><td>Sortie vidéo</td></tr><tr><td><code>MellonParam.Output.text(name)</code></td><td>Sortie de texte</td></tr><tr><td><code>MellonParam.Output.model(name)</code></td><td>Sortie du modèle pour les composants de diffusers</td></tr></tbody></table> <p>Choisissez l'une des méthodes ci-dessous pour spécifier un type Mellon.</p> <!--[2--><h3 class="relative group"><a id="using-metadata-in-block-definitions" 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" href="#using-metadata-in-block-definitions"><span><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!----></span></a> <span><!---->Utilisation des métadonnées dans les définitions de blocs<!----></span></h3><!--]--><!----> <p>Si vous définissez un bloc personnalisé à partir de zéro, ajoutez <code>metadata={"mellon": "<type>"}</code> directement à vos définitions de <code>InputParam</code> et <code>OutputParam</code>. Si vous modifiez un bloc personnalisé existant du Hub, consultez <a href="./custom_blocks#editing-custom-blocks">Modifier les blocs personnalisés</a> pour savoir comment le télécharger localement.</p> <div class="code-block relative "><div class="absolute top-2.5 right-4"><button class="inline-flex items-center relative text-sm focus:text-green-500 cursor-pointer focus:outline-none transition duration-200 ease-in-out opacity-0 mx-0.5 text-gray-600 " title="code excerpt" type="button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z" transform="translate(0)"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z" transform="translate(0)"></path><rect fill="none" width="32" height="32"></rect></svg><!----> <div class=" absolute pointer-events-none transition-opacity bg-black text-white py-1 px-2 leading-tight rounded font-normal shadow left-1/2 top-full transform -translate-x-1/2 translate-y-2 opacity-0 "><div class="absolute bottom-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-black border-4 border-t-0" style="border-left-color: transparent; border-right-color: transparent;"></div> Copié</div><!----></button><!----></div> <pre class="language-python "><!----><span class="hljs-keyword">class</span> <span class="hljs-title class_">GeminiPromptExpander</span>(<span class="hljs-title class_ inherited__">ModularPipelineBlocks</span>): | |
| <span class="hljs-meta"> @property</span> | |
| <span class="hljs-keyword">def</span> <span class="hljs-title function_">inputs</span>(<span class="hljs-params">self</span>) -> <span class="hljs-type">List</span>[InputParam]: | |
| <span class="hljs-keyword">return</span> [ | |
| InputParam( | |
| <span class="hljs-string">"prompt"</span>, | |
| type_hint=<span class="hljs-built_in">str</span>, | |
| required=<span class="hljs-literal">True</span>, | |
| description=<span class="hljs-string">"Prompt to use"</span>, | |
| metadata={<span class="hljs-string">"mellon"</span>: <span class="hljs-string">"textbox"</span>}, <span class="hljs-comment"># Text input</span> | |
| ) | |
| ] | |
| <span class="hljs-meta"> @property</span> | |
| <span class="hljs-keyword">def</span> <span class="hljs-title function_">intermediate_outputs</span>(<span class="hljs-params">self</span>) -> <span class="hljs-type">List</span>[OutputParam]: | |
| <span class="hljs-keyword">return</span> [ | |
| OutputParam( | |
| <span class="hljs-string">"prompt"</span>, | |
| type_hint=<span class="hljs-built_in">str</span>, | |
| description=<span class="hljs-string">"Expanded prompt by the LLM"</span>, | |
| metadata={<span class="hljs-string">"mellon"</span>: <span class="hljs-string">"text"</span>}, <span class="hljs-comment"># Text output</span> | |
| ), | |
| OutputParam( | |
| <span class="hljs-string">"old_prompt"</span>, | |
| type_hint=<span class="hljs-built_in">str</span>, | |
| description=<span class="hljs-string">"Old prompt provided by the user"</span>, | |
| <CopyLLMTxtMenu containerStyle=<span class="hljs-string">"float: inline-end; margin-inline-start: 10px; display: inline-flex; position: relative; z-index: 10;"</span>></CopyLLMTxtMenu> | |
| <span class="hljs-comment"># No metadata - we don't want to render this in UI</span> | |
| ) | |
| ]<!----></pre></div><!----> <p>Pour un contrôle total de la configuration de l’interface utilisateur, passez directement une instance de <code>MellonParam</code> :</p> <div class="code-block relative "><div class="absolute top-2.5 right-4"><button class="inline-flex items-center relative text-sm focus:text-green-500 cursor-pointer focus:outline-none transition duration-200 ease-in-out opacity-0 mx-0.5 text-gray-600 " title="code excerpt" type="button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z" transform="translate(0)"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z" transform="translate(0)"></path><rect fill="none" width="32" height="32"></rect></svg><!----> <div class=" absolute pointer-events-none transition-opacity bg-black text-white py-1 px-2 leading-tight rounded font-normal shadow left-1/2 top-full transform -translate-x-1/2 translate-y-2 opacity-0 "><div class="absolute bottom-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-black border-4 border-t-0" style="border-left-color: transparent; border-right-color: transparent;"></div> Copié</div><!----></button><!----></div> <pre class="language-python "><!----><span class="hljs-keyword">from</span> diffusers.modular_pipelines.mellon_node_utils <span class="hljs-keyword">import</span> MellonParam | |
| InputParam( | |
| <span class="hljs-string">"mode"</span>, | |
| type_hint=<span class="hljs-built_in">str</span>, | |
| default=<span class="hljs-string">"balanced"</span>, | |
| metadata={<span class="hljs-string">"mellon"</span>: MellonParam.Input.dropdown(<span class="hljs-string">"mode"</span>, options=[<span class="hljs-string">"fast"</span>, <span class="hljs-string">"balanced"</span>, <span class="hljs-string">"quality"</span>])}, | |
| )<!----></pre></div><!----> <!--[2--><h3 class="relative group"><a id="using-inputtypes-and-outputtypes-when-generating-config" 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" href="#using-inputtypes-and-outputtypes-when-generating-config"><span><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!----></span></a> <span><!---->Utilisation de input_types et output_types lors de la génération de la configuration<!----></span></h3><!--]--><!----> <p>Si vous travaillez avec un pipeline existant ou préférez garder vos définitions de blocs propres, spécifiez les types lors de la génération de la configuration à l’aide de l’argument <code>input_types/output_types</code> :</p> <div class="code-block relative "><div class="absolute top-2.5 right-4"><button class="inline-flex items-center relative text-sm focus:text-green-500 cursor-pointer focus:outline-none transition duration-200 ease-in-out opacity-0 mx-0.5 text-gray-600 " title="code excerpt" type="button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z" transform="translate(0)"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z" transform="translate(0)"></path><rect fill="none" width="32" height="32"></rect></svg><!----> <div class=" absolute pointer-events-none transition-opacity bg-black text-white py-1 px-2 leading-tight rounded font-normal shadow left-1/2 top-full transform -translate-x-1/2 translate-y-2 opacity-0 "><div class="absolute bottom-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-black border-4 border-t-0" style="border-left-color: transparent; border-right-color: transparent;"></div> Copié</div><!----></button><!----></div> <pre class="language-python "><!----><span class="hljs-keyword">from</span> diffusers.modular_pipelines.mellon_node_utils <span class="hljs-keyword">import</span> MellonPipelineConfig | |
| mellon_config = MellonPipelineConfig.from_custom_block( | |
| blocks, | |
| input_types={<span class="hljs-string">"prompt"</span>: <span class="hljs-string">"textbox"</span>}, | |
| output_types={<span class="hljs-string">"prompt"</span>: <span class="hljs-string">"text"</span>} | |
| )<!----></pre></div><!----> <blockquote class="note"><p>Lorsque <code>metadata</code> et <code>input_types</code>/<code>output_types</code> sont tous les deux spécifiés, les arguments remplacent <code>metadata</code>.</p></blockquote> <!--[1--><h2 class="relative group"><a id="generate-and-push-the-mellon-config" 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" href="#generate-and-push-the-mellon-config"><span><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!----></span></a> <span><!---->Générer et pousser la configuration Mellon<!----></span></h2><!--]--><!----> <p>Après avoir ajouté des métadonnées à votre bloc, générez le modèle de configuration Mellon par défaut et poussez-le vers le Hub :</p> <div class="code-block relative "><div class="absolute top-2.5 right-4"><button class="inline-flex items-center relative text-sm focus:text-green-500 cursor-pointer focus:outline-none transition duration-200 ease-in-out opacity-0 mx-0.5 text-gray-600 " title="code excerpt" type="button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z" transform="translate(0)"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z" transform="translate(0)"></path><rect fill="none" width="32" height="32"></rect></svg><!----> <div class=" absolute pointer-events-none transition-opacity bg-black text-white py-1 px-2 leading-tight rounded font-normal shadow left-1/2 top-full transform -translate-x-1/2 translate-y-2 opacity-0 "><div class="absolute bottom-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-black border-4 border-t-0" style="border-left-color: transparent; border-right-color: transparent;"></div> Copié</div><!----></button><!----></div> <pre class="language-python "><!----><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> ModularPipelineBlocks | |
| <span class="hljs-keyword">from</span> diffusers.modular_pipelines.mellon_node_utils <span class="hljs-keyword">import</span> MellonPipelineConfig | |
| <span class="hljs-comment"># load your custom blocks from your local dir</span> | |
| blocks = ModularPipelineBlocks.from_pretrained(<span class="hljs-string">"/path/local/folder"</span>, trust_remote_code=<span class="hljs-literal">True</span>) | |
| <span class="hljs-comment"># Generate the default config template</span> | |
| mellon_config = MellonPipelineConfig.from_custom_block(blocks) | |
| <span class="hljs-comment"># push the default template to `repo_id`, you will need to pass the same local folder path so that it will save the config locally first</span> | |
| mellon_config.save( | |
| local_dir=<span class="hljs-string">"/path/local/folder"</span>, | |
| repo_id= repo_id, | |
| push_to_hub=<span class="hljs-literal">True</span> | |
| )<!----></pre></div><!----> <p>Cela crée un fichier <code>mellon_pipeline_config.json</code> dans votre dépôt.</p> <!--[1--><h2 class="relative group"><a id="review-and-adjust-the-config" 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" href="#review-and-adjust-the-config"><span><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!----></span></a> <span><!---->Examiner et ajuster la configuration<!----></span></h2><!--]--><!----> <p>Le modèle généré est un point de départ - vous souhaiterez peut-être l'ajuster selon vos besoins. Examinons la configuration générée pour le Gemini Prompt Expander :</p> <div class="code-block relative "><div class="absolute top-2.5 right-4"><button class="inline-flex items-center relative text-sm focus:text-green-500 cursor-pointer focus:outline-none transition duration-200 ease-in-out opacity-0 mx-0.5 text-gray-600 " title="code excerpt" type="button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z" transform="translate(0)"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z" transform="translate(0)"></path><rect fill="none" width="32" height="32"></rect></svg><!----> <div class=" absolute pointer-events-none transition-opacity bg-black text-white py-1 px-2 leading-tight rounded font-normal shadow left-1/2 top-full transform -translate-x-1/2 translate-y-2 opacity-0 "><div class="absolute bottom-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-black border-4 border-t-0" style="border-left-color: transparent; border-right-color: transparent;"></div> Copié</div><!----></button><!----></div> <pre class="language-json "><!----><span class="hljs-punctuation">{</span> | |
| <span class="hljs-attr">"label"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"Gemini Prompt Expander"</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"default_repo"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">""</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"default_dtype"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">""</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"node_params"</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span> | |
| <span class="hljs-attr">"custom"</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span> | |
| <span class="hljs-attr">"params"</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span> | |
| <span class="hljs-attr">"prompt"</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span> | |
| <span class="hljs-attr">"label"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"Prompt"</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"type"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"string"</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"display"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"textarea"</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"default"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">""</span> | |
| <span class="hljs-punctuation">}</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"out_prompt"</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span> | |
| <span class="hljs-attr">"label"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"Prompt"</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"type"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"string"</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"display"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"output"</span> | |
| <span class="hljs-punctuation">}</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"old_prompt"</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span> | |
| <span class="hljs-attr">"label"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"Old Prompt"</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"type"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"custom"</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"display"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"output"</span> | |
| <span class="hljs-punctuation">}</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"doc"</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span> | |
| <span class="hljs-attr">"label"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"Doc"</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"type"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"string"</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"display"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"output"</span> | |
| <span class="hljs-punctuation">}</span> | |
| <span class="hljs-punctuation">}</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"input_names"</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">[</span><span class="hljs-string">"prompt"</span><span class="hljs-punctuation">]</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"model_input_names"</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">[</span><span class="hljs-punctuation">]</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"output_names"</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">[</span><span class="hljs-string">"out_prompt"</span><span class="hljs-punctuation">,</span> <span class="hljs-string">"old_prompt"</span><span class="hljs-punctuation">,</span> <span class="hljs-string">"doc"</span><span class="hljs-punctuation">]</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"block_name"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"custom"</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"node_type"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"custom"</span> | |
| <span class="hljs-punctuation">}</span> | |
| <span class="hljs-punctuation">}</span> | |
| <span class="hljs-punctuation">}</span><!----></pre></div><!----> <!--[2--><h3 class="relative group"><a id="understanding-the-structure" 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" href="#understanding-the-structure"><span><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!----></span></a> <span><!---->Comprendre la structure<!----></span></h3><!--]--><!----> <p>Le dictionnaire <code>params</code> définit la manière dont chaque élément d'interface utilisateur est rendu. Les listes <code>input_names</code>, <code>model_input_names</code> et <code>output_names</code> associent ces éléments d'interface à l'interface d'entrée/sortie des <a href="/docs/diffusers/main/fr/api/modular_diffusers/pipeline_blocks#diffusers.ModularPipelineBlocks">ModularPipelineBlocks</a> sous-jacents :</p> <table><thead><tr><th>Configuration de Mellon</th><th>ModularPipelineBlocks</th></tr></thead><tbody><tr><td><code>input_names</code></td><td>propriété <code>inputs</code></td></tr><tr><td><code>model_input_names</code></td><td>propriété <code>expected_components</code></td></tr><tr><td><code>output_names</code></td><td>propriété <code>intermediate_outputs</code></td></tr></tbody></table> <p>Dans cet exemple : <code>prompt</code> est la seule entrée. Il n'y a aucun composant de modèle, et les sorties incluent <code>out_prompt</code>, <code>old_prompt</code> et <code>doc</code>.</p> <p>Examinons maintenant le dictionnaire <code>params</code> :</p> <ul><li><p><strong><code>prompt</code></strong> : un paramètre d’entrée avec <code>display: "textarea"</code> (affiché comme une zone de texte), <code>label: "Prompt"</code> (affiché dans l’interface utilisateur) et <code>default: ""</code> (commence vide). Le champ <code>type: "string"</code> est important dans Mellon car il détermine quels nœuds peuvent être connectés entre eux – seuls les types correspondants peuvent être reliés par des « noodles ».</p></li> <li><p><strong><code>out_prompt</code></strong> : La sortie du prompt développé. Le préfixe <code>out_</code> a été ajouté automatiquement car l’entrée et la sortie partagent le même nom (<code>prompt</code>), ce qui évite les conflits de noms dans la configuration. Il possède <code>display: "output"</code>, ce qui le rend sous forme de prise de sortie.</p></li> <li><p><strong><code>old_prompt</code></strong> : possède <code>type: "custom"</code> car nous n'avons pas spécifié de métadonnées. Cela s'affiche sous forme d'un simple point dans l'interface. Comme nous ne souhaitons pas réellement l'exposer dans l'interface, nous pouvons le supprimer.</p></li> <li><p><strong><code>doc</code></strong> : la sortie de la documentation, ajoutée automatiquement à tous les blocs personnalisés.</p></li></ul> <!--[2--><h3 class="relative group"><a id="making-adjustments" 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" href="#making-adjustments"><span><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!----></span></a> <span><!---->Apporter des ajustements<!----></span></h3><!--]--><!----> <p>Supprimez <code>old_prompt</code> des deux listes <code>params</code> et <code>output_names</code>, car vous n’aurez pas besoin de l’utiliser.</p> <div class="code-block relative "><div class="absolute top-2.5 right-4"><button class="inline-flex items-center relative text-sm focus:text-green-500 cursor-pointer focus:outline-none transition duration-200 ease-in-out opacity-0 mx-0.5 text-gray-600 " title="code excerpt" type="button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z" transform="translate(0)"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z" transform="translate(0)"></path><rect fill="none" width="32" height="32"></rect></svg><!----> <div class=" absolute pointer-events-none transition-opacity bg-black text-white py-1 px-2 leading-tight rounded font-normal shadow left-1/2 top-full transform -translate-x-1/2 translate-y-2 opacity-0 "><div class="absolute bottom-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-black border-4 border-t-0" style="border-left-color: transparent; border-right-color: transparent;"></div> Copié</div><!----></button><!----></div> <pre class="language-json "><!----><span class="hljs-punctuation">{</span> | |
| <span class="hljs-attr">"label"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"Gemini Prompt Expander"</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"default_repo"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">""</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"default_dtype"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">""</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"node_params"</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span> | |
| <span class="hljs-attr">"custom"</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span> | |
| <span class="hljs-attr">"params"</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span> | |
| <span class="hljs-attr">"prompt"</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span> | |
| <span class="hljs-attr">"label"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"Prompt"</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"type"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"string"</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"display"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"textarea"</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"default"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">""</span> | |
| <span class="hljs-punctuation">}</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"out_prompt"</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span> | |
| <span class="hljs-attr">"label"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"Prompt"</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"type"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"string"</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"display"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"output"</span> | |
| <span class="hljs-punctuation">}</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"doc"</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span> | |
| <span class="hljs-attr">"label"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"Doc"</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"type"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"string"</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"display"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"output"</span> | |
| <span class="hljs-punctuation">}</span> | |
| <span class="hljs-punctuation">}</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"input_names"</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">[</span><span class="hljs-string">"prompt"</span><span class="hljs-punctuation">]</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"model_input_names"</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">[</span><span class="hljs-punctuation">]</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"output_names"</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">[</span><span class="hljs-string">"out_prompt"</span><span class="hljs-punctuation">,</span> <span class="hljs-string">"doc"</span><span class="hljs-punctuation">]</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"block_name"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"custom"</span><span class="hljs-punctuation">,</span> | |
| <span class="hljs-attr">"node_type"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"custom"</span> | |
| <span class="hljs-punctuation">}</span> | |
| <span class="hljs-punctuation">}</span> | |
| <span class="hljs-punctuation">}</span><!----></pre></div><!----> <p>Voir la configuration finale dans <a href="https://huggingface.co/diffusers/gemini-prompt-expander-mellon" rel="nofollow">diffusers/gemini-prompt-expander-mellon</a>.</p> <a class="!text-gray-400 !no-underline text-sm flex items-center not-prose mt-4" href="https://github.com/huggingface/diffusers/blob/main/docs/source/en/modular_diffusers/mellon.md" target="_blank"><svg class="mr-1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M31,16l-7,7l-1.41-1.41L28.17,16l-5.58-5.59L24,9l7,7z"></path><path d="M1,16l7-7l1.41,1.41L3.83,16l5.58,5.59L8,23l-7-7z"></path><path d="M12.419,25.484L17.639,6.552l1.932,0.518L14.351,26.002z"></path></svg><!----> <span><span class="underline">Update</span> on GitHub</span></a><!----> <p></p><!--]--><!----><!--]--><!--]--><!--]--> <!--[-1--><!--]--><!--]--> | |
| <script> | |
| { | |
| __sveltekit_1qsdbwf = { | |
| base: "/docs/diffusers/main/en", | |
| assets: "/docs/diffusers/main/en" | |
| }; | |
| const element = document.currentScript.parentElement; | |
| Promise.all([ | |
| import("/docs/diffusers/main/en/_app/immutable/entry/start.0S0_iEoG.js"), | |
| import("/docs/diffusers/main/en/_app/immutable/entry/app.CPdOxCbw.js") | |
| ]).then(([kit, app]) => { | |
| kit.start(app, element, { | |
| node_ids: [0, 323], | |
| data: [null,null], | |
| form: null, | |
| error: null | |
| }); | |
| }); | |
| } | |
| </script> | |
Xet Storage Details
- Size:
- 45.4 kB
- Xet hash:
- fa2c56b9a2a15aa928d6c6a27c564e686fb7f724df859d0bb9509edf1a454c43
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.