Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a993702d86 | ||
|
|
296f8df4d1 | ||
|
|
091d37fa1a | ||
|
|
ffcc68568c | ||
|
|
3fa7147f9c | ||
|
|
5078dd7660 | ||
|
|
871d99529d | ||
|
|
59a4650161 |
@@ -19,3 +19,11 @@ UNSLOTH_API_KEY=
|
||||
# Get a key at https://aistudio.google.com (free tier available).
|
||||
# Same steps as above: copy to ".env", paste the key, restart ComfyUI.
|
||||
GEMINI_API_KEY=
|
||||
|
||||
# ComfyUI-Workflow-Studio - Partner API nodes in GenerateUI (Nano Banana, Kling, Seedream, ...)
|
||||
# A Comfy API key issued at https://platform.comfy.org (separate from the Gemini key above;
|
||||
# usage is billed as Comfy credits). With it set, GenerateUI queues prompts through the plugin
|
||||
# server, which adds the key to the request only when the workflow contains a partner API node.
|
||||
# Same steps as above: copy to ".env", paste the key, restart ComfyUI.
|
||||
|
||||
COMFY_API_KEY=
|
||||
|
||||
@@ -2,6 +2,11 @@
|
||||
|
||||
Condensed version-by-version index of DEVLOG.md (each line: version + one-line summary of what changed and why). Full rationale, code details, and "How to apply" lessons live in the excluded DEVLOG.md itself; this index exists so graphify can extract a queryable semantic node per release without feeding the full log to the local Ollama model. Regenerate with `python tools/generate_doc_index.py devlog` whenever DEVLOG.md changes.
|
||||
|
||||
- **v0.8.7(2026-10-16)** — Qwen Image 2.1 Turbo(ComfyUI公式テンプレート T2I / I2I)対応
|
||||
- **v0.8.6(2026-10-14)** — GenerateUI: パートナーAPIノード(Nano Banana 等)の実行に対応
|
||||
- **v0.8.5(2026-10-14)** — Metadata / I タブ: Gemini 系ノード(Nano Banana)の画像を読めるように
|
||||
- **v0.8.4(2026-10-14)** — ComfyUI v0.40.0 対応: ネイティブ LoRA スタックノード(`LoadLoraModel` / `LoadLoraTextEncoder`)
|
||||
- **v0.8.3(2026-10-13)** — GenerateUI: シードモード「Workflow」を追加(改善候補メモ 2-A)
|
||||
- **v0.8.2(2026-10-12)** — Gallery: セマンティック検索(Gemini Embedding 2 / EmbeddingGemma 2)
|
||||
- **v0.8.1(2026-10-11)** — バグ修正
|
||||
- **v0.8.0(2026-10-11)** — Gallery: 音声ファイル対応(wav / mp3 / ogg / m4a / flac / opus)
|
||||
|
||||
@@ -2,6 +2,146 @@
|
||||
|
||||
---
|
||||
|
||||
## v0.8.7(2026-10-16)
|
||||
|
||||
### Qwen Image 2.1 Turbo(ComfyUI公式テンプレート T2I / I2I)対応
|
||||
|
||||
テンプレート(`SamplerCustomAdvanced`+`ManualSigmas`+`CFGGuider`、プロンプトエンハンサー=`TextGenerate`+`ComfySwitchNode`構成)をGenerateUIで使えるようにした。
|
||||
|
||||
- **Positiveプロンプトが空になる問題**: プロンプトが`PreviewAny → ComfySwitchNode(on_false=文字列リテラル)`経由で`TextEncodeQwenImage21.prompt`に入るため検出できなかった。`comfyui-workflow.js`のPass 1で`TextEncodeQwenImage21`のリンクされた`prompt`/`negative_prompt`へロールを伝播し、Pass 2で文字列リテラルを持つ`ComfySwitchNode`を`textKey: "on_false"`のプロンプトノードとして登録。
|
||||
- **サブグラフ展開のファンアウト**: `_flattenSubgraphs()`は外部リンクをポートの最初の接続先にしか張らなかったため、`images.image_1`がTextEncodeとプロンプトエンハンサー用`BatchImagesNode`の2か所へ分岐するI2Iで、後者が画像未接続になっていた。2番目以降の接続先にも同じ外部リンクを複製するよう修正。
|
||||
- 実機(8189)でT2I/I2Iとも生成成功を確認。
|
||||
- プロンプトエンハンサー対応: `TextGenerate.prompt`とスイッチ`on_false`が展開後に別々のリテラルになる問題を、`_unifyPromptEnhancerText()`で共有の`PrimitiveStringMultiline`(`<switchId>:wfs_prompt`)へ集約して解消。GenerateUIの入力欄の編集がエンハンサー入力にも反映される。I2Iでエンハンサーをオンにして実機確認(入力プロンプトと参照画像の両方がエンハンサーに届く)。
|
||||
|
||||
### Flux.3 Image Klein(ComfyUI公式テンプレート 4種)対応
|
||||
|
||||
Klein(cfg 3.5/25step)とKlein SD(蒸留、cfg 1/16step)それぞれのT2I(プロンプトエンハンサー付きサブグラフ)とImage Edit(`ReferenceMultiLatent`)。`CLIPLoader`のtype=`flux3`は既存の変換でそのまま通る。
|
||||
|
||||
- **`ReferenceMultiLatent`のロール伝播**: positive/negative入力が別々の出力に出るノードなので、`InstructPixToPixConditioning`と同様にロールを各入力へ個別に伝播。従来はEdit版のPositive/Negativeが両方とも"Positive Prompt"というタイトルだったため、Negative側もpositiveと誤判定されていた。
|
||||
- **未使用の空Latent**: `ReferenceMultiLatent`は参照画像サイズの`empty_latent`を自前で出力するため、テンプレートに残っている未接続の`EmptyFlux2LatentImage`はSettingsのLatent Imageに出さない(`ReferenceMultiLatent`を含むワークフローに限定)。
|
||||
- T2I側はQwen Image 2.1 Turboと同様、エンハンサーの`TextGenerate.prompt`が入力用`PrimitiveStringMultiline`に直結しているため、そのまま編集が両方に反映される。SD版T2I(SD_4)はテンプレート既定でエンハンサーがオン。
|
||||
- **COMBO値の誤置換**: テンプレートは`unet_name`をフォルダ接頭辞なし(`flux3_image_klein_int8_convrot.safetensors`)で保存しているが、実機の選択肢は`diffusion_models\flux3_...`。従来の「選択肢に無い値はchoices[0]へ無警告で差し替え」により、無関係なモデルに差し替わって実行されていた。選択肢に無い場合はまずファイル名(区切り文字`\`/`/`の後ろ)が一致する選択肢が1つだけあればそれを採用してから、従来のフォールバックに回すよう変更(`_convertUiToApiImpl`のCOMBO検証)。
|
||||
- 実機で4種とも生成成功(エンハンサーはオフ)。Edit版は参照画像の編集が効くことを画像で確認。
|
||||
|
||||
## v0.8.6(2026-10-14)
|
||||
|
||||
### GenerateUI: パートナーAPIノード(Nano Banana 等)の実行に対応
|
||||
|
||||
v0.8.5 で見送った課題。パートナーAPIノードは `/prompt` の `extra_data` に Comfy の認証情報(`auth_token_comfy_org` = ブラウザのログイン、または `api_key_comfy_org` = Comfy APIキー)が必要。ComfyUI 本体の画面は自動で付けるが、WFS の `queuePrompt`(`fetch('/prompt')` 直叩き)は付けないため、GenerateUI からは `Unauthorized: Please login first to use this node.` で失敗していた。
|
||||
|
||||
- **`py/routes/partner_routes.py`(新規)**: `GET /api/wfm/partner/status`(キー設定の有無のみ)、`POST /api/wfm/partner/prompt`(`/prompt` の中継)。`.env` の `COMFY_API_KEY`(prestartup_script.py が python-dotenv で読み込み)が設定されているとき、プロンプトに API ノード(`/object_info` の `api_node: true`、クラスごとにキャッシュ)が含まれる場合だけ `extra_data.api_key_comfy_org` を付与して自 ComfyUI の `/prompt` へ中継し、応答はそのまま返す。クライアントが既に認証情報を付けている場合は上書きしない。キーはブラウザへ出さない。`.env.example` に追記。
|
||||
- **`comfyui-client.js`**: `queuePrompt` は、キー設定あり(`isPartnerKeyConfigured()`、60秒キャッシュ)かつ接続先が同一オリジンのときだけ中継を使う(別サーバーへキーを送らない)。`execution_error` が `Unauthorized` / `login first` のときは、設定方法を案内する文言(`partnerAuthHint`、3言語)を付ける。
|
||||
- **`comfyui-workflow.js`**: `Gemini(Image|NanoBanana)*` ノードの `prompt` 入力を `prompt_nodes`(positive、`textKey: "prompt"`)に追加し、GenerateUI の Prompt タブで編集できるようにした。参考画像は従来どおり Image タブの `LoadImage` 経由。
|
||||
- ヘルプ(`helpGen32`、`index.html` / `i18n.js` 3言語 / `app.js` の `helpIdMap`)、README、サンプルワークフロー `workflows/ws_nano_banana_2_1_t2i.json` を追加。
|
||||
|
||||
### UI形式→API形式の変換: DynamicCombo ノードの `widgets_values` ずれを修正
|
||||
|
||||
Nano Banana 2.1 の UI 形式ワークフローを変換すると値がずれていた(`seed` が `"IMAGE"`、システムプロンプトが `response_modalities` に入る等)。原因は2つで、どちらも修正した。
|
||||
|
||||
1. `_getDynamicComboSubNames` が、選択肢の子入力のうちソケット(`images` = Autogrow、`files` = `GEMINI_INPUT_FILES`)まで `widgets_values` の1枠として数えていた。ウィジェット型の子入力だけを数えるようにした(`_resolveWidgetType` を再利用)。
|
||||
2. `seed` 等の `control_after_generate` 付きウィジェットの直後に入るフロントエンド専用の `"randomize"` 等の1枠を、次のウィジェットが数値型のときしか読み飛ばせなかった(Nano Banana 2.1 は `seed` の次が COMBO の `response_modalities`)。object_info の `control_after_generate` フラグで判定する `_hasControlAfterGenerate` を追加。
|
||||
|
||||
- 検証: ComfyUI 本体のフロントエンドで作ったワークフローの `graphToPrompt()` 出力と、変換結果が完全に一致。実機の保存済み UI 形式ワークフロー301件を修正前後で比較し、300件は変換結果が同一、変化は今回の Nano Banana サンプルのみ。
|
||||
|
||||
### Gallery: `cc_nanobanana` フォルダの画像でもメタデータがあれば Prompt タブを表示
|
||||
|
||||
Comic Creator v1.55.0 で、半自動マンガがネイティブノード経由で生成した画像が `cc_nanobanana` に保存され、PNG に `prompt` / `workflow` が埋め込まれるようになるため。`gallery-tab.js`: 埋め込みワークフローがある画像は `isNanobananaFolderImage` による Prompt タブの非表示を解除する(埋め込みの無い Gemini API 直叩きの画像だけ従来どおり非表示)。
|
||||
|
||||
**実機確認(ComfyUI_5 / ポート8189、v0.40.0)**
|
||||
- `.env` に `COMFY_API_KEY` を設定し、GenerateUI でサンプル(Nano Banana 2.1)を読み込み、Prompt タブで編集して Apply → Generate を実クリック: リクエストは `/api/wfm/partner/prompt` 経由、16.4秒で成功、編集どおりの絵(青いティーポット)が `output/nano_banana_00001_.png` に出力された。
|
||||
- キー未設定時の案内文(`partnerAuthHint`)が表示用文言として解決されること、ヘルプ(`helpGen32`)が表示されることを確認。
|
||||
|
||||
### 今後の作業候補(2026-10-14 時点・未着手。v0.8.4〜v0.8.6 の続き)
|
||||
|
||||
**ネイティブ LoRA スタックノード(`LoadLoraModel` / `LoadLoraTextEncoder`、v0.8.4)**
|
||||
- **UI形式への対応**: ComfyUI フロントエンド 1.55.17 は DynamicGroup を実装していない(行を追加できず `widgets_values` も空)。フロントエンドが対応したら、実物の UI 形式 JSON で `widgets_values` の並びを確認し、`analyzeWorkflow` / Metadata / I タブの UI 形式分岐を追加する。
|
||||
- **画面操作の確認**: GenerateUI の Stack タブ(Stack グループを複数行として書き込む処理)は、関数の直接呼び出しでのみ確認済み。Models タブで Stack グループを登録した状態での画面確認が未実施。
|
||||
|
||||
**Gemini / Nano Banana 系ノード(v0.8.5 / v0.8.6)**
|
||||
- **Metadata / I タブの表示拡充**: プロンプトは Positive / Negative に分けず全文を1件で表示している(送信全文に `NEGATIVE_PROMPT:` が含まれる)。`NEGATIVE_PROMPT:` で分割して Positive / Negative に振り分ける、`aspect_ratio` / `resolution` / `thinking_level` を設定欄に出す、UI 形式の `widgets_values`(並びは `[prompt, model, aspect_ratio, resolution, thinking_level, seed, control_after_generate, response_modalities, system_prompt, temperature, top_p]`)に対応する、が候補。
|
||||
- **他のパートナーAPIノードの Prompt タブ対応**: 現状は `Gemini(Image|NanoBanana)*` のみを `prompt_nodes` に登録している。`/object_info` の `api_node: true` かつ `prompt` 入力を持つノード(Seedream / Kling 等)へ一般化できないか検討する。
|
||||
- **費用ガード**: Batch / Lab / カタログ作成などの繰り返し実行でパートナーAPIノードを使うと、回数ぶんのクレジットが連続して消費される。`/object_info` の `price_badge` から概算を出して、実行前に表示・確認する案。
|
||||
- **Settings タブに `COMFY_API_KEY` の設定状態を表示**: 現状は `.env` 編集のみ。`GET /api/wfm/partner/status`(設定の有無のみ返す)を使って、設定済み/未設定と設定手順を Settings タブに出す。キー自体は表示・入力させない方針を維持する。
|
||||
- **サンプルの追加**: 参考画像付き(I2I、`LoadImage` → `model.images.image_1`)の Nano Banana ワークフロー、複数参考画像のもの。Nano Banana Pro(`GeminiImage2Node`)は Comic Creator 側のネイティブ対応と合わせて。
|
||||
|
||||
**運用・開発環境**
|
||||
- **同期スクリプトの整備**: 開発リポジトリから実機の `custom_nodes` への反映は、今回も手作業(追跡ファイルの `cmp` 比較 + `cp`、`workflows/` / `data/` / `.env` は除外)だった。CLAUDE.md の「同期スクリプトでパッケージ全体をデプロイ」に沿って、`tools/` に同期スクリプト(除外リスト付き、ハッシュ比較・`__pycache__` 削除まで)を用意する。部分同期が残ると古い版が混在する(今回、実機は v0.8.2 開発途中の版のまま止まっていた)。
|
||||
- **comfy-cli / comfy-mcp の既定ワークスペース**が ComfyUI_6(プラグイン 0.3.78)で、実際に使っている ComfyUI_5(8189)と一致しない。`server_info` の `running` / `freshness` は ComfyUI_6 の情報になるため、MCP で実機を扱うときは注意するか、既定ワークスペースを揃える。
|
||||
- **英語・中国語UIでの表示確認**: 今回追加したヘルプ(`helpGen32` ほか)と `partnerAuthHint` は日本語UIでのみ画面確認した。
|
||||
|
||||
## v0.8.5(2026-10-14)
|
||||
|
||||
### Metadata / I タブ: Gemini 系ノード(Nano Banana)の画像を読めるように
|
||||
|
||||
Comic Creator v1.54.0 で、Nano Banana を ComfyUI ネイティブノード(`GeminiNanoBanana2V2`)経由で生成できるようにした(併用)。この経路の画像は SaveImage により `prompt` / `workflow` が PNG に埋め込まれるため、Workflow Studio 側で通常の ComfyUI 画像として読めるようにした。
|
||||
|
||||
- `metadata-tab.js` / `web/comfyui/node_sets_menu.js`: 自ノードの `prompt` 入力を持つ `Gemini(Image|NanoBanana)*` ノードを、動画ノード(`*ImageToVideo` / `*TextToVideo`)と同じ扱いでプロンプト候補(`texts`)へ追加。`NEGATIVE_PROMPT:` を含む送信全文がそのまま1件として出る(Positive / Negative の分割はしない)。
|
||||
- `extractDiffusionModels`(API形式): Gemini 系ノードの `model` 入力(例: `Gemini Nano Banana 2.1`)をモデル名として表示。
|
||||
- `extractSamplerSettings`: Gemini 系ノードの `seed` を補助ノードとして拾い、設定欄に表示。
|
||||
- 対象は API 形式のみ(DynamicCombo のため UI 形式の `widgets_values` の並びは未確認)。`GenerateUI` のプロンプト編集・実行は対象外。
|
||||
- `cc_nanobanana` フォルダ用の特別扱い(`history.jsonl` 参照・Promptタブ非表示)は、従来の Gemini API 直叩きの画像のため変更なし。ネイティブ経路の出力先は別フォルダ(`cc_nanobanana_native`)なので、この特別扱いに該当せず、埋め込みメタデータが使われる。
|
||||
|
||||
**実機確認(ComfyUI_5 / ポート8189、v0.40.0)**
|
||||
- Comic Creator のネイティブ経路で実際に生成した画像(`cc_nanobanana_native/NB_00001_.png`、848×1264)を `extractAllMetadata` に通し、モデル名(`Gemini Nano Banana 2.1`)・シード・プロンプト(`NEGATIVE_PROMPT:` 付き全文)が取れることを確認。Gallery の一覧・画像メタ取得でも通常の画像として扱われる(`nanobanana` エントリは null)。
|
||||
|
||||
**ネイティブ API ノードの認証について(今回の調査で判明)**
|
||||
- API ノードは `/prompt` の `extra_data` に `auth_token_comfy_org`(ブラウザのログイン)または `api_key_comfy_org`(Comfy APIキー)が必要。ComfyUI 本体の画面は自動で付けるが、Workflow Studio の `queuePrompt`(`fetch('/prompt')` 直叩き)は付けないため、GenerateUI からパートナーAPIノードを実行すると認証エラーになる。今回は対応せず(Comic Creator はサーバー側で `COMFY_API_KEY` を渡す方式で対応)。必要になれば Workflow Studio 側にも同様のサーバー側プロキシが必要。
|
||||
|
||||
## v0.8.4(2026-10-14)
|
||||
|
||||
### ComfyUI v0.40.0 対応: ネイティブ LoRA スタックノード(`LoadLoraModel` / `LoadLoraTextEncoder`)
|
||||
|
||||
ComfyUI v0.40.0 の変更点を確認し、影響のあった LoRA 検出・編集を対応させた(コミット 5078dd7)。
|
||||
|
||||
**背景・調査結果**
|
||||
- 新ノードは `comfy_extras/nodes_lora_stack.py`。1ノードに DynamicGroup `loras`(1〜20行)を持ち、API形式では `loras.<行>.lora_name|strength|enabled` のドット結合キーで渡す。Model用とText Encoder用で別ノード。
|
||||
- Workflow Studio の LoRA 検出は固定リスト(`LoraLoader` / `LoraLoaderModelOnly` / Power Lora / LoraManager / ImageMetadataLoRALoader)だったため新ノードは未検出。また既存の編集コードが `inputs.lora_name` を書き込むため、そのまま使うと DynamicGroup の検証エラーになる状態だった。
|
||||
- **ComfyUI フロントエンド 1.55.17 には DynamicGroup の実装が無い**(型名ラベルのみ)。GUI のグラフエディタではこのノードに行を追加できず、UI形式の `widgets_values` も空になる。そのため対応は **API形式のみ**。UI形式の対応はフロントエンドの対応後に実物のJSONで再検証が必要。
|
||||
|
||||
**実装**
|
||||
- `comfyui-workflow.js`: `analyzeWorkflow` が2ノードを `is_lora_stack` として `lora_nodes` に追加(1ノード1エントリ、代表は有効な最初の行。無効行は飛ばし、行番号順に解釈)。
|
||||
- `comfyui-editor.js`: 共通の書き込み処理 `applyLoraStack`(`comfyEditor` から公開)を追加。ワークフロー内の全スタックノードを同期して書き込む(Modelノード=Str M、Text Encoderノード=Str C)。Single / Stack Apply(Stackは全モデルを行として書く、最大20行)、バイパスボタン(全行のstrengthを0、解除で行ごと復元)、LoRAペインの現在値表示に対応。
|
||||
- `lab-tab.js` / `models-tab.js` / `generate-tab.js`: Lab、Models タブの Apply、LoRA バッチも同じ処理経由に。Models Apply は既存の強度を保持する。
|
||||
- `metadata-tab.js` / `web/comfyui/node_sets_menu.js`: Metadata タブ・サイドパネル I タブの LoRA 抽出(API形式)に対応。Model/Text Encoder 両ノードの同名LoRAは1件にまとめ、両方の強度を表示する。
|
||||
- ヘルプ(helpGen20 / helpGen21 / helpGen29 / helpSidepanel15、en/ja/zh)と index.html を更新。README に項目を追加。
|
||||
|
||||
**実機確認(ComfyUI_5 / ポート8189、v0.40.0)**
|
||||
- テスト用 API 形式ワークフロー(Checkpoint → Load LoRA 2ノード×2行 → SDXL)を `/prompt` へ投入: HTTP 200・`node_errors` 空・1枚生成成功(18秒)。
|
||||
- 生成時ログの `lora key not loaded: ...`(約5千行)は、Model/Text Encoder で別ノードに分かれる設計上、各ノードが対象外キーを報告する無害なノイズ(従来 `LoraLoader` 単独では0件、件数も2LoRA×キー数と一致)。
|
||||
- GenerateUI 画面で、ID:2/ID:3 の選択、バイパスボタンの往復(0→元の値)、Single Apply(RAW JSON・LORA SYNTAX・トリガーワード更新)を実クリックで確認。
|
||||
- 書き込み処理は実ファイルから切り出して Node で単体試験(強度維持・行入替・両ノード同期・バイパス復元・ワークフロー引数指定)。
|
||||
|
||||
**影響なしと確認した項目**
|
||||
- WebSocket のメタデータ付与: メタデータは `workflow_metadata` の送信または機能フラグ `supports_preview_metadata` の宣言時のみ付く。本プラグインのクライアントはどちらも行わず、メッセージも既知フィールドだけを `try/catch` 付きで読むため影響なし。
|
||||
- 3D 出力・カメラ系ノード: 結果取得は `images` と `saved_svg` のみを見るため無視されるだけ。
|
||||
- Comic Creator(v1.53.2): LoRA / WebSocket / `/prompt` を使わず、`/upload/image` の応答形式も互換。`/ccc` と `/wfm` の iframe 連携も正常。
|
||||
|
||||
**その他(運用上の発見)**
|
||||
- ランタイム(ComfyUI_5 の `custom_nodes`)が v0.8.2 開発途中の版のまま古いファイルが残っていた(部分同期)。リポジトリの追跡ファイルを同期し直した(`workflows/`・`data/`・`.env` は上書きしない)。
|
||||
- comfy-cli の既定ワークスペースは ComfyUI_6(プラグイン 0.3.78)。comfy-mcp の `server_info` の running / freshness は 8189 の ComfyUI_5 とは別物。
|
||||
|
||||
## v0.8.3(2026-10-13)
|
||||
|
||||
### GenerateUI: シードモード「Workflow」を追加(改善候補メモ 2-A)
|
||||
|
||||
生成パネルのSeed欄が常に優先され、ギャラリーから読み込んだ画像を元のシードで再現しにくかった問題への対応。
|
||||
|
||||
- `templates/index.html`: `#wfm-gen-seed-mode` に `workflow` を追加(Random / Fixed / Increment / Decrement / Workflow)。
|
||||
- `comfyui-client.js`: `getWorkflowSeed()`(API形式ワークフローの最初のリテラルな `seed` / `noise_seed` を返す。リンク入力・負値は無視)を追加し、`generate()` が `seedMode === "workflow"` のときシードを上書きせずワークフロー値を使うようにした。数値のシード入力が無いワークフローではパネル値(-1ならランダム)にフォールバック。生成後はSeed欄に実際に使った値が入る。
|
||||
- 副次的に見つけた不具合の修正: 呼び出し側が渡す `{ ...workflow }` は浅いコピーでノードオブジェクトを `currentWorkflow` と共有していたため、Random生成のシード上書きが読み込み済みワークフローに漏れ、その後のWorkflowモードが元のシードではなく直前のランダム値を使っていた。`generate()` 冒頭で `structuredClone(workflow)` するようにした。
|
||||
- 実機確認(ComfyUI_5 / chat_t2i_sdxl): Random→Workflowの順でも元のシード(1097716508243681)で生成され、本体のシードは変化しないことを確認。同じシード・同じ設定の連続生成はComfyUIのキャッシュで新規画像が増えない(仕様)。
|
||||
- ヘルプ(helpGen8、en/ja/zh)とindex.htmlのヘルプ行にWorkflowモードを追記。
|
||||
|
||||
### サンプルワークフロー: Gallery Feeder用I2I(改善候補メモ 7)
|
||||
|
||||
- 追加: `workflows/ws_sdxl_gallery_feeder_i2i.json`(+ `.png`)。既存の `ws_sdxl_image_feeder_i2i`(SDXL I2I)の ImageFeeder を `WFS_GalleryFeeder`(group_name=`__Feeder__` / sort_mode=filename_asc)に差し替えたもの。リンク・ノードIDは元サンプルと同じ構成で整合。サムネイルPNGは既存サンプルのものを流用(要差し替え)。
|
||||
|
||||
### ドキュメント: 初心者向けマニュアル(日本語・英語)
|
||||
|
||||
- `docs/manual/`(日本語)と `docs/manual/en/`(英語)に、v0.8.3対応・画像なしのテキスト版マニュアルを追加(章ごとのMarkdown、全章まとめMarkdown、配布用ZIP)。Kindle版(画像入りEPUB)は作者のリポジトリ外原稿から別途作成。
|
||||
- 内容はv0.7.13版から更新: Workflowシードモード、Gallery Feederサンプル、セマンティック検索(8-6)、音声ファイルの扱いと変換(8-7)、メタデータタブのレイアウト変更、WS Library NタブのAlt+クリックなど。Kindleでの文字化け対策として、U+2015等の記号を代替表記に置換。
|
||||
- 配布版の再生成スクリプト(`make_repo_version.py` / `make_repo_version_en.py`)はリポジトリ外のマニュアル作業フォルダにある。
|
||||
|
||||
## v0.8.2(2026-10-12)
|
||||
|
||||
### Gallery: セマンティック検索(Gemini Embedding 2 / EmbeddingGemma 2)
|
||||
|
||||
+13
-2
@@ -27,7 +27,7 @@ A comprehensive workflow, asset management, and generation UI plugin for [ComfyU
|
||||
- Built-in AI tools (translation and more)
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
## Features (tab -> feature names)
|
||||
|
||||
@@ -53,7 +53,7 @@ Setting / Results / Plan JSON sub-panels, Per-column keyframes, Model column —
|
||||
2-column layout, Collapsible sections, Theme selection, Theme customization, Workflows directory, Gallery output directory, Eagle connection, CivitAI Host, CivitAI API Key, Default workflow, Default Checkpoint, VRAM Management (Ollama), Video Playback Volume, Data Management, Text Size, RAW JSON Colors, GenerateUI Model Tab Highlight, Wildcard Integration, G'MIC-Qt Integration, Language
|
||||
|
||||
### Gallery Tab (v0.3.44)
|
||||
Output / ImagePrompt / Style_Catalog / Metadata sub-tabs, Image browser, Folder tree root label, Thumbnail / Table views, Folder management, File operations, Download, MP4 video support, MP4 embedded metadata, WebM support, Embedded metadata reading fixes, Audio support, File conversion, Move To folder filter, Semantic Search, Audio waveform colors, Info tab: dimensions & duration, Multi-select, Image Compare, Prompt search, Server-side filtering, Group management, Thumbnail F button, Favorites, Detail panel, Prompt tab, Nanobanana tab, Workflow viewer, GenUI button, Image Edit button, Send GenUI Image button, Send to LI node button, Send to LV node button, Send CC button, Search clear (✕), Clear all filters (✕ Clear), Workflow auto-save, Output folder configurable, SVG file support, PSD file support, Performance
|
||||
Output / ImagePrompt / Style_Catalog / Metadata sub-tabs, Image browser, Folder tree root label, Thumbnail / Table views, Folder management, File operations, Download, MP4 video support, MP4 embedded metadata, WebM support, Embedded metadata reading fixes, Audio support, File conversion, Move To folder filter, Semantic Search, Audio waveform colors, Info tab: dimensions & duration, Multi-select, Image Compare, Prompt search, Server-side filtering, Group management, Thumbnail F button, Favorites, Detail panel, Prompt tab, Nanobanana tab, Gemini / Nano Banana nodes, Partner API nodes in GenerateUI, Workflow viewer, GenUI button, Image Edit button, Send GenUI Image button, Send to LI node button, Send to LV node button, Send CC button, Search clear (✕), Clear all filters (✕ Clear), Workflow auto-save, Output folder configurable, SVG file support, PSD file support, Performance
|
||||
|
||||
### ImagePrompt Gallery subtab (v0.3.94, renamed from Style/Prompt in v0.3.95)
|
||||
Visual prompt library, 3-column layout, Prompt builder (right pane), Plain-text prompt storage, ponyxlWildcardsVault format support, Seed data importer
|
||||
@@ -109,6 +109,8 @@ Restart ComfyUI after installation.
|
||||
|
||||
Sample workflows are included in the `workflows/` folder. You can open them directly in ComfyUI via drag & drop, or load them from the Workflow tab.
|
||||
|
||||
Samples for the Feeder tab: `ws_sdxl_image_feeder_i2i` / `ws_dwpose_image_feeder` (Image Loop mode, require the `comfyui-image-feeder` custom node) and `ws_sdxl_gallery_feeder_i2i` (v0.8.3, SDXL I2I with the bundled **WFS_GalleryFeeder** node — no extra custom node needed; put images in the `__Feeder__` Gallery group and use the Feeder tab's Gallery mode).
|
||||
|
||||
> **Note:** Some sample workflows require additional custom nodes.
|
||||
> If a node is shown as missing (red/unknown) after loading, install the required custom nodes via **ComfyUI Manager** or by cloning the repository from GitHub into your `ComfyUI/custom_nodes/` directory.
|
||||
>
|
||||
@@ -121,6 +123,15 @@ Sample workflows are included in the `workflows/` folder. You can open them dire
|
||||
|
||||
---
|
||||
|
||||
## Manual
|
||||
|
||||
A beginner-oriented manual (covers v0.8.3, text-only edition without screenshots) is available in [`docs/manual/`](docs/manual/):
|
||||
|
||||
- English: [`docs/manual/en/`](docs/manual/en/) — ZIP: `Workflow_Studio_Manual_v0.8.3_en.zip`
|
||||
- 日本語: [`docs/manual/`](docs/manual/) — ZIP: `Workflow_Studio_Manual_v0.8.3.zip`
|
||||
|
||||
---
|
||||
|
||||
## Usage
|
||||
|
||||
### Launch
|
||||
|
||||
@@ -23,7 +23,7 @@ A comprehensive workflow, asset management, and generation UI plugin for [ComfyU
|
||||
- Built-in AI tools (translation and more)
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
## Screenshots
|
||||
|
||||
@@ -55,6 +55,10 @@ A comprehensive workflow, asset management, and generation UI plugin for [ComfyU
|
||||
| :--------------------------------: | :------------------------------------------: |
|
||||
|  |  |
|
||||
|
||||
| Gallery Tab - Semantic Search ("sunset city street") |
|
||||
| :-----------------------------------------------------------------: |
|
||||
|  |
|
||||
|
||||
---
|
||||
|
||||
## Features
|
||||
@@ -103,12 +107,14 @@ A comprehensive workflow, asset management, and generation UI plugin for [ComfyU
|
||||
- **Model tab** — Checkpoint, VAE, Diffusion Model (UNETLoader / UnetLoaderGGUF / LoaderGGUF), and Text Encoder (CLIPLoader / DualCLIPLoader / ClipLoaderGGUF / DualClipLoaderGGUF — single clip: type + device; dual clip: two clip selectors + type + device) are always shown; **ControlNet** and **Hypernetwork** (with Strength field) are collapsed by default (v0.3.98) since they're used less often — click their header to expand; **LoRA** (Single/Stack tabs) has its own column; all selectors have a filter; Raw JSON on the right
|
||||
- **Highlight color** (v0.3.98) — the label of each model type above, plus the LoRA column header, turns a distinct color (default bright green, customizable in the Settings tab) when the loaded workflow actually contains that type of node; stays visible even while ControlNet/Hypernetwork are collapsed, so relevance is visible without expanding
|
||||
- **LoRA Stack Group toggle** (v0.3.92) — for `Lora Loader (LoraManager)` nodes, a **Use Stack Group** checkbox next to the Single/Stack tabs switches what the Stack tab shows and edits: OFF (the default whenever a workflow is loaded) displays and edits the LoRAs actually configured in the workflow's own Lora Manager node — correctly showing every LoRA it holds, not just the first one; ON switches to the LoRA group registered in the Models tab instead; toggling either direction clears the node's LoRA list first, then loads it from the newly selected source, and switching back to OFF restores exactly the list that was present when the workflow was loaded
|
||||
- **Native Load LoRA nodes** (v0.8.4) — ComfyUI v0.40's `Load LoRA (Model)` / `Load LoRA (Text Encoder)` pair (each node holds up to 20 rows of LoRA / strength / enabled) is detected and edited like the other LoRA nodes: Single / Stack Apply, the Models tab "Apply", the LoRA batch, Lab and the Bypass button write both nodes together (the Model node takes Str M, the Text Encoder node takes Str C); Stack Apply writes the whole Stack group as rows, and the Metadata tab / side-panel I tab list their LoRAs. API-format workflows only for now — ComfyUI frontend 1.55.17 cannot add rows to these nodes in its own graph editor, so UI-format workflows carry no `widgets_values` for them yet
|
||||
- **LoRA Bypass button** (v0.4.4) — a ⛔ toggle next to the Refresh Stack group button in the LoRA column header; forces the target LoRA node's strength to 0 (`strength_model`/`strength_clip` for a standard LoraLoader, or every entry's `strength`/`clipStrength` for a Lora Manager node — its LoRA list stays intact, not replaced) without touching the actual ComfyUI node's mode; click again to restore the exact values that were there before toggling; targets whichever node Single/Stack Apply default to (the workflow's Lora Manager node if it has one, else the first LoRA node); clicking a Single or Stack Apply button clears the bypass state so it can't silently reassert itself later
|
||||
- **Settings tab** — KSampler and Latent Image side by side at 50% width each; Raw JSON on the right
|
||||
- **Always-visible Raw JSON** — edit the API-format JSON directly from any tab with syntax highlighting; Apply button reloads the workflow; built-in **search bar** (always shown) finds all matches as you type with count display (`3/12`); navigate with ↑/↓ buttons or Enter / Shift+Enter; Escape or ✕ clears; current match highlighted in orange, other matches in yellow
|
||||
- **Bypass/Mute node handling** (v0.3.75) — loading a UI-format workflow with Bypass-mode nodes now reroutes their wires to the upstream source (matching same-type input/output slots, recursively through chained bypasses) instead of leaving a dangling reference that failed validation; Mute-mode nodes are excluded without rerouting, same as ComfyUI itself; when either is present, a note listing the affected nodes appears above the Raw JSON search bar in the Input/Model/Settings tabs
|
||||
- **One-click generation** — queue prompts to ComfyUI without leaving the studio
|
||||
- **Seed control** — randomize, lock, or manually set seeds; seed input and mode selector stacked vertically for readability
|
||||
- **Workflow seed mode** (v0.8.3) — the mode selector's new **Workflow** option generates with the loaded workflow's own seed as-is (no override), e.g. to reproduce a Gallery image with its original seed; falls back to the Seed field only if the workflow has no literal seed input. Seed overrides no longer leak back into the loaded workflow (generation now works on a deep copy), so Workflow mode still sees the original seed after Random runs
|
||||
- **Style selector** — checkbox and dropdown next to the Reset Workflow button; enable to apply a Fooocus-style JSON to positive and negative prompts at generation time; style files (`*.json`) are loaded from `user/default/Workflow-Studio/style/`; the style's `{prompt}` placeholder is replaced with the original prompt text, or the style is appended if no placeholder exists; `negative_prompt` is appended to the existing negative prompt; styles are applied to a per-generation copy and do not modify the loaded workflow
|
||||
- **Wildcards inside a Style now expand** (v0.4.7) — an A1111-style `__wildcard__` reference written into a Style's Positive/Negative prompt is expanded at generation time just like one typed directly into GenerateUI; the Style text is merged into the prompt *before* wildcard expansion runs (previously the order was reversed, so a Style's own wildcard references were sent to ComfyUI unexpanded)
|
||||
- **Create Catalog / Catalog buttons** (v0.3.95) — next to the Style dropdown. **Create Catalog** generates one preview image per Style checked in the Batch tab's Style sub-tab (using the currently loaded workflow, typically T2I), then saves each result into a chosen `ws_style_catalog` subfolder named after the Style (existing files with the same name are overwritten); a modal lets you create a new destination folder or pick an existing one — separate folders are useful for grouping catalogs by checkpoint or by purpose. **Catalog** jumps straight to the Gallery tab's Style_Catalog sub-tab to browse the results (see below)
|
||||
@@ -285,6 +291,8 @@ An experimental batch generator: runs the workflow currently loaded in GenerateU
|
||||
- **Detail panel** — view filename, path, tags, groups, and metadata in a slide-out panel; four or five tabs — **Info** / **JSON** / **Groups** / **Prompt** / **Nanobanana** (only for `cc_nanobanana`-folder images, see below)
|
||||
- **Prompt tab** (v0.4.7) — selected by default (the most frequently checked piece of info shouldn't need an extra click); lists every positive/negative prompt candidate found in the embedded workflow with POS/NEG badges, reusing the exact same list→click→full-text UI as the Metadata tab; extracts from the API-format embedding when available rather than the UI-format one, since a workflow with independent top-level and subgraph sampling chains (e.g. Krea-2) can otherwise have some of its prompts missed; hidden entirely for images in the `cc_nanobanana` folder (see Nanobanana tab below), since they carry no embedded ComfyUI workflow to extract a prompt from
|
||||
- **Nanobanana tab** (v0.7.14) — shown only for images in a `cc_nanobanana` folder (written by ComfyUI Comic Creator's Nanobanana tab) that have a matching entry in that folder's `history.jsonl` generation log; shows engine, model, image size, seed, timestamp, and the prompt/negative prompt actually used — the same info is also surfaced in the Metadata tab (see below) when opened from here via the **Metadata** button
|
||||
- **Gemini / Nano Banana nodes** (v0.8.5) — images generated by ComfyUI's native Nano Banana nodes (`GeminiNanoBanana2V2` etc., e.g. via ComfyUI Comic Creator's "ComfyUI native node" engine) are readable like any other ComfyUI image: the Metadata tab and the side-panel I tab show the prompt (in the prompt list, including the appended `NEGATIVE_PROMPT:` text), the model name (under Diffusion Model, e.g. `Gemini Nano Banana 2.1`) and the seed; these images need no history file and are not special-cased like the `cc_nanobanana` folder (API-format workflows only)
|
||||
- **Partner API nodes in GenerateUI** (v0.8.6) — workflows containing ComfyUI's partner API nodes (Nano Banana / Gemini image nodes, etc.) can be run from GenerateUI. These nodes need Comfy credentials in the `/prompt` request's `extra_data`, which ComfyUI's own screen adds automatically but a separate page cannot: add `COMFY_API_KEY=...` (a Comfy API key issued at platform.comfy.org) to the plugin's `.env` and restart ComfyUI. With it set, GenerateUI queues prompts through the plugin server (`/api/wfm/partner/prompt`), which adds the key only when the workflow contains an API node (`api_node` in `/object_info`) and only for this ComfyUI instance; the key never reaches the browser, and usage is billed as Comfy credits. Without a key, an authentication error now shows how to set it up. A Gemini image node's prompt shows in the Prompt tab (reference images go through `LoadImage` in the Image tab); sample: `ws_nano_banana_2_1_t2i`. Also fixed: UI-format → API-format conversion misaligned `widgets_values` for nodes whose DynamicCombo option has socket sub-inputs (Nano Banana 2.1's `images` / `files`) or a widget right after a `control_after_generate` seed; Gallery now shows the Prompt tab for `cc_nanobanana`-folder images that carry embedded metadata (images made through Comic Creator's ComfyUI native node engine)
|
||||
- **Workflow viewer** — Metadata tab displays workflow JSON from PNG embedded data (`prompt` / `workflow` keys) or from workflow saved by the Generate UI tab; **Copy & Send Canvas** button copies the JSON to the clipboard and sends the workflow directly to the ComfyUI canvas (UI and API formats both supported)
|
||||
- **GenUI button** (renamed from "Load GenUI" in v0.5.0 for readability) — loads the embedded ComfyUI workflow from the selected image directly into the GenerateUI tab; shows a warning toast if no workflow is embedded or the format is unsupported; Metadata button is styled green, GenUI button uses the primary accent color
|
||||
- **Image Edit button** — toolbar button; sends the selected image directly to the Image Edit tab as the base layer; PSD files (v0.6.0) are fully decomposed into their original layers instead of being flattened into one image
|
||||
@@ -550,6 +558,8 @@ Restart ComfyUI after installation.
|
||||
|
||||
Sample workflows are included in the `workflows/` folder. You can open them directly in ComfyUI via drag & drop, or load them from the Workflow tab.
|
||||
|
||||
Samples for the Feeder tab: `ws_sdxl_image_feeder_i2i` / `ws_dwpose_image_feeder` (Image Loop mode, require the `comfyui-image-feeder` custom node) and `ws_sdxl_gallery_feeder_i2i` (v0.8.3, SDXL I2I with the bundled **WFS_GalleryFeeder** node — no extra custom node needed; put images in the `__Feeder__` Gallery group and use the Feeder tab's Gallery mode).
|
||||
|
||||
> **Note:** Some sample workflows require additional custom nodes.
|
||||
> If a node is shown as missing (red/unknown) after loading, install the required custom nodes via **ComfyUI Manager** or by cloning the repository from GitHub into your `ComfyUI/custom_nodes/` directory.
|
||||
>
|
||||
@@ -562,6 +572,15 @@ Sample workflows are included in the `workflows/` folder. You can open them dire
|
||||
|
||||
---
|
||||
|
||||
## Manual
|
||||
|
||||
A beginner-oriented manual (covers v0.8.3, text-only edition without screenshots) is available in [`docs/manual/`](docs/manual/):
|
||||
|
||||
- English: [`docs/manual/en/`](docs/manual/en/) — ZIP: `Workflow_Studio_Manual_v0.8.3_en.zip`
|
||||
- 日本語: [`docs/manual/`](docs/manual/) — ZIP: `Workflow_Studio_Manual_v0.8.3.zip`
|
||||
|
||||
---
|
||||
|
||||
## Usage
|
||||
|
||||
### Launch
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.4 MiB |
@@ -0,0 +1,34 @@
|
||||
# はじめてのComfyUI Workflow Studio
|
||||
|
||||
ノードが苦手でも大丈夫 ― 画像生成をもっと手軽に、もっと整理して
|
||||
|
||||
- 対象バージョン:Workflow Studio v0.8.3
|
||||
- 著者:ketle-man
|
||||
- © 2026 ketle-man
|
||||
|
||||
このマニュアルは、Kindle版をもとにした **画像なしのテキスト版** です。
|
||||
章ごとのファイルは `chapters/` フォルダ、全章をまとめたファイルは `Workflow_Studio_Manual_v0.8.3.md` です。
|
||||
画面の例は省略しているため、実際の画面はWorkflow Studioのヘルプタブとあわせてご覧ください。
|
||||
|
||||
## 目次
|
||||
|
||||
- [00_はじめに](chapters/00_はじめに.md)
|
||||
- [01_第1章_基礎知識](chapters/01_第1章_基礎知識.md)
|
||||
- [02_第2章_インストールと起動](chapters/02_第2章_インストールと起動.md)
|
||||
- [03_第3章_画面の見方](chapters/03_第3章_画面の見方.md)
|
||||
- [04_第4章_ワークフロータブ](chapters/04_第4章_ワークフロータブ.md)
|
||||
- [05_第5章_生成UI_前半](chapters/05_第5章_生成UI_前半.md)
|
||||
- [05_第5章_生成UI_後半](chapters/05_第5章_生成UI_後半.md)
|
||||
- [06_第6章_モデルタブ](chapters/06_第6章_モデルタブ.md)
|
||||
- [07_第7章_プロンプトタブ](chapters/07_第7章_プロンプトタブ.md)
|
||||
- [08_第8章_ギャラリータブ](chapters/08_第8章_ギャラリータブ.md)
|
||||
- [09_第9章_WS_Library](chapters/09_第9章_WS_Library.md)
|
||||
- [10_第10章_AI_TOOL](chapters/10_第10章_AI_TOOL.md)
|
||||
- [11_第11章_さらに広がる機能](chapters/11_第11章_さらに広がる機能.md)
|
||||
- [12_第12章_困ったときは](chapters/12_第12章_困ったときは.md)
|
||||
- [13_付録](chapters/13_付録.md)
|
||||
- [14_おわりに](chapters/14_おわりに.md)
|
||||
|
||||
全章まとめ:[Workflow_Studio_Manual_v0.8.3.md](Workflow_Studio_Manual_v0.8.3.md)
|
||||
|
||||
English edition: [en/README.md](en/README.md)
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -0,0 +1,171 @@
|
||||
# はじめに
|
||||
|
||||
「ComfyUIを入れてみたけれど、ノード画面を見て手が止まってしまった」
|
||||
「ネットで拾ったワークフローが増えすぎて、どれが何だか分からない」
|
||||
「前にうまくいった画像の設定を、もう一度使いたいのに見つからない」
|
||||
|
||||
本書は、そんな方のための **ComfyUI-Workflow-Studio**(以下、Workflow Studio)の入門書です。
|
||||
|
||||
---
|
||||
|
||||
## ComfyUIは、なぜ難しいのか
|
||||
|
||||
ComfyUIは、いま最も自由度の高い画像生成AIソフトの1つです。
|
||||
新しいモデルや技術が発表されると、真っ先に使えるようになるのは、たいていComfyUIです。
|
||||
それなのに、多くの人が最初の一歩でつまずいてしまいます。その理由は、ComfyUIが **普通のアプリケーションとはまったく違う考え方** で作られているからです。
|
||||
|
||||
### 普通のアプリケーションとの違い
|
||||
| | 普通のアプリケーション | ComfyUI |
|
||||
| --- | --- | --- |
|
||||
| 画面 | 開発者が設計した、決まった画面 | ノード(箱)を線でつないで、自分で組み立てる |
|
||||
| 使い方 | ボタンやメニューを押せば動く | どのノードを、どうつなぐかを知らないと動かない |
|
||||
| 機能の追加 | アップデートを待つ | 誰かが作ったカスタムノードを、自分で追加する |
|
||||
| 設定の場所 | 設定画面にまとまっている | ワークフローの中の、あちこちのノードに散らばっている |
|
||||
|
||||
普通のアプリケーションは、言わば「完成品の家電」です。電源を入れれば、決められた使い方ですぐに使えます。
|
||||
一方のComfyUIは、「部品から組み立てる工作キット」です。
|
||||
組み立て方さえ分かれば、どんなものでも作れますが、組み立て方を知らなければ何も作れません。
|
||||
|
||||
### 自由さと、その副作用
|
||||
ComfyUIの最大の魅力は、この **カスタマイズの自由さ** です。
|
||||
世界中の開発者が作ったカスタムノードを組み合わせて、自分だけの処理の流れ(ワークフロー)を作れます。
|
||||
ネットには、上級者が作った高度なワークフローがたくさん公開されていて、ダウンロードすればすぐに試せます。
|
||||
|
||||
しかし、自由さには副作用もあります。
|
||||
|
||||
- **ワークフローが増えすぎる** - 試したいものを次々ダウンロードするうちに、どれが何だか分からなくなる
|
||||
- **どこを触ればいいか分からない** - 他人が作った大きなワークフローは、プロンプトを変えたいだけでも、該当するノードを探すのに苦労する
|
||||
- **素材がバラバラになる** - モデル・LoRA・プロンプト・生成画像が、それぞれ別の場所に散らばり、管理する道具がない
|
||||
- **試行錯誤に手間がかかる** - 条件を少しずつ変えて比べたいだけでも、1回ごとにノードの値を書き換える必要がある
|
||||
|
||||
ComfyUIは「組み立てる」ための道具としては非常に優秀ですが、
|
||||
「整理する」「繰り返し使う」「手軽に試す」ための道具は、ほとんど用意されていません。
|
||||
この空白を埋めるために作られたのが、Workflow Studioです。
|
||||
|
||||
---
|
||||
|
||||
## Workflow Studioの特色
|
||||
|
||||
### 1. なぜ専用画面(SPA)なのか - 「組み立てる」と「使う」を分ける
|
||||
Workflow Studioは、ComfyUIの上部メニューの **W** ボタンから開く、**独立した専用画面**(SPA:シングルページアプリケーション)です。
|
||||
|
||||
ワークフローを組み立てる作業は、ComfyUIのノード画面で試行錯誤するのがいちばんです。
|
||||
Workflow Studioは、そうして作り上げたワークフローを **素早く活用する** ための画面として生まれました。
|
||||
|
||||
そのため、Workflow Studioはワークフローを **入力・処理・出力** の3つに分けて考え、次のように設計されています。
|
||||
|
||||
| 段階 | 設計の考え方 |
|
||||
| --- | --- |
|
||||
| 入力 | プロンプトや画像を入れやすくする |
|
||||
| 処理 | 値の変更は、最小限の操作で済むようにする |
|
||||
| 出力 | 生成されたデータを管理しやすくする |
|
||||
|
||||
設計の根底には、製造現場などで使われる **5S(整理・整頓・清掃・清潔・しつけ)** の考え方があります。
|
||||
必要なものを、必要なときに、すぐ取り出して使える状態を保つことを目指しています。
|
||||
|
||||
そして、ComfyUIのノード画面とWorkflow Studioの2つの画面をつなぐのが、ノード画面の横に開く **WS Library** です。
|
||||
補助機能とあわせて、2つの画面を行き来する作業をスムーズにします。
|
||||
|
||||
### 2. 管理 - 散らばった素材を1か所に
|
||||
| 管理できるもの | できること |
|
||||
| --- | --- |
|
||||
| ワークフロー | サムネイル付きの一覧、バッジ・グループで分類、検索、生成UIで動くかの事前チェック |
|
||||
| モデル・LoRA | 種類ごとの一覧、Civitaiからの情報(トリガーワード・サンプル画像)の自動取得 |
|
||||
| プロンプト | プリセットとして保存・分類、ワイルドカード、スタイル |
|
||||
| 生成画像・音声 | フォルダごとの閲覧、プロンプトや「意味」での検索、埋め込まれた設定の読み取りと再現(音声ファイルにも対応) |
|
||||
|
||||
### 3. 効率化 - ノードを触らずに、すばやく試す
|
||||
- **生成UIタブ** - ワークフローの中から、プロンプト・モデル・サイズなど、よく変える項目だけを自動で取り出し、入力フォームにします。他人が作った大きなワークフローでも、ノードを探さずに使えます
|
||||
- **バッチ生成** - 「手持ちのモデルを全部試す」「プロンプトを順番に試す」「サンプラーを比べる」といった試行錯誤を、まとめて自動で実行します
|
||||
- **Feeder・Lab** - たくさんの画像を順番に処理したり、複数の条件を段階的に切り替えたりする、さらに進んだ自動化もできます
|
||||
|
||||
### 4. 補助機能 - 生成の前後を手助けする
|
||||
- **画像編集(Image Edit)** - レイヤー付きの簡易編集、マスクを使った部分的な描き直し(インペイント)
|
||||
- **ローカルAI連携** - 日本語からのプロンプト翻訳、画像からのプロンプト・タグ作成
|
||||
- **Tagger・Video** - 画像からのタグ自動生成、動画の生成と簡単な編集
|
||||
|
||||
---
|
||||
|
||||
## インストールして損のないカスタムノード
|
||||
|
||||
Workflow Studioは、次の理由から、ComfyUIを使うすべての人に **「とりあえず入れておいて損はない」** カスタムノードだと言えます。
|
||||
|
||||
- **無料で、ComfyUI Managerからすぐに入れられる**
|
||||
- **基本機能に、追加の準備がいらない** - 必要なものはComfyUIに最初から含まれています。AIや画像編集などの追加機能は、使いたくなったときに準備すれば十分です
|
||||
- **今の使い方を変えなくていい** - ワークフローはComfyUIの保存フォルダをそのまま使います。ノード画面での作業も、これまでどおりできます
|
||||
- **使った分だけ便利になる** - ワークフローを一覧で眺めるだけ、生成画像の設定を確かめるだけ、といった使い方から始めて、慣れてきたら生成UIやバッチ生成へと、少しずつ活用の幅を広げられます
|
||||
|
||||
ComfyUIの「自由さ」はそのままに、「分かりやすさ」と「手軽さ」を足してくれる - それがWorkflow Studioです。
|
||||
|
||||
## この本で分かること
|
||||
|
||||
- Workflow Studioのインストールと、基本的な画面の見方
|
||||
- 手持ちのワークフローを、サムネイル付きで整理する方法
|
||||
- ノード画面を触らずに、はじめての1枚を生成する方法
|
||||
- モデル・LoRA・プロンプトを管理して、うまくいった設定を再利用する方法
|
||||
- 生成した画像から、使った設定を読み取って再現する方法
|
||||
- ローカルAIを使った、プロンプトの翻訳や画像の読み取り
|
||||
- よくあるトラブルとその対処法
|
||||
|
||||
## この本で扱わないこと
|
||||
|
||||
- ComfyUI本体のインストール方法
|
||||
(ComfyUIをすでに入れて、起動できる状態から説明を始めます)
|
||||
- ノードを一から組み立てて、ワークフローを自作する方法
|
||||
- 画像生成AIのしくみや、モデルの学習(LoRAの作り方など)の詳しい解説
|
||||
|
||||
---
|
||||
|
||||
## 対象読者
|
||||
|
||||
- ComfyUIを入れたばかりの方、これから本格的に使いたい方
|
||||
- ノード画面が苦手で、もっと手軽に画像を生成したい方
|
||||
- ワークフローやモデル、プロンプトが増えて、整理に困っている方
|
||||
|
||||
パソコンの基本的な操作(ファイルのコピー、フォルダを開く、ブラウザを使う)ができれば、読み進められるように書いています。
|
||||
|
||||
---
|
||||
|
||||
## 本書の対象バージョンと環境
|
||||
|
||||
- **Workflow Studio**:v0.8.3
|
||||
- **ComfyUI**:本書執筆時点の最新版
|
||||
- **OS**:Windows(画面の例はWindowsのものです)
|
||||
|
||||
Workflow Studioは活発に開発が続けられているため、
|
||||
バージョンによっては、画面の見た目やボタンの位置が本書と異なる場合があります。
|
||||
大きく変わった機能は、Workflow Studioの **ヘルプ** タブや、GitHubのリリースノートも確認してください。
|
||||
|
||||
---
|
||||
|
||||
## 本書の表記ルール
|
||||
|
||||
| 表記 | 意味 |
|
||||
| --- | --- |
|
||||
| **太字** | 画面に表示されるボタン名・項目名 |
|
||||
| 「生成UI(GenerateUI)」 | 日本語表示の名前(英語表示の名前) |
|
||||
| `ComfyUI/models/` | フォルダやファイルの場所。環境による読み替えは第2章 2-6 を参照 |
|
||||
| `Ctrl+Z` | キーボードの操作。「+」は同時に押すことを表します |
|
||||
|
||||
> **ポイント**
|
||||
> 知っておくと便利な情報です。
|
||||
|
||||
> **注意**
|
||||
> 間違えるとデータが消えたり、うまく動かなかったりする、気をつけてほしい情報です。
|
||||
|
||||
### 画面の言語について
|
||||
Workflow Studioは英語・日本語・中国語に対応しています。本書では、**日本語表示** の画面で説明します。
|
||||
ただし、生成UIなど一部の画面は、日本語表示にしても英語のまま表示されるボタンや項目があります。
|
||||
その場合は、英語の表示名をそのまま使って説明しています。
|
||||
|
||||
---
|
||||
|
||||
## 本書の読み進め方
|
||||
|
||||
はじめての方は、**第1章から第5章まで** を順番に読み、実際に手を動かしてみてください。
|
||||
第5章で「はじめての1枚」が生成できれば、Workflow Studioの基本は身についています。
|
||||
|
||||
第6章以降は、必要になったところから読んでもかまいません。
|
||||
困ったときは、第12章のトラブルシューティングと、付録の用語集を活用してください。
|
||||
|
||||
それでは、Workflow Studioで、もっと手軽に、もっと楽しく画像生成を始めましょう。
|
||||
@@ -0,0 +1,148 @@
|
||||
# 第1章 ComfyUIとWorkflow Studioの基礎知識
|
||||
|
||||
この章では、操作を始める前に知っておきたい考え方と言葉を整理します。
|
||||
パソコンを触りながら読む必要はありません。通勤中やすきま時間に、気軽に読み進めてください。
|
||||
|
||||
---
|
||||
|
||||
## 1-1 ComfyUIってなに?
|
||||
|
||||
ComfyUI(コンフィーユーアイ)は、画像生成AIを自分のパソコンで動かすための無料ソフトです。
|
||||
Stable Diffusion や FLUX など、さまざまな画像生成AIのモデルに対応しています。
|
||||
|
||||
ComfyUIのいちばんの特徴は、**処理の流れを「箱」と「線」でつないで組み立てる**ことです。
|
||||
|
||||
「モデルを読み込む箱」→「プロンプトを入れる箱」→「画像を作る箱」→「保存する箱」……
|
||||
というように、箱どうしを線でつなぐと、その順番で処理が行われます。
|
||||
|
||||
この方式には、大きなメリットがあります。
|
||||
|
||||
- 処理の中身がすべて見えるので、細かく調整できる
|
||||
- 新しい技術が出ても、箱を追加するだけで試せる
|
||||
- 組み立てた流れを保存して、何度でも使い回せる
|
||||
|
||||
一方で、はじめて触る人にとっては「どこを触ればいいのか分からない」画面でもあります。
|
||||
この本で紹介する **Workflow Studio** は、まさにその「分かりにくさ」をやわらげるための道具です。
|
||||
|
||||
---
|
||||
|
||||
## 1-2 覚えておきたい5つの言葉
|
||||
|
||||
ComfyUIを使ううえで、最低限知っておきたい言葉は次の5つです。
|
||||
|
||||
### ① ノード(Node)
|
||||
画面上に並ぶ「箱」のことです。
|
||||
1つのノードは1つの仕事を受け持ちます。たとえば「モデルを読み込む」「画像を保存する」などです。
|
||||
ノードには入口(入力)と出口(出力)があり、線でつないでデータを受け渡します。
|
||||
|
||||
### ② ワークフロー(Workflow)
|
||||
ノードを線でつないだ「処理の流れ全体」のことです。
|
||||
料理にたとえると、ノードが「切る」「炒める」などの作業で、ワークフローは「レシピ」にあたります。
|
||||
ワークフローはJSON(ジェイソン)という形式のファイルで保存できます。
|
||||
|
||||
> **ポイント**
|
||||
> ComfyUIで作った画像には、多くの場合ワークフローの情報が埋め込まれています。
|
||||
> その画像をComfyUIの画面にドラッグすると、同じワークフローを呼び出せます。
|
||||
|
||||
### ③ モデル(Model)
|
||||
画像を作る「AIの頭脳」にあたるファイルです。数GB〜数十GBと大きいのが一般的です。
|
||||
代表的なものに次の種類があります(詳しくは第6章で説明します)。
|
||||
|
||||
| 種類 | ひとことで言うと |
|
||||
| --- | --- |
|
||||
| Checkpoint(チェックポイント) | 画像生成の本体となるモデル |
|
||||
| LoRA(ローラ) | 絵柄やキャラクターを追加で覚えさせる小さな追加モデル |
|
||||
| VAE | 画像の色合いや細部の仕上げを担当するモデル |
|
||||
|
||||
### ④ プロンプト(Prompt)
|
||||
AIに「どんな画像を作ってほしいか」を伝える文章です。いわゆる「呪文」です。
|
||||
描いてほしいものを書く **ポジティブプロンプト** と、
|
||||
描いてほしくないものを書く **ネガティブプロンプト** の2種類があります。
|
||||
|
||||
### ⑤ キュー(Queue)
|
||||
「生成の予約リスト」のことです。
|
||||
ComfyUIでは、生成ボタンを押すとまずキューに予約が入り、順番に処理されます。
|
||||
何枚分も予約しておけば、席を外している間にまとめて生成してくれます。
|
||||
|
||||
---
|
||||
|
||||
## 1-3 ComfyUIで初心者がつまずくところ
|
||||
|
||||
ComfyUIを入れてみたものの、こんなところで手が止まっていませんか。
|
||||
|
||||
1. **ワークフローが増えて、どれが何だか分からない**
|
||||
ネットで拾ったワークフローを保存していくうちに、ファイル名だけでは見分けがつかなくなります。
|
||||
|
||||
2. **毎回ノード画面で値を探すのが大変**
|
||||
プロンプトやシード値を変えたいだけなのに、大きなワークフローの中から該当するノードを探す必要があります。
|
||||
|
||||
3. **モデルやプロンプトの管理がバラバラ**
|
||||
どのモデルをどこに置いたか、前にうまくいったプロンプトは何だったか……が分からなくなりがちです。
|
||||
|
||||
4. **前に作った画像の設定を再現できない**
|
||||
「あの画像、どの設定で作ったっけ?」となっても、調べ方が分からないことがあります。
|
||||
|
||||
どれも、ComfyUIの機能が足りないというより、**「整理」と「入口」が足りない**ことが原因です。
|
||||
|
||||
---
|
||||
|
||||
## 1-4 Workflow Studioでできること
|
||||
|
||||
Workflow Studioは、ComfyUIに追加して使う **拡張機能(カスタムノード)** です。
|
||||
ComfyUIの中に「管理と生成のための専用画面」を追加してくれます。
|
||||
|
||||
先ほどの4つのつまずきに対して、Workflow Studioは次のように応えます。
|
||||
|
||||
| つまずき | Workflow Studioの解決策 | 本書の章 |
|
||||
| --- | --- | --- |
|
||||
| ワークフローが見分けられない | サムネイル付きの一覧、バッジ・グループ分け、検索 | 第4章 |
|
||||
| ノード画面で値を探すのが大変 | 「生成UI」タブで、必要な項目だけをフォームとして表示 | 第5章 |
|
||||
| モデル・プロンプトがバラバラ | モデルタブ・プロンプトタブでまとめて管理 | 第6・7章 |
|
||||
| 設定を再現できない | ギャラリーで画像のメタデータを確認し、キャンバスへ送る | 第8章 |
|
||||
|
||||
さらに、ComfyUIのノード画面の横に **WS Library** というサイドパネルが追加され、
|
||||
モデルやプロンプトをドラッグ&ドロップでノード画面に置けるようになります(第9章)。
|
||||
|
||||
ローカルで動くAI(OllamaやLM Studioなど)を用意すれば、
|
||||
プロンプトの翻訳や、画像からのタグ生成といったAI補助も使えます(第10章)。
|
||||
|
||||
> **ポイント**
|
||||
> Workflow Studioは、ComfyUIの代わりになるソフトではありません。
|
||||
> 画像を作るのはあくまでComfyUIで、Workflow Studioはその「操作パネル」と「整理棚」の役割です。
|
||||
> そのため、ComfyUIが起動していないと使えません。
|
||||
|
||||
### 画面は日本語で使えます
|
||||
Workflow Studioは英語・日本語・中国語に対応しています。
|
||||
本書では日本語表示の画面で説明し、必要に応じて英語表示の名前を( )で添えます。
|
||||
|
||||
例:「生成UI(GenerateUI)」タブ、「ワークフロー(Workflow)」タブ
|
||||
|
||||
---
|
||||
|
||||
## 1-5 本書の進め方
|
||||
|
||||
本書は、次の順番で読み進めることを想定しています。
|
||||
|
||||
1. **準備する**(第2〜3章)
|
||||
インストールして、画面の見方を覚えます。
|
||||
|
||||
2. **整理する**(第4章)
|
||||
手持ちのワークフローを一覧で見られるようにします。
|
||||
|
||||
3. **作る**(第5章)
|
||||
ノード画面を触らずに、はじめての1枚を生成します。
|
||||
ここまで読めば、Workflow Studioの基本は使えるようになります。
|
||||
|
||||
4. **貯める・見返す**(第6〜8章)
|
||||
モデル・プロンプト・生成画像を管理し、うまくいった設定を再利用します。
|
||||
|
||||
5. **広げる**(第9〜11章)
|
||||
サイドパネルやAI補助など、便利な機能を必要に応じて取り入れます。
|
||||
|
||||
困ったときは、第12章のトラブルシューティングと付録の用語集を見てください。
|
||||
|
||||
> **この章のまとめ**
|
||||
> - ComfyUIは、ノード(箱)をつないだワークフローで画像を作るソフト
|
||||
> - 覚える言葉は「ノード」「ワークフロー」「モデル」「プロンプト」「キュー」の5つ
|
||||
> - Workflow Studioは、ComfyUIに「整理棚」と「かんたん操作パネル」を追加する拡張機能
|
||||
> - まずは第5章の「はじめての1枚」を目標にしよう
|
||||
@@ -0,0 +1,253 @@
|
||||
# 第2章 インストールと起動
|
||||
|
||||
この章では、Workflow StudioをComfyUIに追加して、はじめて画面を開くところまで進めます。
|
||||
ComfyUI本体はすでにインストール済みで、起動できる状態であることを前提にしています。
|
||||
|
||||
---
|
||||
|
||||
## 2-1 動作に必要なもの
|
||||
|
||||
### 必須
|
||||
| 必要なもの | 説明 |
|
||||
| --- | --- |
|
||||
| ComfyUI | 最近のバージョンであればOK。上部メニューにボタンを並べる機能を使うため、新しめのバージョン(フロントエンド v1.33.9 以降)がおすすめです |
|
||||
| Python 3.10 以上 | ComfyUIに同梱されているものでかまいません |
|
||||
| Webブラウザ | Chrome や Edge など、ComfyUIの画面を開いているブラウザ |
|
||||
|
||||
Workflow Studioの基本機能は、ComfyUIが動いていれば追加の準備なしで使えます。
|
||||
|
||||
### あとから必要に応じて
|
||||
次のものは、特定の機能を使うときだけ必要です。最初は気にしなくてかまいません。
|
||||
|
||||
- **Ollama / LM Studio など** - プロンプトの翻訳やAIチャットなどのAI補助機能(第10章)
|
||||
- **Eagle** - 生成画像を画像管理ソフトEagleに自動保存する機能(第8章)
|
||||
- **追加のPythonパッケージ** - Tagger(画像からのタグ生成)やPSD書き出しなど(第11章)
|
||||
|
||||
> **ポイント**
|
||||
> 「全部そろえないと使えない」わけではありません。
|
||||
> まずは本体だけ入れて、使いたい機能が出てきたときに追加しましょう。
|
||||
|
||||
---
|
||||
|
||||
## 2-2 ComfyUI Managerでインストールする(おすすめ)
|
||||
|
||||
**ComfyUI Manager** は、カスタムノード(拡張機能)を画面上から検索・インストールできる管理ツールです。
|
||||
最近のComfyUIには最初から入っていることが多く、いちばん手軽な方法です。
|
||||
|
||||
1. ComfyUIを起動し、ブラウザで画面を開きます。
|
||||
2. 上部メニューの **「Manager」** ボタンをクリックします。
|
||||
|
||||
3. **「Custom Nodes Manager」** をクリックします。
|
||||
4. 検索欄に **`Workflow Studio`** と入力します。
|
||||
5. 一覧に表示された **ComfyUI-Workflow-Studio** の **「Install」** をクリックします。
|
||||
|
||||
6. インストールが終わったら、画面の案内に従って **ComfyUIを再起動** します。
|
||||
|
||||
> **注意**
|
||||
> ComfyUIは、起動したときに一度だけ拡張機能を読み込みます。
|
||||
> インストール後は必ずComfyUIを再起動してください。ブラウザの再読み込みだけでは反映されません。
|
||||
|
||||
---
|
||||
|
||||
## 2-3 手動でインストールする(git clone)
|
||||
|
||||
ComfyUI Managerが使えない場合や、Gitに慣れている方は、手動でもインストールできます。
|
||||
コマンドを入力する画面(Windowsなら「コマンドプロンプト」や「ターミナル」)を使います。
|
||||
|
||||
1. ComfyUIのフォルダの中にある **`custom_nodes`** フォルダに移動します。
|
||||
|
||||
```
|
||||
cd ComfyUI/custom_nodes
|
||||
```
|
||||
|
||||
2. 次のコマンドを入力して、Workflow Studioをダウンロードします。
|
||||
|
||||
```
|
||||
git clone https://github.com/ketle-man/ComfyUI-Workflow-Studio.git
|
||||
```
|
||||
|
||||
3. `custom_nodes` の中に **`ComfyUI-Workflow-Studio`** フォルダができていればOKです。
|
||||
4. ComfyUIを再起動します。
|
||||
|
||||
> **ポイント**
|
||||
> `git` コマンドが使えない場合は、Git(Git for Windowsなど)を先にインストールする必要があります。
|
||||
> 不安な方は、2-2のComfyUI Managerを使う方法がおすすめです。
|
||||
|
||||
---
|
||||
|
||||
## 2-4 起動する
|
||||
|
||||
### Wボタンから開く
|
||||
ComfyUIを再起動すると、画面上部のメニューに **「W」** のボタンが追加されています。
|
||||
これがWorkflow Studioを開くボタンです。
|
||||
|
||||
- **クリック** - 新しいタブでWorkflow Studioが開きます。
|
||||
- **Shiftキーを押しながらクリック** - 新しいウィンドウで開きます。ComfyUIの画面と並べて使いたいときに便利です。
|
||||
|
||||
Wボタンの近くには、**カメラのボタン** も追加されています。
|
||||
これは、ワークフローの画面をサムネイルとして保存するためのボタンです(第4章で使います)。
|
||||
|
||||
### アドレスとポート番号のしくみ
|
||||
Wボタンを押すと、ブラウザのアドレス欄にWorkflow Studioのアドレスが表示されます。
|
||||
このアドレスの見方を知っておくと、ブックマークから直接開いたり、トラブルのときに原因を探したりできます。
|
||||
|
||||
アドレスは、次の3つの部分でできています。
|
||||
|
||||
| 部分 | 例 | 意味 |
|
||||
| --- | --- | --- |
|
||||
| ホスト | `127.0.0.1` | どのパソコンにつなぐか。`127.0.0.1`(または `localhost`)は「自分のパソコン」を表す特別な番号です |
|
||||
| ポート番号 | `8188` | そのパソコンの中の、どのソフトにつなぐか |
|
||||
| パス | `/wfm` | そのソフトの中の、どのページを開くか |
|
||||
|
||||
この3つを「`ホスト:ポート番号/パス`」の形でつなげたものが、Workflow Studioのアドレスになります。
|
||||
|
||||
#### ポート番号とは
|
||||
1台のパソコンの中では、たくさんのソフトが同時に通信しています。
|
||||
そこで、どのソフトあての通信なのかを区別するために使われるのが **ポート番号** です。
|
||||
|
||||
マンションにたとえると、ホスト(`127.0.0.1`)が「建物の住所」、ポート番号が「部屋番号」にあたります。
|
||||
同じ建物でも、部屋番号を間違えると目的の相手には届きません。
|
||||
|
||||
ComfyUIは、起動したときに決められたポート番号で待ち受けています。
|
||||
よく使われる番号は次のとおりです。
|
||||
|
||||
| ComfyUIの種類・起動方法 | よく使われるポート番号 |
|
||||
| --- | --- |
|
||||
| ポータブル版・手動インストール版(標準設定) | 8188 |
|
||||
| ComfyUI Desktop(デスクトップアプリ版) | 8000 |
|
||||
| 起動オプション `--port` を指定した場合 | 指定した番号 |
|
||||
|
||||
Stability Matrixなどのランチャーを使っている場合も、ランチャー側の設定で番号が変わることがあります。
|
||||
|
||||
#### 自分のポート番号を確かめる
|
||||
いちばん確実なのは、**いまComfyUIを開いているブラウザのアドレス欄を見る** ことです。
|
||||
`127.0.0.1:` や `localhost:` のあとに続く数字が、ポート番号です。
|
||||
|
||||
ComfyUIを起動したときの黒い画面(コンソール)にも、
|
||||
`To see the GUI go to: http://127.0.0.1:〇〇〇〇` のように表示されます。
|
||||
|
||||
#### アドレスを直接入力して開く
|
||||
ポート番号が分かれば、Wボタンを使わずにWorkflow Studioを開けます。
|
||||
ComfyUIのアドレスの末尾に **`/wfm`** を付けるだけです。
|
||||
|
||||
- ComfyUIが `127.0.0.1:8188` で開いている → Workflow Studioは `127.0.0.1:8188/wfm`
|
||||
- ComfyUIが `127.0.0.1:8000` で開いている → Workflow Studioは `127.0.0.1:8000/wfm`
|
||||
|
||||
よく使う方は、このアドレスをブックマークしておくと便利です。
|
||||
|
||||
> **注意**
|
||||
> ブックマークから開いた場合、ワークフローをComfyUIのキャンバスへ直接送る「Send to Canvas」が使えません。
|
||||
> 代わりに、ComfyUI側のサイドパネル(WS Library)にそのワークフローが表示されるので、自分でキャンバスへドラッグします(第4章・第9章)。
|
||||
> ComfyUIの画面と行き来しながら使うときは、Wボタンから開くのがおすすめです。
|
||||
|
||||
> **ポイント**
|
||||
> Workflow StudioはComfyUIの一部として動いているため、ComfyUIと同じポート番号を使います。
|
||||
> Workflow Studio専用のポート番号はありません。
|
||||
|
||||
---
|
||||
|
||||
## 2-5 表示言語を日本語にする
|
||||
|
||||
Workflow Studioは、はじめは **英語** で表示されます。次の手順で日本語に切り替えましょう。
|
||||
|
||||
1. 上部のタブから **「Settings」** を開きます。
|
||||
2. **「UI Language」** の欄で **「日本語」** を選びます。
|
||||
|
||||
3. 「言語を変更しました。再読み込みします...」という表示のあと、ページが自動で再読み込みされ、日本語表示に切り替わります。
|
||||
|
||||
日本語に切り替えると、タブの名前は次のように変わります(一部は英語のままです)。
|
||||
|
||||
| 英語表示 | 日本語表示 |
|
||||
| --- | --- |
|
||||
| Workflow | ワークフロー |
|
||||
| GenerateUI | 生成UI |
|
||||
| Gallery | ギャラリー |
|
||||
| Prompt | プロンプト |
|
||||
| Models | モデル |
|
||||
| Nodes | ノード |
|
||||
| Settings | 設定 |
|
||||
| Help | ヘルプ |
|
||||
| AI TOOL / Tagger / Image Edit / Video | (英語のまま) |
|
||||
|
||||
> **ポイント**
|
||||
> 言語の設定は、使っている **ブラウザごと** に保存されます。
|
||||
> 別のブラウザや別のパソコンから開いた場合は、もう一度設定してください。
|
||||
|
||||
同じ場所にある **「要約言語」** は、AIでワークフローの説明文を作るときの言語です(第10章)。今は変更しなくてかまいません。
|
||||
|
||||
---
|
||||
|
||||
## 2-6 環境ごとのフォルダの場所
|
||||
|
||||
ComfyUIには、いくつかの入れ方があります。入れ方によって、フォルダの場所が少しずつ違います。
|
||||
本書では、フォルダの場所を **`ComfyUI/` から始まる形** で書いています。
|
||||
お使いの環境に合わせて、下の表の「`ComfyUI/` にあたる場所」に読み替えてください。
|
||||
|
||||
### 本書の書き方と、各環境での場所
|
||||
| 本書の表記 | 中身 | ポータブル版 | ComfyUI Desktop | Stability Matrix |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| `ComfyUI/` | ComfyUIの本体フォルダ | `ComfyUI_windows_portable/ComfyUI/` | インストール時に選んだフォルダ(標準では「ドキュメント」内の `ComfyUI`) | `(データフォルダ)/Packages/ComfyUI/` |
|
||||
| `ComfyUI/custom_nodes/` | カスタムノード(Workflow Studioもここ) | `ComfyUI/custom_nodes/` | `ComfyUI/custom_nodes/` | `ComfyUI/custom_nodes/` |
|
||||
| `ComfyUI/models/` | モデル | `ComfyUI/models/` | `ComfyUI/models/` | `(データフォルダ)/Models/`(全パッケージで共有) |
|
||||
| `ComfyUI/output/` | 生成した画像 | `ComfyUI/output/` | `ComfyUI/output/` | `(データフォルダ)/Images/` |
|
||||
| `ComfyUI/user/default/workflows/` | 保存したワークフロー | `ComfyUI/user/default/workflows/` | `ComfyUI/user/default/workflows/` | `ComfyUI/user/default/workflows/` |
|
||||
| ComfyUIのPython | 追加パッケージのインストール先 | `ComfyUI_windows_portable/python_embeded/python.exe` | `ComfyUI/.venv/Scripts/python.exe` | `ComfyUI/venv/Scripts/python.exe` |
|
||||
| 標準のポート番号 | 2-4参照 | 8188 | 8000 | 8188 |
|
||||
|
||||
> **ポイント**
|
||||
> 表の中の `ComfyUI/` は、それぞれの環境の「`ComfyUI/` にあたる場所」を指します。
|
||||
> パスの区切りは、Windowsでは `/` の代わりに `\` で表示されます。
|
||||
|
||||
### ポータブル版
|
||||
ダウンロードしたZIPファイルを展開してできた `ComfyUI_windows_portable` フォルダの中に、すべてが入っています。
|
||||
起動は、フォルダ内の `run_nvidia_gpu.bat` などで行います。
|
||||
**Python** は、ComfyUI専用の `python_embeded` フォルダの中のものを使います(第11章 11-2)。
|
||||
|
||||
### ComfyUI Desktop
|
||||
インストーラーで入れるアプリ版です。最初の起動時に、データを置くフォルダを選びます。
|
||||
フォルダの場所を忘れたときは、アプリのメニューからフォルダを開く項目(「Open Folder」など)を使うと確認できます。
|
||||
標準のポート番号が **8000** なので、アドレスを直接入力するときは注意してください(2-4)。
|
||||
|
||||
### Stability Matrix
|
||||
複数の画像生成ソフトをまとめて管理できるランチャーです。
|
||||
最初に決めた **データフォルダ**(例:`StabilityMatrix/Data/`)の中に、次のように分かれて入っています。
|
||||
|
||||
- **ComfyUI本体** - `Data/Packages/ComfyUI/`
|
||||
- **モデル** - `Data/Models/` の中に、種類ごとのフォルダ(Checkpointは `StableDiffusion`、LoRAは `Lora` など)。ほかのソフトと共有されます
|
||||
- **生成した画像** - `Data/Images/` の中
|
||||
|
||||
> **注意**
|
||||
> Stability Matrixでは、モデルや画像のフォルダが **ComfyUIの本体フォルダの外** にあります。
|
||||
> 本書で「`ComfyUI/models/checkpoints` に置く」と書いてある場合は、Stability Matrixの共有モデルフォルダ(`Data/Models/StableDiffusion` など)に置いてください。
|
||||
> ギャラリーに画像が出てこないときは、設定タブの「ギャラリー Outputフォルダ」が `Data/Images/` の中を指しているか確認しましょう。
|
||||
|
||||
> **ポイント**
|
||||
> フォルダの名前や構成は、各ソフトのバージョンアップで変わることがあります。
|
||||
> 見つからないときは、各ソフトの公式の説明も確認してください。
|
||||
|
||||
---
|
||||
|
||||
## 2-7 うまく起動しないときは
|
||||
|
||||
### Wボタンが表示されない
|
||||
- **ComfyUIを再起動しましたか?** ブラウザの再読み込みだけでは反映されません。
|
||||
- **インストール先は正しいですか?** `ComfyUI/custom_nodes/ComfyUI-Workflow-Studio` にフォルダがあるか確認してください。
|
||||
フォルダの中にさらに同じ名前のフォルダがある(二重になっている)と読み込まれません。
|
||||
- **ComfyUIのバージョンが古くありませんか?** ComfyUI Managerなどから本体を更新してみてください。
|
||||
|
||||
### ページが開かない・「接続できません」と表示される
|
||||
- **ComfyUIは起動していますか?** Workflow StudioはComfyUIの中で動くため、ComfyUIを終了すると開けません。
|
||||
- **ポート番号は合っていますか?** 2-4の方法で、ComfyUIのポート番号を確認してください。
|
||||
たとえばComfyUI Desktopを使っているのに `8188` を入力していると、つながりません。
|
||||
|
||||
### 起動時のコンソールにエラーが出る
|
||||
ComfyUIを起動したときの黒い画面に、`ComfyUI-Workflow-Studio` に関するエラーが表示されていないか確認します。
|
||||
エラーの内容をメモしておくと、第12章のトラブルシューティングや、GitHubで質問するときに役立ちます。
|
||||
|
||||
> **この章のまとめ**
|
||||
> - インストールはComfyUI Managerで「Workflow Studio」を検索するのがかんたん
|
||||
> - インストール後は必ずComfyUIを再起動する
|
||||
> - 上部メニューの「W」ボタンで開く(Shift+クリックで別ウィンドウ)
|
||||
> - アドレスは「ホスト:ポート番号/wfm」。ポート番号はComfyUIを開いているアドレス欄で確認できる
|
||||
> - 設定タブの「UI Language」で日本語に切り替える
|
||||
> - フォルダの場所は環境(ポータブル版・Desktop・Stability Matrix)によって違う。本書の `ComfyUI/` は読み替える
|
||||
@@ -0,0 +1,145 @@
|
||||
# 第3章 画面の見方
|
||||
|
||||
Workflow Studioにはたくさんのタブがありますが、最初から全部を覚える必要はありません。
|
||||
この章では、それぞれのタブが「何をする場所か」をざっくりつかみ、
|
||||
ComfyUI側に追加されるボタンとサイドパネルの役割を確認します。
|
||||
|
||||
---
|
||||
|
||||
## 3-1 タブの一覧と役割
|
||||
|
||||
Workflow Studioを開くと、画面の上部にタブが横一列に並んでいます。
|
||||
|
||||
左から順に、次のタブがあります。
|
||||
「よく使う」に★が付いたタブから覚えていけば十分です。
|
||||
|
||||
| タブ(日本語表示) | 英語表示 | 何をする場所か | よく使う | 本書の章 |
|
||||
| --- | --- | --- | :---: | --- |
|
||||
| ワークフロー | Workflow | 保存したワークフローの一覧・整理 | ★ | 第4章 |
|
||||
| ノード | Nodes | ノードの一覧・お気に入り登録 | | 第11章 |
|
||||
| モデル | Models | Checkpoint・LoRAなどモデルの一覧・整理 | ★ | 第6章 |
|
||||
| 生成UI | GenerateUI | ノード画面を触らずに画像を生成 | ★ | 第5章 |
|
||||
| プロンプト | Prompt | プロンプトの保存・分類・AI補助 | ★ | 第7章 |
|
||||
| ギャラリー | Gallery | 生成した画像の閲覧・設定の確認 | ★ | 第8章 |
|
||||
| Image Edit | Image Edit | 画像の簡易編集・マスク作成 | | 第11章 |
|
||||
| Video | Video | 動画生成・動画編集 | | 第11章 |
|
||||
| Tagger | Tagger | 画像からタグ(プロンプト)を自動生成 | | 第11章 |
|
||||
| 設定 | Settings | 言語・テーマ・フォルダなどの設定 | | 本章・第11章 |
|
||||
| ヘルプ | Help | 機能一覧・ショートカット・トラブル対処 | | 本章 |
|
||||
| AI TOOL | AI TOOL | ローカルAIによる翻訳・チャット・画像解析 | | 第10章 |
|
||||
|
||||
### タブは「整理する」「作る」「補助する」の3グループで考える
|
||||
タブが多くて迷ったときは、次の3つのグループに分けて考えると分かりやすくなります。
|
||||
|
||||
- **整理する** - ワークフロー/ノード/モデル/プロンプト/ギャラリー
|
||||
手持ちの素材を一覧にして、探しやすくするタブです。
|
||||
- **作る** - 生成UI/Image Edit/Video
|
||||
実際に画像や動画を作ったり、手を加えたりするタブです。
|
||||
- **補助する** - AI TOOL/Tagger/設定/ヘルプ
|
||||
他のタブでの作業を助けたり、全体の設定をしたりするタブです。
|
||||
|
||||
> **ポイント**
|
||||
> 各タブは互いにつながっています。
|
||||
> たとえば、ワークフロータブで選んだワークフローを生成UIに読み込んだり、
|
||||
> プロンプトタブで保存したプロンプトを生成UIで呼び出したりできます。
|
||||
|
||||
### ヘルプタブ
|
||||
困ったときに最初に開きたいのが **ヘルプ** タブです。
|
||||
左側に話題の一覧が並び、クリックすると右側に説明が表示されます。
|
||||
|
||||
- 機能一覧(タブごとの機能の概要)
|
||||
- キーボードショートカット
|
||||
- トラブルシューティング
|
||||
- サポート(GitHubなどへのリンク)
|
||||
|
||||
本書を読みながら「このボタンは何だっけ?」と思ったときにも役立ちます。
|
||||
|
||||
---
|
||||
|
||||
## 3-2 ComfyUI側に追加されるボタン
|
||||
|
||||
Workflow Studioをインストールすると、ComfyUIの画面上部のメニューに **3つのボタン** が追加されます。
|
||||
|
||||
| ボタン | 名前 | 役割 |
|
||||
| --- | --- | --- |
|
||||
| ① W | Workflow Studioを開く | Workflow Studioを新しいタブで開きます。Shift+クリックで新しいウィンドウ(第2章) |
|
||||
| ② カメラ | キャンバススナップショット | いまのノード画面を画像として保存し、ワークフローのサムネイルにします(第4章) |
|
||||
| ③ 四角が並んだアイコン | WS Library | ノード画面の横にサイドパネルを開閉します(3-3) |
|
||||
|
||||
ボタンにマウスを重ねると、英語で説明が表示されます。
|
||||
|
||||
> **ポイント**
|
||||
> Workflow Studio本体(タブが並ぶ画面)と、ComfyUIのノード画面は **別のブラウザタブ** で開きます。
|
||||
> 「整理や生成はWorkflow Studio」「細かい組み立てはComfyUIのノード画面」と使い分け、
|
||||
> 2つの画面を行き来しながら使うのが基本のスタイルです。
|
||||
|
||||
---
|
||||
|
||||
## 3-3 サイドパネル「WS Library」
|
||||
|
||||
③のボタンを押すと、ComfyUIのノード画面の横に **WS Library(Workflow Studio Library)** というパネルが開きます。
|
||||
|
||||
WS Libraryは、**Workflow Studioで整理した素材を、ノード画面ですぐ使うための棚** です。
|
||||
パネルの上部には、1文字のタブが並んでいます(マウスを重ねると正式な名前が表示されます)。
|
||||
|
||||
| タブ | 名前 | できること |
|
||||
| --- | --- | --- |
|
||||
| W | Workflows | ワークフローをドラッグしてキャンバスに読み込む |
|
||||
| N | Nodes | お気に入りのノードやノードセットをキャンバスに置く |
|
||||
| P | Prompts | 保存したプロンプトをキャンバスに置く・コピーする |
|
||||
| M | Models | モデルをドラッグして、読み込み用のノードごとキャンバスに置く |
|
||||
| I | Information | 画像やワークフローのファイルを落として、中身(使ったモデルやプロンプト)を調べる |
|
||||
| A | AI TOOL | 翻訳やチャットなどのAI機能を、ノード画面のまま使う |
|
||||
|
||||
たとえば M タブからモデルをキャンバスへドラッグすると、そのモデルを読み込むノードが自動で配置されます。
|
||||
ノードを一覧から探して置いて、ファイル名を選んで……という手間が省けます。
|
||||
|
||||
詳しい使い方は第9章で説明します。今は「ノード画面の横に、素材の棚を出せる」とだけ覚えておけば大丈夫です。
|
||||
|
||||
---
|
||||
|
||||
## 3-4 テーマと見た目の設定
|
||||
|
||||
Workflow Studioの見た目は、**設定** タブで好みに合わせて変えられます。
|
||||
長時間使う道具なので、目が疲れにくい配色や読みやすい文字サイズにしておくのがおすすめです。
|
||||
|
||||
### テーマ
|
||||
**「テーマ」** の欄から、画面全体の配色を選べます。標準は暗い配色の「Deep Ocean Dark」です。
|
||||
|
||||
| テーマの例 | 雰囲気 |
|
||||
| --- | --- |
|
||||
| Deep Ocean Dark(デフォルト) | 暗めの青。画像が見やすい |
|
||||
| Light Minimalist(クリーン) | 白基調で明るくシンプル |
|
||||
| Pastel Dream(パステル) | やわらかいパステル調 |
|
||||
| Corporate Trust(企業向け) | 落ち着いた白と青 |
|
||||
|
||||
このほか、ポップ調・サイバーパンク・レトロなど、全部で13種類のテーマがあります。
|
||||
|
||||
> **ポイント**
|
||||
> 生成した画像の色を確認するときは、暗めのテーマのほうが色を見分けやすくなります。
|
||||
> 迷ったら、まずはデフォルトのまま使ってみましょう。
|
||||
|
||||
### カスタマイズ
|
||||
**「カスタマイズ」** を開くと、選んだテーマをさらに細かく調整できます。
|
||||
|
||||
- **カラー調整** - 背景・テキスト・アクセントなどの色を個別に変更
|
||||
- **背景パターン** - ストライプやドットなどの模様を背景に追加
|
||||
- **フォント** - 文字の書体を変更(Zen丸ゴシック、BIZ UDPゴシックなど日本語フォントも選べます)
|
||||
|
||||
調整が終わったら **「適用して保存」** を押します。
|
||||
元に戻したいときは **「カスタマイズをリセット」** を押します。
|
||||
|
||||
### 文字サイズ
|
||||
**「文字サイズ」** の欄で、画面全体の文字の大きさを変えられます。
|
||||
文字が小さくて読みにくいと感じたら、ここで大きくしましょう。
|
||||
|
||||
### WS Libraryの見た目
|
||||
WS Library(3-3)の配色は、パネル内の **歯車ボタン**から別に設定できます。
|
||||
ComfyUIの画面の色に合わせて、背景や文字の色を調整できます。
|
||||
|
||||
> **この章のまとめ**
|
||||
> - タブは「整理する」「作る」「補助する」の3グループで考えると分かりやすい
|
||||
> - まずはワークフロー・モデル・生成UI・プロンプト・ギャラリーの5つを覚えれば十分
|
||||
> - ComfyUIの上部には「W」「カメラ」「WS Library」の3つのボタンが追加される
|
||||
> - WS Libraryは、ノード画面の横に出せる素材の棚
|
||||
> - 見た目は設定タブのテーマ・カスタマイズ・文字サイズで調整できる
|
||||
@@ -0,0 +1,305 @@
|
||||
# 第4章 ワークフロータブ - 作ったワークフローを整理する
|
||||
|
||||
ワークフロータブは、Workflow Studioを開いたときに最初に表示される、いわば「玄関」です。
|
||||
この章では、手持ちのワークフローを一覧で見られるようにし、
|
||||
あとから探しやすいように整理する方法を学びます。
|
||||
|
||||
---
|
||||
|
||||
## 4-1 ワークフローが自動で一覧表示されるしくみ
|
||||
|
||||
ワークフロータブを開くと、すでにいくつかのワークフローが並んでいるかもしれません。
|
||||
これは、Workflow StudioがComfyUIのワークフロー保存フォルダを自動で読み込んでいるためです。
|
||||
|
||||
ComfyUIのノード画面で「保存(Save)」したワークフローは、通常、次のフォルダに保存されます。
|
||||
|
||||
```
|
||||
ComfyUI/user/default/workflows/
|
||||
```
|
||||
|
||||
Workflow Studioは、このフォルダの中のワークフローを一覧にして表示します。
|
||||
つまり、**ComfyUIで保存したワークフローは、何もしなくてもワークフロータブに並ぶ** というわけです。
|
||||
|
||||
> **ポイント**
|
||||
> ComfyUIで新しく保存したワークフローが一覧に出てこないときは、
|
||||
> ツールバーの **「更新」** ボタンを押してください。最新の状態に読み込み直します。
|
||||
|
||||
> **ポイント**
|
||||
> 読み込むフォルダは、設定タブの **「ワークフローデータフォルダ」** で変更できます。
|
||||
> 特に理由がなければ、そのままで問題ありません。
|
||||
|
||||
---
|
||||
|
||||
## 4-2 画面の見方と表示の切り替え
|
||||
|
||||
ワークフロータブは、大きく3つの部分に分かれています。
|
||||
|
||||
| 番号 | 場所 | 役割 |
|
||||
| --- | --- | --- |
|
||||
| ① | ツールバー(上部) | 検索・絞り込み・並べ替え・各種ボタン |
|
||||
| ② | 一覧(中央) | ワークフローがカードまたは表で並ぶ |
|
||||
| ③ | サイドパネル(右側) | 選んだワークフローのサムネイルや中身を表示 |
|
||||
|
||||
### サムネイル表示とテーブル表示
|
||||
ツールバーの切り替えボタンで、一覧の表示方法を変えられます。
|
||||
|
||||
- **サムネイル** - 画像付きのカードで並べます。見た目で探したいときに便利です。
|
||||
- **テーブル** - 表形式で並べます。たくさんのワークフローを名前で探したいときに便利です。
|
||||
|
||||
### クリックとダブルクリック
|
||||
一覧のワークフローは、クリックの仕方で動きが変わります。
|
||||
|
||||
| 操作 | 動き |
|
||||
| --- | --- |
|
||||
| クリック | 右側のサイドパネルに内容を表示(ワークフローを「選択」した状態になる) |
|
||||
| ダブルクリック | 詳細画面を開く(バッジ・タグ・メモの編集など。4-4で説明) |
|
||||
|
||||
### サイドパネル
|
||||
ワークフローをクリックすると、右側のサイドパネルに次の3つのタブが表示されます。
|
||||
|
||||
- **サムネイル** - ワークフローの画像を大きく表示
|
||||
- **JSON** - ワークフローの中身(JSONデータ)を色分けして表示。「コピー」ボタンで丸ごとコピーできます
|
||||
- **グループ** - ワークフローをグループに分類(4-4で説明)
|
||||
|
||||
ワークフロー名の下には、**ワークフローの形式**(UI形式/API形式など)と、
|
||||
生成UIで使えるかどうかの **チェック結果** が表示されます(4-7で説明)。
|
||||
|
||||
---
|
||||
|
||||
## 4-3 カメラボタンでサムネイルを撮る
|
||||
|
||||
ComfyUIで保存しただけのワークフローは、サムネイル画像がなく、一覧では見分けにくいことがあります。
|
||||
そこで使うのが、ComfyUIの上部メニューに追加された **カメラボタン**(キャンバススナップショット)です。
|
||||
|
||||
### サムネイルの撮り方
|
||||
1. ComfyUIのノード画面で、サムネイルにしたいワークフローを開きます。
|
||||
2. ワークフロー全体が見やすくなるように、画面の位置や拡大率を調整します。
|
||||
3. 上部メニューの **カメラボタン** をクリックします。
|
||||
|
||||
4. 保存する名前を確認する画面が表示されます。必要に応じて名前を変えて保存します。
|
||||
(最初は、いま開いているワークフローの名前が入っています)
|
||||
5. 「Workflow saved」と表示されれば完了です。
|
||||
|
||||
Workflow Studioのワークフロータブを開く(または「更新」を押す)と、
|
||||
撮影した画像がサムネイルとして付いたワークフローが一覧に表示されます。
|
||||
|
||||
> **ポイント**
|
||||
> カメラボタンで保存した画像(PNG)には、ワークフローの情報も埋め込まれています。
|
||||
> この画像をComfyUIのノード画面にドラッグ&ドロップすると、そのワークフローを読み込めます。
|
||||
> 画像ファイル1つで「見た目」と「中身」の両方を持ち運べるので便利です。
|
||||
|
||||
### あとからサムネイルを変える
|
||||
すでにあるワークフローのサムネイルを差し替えたいときは、
|
||||
ワークフローをダブルクリックして詳細画面を開き、**「サムネイル変更」** を押して画像を選びます。
|
||||
|
||||
---
|
||||
|
||||
## 4-4 お気に入り・バッジ・グループで分類する
|
||||
|
||||
ワークフローが増えてきたら、分類しておくと目的のものをすぐに見つけられます。
|
||||
Workflow Studioには、分類のしかたが3種類あります。
|
||||
|
||||
| 方法 | どんなときに使う? | 例 |
|
||||
| --- | --- | --- |
|
||||
| お気に入り(★) | よく使うものに印を付けたい | 毎日使う基本のワークフロー |
|
||||
| バッジ | 色付きのラベルで、ひと目で種類を分けたい | 「SDXL」「FLUX」「動画」「実験中」 |
|
||||
| グループ | 用途やプロジェクトごとにまとめたい | 「キャラクター制作」「背景素材」 |
|
||||
|
||||
### お気に入り(★)
|
||||
カードの **★** をクリックすると、お気に入りに登録されます。
|
||||
ツールバー上部の **★** ボタンを押すと、お気に入りだけを表示できます(**ALL** で全件表示に戻ります)。
|
||||
|
||||
お気に入りに登録したワークフローは、ComfyUI側のサイドパネル(WS Library)の
|
||||
「★ Favorites」にも表示されます(第9章)。
|
||||
|
||||
### バッジ
|
||||
バッジは、ワークフローに付ける **色付きのラベル** です。
|
||||
1つのワークフローに複数のバッジを付けることもできます。
|
||||
|
||||
**① バッジを作る**
|
||||
1. ツールバーの **「Badge」** ボタンを押します。
|
||||
2. **「バッジ名...」** の欄に名前を入力し、**「追加」** を押します。
|
||||
3. 色の見本をクリックすると、バッジの色を変えられます。
|
||||
|
||||
**② ワークフローにバッジを付ける**
|
||||
1. ワークフローをダブルクリックして、詳細画面を開きます。
|
||||
2. **「バッジ」** の欄で、付けたいバッジにチェックを入れます。
|
||||
3. **「保存」** を押します。
|
||||
|
||||
**③ バッジで絞り込む**
|
||||
バッジを作ると、ツールバー上部の ★・ALL ボタンの横にバッジが並びます。
|
||||
バッジをクリックすると、そのバッジが付いたワークフローだけが表示されます。
|
||||
|
||||
> **ポイント**
|
||||
> バッジの種類と色は、モデルタブ(第6章)と共通です。
|
||||
> 「SDXL」というバッジを作れば、ワークフローにもモデルにも同じ色で付けられます。
|
||||
|
||||
### グループ
|
||||
グループは、ワークフローを **用途ごとにまとめる箱** です。
|
||||
|
||||
1. ワークフローをクリックして選択します。
|
||||
2. 右側のサイドパネルで **「グループ」** タブを開きます。
|
||||
3. **「新規グループ作成」** でグループを作るか、既存のグループを選んで **「グループに追加」** します。
|
||||
|
||||
ツールバーの **「全グループ」** と書かれたプルダウンからグループを選ぶと、そのグループのワークフローだけが表示されます。
|
||||
|
||||
### タグとメモ
|
||||
詳細画面では、ほかにも次の情報を書き込めます。
|
||||
|
||||
- **タグ** - 検索用のキーワード。カンマ(,)で区切って複数入力できます。
|
||||
- **メモ** - 使い方の注意点や、うまくいった設定など、自由なメモ。
|
||||
|
||||
ネットから入手したワークフローに「配布元」や「必要なカスタムノード」をメモしておくと、あとで困りません。
|
||||
|
||||
### 名前の変更と削除
|
||||
- **名前を変える** - 詳細画面の上部にあるワークフロー名をクリックすると、名前を編集できます。
|
||||
- **削除する** - 詳細画面の **「削除」** ボタンを押します。
|
||||
|
||||
> **注意**
|
||||
> 削除すると、ComfyUIのワークフロー保存フォルダにあるファイルそのもの(サムネイル画像も含む)が削除されます。
|
||||
> 大切なワークフローは、削除する前に別の場所へバックアップしておきましょう。
|
||||
|
||||
---
|
||||
|
||||
## 4-5 検索・並べ替え・フィルタ解除
|
||||
|
||||
### 検索
|
||||
ツールバーの **「検索...」** 欄にキーワードを入力すると、名前やタグなどに一致するワークフローだけが表示されます。
|
||||
入力欄の右端の **×** を押すと、検索文字がすぐに消えます。
|
||||
|
||||
### 並べ替え
|
||||
検索欄の横のプルダウンで、並び順を変えられます。
|
||||
|
||||
| 選択肢 | 並び順 |
|
||||
| --- | --- |
|
||||
| Date (Newest) | 新しい順 |
|
||||
| Date (Oldest) | 古い順 |
|
||||
| Name A-Z | 名前の昇順 |
|
||||
| Name Z-A | 名前の降順 |
|
||||
|
||||
選んだ並び順は記憶され、次に開いたときも同じ順番で表示されます。
|
||||
|
||||
### フィルタをまとめて解除
|
||||
検索・グループ・バッジで絞り込んでいるうちに、「なぜか一覧に出てこない」と迷うことがあります。
|
||||
そんなときは、ツールバー右端の **「× クリア」** を押してください。
|
||||
検索文字・グループ・バッジの絞り込みが一度に解除され、すべてのワークフローが表示されます。
|
||||
|
||||
---
|
||||
|
||||
## 4-6 インポートとキャンバスへ送る
|
||||
|
||||
### ワークフローを取り込む(インポート)
|
||||
ネットから入手したワークフローのファイル(`.json` または ワークフロー入りの `.png`)は、
|
||||
次のどちらかの方法でワークフロータブに取り込めます。
|
||||
|
||||
- ツールバーの **「インポート」** ボタンを押して、ファイルを選ぶ(複数選択も可能)
|
||||
- ファイルを、ワークフロータブの一覧部分に **ドラッグ&ドロップ** する
|
||||
|
||||
取り込んだワークフローは、ComfyUIのワークフロー保存フォルダに保存され、一覧に追加されます。
|
||||
|
||||
### 選んだワークフローを使う
|
||||
ワークフローをクリックして選択すると、ツールバーの次の3つのボタンが押せるようになります。
|
||||
|
||||
| ボタン | 動き |
|
||||
| --- | --- |
|
||||
| 生成UIに読み込み | 生成UIタブに読み込み、ノード画面を触らずに生成できる状態にする(第5章) |
|
||||
| Videoに読み込み | 動画生成用のワークフローをVideoタブに読み込む(第11章) |
|
||||
| キャンバスへ送る | ComfyUIのノード画面にワークフローを読み込む |
|
||||
|
||||
> **ポイント**
|
||||
> ボタンが押せない(灰色の)ときは、まだワークフローを選択していません。
|
||||
> 一覧のワークフローを一度クリックしてから押してください。
|
||||
|
||||
**「キャンバスへ送る」** を押すと、Workflow Studioを開いたComfyUIのノード画面に、そのワークフローが読み込まれます。
|
||||
Workflow Studioで探して、ComfyUIで細かく編集する、という使い方ができます。
|
||||
|
||||
> **注意**
|
||||
> 「キャンバスへ送る」は、ComfyUIの **Wボタンから開いた** Workflow Studioで使えます。
|
||||
> ブックマークなどから直接開いた場合は、ComfyUI側のWS Libraryにそのワークフローが表示されるので、
|
||||
> そこからキャンバスへドラッグしてください(第2章・第9章)。
|
||||
|
||||
---
|
||||
|
||||
## 4-7 生成UIで動くか事前にチェックする(GenerateUIチェック)
|
||||
|
||||
すべてのワークフローが、生成UI(第5章)でそのまま使えるわけではありません。
|
||||
特殊なカスタムノードを使っていたり、手元にないモデルを指定していたりすると、うまく動かないことがあります。
|
||||
|
||||
そこで、生成UIに読み込む前に、使えそうかどうかを自動でチェックする機能があります。
|
||||
|
||||
### チェック結果の見方
|
||||
ワークフローをクリックすると、サイドパネルのワークフロー名の下に、次の情報が表示されます。
|
||||
|
||||
- **形式バッジ** - ワークフローの保存形式(UI形式/API形式/App形式)
|
||||
- **変換** - 生成UIで使える形に変換できるか
|
||||
- **操作性** - 生成UIの画面だけで、どのくらい設定を変えられるか
|
||||
|
||||
それぞれ、次の3段階で表示されます。
|
||||
|
||||
| 表示 | 意味 |
|
||||
| --- | --- |
|
||||
| ○(チェックマーク) | 問題なし |
|
||||
| △(警告マーク) | 使えるが注意が必要 |
|
||||
| ×(バツ印) | 生成UIでは使えない、または使いにくい |
|
||||
|
||||
バッジにマウスを重ねると、判定の理由が表示されます。
|
||||
|
||||
### よくある判定と対処
|
||||
| 判定 | よくある理由 | 対処 |
|
||||
| --- | --- | --- |
|
||||
| 変換 × | ワークフローに必要なカスタムノードがインストールされていない | ComfyUI Managerで不足しているノードをインストールする(第12章) |
|
||||
| 変換 △ | 指定されたモデルやLoRAが手元にない | 生成UIで手元のモデルを選び直す。UI形式の場合は、自動で一覧の先頭のモデルに差し替えられるので注意 |
|
||||
| 操作性 △/× | 生成UIに表示されない設定が多い | 表示されないノードの設定は、ComfyUIのノード画面で変更する |
|
||||
|
||||
> **ポイント**
|
||||
> 操作性は、「設定を持つノードのうち、生成UIに表示されるものの割合」です。
|
||||
> 80%以上で ○、50%以上で △、それ未満で × になります。
|
||||
> △ や × でも生成自体はできることが多いので、「生成UIだけで完結しにくい」という目安として見てください。
|
||||
|
||||
> **ポイント**
|
||||
> ワークフロータブを開いて最初のチェックは、ComfyUIからノードの情報を取得するため、10秒ほどかかることがあります。
|
||||
> 2回目以降はすぐに結果が出ます。
|
||||
|
||||
---
|
||||
|
||||
## 4-8 付属のサンプルワークフローを使ってみる
|
||||
|
||||
Workflow Studioには、すぐに試せるサンプルワークフローが付属しています。
|
||||
サンプルは、Workflow Studioをインストールしたフォルダの中の **`workflows`** フォルダにあります。
|
||||
|
||||
```
|
||||
ComfyUI/custom_nodes/ComfyUI-Workflow-Studio/workflows/
|
||||
```
|
||||
|
||||
各サンプルには、同じ名前の `.json`(ワークフロー本体)と `.png`(サムネイル画像)が入っています。
|
||||
|
||||
### はじめての方におすすめのサンプル
|
||||
| ファイル名 | 内容 |
|
||||
| --- | --- |
|
||||
| `ws_sdxl_t2i_basic` | SDXLモデルで、文章から画像を作る基本のワークフロー |
|
||||
| `ws_sd15_t2i_basic` | SD1.5モデルで、文章から画像を作る基本のワークフロー |
|
||||
|
||||
お手元にあるモデルの種類(SDXLかSD1.5か)に合わせて選んでください。
|
||||
|
||||
### サンプルを取り込む
|
||||
1. ワークフロータブの **「インポート」** を押します。
|
||||
2. 上記の `workflows` フォルダを開き、使いたいサンプルの `.png` ファイルを選びます。
|
||||
(`.png` を選ぶと、サムネイル付きで取り込まれます)
|
||||
3. 一覧に追加されたことを確認します。
|
||||
|
||||
ほかにも、ポーズ指定やインペイント(画像の一部の描き直し)など、応用的なサンプルも入っています。
|
||||
|
||||
> **注意**
|
||||
> 一部のサンプルは、追加のカスタムノードが必要です。
|
||||
> ノード画面で赤く表示されるノードがある場合は、ComfyUI Managerで不足しているノードをインストールしてください(第12章)。
|
||||
> 4-7のGenerateUIチェックで「変換 ×」と表示されるのも、多くはこのケースです。
|
||||
|
||||
次の章では、取り込んだ基本のサンプルを生成UIに読み込んで、いよいよはじめての1枚を生成します。
|
||||
|
||||
> **この章のまとめ**
|
||||
> - ComfyUIで保存したワークフローは、自動でワークフロータブに並ぶ
|
||||
> - クリックでサイドパネルに表示、ダブルクリックで詳細画面
|
||||
> - カメラボタンで、ワークフローに見分けやすいサムネイルを付けられる
|
||||
> - お気に入り・バッジ・グループで分類し、検索・並べ替えで探す。迷ったら「× クリア」
|
||||
> - 「生成UIに読み込み」「キャンバスへ送る」で、選んだワークフローをすぐ使える
|
||||
> - GenerateUIチェックで、生成UIで動くかを事前に確認できる
|
||||
@@ -0,0 +1,229 @@
|
||||
# 第5章 生成UIタブ - ノードを触らずに画像を作る
|
||||
|
||||
いよいよ、Workflow Studioで画像を生成します。
|
||||
**生成UI(GenerateUI)** タブは、ワークフローの中から「プロンプト」「モデル」「サイズ」など
|
||||
よく変える項目だけを取り出して、入力フォームとして表示してくれる画面です。
|
||||
ノードを探して線をたどる必要はありません。
|
||||
|
||||
この章の前半(5-1〜5-4)では、第4章で取り込んだ基本のサンプルを使って、はじめての1枚を生成します。
|
||||
|
||||
> **事前に準備しておくもの**
|
||||
> - ComfyUIが起動していること
|
||||
> - Checkpointモデルが1つ以上、ComfyUIの `models/checkpoints` フォルダに入っていること
|
||||
> - 第4章で、サンプルワークフロー(`ws_sdxl_t2i_basic` など)を取り込んでいること
|
||||
|
||||
---
|
||||
|
||||
## 5-1 ワークフローを生成UIに読み込む
|
||||
|
||||
1. **ワークフロー** タブを開きます。
|
||||
2. 使いたいワークフロー(例:`ws_sdxl_t2i_basic`)を **クリック** して選択します。
|
||||
3. サイドパネルの **GenerateUIチェック**(第4章 4-7)で、「変換」が ○ になっていることを確認します。
|
||||
4. ツールバーの **「生成UIに読み込み」** を押します。
|
||||
|
||||
自動で **生成UI** タブに切り替わり、ワークフローの内容が読み込まれます。
|
||||
画面上部に、読み込んだワークフローの名前が表示されていれば成功です。
|
||||
|
||||
> **ポイント**
|
||||
> 生成UIの画面は、ボタンや項目名の多くが英語のまま表示されます。
|
||||
> 本書では、英語の表示名をそのまま使い、必要に応じて意味を添えて説明します。
|
||||
|
||||
---
|
||||
|
||||
## 5-2 生成UIの画面の見方
|
||||
|
||||
生成UIタブは、大きく次の部分に分かれています。
|
||||
|
||||
| 番号 | 場所 | 役割 |
|
||||
| --- | --- | --- |
|
||||
| ① | 上部のバー | ComfyUIとの接続状態、ワークフロー名、各種ボタン |
|
||||
| ② | サブタブ | Input/Model/Settings/Feeder/Batch/Lab の切り替え |
|
||||
| ③ | 編集エリア(中央) | 選んだサブタブの設定項目 |
|
||||
| ④ | Raw JSON(右側) | ワークフローの中身をJSONで表示(上級者向け) |
|
||||
| ⑤ | 生成パネル | Generateボタン、進み具合、シード設定、生成結果 |
|
||||
|
||||
### ① 上部のバー
|
||||
| 表示・ボタン | 意味 |
|
||||
| --- | --- |
|
||||
| Connected/Disconnected | ComfyUIとつながっているか。緑の **Connected** なら生成できます |
|
||||
| Connect | ComfyUIに接続し直す |
|
||||
| Refresh Models | モデルの一覧を読み込み直す(ComfyUIにモデルを追加したあとに押す) |
|
||||
| Reset Workflow | 編集した内容を捨てて、ワークフローを読み込んだ直後の状態に戻す |
|
||||
| ワークフロー名 | いま読み込んでいるワークフロー |
|
||||
|
||||
> **ポイント**
|
||||
> 生成UIタブを開くと、ComfyUIへの接続は自動で行われます。
|
||||
> **Disconnected** と表示されている場合は、ComfyUIが起動しているか確認して **Connect** を押してください。
|
||||
|
||||
### ② サブタブ
|
||||
| サブタブ | 何を設定するか | 本書 |
|
||||
| --- | --- | --- |
|
||||
| Input | プロンプト、入力画像 | 5-3 |
|
||||
| Model | Checkpoint・VAE・LoRAなどのモデル | 5-3 |
|
||||
| Settings | シード・ステップ数・サンプラー・画像サイズなど | 5-4 |
|
||||
| Feeder | フォルダの画像を順番に処理する | 5-6 |
|
||||
| Batch | 条件を変えながらまとめて生成する | 5-5 |
|
||||
| Lab | 実験的なI2Iバッチ生成(上級) | 5-7 |
|
||||
|
||||
まずは **Input・Model・Settings** の3つだけ覚えれば十分です。
|
||||
|
||||
### ④ Raw JSON
|
||||
Input・Model・Settingsの右側には、ワークフローの中身がJSON形式で表示されます。
|
||||
フォームで値を変えると、ここにも反映されます。
|
||||
慣れないうちは、ここは「見るだけ」にしておきましょう。
|
||||
|
||||
---
|
||||
|
||||
## 5-3 はじめての1枚を生成する
|
||||
|
||||
いよいよ生成です。最低限、次の3つを確認・設定します。
|
||||
|
||||
1. どのモデルで描くか(Model)
|
||||
2. 何を描くか(Input → Prompt)
|
||||
3. 生成する(Generate)
|
||||
|
||||
### 手順1:モデルを選ぶ(Model)
|
||||
1. サブタブの **Model** を開きます。
|
||||
2. **Checkpoint** の欄で、手元にあるモデルを選びます。
|
||||
一覧が長い場合は、欄の上の入力欄に文字を入れると絞り込めます。
|
||||
3. 欄の下にある **Apply** ボタンを押します。
|
||||
|
||||
> **ポイント:モデルが見つからないとき**
|
||||
> ワークフローに保存されているモデルが、あなたのパソコンに入っていないことがあります。
|
||||
> 配布されているワークフローを使うときは、ほぼ必ず起こります。次のどちらかの形で知らせてくれます。
|
||||
> - 欄に「△ (モデル名)(見つかりません)」と表示される
|
||||
> - 読み込んだときに「このワークフローのCheckpoint「…」が見つからず、無警告で別のモデルに差し替えられました」と表示される
|
||||
> (この場合、手元のモデルの一覧の先頭のものに自動で差し替わっています)
|
||||
>
|
||||
> どちらの場合も、一覧から使いたいモデルを選び直して、Apply を押してください。
|
||||
> 毎回選び直すのが面倒なときは、設定タブの **デフォルトCheckpoint**(第11章)が便利です。
|
||||
|
||||
> **注意:Applyを押し忘れない**
|
||||
> 生成UIでは、モデルやSettings(5-4)の値を変えたあと **Apply** ボタンを押して、はじめてワークフローに反映されます。
|
||||
> Applyを押さずにGenerateすると、**変更前の値のまま** 生成されてしまいます。
|
||||
> 「設定を変えたのに結果が変わらない」ときは、まずApplyの押し忘れを疑いましょう。
|
||||
> (プロンプトの入力欄だけは、Generateを押したときに自動で反映されます)
|
||||
|
||||
> **ポイント**
|
||||
> 項目名が明るい緑色で表示されているのは、読み込んだワークフローにそのモデルのノードが含まれている項目です。
|
||||
> 緑色でない項目は、変更してもこのワークフローには影響しません。
|
||||
|
||||
### 手順2:プロンプトを書く(Input)
|
||||
1. サブタブの **Input** を開き、その中の **Prompt** を選びます。
|
||||
2. **Positive Prompt** の欄に、描いてほしい内容を英語で入力します。
|
||||
|
||||
```
|
||||
a cute cat sitting on a windowsill, sunlight, soft colors, high quality
|
||||
```
|
||||
|
||||
3. **Positive Prompt** の **Apply** を押します。
|
||||
4. 必要に応じて **Negative Prompt** の欄に、描いてほしくない内容を入力し、こちらも **Apply** を押します。
|
||||
|
||||
> プロンプトは、Applyを押し忘れてもGenerateを押したときに自動で反映されます。
|
||||
> ただし、Raw JSON(右側)で反映結果を確かめられるので、Applyを押す習慣をつけておくと安心です。
|
||||
|
||||
```
|
||||
low quality, blurry, bad anatomy
|
||||
```
|
||||
|
||||
> **ポイント**
|
||||
> Apply の横にある **↺(戻す)** ボタンを押すと、入力欄の内容を、いまワークフローに反映されている値に戻せます。
|
||||
> 書き換えに失敗したときに便利です。
|
||||
|
||||
> **ポイント**
|
||||
> 英語が苦手な方は、第7章・第10章で紹介するAI翻訳機能を使うと、日本語で考えたプロンプトを英語にできます。
|
||||
|
||||
### 手順3:生成する(Generate)
|
||||
1. 画面の生成パネルにある **Generate** ボタンを押します。
|
||||
2. 進み具合を表すバーが伸びていき、パーセントが表示されます。
|
||||
3. 「Done」と表示されると、生成された画像が生成パネルに表示されます。
|
||||
|
||||
おめでとうございます。これで、Workflow Studioではじめての1枚が完成しました。
|
||||
|
||||
生成した画像は、ComfyUIで生成した場合と同じく、ComfyUIの `output` フォルダに保存されます。
|
||||
あとから見返したいときは、**ギャラリー** タブ(第8章)で一覧できます。
|
||||
|
||||
> **ポイント:途中で止めたいとき**
|
||||
> 生成中は、Generateボタンの横に **Stop** ボタンが表示されます。押すと生成を中断します。
|
||||
|
||||
> **ポイント:ApplyとGenerateを一度に**
|
||||
> **Alt キーを押しながら Apply** をクリックすると、値の反映と生成を一度に行えます。
|
||||
> 慣れてきたら、プロンプトを書き換えて Alt+Apply、という流れで手早く試せます。
|
||||
|
||||
### 生成したワークフローを保存する
|
||||
生成UIで変えた設定を、あとでまた使いたいときは、サブタブの右端にある **Save** ボタンを押します。
|
||||
名前を付けて保存すると、ワークフロータブに新しいワークフローとして追加されます。
|
||||
|
||||
---
|
||||
|
||||
## 5-4 シード・サンプラー・ステップ数の意味
|
||||
|
||||
1枚目が生成できたら、次は **Settings** サブタブで、画像の仕上がりを左右する設定を見てみましょう。
|
||||
|
||||
Settingsタブは、左右2つのブロックに分かれています。
|
||||
|
||||
- **KSampler(左)** - 画像をどのように描くかの設定
|
||||
- **Latent Image(右)** - 画像の大きさと枚数の設定
|
||||
|
||||
ここでも、値を変えたら各ブロックの **Apply** を押すのを忘れないようにしましょう。
|
||||
|
||||
### KSampler の項目
|
||||
| 項目 | 意味 | 初心者向けの目安 |
|
||||
| --- | --- | --- |
|
||||
| Seed(シード) | 画像のもとになる「乱数の種」。同じ設定・同じシードなら、ほぼ同じ画像になる | 生成時は生成パネルのシード設定(下記)が優先されるので、ここは「読み込んだワークフローのシードの確認用」と考える。ワークフローのシードをそのまま使いたいときは、生成パネルのモードを **Workflow** にする |
|
||||
| Steps(ステップ数) | 描き込みを何回くり返すか。多いほど丁寧だが時間がかかる | 20〜30 |
|
||||
| CFG | プロンプトにどれだけ忠実に従うか。高すぎると色や形が崩れやすい | SDXLなら5〜8程度 |
|
||||
| Sampler(サンプラー) | 描き方のアルゴリズム | `euler`、`dpmpp_2m` など |
|
||||
| Scheduler(スケジューラー) | ステップごとの描き込み量の配分 | `normal`、`karras` など |
|
||||
| Denoise | 元の画像をどれだけ描き変えるか。文章から作る場合は 1.0 | 1.0(画像から作る場合は 0.4〜0.7 など) |
|
||||
|
||||
> **ポイント**
|
||||
> 目安の値はモデルによって異なります。モデルの配布ページ(Civitaiなど)に推奨値が書かれていることが多いので、確認してみましょう。
|
||||
> 迷ったら、サンプルワークフローに最初から入っている値のまま使えば大丈夫です。
|
||||
|
||||
### Latent Image の項目
|
||||
| 項目 | 意味 | 目安 |
|
||||
| --- | --- | --- |
|
||||
| Width(幅) | 画像の横の大きさ(ピクセル) | SDXLなら1024前後、SD1.5なら512前後 |
|
||||
| Height(高さ) | 画像の縦の大きさ(ピクセル) | 同上 |
|
||||
| Batch Size | 1回の生成で何枚作るか | 1〜4(多いほどメモリを使う) |
|
||||
|
||||
> **注意**
|
||||
> モデルが学習したサイズから大きく外れると、人物が二重になったり、構図が崩れたりしやすくなります。
|
||||
> 縦長・横長にしたいときも、合計のピクセル数がおおよそ同じになるように調整しましょう(例:SDXLなら 832×1216 など)。
|
||||
|
||||
### シードの管理(生成パネル)
|
||||
シードは、生成パネルの **Seed** 欄と、その下のプルダウンで管理します。
|
||||
|
||||
| モード | 動き | 使いどころ |
|
||||
| --- | --- | --- |
|
||||
| Random | 毎回ランダムなシードで生成 | いろいろな絵を試したいとき |
|
||||
| Fixed | Seed欄の値で固定 | 気に入った絵をもとに、プロンプトだけ変えて比べたいとき |
|
||||
| Increment | 生成するたびに1ずつ増やす | 少しずつ違う絵を順番に作りたいとき |
|
||||
| Decrement | 生成するたびに1ずつ減らす | Incrementの逆 |
|
||||
| Workflow | ワークフローに入っているシードを、上書きせずそのまま使う | ギャラリーから読み込んだ画像や、配布されたワークフローを、元のシードで再現したいとき |
|
||||
|
||||
生成が終わると、Seed欄には **実際に使われたシード値** が表示されます。
|
||||
|
||||
> **ポイント:Workflowモード(v0.8.3〜)**
|
||||
> モードを **Workflow** にすると、Seed欄の値やランダムではなく、読み込んだワークフロー自身のシードで生成します。
|
||||
> Randomで何枚か試したあとでも、ワークフロー本来のシード(読み込んだ時点の値)に戻って生成されます。
|
||||
> ワークフローにシードの入力が見つからない場合は、Seed欄の値(−1ならランダム)が使われます。
|
||||
> 同じシードと同じ設定で続けて2回押すと、ComfyUIは計算済みの結果を再利用するため、新しい画像は増えません(故障ではありません)。
|
||||
|
||||
### 気に入った絵を「育てる」流れ
|
||||
シードを使うと、気に入った1枚をもとに少しずつ改良できます。
|
||||
|
||||
1. **Random** で何枚か生成し、気に入った構図の絵を探す
|
||||
2. 気に入った絵が出たら、モードを **Fixed** に切り替える(Seed欄にはその絵のシードが入っています)
|
||||
3. プロンプトに言葉を足したり、Stepsを変えたりして、違いを比べる
|
||||
|
||||
シードを固定すると、「何を変えたら、どう変わったか」が分かりやすくなります。
|
||||
これは、画像生成に慣れるためのいちばんの近道です。
|
||||
|
||||
> **この章(前半)のまとめ**
|
||||
> - ワークフロータブで選んで「生成UIに読み込み」を押すと、生成UIで編集できる
|
||||
> - 基本は Input(プロンプト)・Model(モデル)・Settings(細かい設定)の3つのサブタブ
|
||||
> - モデルやSettingsの値を変えたら必ず **Apply**。押し忘れると変更前の値で生成される(プロンプトは自動で反映)
|
||||
> - Generate で生成。Alt+Apply なら反映と生成を一度に行える
|
||||
> - シードを Fixed にすると、気に入った絵をもとに条件を変えて比べられる。ワークフローのシードをそのまま使うなら Workflow
|
||||
@@ -0,0 +1,180 @@
|
||||
## 5-5 バッチ生成 - 条件を変えながらまとめて試す
|
||||
|
||||
画像生成に慣れてくると、こんなことを試したくなります。
|
||||
|
||||
- 同じプロンプトで、手持ちのモデルを全部試して比べたい
|
||||
- いくつかのプロンプトを、順番に生成したい
|
||||
- どのサンプラーがこのモデルに合うのか、まとめて確かめたい
|
||||
|
||||
1枚ずつ設定を変えてGenerateを押すのは大変です。
|
||||
**Batch** サブタブを使うと、「何を変えながら生成するか」をまとめて指定し、自動で順番に生成できます。
|
||||
|
||||
### バッチで変えられるもの
|
||||
バッチでは、次の7種類のうち **1種類** を選んで、順番に変えながら生成します。
|
||||
|
||||
| 種類 | 何が変わるか | 使いどころ |
|
||||
| --- | --- | --- |
|
||||
| Checkpoint | モデル | モデルの描き味を比べる |
|
||||
| Lora | LoRA | LoRAの効果を比べる |
|
||||
| Prompt | プロンプト | 保存したプロンプトを順番に試す |
|
||||
| Workflow | ワークフロー | 複数のワークフローを順番に実行する |
|
||||
| Sampler | サンプラー | サンプラーの違いを比べる |
|
||||
| Scheduler | スケジューラー | スケジューラーの違いを比べる |
|
||||
| Style | スタイル | スタイルの違いを比べる |
|
||||
|
||||
> **ポイント**
|
||||
> 一度に変えられるのは1種類だけです。
|
||||
> 「モデルもプロンプトも同時に変えたい」という場合は、5-7の Lab を使います。
|
||||
|
||||
### Batchタブの画面
|
||||
Batchタブは、左・中央・右の3つの部分に分かれています。
|
||||
|
||||
| 場所 | 役割 |
|
||||
| --- | --- |
|
||||
| 左(リスト) | Checkpoints/Sampler/Scheduler/Style を一覧から選ぶ |
|
||||
| 中央(グループ) | Checkpoint/Lora/Prompt/Workflow を「グループ」単位で選ぶ |
|
||||
| 右(Batch Queue) | 選んだ項目の一覧。実行する種類をここで決める |
|
||||
|
||||
中央のグループは、それぞれのタブで作ったグループと連動しています。
|
||||
|
||||
- Checkpoint・Lora のグループ → モデルタブ(第6章)
|
||||
- Prompt のグループ → プロンプトタブ(第7章)
|
||||
- Workflow のグループ → ワークフロータブ(第4章)
|
||||
|
||||
### 例:手持ちのモデルを比べる
|
||||
同じプロンプト・同じシードで、3つのモデルの描き味を比べてみましょう。
|
||||
|
||||
1. 5-3の手順で、比べたいプロンプトを入れたワークフローを読み込んでおきます。
|
||||
2. 生成パネルのシードのモードを **Fixed** にします。
|
||||
(シードを固定すると、モデル以外の条件がそろい、違いが分かりやすくなります)
|
||||
3. **Batch** サブタブを開きます。
|
||||
4. 左側の **Checkpoints** タブで、比べたいモデルにチェックを入れます。
|
||||
5. 右側の **Batch Queue** で、**Checkpoint** の列の見出しにあるチェックボックスをオンにします。
|
||||
列には、選んだモデルの一覧と件数が表示されます。
|
||||
|
||||
6. **Generate** を押します。
|
||||
|
||||
選んだモデルで順番に生成が行われます。
|
||||
生成パネルの **Batch** 欄に、いま何番目を生成しているか、全体の進み具合が表示されます。
|
||||
|
||||
- **Pause** - 一時停止します。もう一度押すと再開します。
|
||||
- **Stop** - バッチ全体を中止します。
|
||||
|
||||
> **注意**
|
||||
> Batch Queueの列のチェックがオンのままだと、次にGenerateを押したときもバッチ生成になります。
|
||||
> 1枚だけ生成したいときは、列のチェックをオフにしてください。
|
||||
|
||||
> **ポイント:LoRAのバッチ**
|
||||
> Loraのバッチでは、選んだLoRAの書式(`<lora:名前:強さ>`)と、Civitaiから取得したトリガーワードが、
|
||||
> 自動でPositive Promptに追加されます。バッチが終わると、元のプロンプトに戻ります。
|
||||
|
||||
---
|
||||
|
||||
## 5-6 Feeder - フォルダの画像を順番に処理する
|
||||
|
||||
**Feeder** は、たくさんの画像を1枚ずつワークフローに送り込んで、順番に処理する機能です。
|
||||
たとえば、次のような使い方ができます。
|
||||
|
||||
- 撮りためた写真を、まとめてイラスト風に変換する(I2I:画像から画像を作る)
|
||||
- 複数の画像からポーズを読み取って、同じポーズのキャラクターを描く
|
||||
|
||||
Feederには2つのモードがあり、Feederタブ左上の **[Image Loop]/[Gallery]** ボタンで切り替えます。
|
||||
|
||||
| モード | 画像の取り出し元 | 必要なもの |
|
||||
| --- | --- | --- |
|
||||
| Image Loop | パソコン内のフォルダ | カスタムノード **comfyui-image-feeder**(別途インストール) |
|
||||
| Gallery | ギャラリータブのグループ | 追加インストール不要(Workflow Studioに付属の **Gallery Feeder (WFS)** ノード) |
|
||||
|
||||
> **ポイント**
|
||||
> どちらのモードも、**ワークフローの中に専用のノード** が入っている必要があります。
|
||||
> 普通のワークフローを読み込んだだけでは使えません。
|
||||
|
||||
### Galleryモードの使い方(追加インストール不要)
|
||||
1. ComfyUIのノード画面で、ワークフローの「画像を読み込む」部分に **Gallery Feeder (WFS)** ノードを置き、
|
||||
画像の出力をつなぎます。保存して、生成UIに読み込みます。
|
||||
2. **ギャラリー** タブ(第8章)で、処理したい画像をグループにまとめておきます。
|
||||
(Feederタブを初めて開くと、`__Feeder__` というグループが自動で作られます。これを使ってもかまいません)
|
||||
3. 生成UIの **Feeder** サブタブを開き、**[Gallery]** を選びます。
|
||||
4. 対象の **Gallery Feeder Node** と、画像を取り出す **グループ** を選び、**Apply** を押します。
|
||||
5. 中央にグループの画像が並びます。画像をクリックすると、その画像から処理を始められます。
|
||||
6. **After gen**(生成後の動き)を選び、**▶ Run** を押します。
|
||||
|
||||
### After gen(生成後の動き)
|
||||
| モード | 動き |
|
||||
| --- | --- |
|
||||
| Loop | 次の画像へ進み、最後まで行ったら最初に戻って続ける(■ Stopを押すまで止まらない) |
|
||||
| Increment | 次の画像へ進み、最後の画像を処理したら自動で止まる |
|
||||
| Fixed | 同じ画像を使い続ける(シードだけ変えて何枚も作りたいとき) |
|
||||
|
||||
はじめは **Increment** を選ぶと、全部の画像を1回ずつ処理して自動で止まるので安心です。
|
||||
|
||||
### Image Loopモード
|
||||
Image Loopモードでは、パソコン内のフォルダ(`ComfyUI/user/default/image-loop-data/`)の画像を使います。
|
||||
フォルダの画像を選んで、プリセットとして保存しておくこともできます。
|
||||
別途 **comfyui-image-feeder** カスタムノードが必要です。
|
||||
|
||||
付属のサンプル `ws_sdxl_image_feeder_i2i`(I2I)と `ws_dwpose_image_feeder`(ポーズ読み取り)は、このImage Loopモード用です。
|
||||
|
||||
### Galleryモードのサンプル(v0.8.3〜)
|
||||
Galleryモードには、付属のサンプル `ws_sdxl_gallery_feeder_i2i`(SDXLのI2I)が使えます。
|
||||
ノードを自分で置く必要がなく、**Gallery Feeder (WFS)** ノードがあらかじめ入っています(グループ名は `__Feeder__`、並び順は filename_asc)。
|
||||
|
||||
1. ワークフロータブでサンプルを取り込み、**生成UIに読み込み** を押します。
|
||||
2. ギャラリーで、処理したい画像のサムネイル左上の **F** ボタンを押して `__Feeder__` グループに入れます。
|
||||
3. **Feeder** サブタブで **[Gallery]** を選び、Gallery Feeder Node とグループを選んで **Apply**。
|
||||
4. Model サブタブで、手元のCheckpointとVAEを選び直して **Apply**(サンプルのモデル名は作者の環境のものです)。
|
||||
5. **After gen** を **Increment** にして **▶ Run** を押します。
|
||||
|
||||
---
|
||||
|
||||
## 5-7 Lab - 実験的なI2Iバッチ生成(上級)
|
||||
|
||||
**Lab** は、5-5のバッチ生成をさらに発展させた、上級者向けの実験的な機能です。
|
||||
はじめのうちは読み飛ばしてもかまいません。
|
||||
|
||||
### Batchとの違い
|
||||
| | Batch(5-5) | Lab |
|
||||
| --- | --- | --- |
|
||||
| 一度に変えられるもの | 1種類だけ | モデル・プロンプト・KSamplerを **それぞれ別々に** |
|
||||
| 変えるタイミング | 毎回 | 「何回目から変えるか」を自由に指定 |
|
||||
| 生成した画像を次の入力に | できない | できる(連鎖させられる) |
|
||||
|
||||
### キーフレームという考え方
|
||||
Labでは、「何回目の生成から、どの設定に切り替えるか」を **キーフレーム** として指定します。
|
||||
|
||||
例:10回生成する場合
|
||||
|
||||
| 回 | モデル | プロンプト | KSampler |
|
||||
| --- | --- | --- | --- |
|
||||
| 1〜10 | モデルA | - | - |
|
||||
| 1〜4 | - | 「朝の街」 | - |
|
||||
| 5〜10 | - | 「夜の街」 | - |
|
||||
| 1〜7 | - | - | Steps 20 |
|
||||
| 8〜10 | - | - | Steps 40 |
|
||||
|
||||
このように、列ごとに切り替えのタイミングを別々に決められます。
|
||||
次のキーフレームが来るまでは、前の設定が引き継がれます。
|
||||
|
||||
### 基本の流れ
|
||||
1. 生成UIにワークフローを読み込みます。
|
||||
2. **Lab** サブタブを開きます。
|
||||
3. I2I(画像から画像)の場合は、元になる画像をドロップします。
|
||||
文章から作る(T2I)場合は、**T2I workflow (no source image)** にチェックを入れます。
|
||||
4. 生成回数(Batch)を決めます。
|
||||
5. Model・Prompt・KSampler の各列で **+** を押してキーフレームを追加し、
|
||||
キーフレームをダブルクリックして、「何回目から」「どの設定に」するかを入力します。
|
||||
6. **Run** を押します。
|
||||
|
||||
結果は **Results** パネルに一覧表示されます。
|
||||
|
||||
### 便利な機能
|
||||
- **Use generated image for next** - 生成した画像を、次の回の入力画像として使います。
|
||||
少しずつ変化していく連続画像を作れます。
|
||||
- **Plan Save** - 設定(プラン)を保存できます。保存すると、結果をまとめた一覧画像も作られ、
|
||||
その画像をドロップすれば同じプランを読み込み直せます。
|
||||
|
||||
> **この章(後半)のまとめ**
|
||||
> - Batchサブタブで、モデル・プロンプト・サンプラーなどを1種類ずつ変えながらまとめて生成できる
|
||||
> - Batch Queueの列のチェックで種類を選び、Generateで開始。終わったらチェックを外す
|
||||
> - Feederは、たくさんの画像を1枚ずつワークフローに送り込む機能。専用ノードが必要
|
||||
> - Labは、複数の設定を別々のタイミングで切り替えられる上級者向けの機能
|
||||
@@ -0,0 +1,184 @@
|
||||
# 第6章 モデルタブ - モデルとLoRAを管理する
|
||||
|
||||
画像生成を続けていると、モデルやLoRAのファイルはどんどん増えていきます。
|
||||
「このファイル、何のモデルだっけ?」「あのLoRAのトリガーワードは何だった?」
|
||||
- そんな悩みを解決するのが **モデル(Models)** タブです。
|
||||
|
||||
---
|
||||
|
||||
## 6-1 モデルの種類
|
||||
|
||||
モデルタブの上部には、モデルの種類ごとのタブが並んでいます。
|
||||
それぞれ、ComfyUIの `models` フォルダの中の対応するフォルダに入っているファイルが表示されます。
|
||||
|
||||
| 種類 | ひとことで言うと | 主な置き場所 |
|
||||
| --- | --- | --- |
|
||||
| Checkpoint | 画像生成の本体。これがないと始まらない | `models/checkpoints` |
|
||||
| LoRA | 絵柄・キャラクター・服装などを追加で覚えさせる小さなモデル | `models/loras` |
|
||||
| VAE | 画像の色合いや細部を仕上げる。Checkpointに内蔵されていることも多い | `models/vae` |
|
||||
| ControlNet | ポーズや線画など、構図を指定するためのモデル | `models/controlnet` |
|
||||
| UNET | FLUXなど新しい形式のモデルの本体(Diffusion Model) | `models/diffusion_models` など |
|
||||
| TextEncoder | プロンプトの文章をAIが理解できる形に変換するモデル | `models/text_encoders` など |
|
||||
| Hypernetwork | 絵柄を調整する古い形式の追加モデル | `models/hypernetworks` |
|
||||
| Embedding | 特定の単語に意味を覚えさせた小さなファイル(ネガティブ用が多い) | `models/embeddings` |
|
||||
|
||||
> **ポイント**
|
||||
> はじめは **Checkpoint** と **LoRA** の2つを使いこなせれば十分です。
|
||||
> FLUXなどの新しいモデルを使うようになると、UNETやTextEncoderの出番が増えてきます。
|
||||
|
||||
---
|
||||
|
||||
## 6-2 一覧の表示と探し方
|
||||
|
||||
### 最初の読み込み
|
||||
モデルタブを初めて開いたときは、一覧が空で「更新ボタンでモデルを読み込み...」と表示されます。
|
||||
ツールバーの **「更新」** を押すと、モデルの一覧が表示されます。
|
||||
新しくモデルを追加したときも、「更新」を押してください。
|
||||
|
||||
### サムネイル表示とテーブル表示
|
||||
ワークフロータブと同じく、**サムネイル** と **テーブル** を切り替えられます。
|
||||
1ページに24件ずつ表示されます。
|
||||
|
||||
テーブル表示では、列の見出しをクリックすると、その列で並べ替えができます
|
||||
(1回目:昇順 ▲、2回目:降順 ▼、3回目:並べ替え解除)。
|
||||
|
||||
> **ポイント**
|
||||
> サムネイルは、モデルファイルと同じ場所にある `(モデル名).preview.png` が自動で使われます。
|
||||
> 画像がないモデルも、6-3の方法でCivitaiから取得したり、自分で設定したりできます。
|
||||
|
||||
### 検索と絞り込み
|
||||
ツールバーには、絞り込みのための項目が並んでいます。
|
||||
|
||||
| 項目 | 絞り込み内容 |
|
||||
| --- | --- |
|
||||
| モデルを検索... | 名前などのキーワード |
|
||||
| ★ | お気に入りだけ |
|
||||
| すべてのタグ | タグ |
|
||||
| All Folders | サブフォルダ |
|
||||
| All Groups | グループ |
|
||||
| All/Enabled only/Disabled only | 有効・無効の状態(6-5) |
|
||||
|
||||
絞り込みすぎて分からなくなったら、ツールバー右端の **「× クリア」** ですべて解除できます。
|
||||
|
||||
### お気に入り・バッジ・グループ
|
||||
分類のしかたは、ワークフロータブ(第4章 4-4)とほぼ同じです。
|
||||
|
||||
- **お気に入り(★)** - よく使うモデルに印を付ける
|
||||
- **バッジ** - **「Badge」** で作った色付きラベルを付ける。バッジの種類と色はワークフロータブと共通です
|
||||
- **グループ** - モデルをクリックし、サイドパネルの **「グループ」** タブで追加する
|
||||
|
||||
> **ポイント**
|
||||
> グループは **モデルの種類ごと** に分かれています。
|
||||
> Checkpointのグループは、Checkpointタブにだけ表示されます。
|
||||
> ここで作ったグループは、生成UIのバッチ生成(第5章 5-5)でも使えます。
|
||||
|
||||
---
|
||||
|
||||
## 6-3 Civitaiの情報を取り込む
|
||||
|
||||
**Civitai(シビタイ)** は、画像生成モデルが多数公開されている共有サイトです。
|
||||
ネットから入手したモデルの多くは、Civitaiで配布されています。
|
||||
|
||||
Workflow Studioは、手元のモデルファイルから **ハッシュ値**(ファイルの指紋のような値)を計算し、
|
||||
Civitaiに登録されている情報を自動で探し出せます。
|
||||
|
||||
### 取得できる情報
|
||||
- モデルの名前・種類(Checkpoint/LoRAなど)
|
||||
- **Base Model**(SDXL、SD1.5、FLUX など、どの系統のモデルか)
|
||||
- **トリガーワード**(LoRAの効果を出すために、プロンプトに入れる言葉)
|
||||
- タグ・説明文
|
||||
- サンプル画像(サムネイルにも使われます)
|
||||
|
||||
### 1つずつ取得する
|
||||
1. モデルをクリックして選択します。
|
||||
2. 右側のサイドパネルで **「CivitAI」** タブを開きます(モデルを選ぶと最初にこのタブが開きます)。
|
||||
3. **「CivitAIから取得」** を押します。
|
||||
|
||||
取得が終わると、モデルの情報が表示されます。
|
||||
**Sample** タブでは、Civitaiに投稿されたサンプル画像を見られます。
|
||||
|
||||
### まとめて取得する
|
||||
ツールバーの **「CivitAI」** ボタンを押すと、表示中の種類のモデルについて、まとめて情報を取得します。
|
||||
すでに情報を取得済みのモデルは飛ばされるので、モデルを追加したあとに何度押しても大丈夫です。
|
||||
サムネイル画像がないモデルには、プレビュー画像も自動で保存されます。
|
||||
|
||||
> **ポイント**
|
||||
> ハッシュ値の計算には、モデルの大きさに応じて時間がかかります。
|
||||
> 数GBのモデルがたくさんある場合は、時間に余裕があるときに実行しましょう。
|
||||
|
||||
> **ポイント**
|
||||
> Civitaiで見つからなかったモデルは「確認済みですが、このモデルはCivitAIに見つかりませんでした。」と表示されます。
|
||||
> 自分で作ったモデルや、Civitai以外で配布されているモデルは、見つからないのが普通です。
|
||||
> **「未登録はスキップ」** にチェックを入れておくと、まとめて取得するときに、見つからなかったモデルを再確認せずに飛ばします。
|
||||
|
||||
> **ポイント:APIキー**
|
||||
> 設定タブの **「CivitAI APIキー」** は、入力しなくても使えます(省略可)。
|
||||
> 一部の情報の取得に認証が必要な場合に、Civitaiのアカウント設定で発行したキーを入力します。
|
||||
|
||||
### LoRAを使うときに特に便利
|
||||
LoRAは、**トリガーワード** をプロンプトに入れないと効果が出ないものが多くあります。
|
||||
Civitaiの情報を取得しておけば、サイドパネルでトリガーワードをすぐに確認できます。
|
||||
また、生成UIのバッチ生成でLoRAを使うと、トリガーワードが自動でプロンプトに追加されます(第5章 5-5)。
|
||||
|
||||
---
|
||||
|
||||
## 6-4 モデルを生成やキャンバスで使う
|
||||
|
||||
### 生成UIにセットする(GenUI Model)
|
||||
モデルタブで選んだモデルを、そのまま生成UIのワークフローにセットできます。
|
||||
|
||||
1. 生成UIに、ワークフローを読み込んでおきます(第5章 5-1)。
|
||||
2. モデルタブで、使いたいモデルを選択します。
|
||||
3. **「GenUI Model」** ボタンを押します。
|
||||
|
||||
これで、生成UIのワークフローのモデルが、選んだモデルに差し替わります。
|
||||
Civitaiのサンプル画像を見比べながら、気になったモデルをすぐ試せます。
|
||||
|
||||
> **ポイント**
|
||||
> Embeddingの場合は、**GenUI PP**(ポジティブプロンプトに追加)と **GenUI NP**(ネガティブプロンプトに追加)のボタンが表示されます。
|
||||
> ネガティブ用のEmbeddingは、GenUI NP で追加しましょう。
|
||||
|
||||
> **注意**
|
||||
> 生成UIのワークフローに、そのモデルを読み込むノードがない場合は使えません。
|
||||
> たとえば、LoRAのノードがないワークフローに、LoRAはセットできません。
|
||||
|
||||
### ComfyUIのノード画面で使う
|
||||
ComfyUIのノード画面の横にある **WS Library** の **M(Models)** タブからモデルをキャンバスへドラッグすると、
|
||||
そのモデルを読み込むノードが自動で置かれます(第9章)。
|
||||
|
||||
---
|
||||
|
||||
## 6-5 使わないモデルを片付ける
|
||||
|
||||
### 有効・無効の切り替え
|
||||
しばらく使わないモデルは、削除せずに **無効(Disable)** にしておけます。
|
||||
無効にしたモデルは、ComfyUIのモデル選択の一覧に表示されなくなるので、一覧がすっきりします。
|
||||
|
||||
- カードの **一時停止(⏸)** ボタンで、1つずつ有効・無効を切り替えられます。
|
||||
- グループ単位で、まとめて有効・無効にすることもできます。
|
||||
|
||||
> **ポイント**
|
||||
> 無効にすると、ファイルの名前の末尾に `.disabled` が付きます。ファイル自体は消えません。
|
||||
> 有効に戻すと、元の名前に戻ります。
|
||||
|
||||
### まとめて操作する(Select)
|
||||
緑色の **Select** ボタンを押すと、複数のモデルにチェックを入れて、まとめて操作できます。
|
||||
|
||||
- グループへの追加・削除
|
||||
- バッジの追加・削除
|
||||
- 別のサブフォルダへの移動(プレビュー画像などの関連ファイルも一緒に移動)
|
||||
- 削除
|
||||
|
||||
### 削除
|
||||
詳細画面やSelectから、モデルを削除できます。
|
||||
|
||||
> **注意**
|
||||
> 削除すると、モデルファイルと、関連するファイル(プレビュー画像、Civitai情報など)が **完全に削除** されます。
|
||||
> モデルは再ダウンロードに時間がかかるものが多いので、迷ったら削除ではなく「無効」にしておきましょう。
|
||||
|
||||
> **この章のまとめ**
|
||||
> - モデルタブでは、ComfyUIのモデルを種類ごとに一覧できる。最初に「更新」を押す
|
||||
> - お気に入り・バッジ・グループで分類できる。グループはバッチ生成でも使える
|
||||
> - 「CivitAIから取得」で、Base Model・トリガーワード・サンプル画像などを自動で取り込める
|
||||
> - 「GenUI Model」で、選んだモデルをすぐ生成UIで試せる
|
||||
> - 使わないモデルは削除せず「無効」にしておくと安心
|
||||
@@ -0,0 +1,254 @@
|
||||
# 第7章 プロンプトタブ - 呪文を貯めて、育てる
|
||||
|
||||
うまくいったプロンプトは、あなただけの財産です。
|
||||
でも、メモ帳に貼り付けておくだけでは、どれが何の呪文だったか分からなくなりがちです。
|
||||
|
||||
**プロンプト(Prompt)** タブは、プロンプトを **保存・分類・再利用** するための場所です。
|
||||
さらに、ローカルAIを使った翻訳や、プロンプトを毎回少しずつ変える「ワイルドカード」も使えます。
|
||||
|
||||
---
|
||||
|
||||
## 7-1 プロンプトの基本
|
||||
|
||||
プロンプトタブの使い方に入る前に、プロンプトの書き方の基本を押さえておきましょう。
|
||||
|
||||
### ポジティブとネガティブ
|
||||
| 種類 | 書く内容 | 例 |
|
||||
| --- | --- | --- |
|
||||
| Positive Prompt(ポジティブ) | 描いてほしいもの | `1girl, smiling, school uniform, cherry blossoms, spring` |
|
||||
| Negative Prompt(ネガティブ) | 描いてほしくないもの | `low quality, blurry, extra fingers, watermark` |
|
||||
|
||||
### 書き方のコツ
|
||||
- **英語で書く** - 多くのモデルは英語で学習されています。
|
||||
- **カンマ(,)で区切る** - 単語や短いフレーズを、カンマで区切って並べるのが一般的です。
|
||||
- **大事なものを前に** - 前に書いた言葉ほど、強く反映されやすい傾向があります。
|
||||
- **強調したい言葉は (言葉:数値)** - `(red hair:1.3)` のように書くと、その言葉を強調できます(1.0が標準)。
|
||||
|
||||
> **ポイント:強調の数値をキーボードで変える**
|
||||
> 生成UIのプロンプト入力欄で、強調したい言葉を選んで **Ctrl+↑/↓** を押すと、
|
||||
> `(言葉:数値)` の数値を0.05ずつ増減できます。数値が1.0に戻ると、カッコは自動で外れます。
|
||||
|
||||
> **ポイント**
|
||||
> SDXLのアニメ系モデルは「タグを並べる」書き方、FLUXなどの新しいモデルは「普通の英文で説明する」書き方が向いています。
|
||||
> モデルの配布ページに、おすすめの書き方が載っていることも多いので確認してみましょう。
|
||||
|
||||
---
|
||||
|
||||
## 7-2 プロンプトタブの画面
|
||||
|
||||
プロンプトタブは、左・中央・右の3つの列に分かれています。
|
||||
|
||||
| 列 | 名前 | 役割 |
|
||||
| --- | --- | --- |
|
||||
| 左 | AI Assistant | ローカルAIとのチャット・翻訳(7-5) |
|
||||
| 中央 | Presets/Preset Manager | プロンプトの保存・一覧・分類(7-3) |
|
||||
| 右 | Wildcard/Style | ワイルドカードとスタイルの管理(7-4) |
|
||||
|
||||
画面上部の **Form/Table** で、表示方法を切り替えられます。
|
||||
|
||||
- **Form** - 1件ずつ編集する画面(この章で説明する画面です)
|
||||
- **Table** - プリセットやワイルドカードを表形式でまとめて編集する画面(件数が増えてきたら便利)
|
||||
|
||||
---
|
||||
|
||||
## 7-3 プリセットとして保存・分類する
|
||||
|
||||
**プリセット** は、ポジティブ・ネガティブのプロンプトをひと組にして、名前を付けて保存したものです。
|
||||
|
||||
### プリセットを保存する
|
||||
1. 中央の列で **Presets** タブを開きます。
|
||||
2. 一番上のプルダウンが **New Preset (none selected)** になっていることを確認します。
|
||||
3. 次の項目を入力します。
|
||||
|
||||
| 項目 | 内容 |
|
||||
| --- | --- |
|
||||
| Preset Name | プリセットの名前(例:`桜と制服`) |
|
||||
| Category | 分類(例:`Portrait`、`Landscape`)。省略してもかまいません |
|
||||
| Positive Prompt | 描いてほしいもの |
|
||||
| Negative Prompt | 描いてほしくないもの |
|
||||
|
||||
4. **Save** を押します。「プリセットを保存しました」と表示されれば完了です。
|
||||
|
||||
> **ポイント**
|
||||
> 生成UIで試して「これは良い!」と思ったプロンプトを、その場でプリセットに保存する習慣をつけましょう。
|
||||
> あとから同じ雰囲気の画像を作りたいときに、すぐに呼び出せます。
|
||||
|
||||
### プリセットを呼び出して使う
|
||||
1. 一番上のプルダウンから、使いたいプリセットを選びます。
|
||||
2. 使い方に応じてボタンを押します。
|
||||
|
||||
| ボタン | 動き |
|
||||
| --- | --- |
|
||||
| GenUI Set | 生成UIのプロンプト欄に、ポジティブとネガティブをまとめてセットする |
|
||||
| PP Copy | ポジティブプロンプトをコピーする |
|
||||
| NP Copy | ネガティブプロンプトをコピーする |
|
||||
|
||||
> **注意**
|
||||
> **GenUI Set** は、生成UIにワークフローが読み込まれているときに使えます。
|
||||
> 先に第5章の手順でワークフローを読み込んでおきましょう。
|
||||
|
||||
### グループで分類する
|
||||
プリセットも、グループで分類できます。
|
||||
|
||||
1. プリセットを選んだ状態で、**+ Group** を押して新しいグループを作ります。
|
||||
2. **Select group...** からグループを選び、**Add to Group** を押します。
|
||||
|
||||
グループは削除することもできます(**Del Group**)。
|
||||
|
||||
ここで作ったグループは、生成UIのバッチ生成(第5章 5-5)で「Prompt」のグループとして使えます。
|
||||
たとえば「季節シリーズ」というグループに春・夏・秋・冬のプリセットを入れておけば、
|
||||
4つの季節の絵をまとめて生成できます。
|
||||
|
||||
### Preset Manager で一覧する
|
||||
中央の列の **Preset Manager** タブでは、保存したプリセットを一覧で見られます。
|
||||
|
||||
- **All** - すべてのプリセット
|
||||
- **★** - お気に入りに登録したプリセット
|
||||
- **Groups** - グループごとの表示
|
||||
|
||||
上部の **Search presets...** 欄で、プリセットを検索できます。
|
||||
|
||||
保存したプリセットは、ComfyUIのノード画面の横にある **WS Library** の **P(Prompts)** タブにも表示され、
|
||||
キャンバスへドラッグして使えます(第9章)。
|
||||
|
||||
---
|
||||
|
||||
## 7-4 ワイルドカードとスタイル
|
||||
|
||||
右の列では、プロンプトを自動で変化させる **ワイルドカード** と、
|
||||
プロンプトに雰囲気を足す **スタイル** を管理します。
|
||||
列の上部の **Wildcard/Style** で切り替えます。
|
||||
|
||||
### ワイルドカードとは
|
||||
ワイルドカードは、**生成するたびに、プロンプトの一部をランダムに入れ替える** しくみです。
|
||||
同じプロンプトのまま、バリエーションのある画像をたくさん作れます。
|
||||
|
||||
Workflow Studioでいちばん手軽なのは、**ワイルドカードファイル** を使う方法です。
|
||||
候補を書いたファイルを作っておき、プロンプトに `__ファイル名__` と書くと、
|
||||
生成するたびにファイルの中から1行がランダムに選ばれます。
|
||||
|
||||
### ワイルドカードファイルを作る
|
||||
例として、色の候補を入れた `colors` というファイルを作ってみましょう。
|
||||
|
||||
1. 右の列で **Wildcard** を選び、**Wildcard Files** の **+ New** を押します。
|
||||
2. ファイル名(例:`colors`)を入力し、形式は **txt** を選びます。
|
||||
3. 候補を1行に1つずつ入力します。
|
||||
|
||||
```
|
||||
red
|
||||
blue
|
||||
green
|
||||
golden
|
||||
```
|
||||
|
||||
4. **Save** を押します。
|
||||
|
||||
### ワイルドカードを使う
|
||||
プロンプトに、ファイル名を `__`(アンダースコア2つ)で囲んで書きます。
|
||||
|
||||
```
|
||||
1girl, __colors__ dress, standing in a garden
|
||||
```
|
||||
|
||||
生成UIで生成するたびに、`__colors__` の部分が `red`・`blue`・`green`・`golden` のどれかに置き換わります。
|
||||
|
||||
> **ポイント**
|
||||
> `__colors__` を手で入力する代わりに、右の列の **File** ボタンでファイルを選んで挿入することもできます。
|
||||
|
||||
### もっと高度な書き方(Impact Pack 用)
|
||||
右の列の上部には、`{ }`、`$$`、`[ ]` などの記号を挿入するボタンもあります。
|
||||
これらは、次のような書き方のためのものです。
|
||||
|
||||
| 書き方 | 意味 |
|
||||
| --- | --- |
|
||||
| `{cat|dog|rabbit}` | 3つの中から1つを選ぶ |
|
||||
| `{2$$cat|dog|bird}` | 3つの中から2つを選ぶ |
|
||||
|
||||
※ 本書では見やすさのため `|` と全角で表記しています。実際には半角の `|`(縦棒)を使います。
|
||||
|
||||
> **注意**
|
||||
> 生成UIが自動で展開するのは、`__ファイル名__` の書き方だけです。
|
||||
> `{A|B}` などの書き方を使うには、カスタムノード **ComfyUI-Impact-Pack** のワイルドカード用ノード
|
||||
> (ImpactWildcardProcessor など)をワークフローに入れておく必要があります。
|
||||
> 慣れないうちは、`__ファイル名__` の書き方だけ使えば十分です。
|
||||
|
||||
### 作ったプロンプトを送る
|
||||
右の列で組み立てたプロンプトは、下のボタンで送り出せます。
|
||||
|
||||
- **→ Pos** - プリセットのPositive Promptへ送る
|
||||
- **→ Neg** - プリセットのNegative Promptへ送る
|
||||
- **Copy** - コピーする
|
||||
|
||||
`__ファイル名__` の部分は、生成UIで生成するときに自動で展開されます。
|
||||
|
||||
### スタイル
|
||||
**スタイル** は、プロンプトに付け足す「雰囲気のテンプレート」です。
|
||||
たとえば「映画風」というスタイルには、`cinematic still, {prompt}, dramatic lighting` のような内容が登録されています。
|
||||
`{prompt}` の部分に、あなたのプロンプトが入ります。
|
||||
|
||||
スタイルを使うには、生成UIの上部のバーで、**Style** のチェックボックスをオンにして、プルダウンからスタイルを選びます。
|
||||
生成するときに、選んだスタイルがプロンプトに自動で合成されます(ワークフローそのものは書き換わりません)。
|
||||
|
||||
Workflow Studioにはたくさんのスタイルが付属しています。
|
||||
プロンプトタブの **Style** では、スタイルの一覧を見たり、**+ New** で自分のスタイルを作ったりできます。
|
||||
|
||||
> **ポイント**
|
||||
> どのスタイルがどんな雰囲気になるかは、生成UIの **Create Catalog** で、スタイルごとの見本画像をまとめて作ると分かりやすくなります。
|
||||
> 作った見本は、ギャラリータブの Style_Catalog で一覧できます(第8章)。
|
||||
|
||||
---
|
||||
|
||||
## 7-5 AIで翻訳・プロンプト作りを手伝ってもらう
|
||||
|
||||
左の列の **AI Assistant** では、パソコンで動くAI(ローカルAI)に、プロンプト作りを手伝ってもらえます。
|
||||
|
||||
> **事前に必要なもの**
|
||||
> この機能を使うには、**Ollama** や **LM Studio** などのローカルAIソフトと、AIモデルの準備が必要です。
|
||||
> 準備の方法は第10章で説明します。準備ができていない場合、AI Assistantの上部に **Disconnected** と表示されます。
|
||||
|
||||
### 日本語を英語に翻訳する
|
||||
英語のプロンプトが苦手でも大丈夫です。
|
||||
|
||||
1. 左の列の下にある入力欄に、日本語で描きたい内容を書きます。
|
||||
|
||||
```
|
||||
桜の木の下で微笑む制服姿の少女、春の柔らかい光
|
||||
```
|
||||
|
||||
2. **Translate:** の **JA→EN** ボタンを押します。
|
||||
3. チャット欄に、英語に翻訳された結果が表示されます。
|
||||
|
||||
翻訳結果の下に表示されるボタンで、結果を使えます。
|
||||
|
||||
| ボタン | 動き |
|
||||
| --- | --- |
|
||||
| 生成UIに適用 | 生成UIのポジティブプロンプト欄に入れる |
|
||||
| コピー | コピーする(プリセットに貼り付けるときなど) |
|
||||
|
||||
英語のプロンプトの意味を知りたいときは、反対に **EN→JA** で日本語に訳せます。
|
||||
|
||||
### AIと相談しながらプロンプトを作る
|
||||
入力欄に質問を書いて **Send**(または Enter キー)を押すと、AIとチャットできます。
|
||||
|
||||
- 「夕暮れの海辺の風景のプロンプトを、英語のタグ形式で作って」
|
||||
- 「このプロンプトに、もっと幻想的な雰囲気を足して」
|
||||
|
||||
のように頼むと、プロンプトの案を出してくれます。
|
||||
画像を読み取れるAIモデルを使っている場合は、**Attach Image** で画像を添付して、
|
||||
「この画像の雰囲気をプロンプトにして」と頼むこともできます。
|
||||
|
||||
- **Shift+Enter** - 改行
|
||||
- **Clear Chat** - 会話をリセット
|
||||
- **歯車ボタン** - 使うAIソフトやモデルの設定(第10章)
|
||||
|
||||
> **注意**
|
||||
> ローカルAIの答えは、いつも正しいとは限りません。
|
||||
> 出てきたプロンプトは、実際に生成して確かめながら調整しましょう。
|
||||
|
||||
> **この章のまとめ**
|
||||
> - プロンプトは英語・カンマ区切りが基本。強調は `(言葉:数値)`
|
||||
> - うまくいったプロンプトは、プリセットとして名前を付けて保存する
|
||||
> - 「GenUI Set」で、プリセットをすぐ生成UIにセットできる
|
||||
> - グループに分けると、バッチ生成でまとめて試せる
|
||||
> - ワイルドカードファイルを作って `__ファイル名__` と書くと、生成のたびにプロンプトを変化させられる
|
||||
> - ローカルAIを用意すれば、日本語からの翻訳やプロンプトの相談ができる
|
||||
@@ -0,0 +1,304 @@
|
||||
# 第8章 ギャラリータブ - 生成した画像を見返す
|
||||
|
||||
画像生成を続けていると、ComfyUIの `output` フォルダには何百、何千枚もの画像がたまっていきます。
|
||||
**ギャラリー(Gallery)** タブは、それらの画像を快適に見返し、
|
||||
「この画像、どうやって作ったんだっけ?」を解決するための場所です。
|
||||
|
||||
ComfyUIで生成した画像には、生成に使ったワークフローやプロンプトの情報(**メタデータ**)が埋め込まれています。
|
||||
ギャラリータブでは、この情報を読み取って、同じ設定をすぐに再現できます。
|
||||
また、動画(MP4・WebM)や音声ファイル(WAV・MP3・OGG・M4A・FLAC・Opus)も、画像と同じ一覧で扱えます。
|
||||
|
||||
---
|
||||
|
||||
## 8-1 画像を一覧する
|
||||
|
||||
ギャラリータブの上部には、4つのサブタブがあります。
|
||||
|
||||
| サブタブ | 役割 | 本書 |
|
||||
| --- | --- | --- |
|
||||
| Output | 生成した画像の一覧(ふだん使うのはここ) | 8-1〜8-3 |
|
||||
| ImagePrompt | 見本画像を見ながらプロンプトを組み立てる | 8-4 |
|
||||
| Style_Catalog | スタイルの見本画像から選ぶ | 8-4 |
|
||||
| メタデータ | 画像ファイルをドロップして、中の情報を調べる | 8-2 |
|
||||
|
||||
### Outputの画面
|
||||
**Output** サブタブは、左・中央・右の3つの部分に分かれています。
|
||||
|
||||
| 場所 | 役割 |
|
||||
| --- | --- |
|
||||
| 左(フォルダ) | `output` フォルダの中のフォルダ一覧。いちばん上の **[root]** が `output` フォルダ全体 |
|
||||
| 中央(一覧) | 選んだフォルダの画像。下へスクロールすると続きが読み込まれる |
|
||||
| 右(詳細パネル) | 選んだ画像の情報(8-2) |
|
||||
|
||||
まず、左のフォルダ一覧からフォルダを選ぶと、中央に画像が表示されます。
|
||||
|
||||
> **ポイント**
|
||||
> 生成UIやComfyUIで新しく生成した画像が出てこないときは、ツールバーの **Refresh** を押してください。
|
||||
|
||||
> **ポイント**
|
||||
> 読み込む `output` フォルダの場所は、設定タブの **「ギャラリー Outputフォルダ」** で変更できます。
|
||||
|
||||
### 表示の切り替え・検索・並べ替え
|
||||
ほかのタブと同じく、次の操作ができます。
|
||||
|
||||
- **サムネイル/テーブル** - サムネイル表示とテーブル表示の切り替え
|
||||
- **検索欄** - ファイル名・タグ・メモ・**プロンプトの内容** で検索。横の **S** ボタンをオンにすると、文章の意味で探せます(8-6)
|
||||
- **並べ替え** - Date (Newest)/Date (Oldest)/Name A-Z/Name Z-A
|
||||
- **★** - お気に入りだけ表示
|
||||
- **× クリア** - 絞り込みをまとめて解除
|
||||
|
||||
> **ポイント**
|
||||
> 検索欄では、プロンプトの言葉でも探せます。
|
||||
> たとえば「cat」で検索すると、プロンプトに cat を含む画像が見つかります。
|
||||
> (プロンプトの検索は、一度詳細パネルで開いた画像が対象になります)
|
||||
|
||||
### 大きく見る・比べる
|
||||
- 画像をクリックすると、右の詳細パネルに大きく表示されます。
|
||||
- **Ctrl キーを押しながら** 画像をクリックすると、複数の画像を選べます。
|
||||
2〜4枚選んで **比較** を押すと、並べて見比べられます。
|
||||
|
||||
シードやモデルだけを変えて作った画像を並べると、違いがよく分かります。
|
||||
|
||||
### 整理する
|
||||
- **お気に入り(★)・タグ・メモ・グループ** で分類できます(詳細パネルで設定)。
|
||||
- 複数選択して、まとめてグループに追加したり、別のフォルダへ移動したりできます。
|
||||
移動先を選ぶ画面(**移動先...**)には絞り込み欄があり、フォルダ名の一部を入れると候補が絞られ、Enterで先頭の候補へ移動できます。
|
||||
- **エクスポート** を押すと、選んだ画像をZIPファイルにまとめてダウンロードできます。
|
||||
|
||||
> **注意**
|
||||
> 詳細パネルの **Delete** や、複数選択の **ファイル削除** を使うと、画像ファイルそのものが削除されます。
|
||||
|
||||
---
|
||||
|
||||
## 8-2 メタデータから生成設定を読み取る
|
||||
|
||||
画像をクリックすると、右の詳細パネルに4つのタブが表示されます。
|
||||
|
||||
| タブ | 内容 |
|
||||
| --- | --- |
|
||||
| プロンプト | 画像の生成に使われたプロンプト(最初に表示されるタブ) |
|
||||
| 基本情報 | ファイル名・大きさ・日時・タグ・メモ |
|
||||
| メタデータ | 画像に埋め込まれたワークフロー(JSON) |
|
||||
| グループ | グループの設定 |
|
||||
|
||||
### プロンプトを確認する
|
||||
**プロンプト** タブには、画像に埋め込まれていたプロンプトが一覧表示されます。
|
||||
ポジティブには **POS**、ネガティブには **NEG** の印が付きます。
|
||||
項目をクリックすると、全文が表示されます。
|
||||
|
||||
### もっと詳しく調べる(メタデータサブタブ)
|
||||
使ったモデルやLoRAまで詳しく知りたいときは、詳細パネルの **Metadata** ボタンを押します
|
||||
(または、Alt キーを押しながら画像をクリック)。
|
||||
ギャラリーの **メタデータ** サブタブが開き、次の情報が整理されて表示されます。
|
||||
|
||||
- **モデル** - Checkpoint、VAE、Diffusion Model、Text Encoder(中央の列)
|
||||
- **LoRA** - 使われたLoRAと、その強さ(中央の列)
|
||||
- **プロンプト** - ポジティブ・ネガティブ(中央の列)
|
||||
- **Settings** - 画像サイズ(幅×高さ)と、KSamplerの Seed・Steps・CFG・Sampler・Scheduler・Denoise(右の列。v0.7.14〜)
|
||||
- **Nanobanana** - Comic Creatorのnanobananaタブで作った画像の、エンジン・モデル・プロンプトなどの生成履歴(右の列。該当する画像のみ)
|
||||
|
||||
プロンプトの横のボタンで、内容をほかのタブに送れます。
|
||||
|
||||
| ボタン | 動き |
|
||||
| --- | --- |
|
||||
| Copy | コピー |
|
||||
| GenUI:P/GenUI:N | 生成UIのポジティブ/ネガティブに入れる |
|
||||
| Prompt:P/Prompt:N | プロンプトタブのプリセットのポジティブ/ネガティブに入れる |
|
||||
|
||||
> **ポイント:ネットで見つけた画像も調べられる**
|
||||
> メタデータサブタブの左側に、画像ファイルを **ドロップ** すると、その画像の情報を調べられます。
|
||||
> ComfyUIの画像だけでなく、SD WebUI(AUTOMATIC1111)、SD Forge、Fooocus で作られたPNG画像にも対応しています。
|
||||
> 配布サイトで見つけた画像の作り方を知りたいときに便利です
|
||||
> (ただし、投稿時にメタデータが消されている画像からは読み取れません)。
|
||||
|
||||
---
|
||||
|
||||
## 8-3 同じ設定を再現する
|
||||
|
||||
ギャラリーのいちばん便利な使い方は、**気に入った画像と同じ設定で、もう一度生成する** ことです。
|
||||
方法は2つあります。
|
||||
|
||||
### 方法1:生成UIで再現する(GenUI)
|
||||
1. ギャラリーで、再現したい画像をクリックします。
|
||||
2. 詳細パネルの **GenUI** ボタンを押します。
|
||||
3. 画像に埋め込まれていたワークフローが、生成UIに読み込まれます。
|
||||
|
||||
あとは第5章と同じように、プロンプトを少し変えたり、シードを変えたりして生成できます。
|
||||
|
||||
> **ポイント**
|
||||
> **同じ画像をもう一度作りたいとき(v0.8.3〜)**
|
||||
> 画像に埋め込まれているワークフローには、そのときのシード値も入っています。
|
||||
> 生成パネルのシードのモードを **Workflow** にして Generate を押すと、そのシードのまま生成されます。
|
||||
>
|
||||
> モードが Random のままだと、別のシードで生成されます。
|
||||
> また、Fixed を使う場合は、**Settings** サブタブの **Seed** 欄の値を生成パネルの **Seed** 欄に貼り付けてください(生成パネルの値が優先されるため)。
|
||||
|
||||
### 方法2:ComfyUIのノード画面で再現する(コピー&キャンバスへ送る)
|
||||
1. ギャラリーで、再現したい画像をクリックします。
|
||||
2. 詳細パネルの **メタデータ** タブを開きます。
|
||||
3. **コピー&キャンバスへ送る**(Copy & Send Canvas)を押します。
|
||||
|
||||
ComfyUIのノード画面に、その画像を作ったワークフローが読み込まれます。
|
||||
ノード画面で細かく手を加えたいときは、こちらを使います。
|
||||
|
||||
> **注意**
|
||||
> 「この画像にはComfyUIワークフローが埋め込まれていません」と表示される場合は、再現できません。
|
||||
> ワークフローの情報が保存されない設定で作った画像や、別のソフトで編集・圧縮した画像などが当てはまります。
|
||||
|
||||
### 画像を次の生成の材料にする
|
||||
ギャラリーの画像を、生成の「入力画像」として使うこともできます。
|
||||
|
||||
| ボタン | 動き |
|
||||
| --- | --- |
|
||||
| Send GenUI Image | 選んだ画像を、生成UIのワークフローの入力画像(LoadImageノード)にセットする |
|
||||
| Send to LI node | 選んだ画像を、ComfyUIのノード画面で選んでいる画像読み込みノードにセットする |
|
||||
| Image Edit | 選んだ画像を Image Edit タブで開く(第11章) |
|
||||
| Send CC | 選んだ画像を Comic Creator のコマに送る(Comic Creatorの中でギャラリーを開いたときだけ表示。第11章 11-6) |
|
||||
|
||||
I2I(画像から画像を作る)ワークフローで、生成した画像をさらに描き直していくときに便利です。
|
||||
|
||||
---
|
||||
|
||||
## 8-4 ImagePrompt と Style_Catalog
|
||||
|
||||
### ImagePrompt - 見本画像からプロンプトを組み立てる
|
||||
**ImagePrompt** は、「見本画像」と「プロンプト」をセットで並べて、
|
||||
見た目で選びながらプロンプトを組み立てるためのサブタブです。
|
||||
|
||||
1. 見本画像をクリックすると、右側にその画像のプロンプトが表示されます。
|
||||
2. **+ Add** を押すと、**Selected Prompts** に追加されます。
|
||||
3. いくつか追加すると、**Final Prompt** に、カンマ区切りでまとめたプロンプトができあがります。
|
||||
4. **Copy** でコピーして、生成UIやプリセットに貼り付けます。
|
||||
|
||||
見本画像は、`output` フォルダの中に自動で作られる `ws_image_prompt` フォルダに置きます。
|
||||
画像と同じ名前の `.txt` ファイル(中身がプロンプト)を一緒に置くと、見本として使えるようになります。
|
||||
|
||||
> **例**
|
||||
> `ws_image_prompt/髪型/ponytail.png` と `ws_image_prompt/髪型/ponytail.txt`(中身:`ponytail, long hair`)
|
||||
|
||||
### Style_Catalog - スタイルを見本画像で選ぶ
|
||||
第7章で紹介したスタイルは、名前だけではどんな雰囲気になるか分かりにくいものです。
|
||||
**Style_Catalog** では、スタイルごとの見本画像を並べて、見た目で選べます。
|
||||
|
||||
見本画像は、生成UIの上部のバーにある **Create Catalog** で作ります。
|
||||
|
||||
1. 生成UIに、文章から画像を作るワークフローを読み込みます。
|
||||
2. **Batch** サブタブの **Style** で、見本を作りたいスタイルにチェックを入れます。
|
||||
3. 上部のバーの **Create Catalog** を押し、保存先のフォルダを決めて実行します。
|
||||
4. 上部のバーの **Catalog** を押すと、ギャラリーの Style_Catalog に移動します。
|
||||
|
||||
Style_Catalog で見本画像を選び、**Select as Style** を押すと、
|
||||
生成UIのスタイルが、そのスタイルに切り替わります。
|
||||
|
||||
> **ポイント**
|
||||
> モデルによってスタイルの効き方は変わります。
|
||||
> 保存先のフォルダをモデルごとに分けておくと、比べやすくなります。
|
||||
|
||||
---
|
||||
|
||||
## 8-5 Eagle連携・PSD書き出し(任意)
|
||||
|
||||
ここからは、必要な方だけが使う機能です。
|
||||
|
||||
### Eagle連携
|
||||
**Eagle** は、画像を整理するための有料ソフトです。
|
||||
設定タブの **Eagle連携** を有効にすると、生成UIで生成した画像を、プロンプトなどの情報付きで自動的にEagleに保存できます。
|
||||
Eagleで画像を管理している方は、試してみてください。
|
||||
|
||||
### PSD書き出し
|
||||
ギャラリーで複数の画像を選び、**PSD作成** を押すと、
|
||||
それぞれの画像をレイヤーとして重ねたPSD(Photoshop形式)のファイルを作れます。
|
||||
差分画像をまとめて、画像編集ソフトで仕上げたいときに便利です。
|
||||
|
||||
> **注意**
|
||||
> PSD関連の機能を使うには、追加のPythonパッケージ(psd-tools)が必要です。
|
||||
> 入っていない場合は、インストール方法がエラーメッセージで表示されます(第11章)。
|
||||
|
||||
---
|
||||
|
||||
## 8-6 画像を「意味」で探す(セマンティック検索)
|
||||
|
||||
通常の検索は、ファイル名・タグ・プロンプトの文字が一致した画像を探します。
|
||||
**セマンティック検索**(v0.8.2〜)は、画像の「意味」で探します。
|
||||
たとえば「夕暮れの街並み」と入れると、プロンプトにその言葉が無くても、雰囲気の合う画像が見つかります。
|
||||
また、選んだ画像に **似た画像** の一覧を出すこともできます。
|
||||
|
||||
### 使い方
|
||||
1. 検索欄の横の **S** ボタンをオンにします。検索欄が意味検索に切り替わり、ツールバーに2行目が現れます。
|
||||
2. 2行目の **歯車ボタン**(設定)を押し、**インデックス**(検索用の索引)を作ります(下記)。
|
||||
3. 検索欄に文章を入れて **Enter** を押します。結果はスコア順に並び、サムネイルにスコアが表示されます。
|
||||
4. 画像を選んで2行目の **Similar** を押すと、その画像に似た画像が並びます。別の画像を選んで **↻(更新)** を押すと、その画像の類似を出し直します。もう一度 **Similar** を押すと、通常の表示に戻ります。
|
||||
|
||||
> **ポイント**
|
||||
> 意味検索の結果には、並べ替えやタグ・グループの絞り込みは効きません。
|
||||
> 検索の範囲は、選んでいるフォルダの中(サブフォルダを含む)です。
|
||||
> フォルダツリーの枚数の横に緑の点があるフォルダは、直下の画像がすべてインデックス済みです。
|
||||
|
||||
### モデルを選ぶ(歯車ボタンの「モデル設定」タブ)
|
||||
| モデル | 特徴 | 準備 |
|
||||
| --- | --- | --- |
|
||||
| Gemini Embedding 2 | Googleのサービスで計算する。速い。画像をGoogleに送る | APIキーを取得し、プラグインの `.env` に `GEMINI_API_KEY=キー` と書いて、ComfyUIを再起動する |
|
||||
| EmbeddingGemma 2 | パソコンの中で計算する(ローカル)。外部に送らない | 追加の準備は不要。初回だけモデルが自動でダウンロードされる |
|
||||
|
||||
> **注意:Geminiを使うとき**
|
||||
> 画像がGoogleのサービスに送られます。無料枠で送った内容は、Googleの製品改善に使われる場合があります。
|
||||
> 公開したくない画像が多い場合は、ローカルの EmbeddingGemma 2 を選んでください。
|
||||
> APIキーは `.env` にだけ書き、他人に見せないようにしましょう。
|
||||
|
||||
### インデックスを作る(歯車ボタンの「インデックス」タブ)
|
||||
1. 対象のフォルダを選びます(サブフォルダを含めるかも選べます)。
|
||||
2. 「新規のみ」か「全件再作成」を選んで開始します。進み具合が表示され、途中で停止もできます。
|
||||
3. インデックスは全フォルダで共通の1つです。フォルダごとに少しずつ作っても構いません。
|
||||
|
||||
モデルやベクトル次元、画像の精度を変えたときは、**全件再作成** が必要です。
|
||||
|
||||
### 速さの目安と設定
|
||||
- ローカルのEmbeddingGemma 2は、初期設定ではCPUで動き、1枚あたり数秒かかります。
|
||||
**画像の精度** を「標準」や「軽量」にすると速くなります(変えたら全件再作成)。
|
||||
**CPUスレッド数** を減らすと、画像生成中のパソコンの負荷が軽くなります。
|
||||
- NVIDIAのGPUがあれば、ComfyUIのPythonに `onnxruntime-gpu` を入れると、1枚あたり約0.1秒になります(対処は第12章 12-5)。
|
||||
- **検索設定** タブで、類似画像・文章検索それぞれの「最小スコア」と最大表示件数を決められます。
|
||||
スコアの水準はモデルによって違うため、モデルごとに保存されます。
|
||||
|
||||
---
|
||||
|
||||
## 8-7 音声ファイルの扱いと変換
|
||||
|
||||
ComfyUIで音楽や効果音を作る機会が増えたため、ギャラリーは音声ファイルも扱えます(v0.8.0〜)。
|
||||
対応しているのは、WAV・MP3・OGG・M4A・FLAC・Opus です。
|
||||
|
||||
- 一覧には、音の形(波形)のサムネイルと、♪ のバッジが表示されます。波形の色は形式ごとに違います(MP3は青、WAVは緑、FLACは琥珀色、OGG/Opusは紫、M4Aはピンク)。
|
||||
- 選ぶと、右の詳細パネルに波形とプレイヤーが表示され、その場で再生できます。
|
||||
- 保存時にワークフロー(`prompt`/`workflow`)が埋め込まれている音声は、プロンプトやJSONのタブも使えます。
|
||||
- 動画(MP4・WebM)も同様に一覧できます。**Send to LV node** ボタンで、選んだ動画を、ComfyUIの画面で選択中の **Load Video** ノードに送れます(画像版の Send to LI node の動画版です)。
|
||||
|
||||
### ファイルを変換する
|
||||
音声または動画を含めて複数選択すると、一括操作バーに **変換...** が現れます。
|
||||
|
||||
1. 変換したいファイルを選び、**変換...** を押します。
|
||||
2. 出力形式(FLAC/MP3/Opus/M4A/WAV)と、必要ならビットレート・サンプルレート・チャンネル数を決めます。
|
||||
3. 実行すると、同じフォルダに別のファイルとして保存されます(同名があるときは `名前_converted` のように連番が付き、上書きはされません)。
|
||||
|
||||
動画を選んだときは、音声トラックだけを取り出して保存します。
|
||||
|
||||
| 引き継ぎ | 説明 |
|
||||
| --- | --- |
|
||||
| ワークフロー情報 | MP3・FLAC・Opus・M4A には引き継がれる。WAVには引き継げない(通知が出る) |
|
||||
| お気に入り・タグ・メモ・グループ | 引き継ぐかを選べる |
|
||||
| 元ファイルの削除 | 変換に成功したあとで削除するかを選べる(確認画面あり) |
|
||||
|
||||
> **ポイント**
|
||||
> OGG は再生はできますが、変換の出力形式には選べません。
|
||||
> ほかの動画編集ソフトを入れなくても、Workflow Studioだけで変換できます。
|
||||
|
||||
> **ポイント:Videoタブでの活用**
|
||||
> Video の Asset サブタブでは、音声ファイルを「BGMに設定」したり、「サウンドとして追加」したりできます(第11章 11-4)。
|
||||
|
||||
> **この章のまとめ**
|
||||
> - ギャラリーのOutputで、生成した画像をフォルダごとに見返せる。プロンプトの言葉でも検索できる
|
||||
> - 詳細パネルのプロンプトタブで、画像の生成に使ったプロンプトがすぐ分かる
|
||||
> - 「GenUI」で生成UIに、「コピー&キャンバスへ送る」でノード画面に、同じワークフローを再現できる
|
||||
> - 再現するときは、シードのモードを Workflow(または Fixed)にする
|
||||
> - メタデータサブタブに画像をドロップすると、モデル・LoRA・プロンプトを詳しく調べられる
|
||||
> - Sボタンで、文章の意味や「似た画像」から探せる(セマンティック検索)
|
||||
> - 音声ファイルも一覧・再生・変換できる
|
||||
@@ -0,0 +1,171 @@
|
||||
# 第9章 WS Library - ComfyUI画面の中で使う
|
||||
|
||||
ここまでの章では、Workflow Studio本体(タブが並ぶ画面)を中心に使ってきました。
|
||||
この章では、ComfyUIのノード画面の横に開く **WS Library(Workflow Studio Library)** を使います。
|
||||
|
||||
WS Libraryを使うと、Workflow Studioで整理したワークフロー・ノード・モデル・プロンプトを、
|
||||
**ノード画面にドラッグ&ドロップするだけ** で使えます。
|
||||
ノード画面で作業する時間が長い方ほど、便利さを実感できる機能です。
|
||||
|
||||
---
|
||||
|
||||
## 9-1 WS Libraryを開く
|
||||
|
||||
1. ComfyUIのノード画面を開きます。
|
||||
2. 上部メニューに追加された **WS Library** ボタン(四角が並んだアイコン)を押します。
|
||||
|
||||
画面の端にパネルが開きます。もう一度ボタンを押すと閉じます。
|
||||
|
||||
### 6つのタブ
|
||||
パネルの上部には、1文字のタブが並んでいます。マウスを重ねると、正式な名前が表示されます。
|
||||
|
||||
| タブ | 名前 | できること | 本書 |
|
||||
| --- | --- | --- | --- |
|
||||
| W | Workflows | ワークフローを読み込む | 9-2 |
|
||||
| N | Nodes | ノードやノードセットを置く | 9-2 |
|
||||
| M | Models | モデルを読み込むノードを置く | 9-2 |
|
||||
| P | Prompts | 保存したプロンプトを置く・コピーする | 9-2 |
|
||||
| I | Information | 画像やワークフローの中身を調べて、使われた素材を置く | 9-3 |
|
||||
| A | AI TOOL | 翻訳やチャットなどのAI機能を使う | 第10章 |
|
||||
|
||||
各タブの中には、さらに小さなタブ(サブタブ)があります。
|
||||
多くのタブで、次のサブタブが共通して使えます。
|
||||
|
||||
- **All** - すべて
|
||||
- **★ Favorites** - Workflow Studio本体でお気に入りに登録したもの
|
||||
- **Groups** - Workflow Studio本体で作ったグループごと
|
||||
|
||||
また、各サブタブの検索欄で、名前を入力して絞り込めます。
|
||||
|
||||
> **ポイント**
|
||||
> WS Libraryに表示される内容は、Workflow Studio本体での整理(お気に入り・グループ・バッジ)と連動しています。
|
||||
> 本体でしっかり整理しておくほど、WS Libraryも使いやすくなります。
|
||||
|
||||
---
|
||||
|
||||
## 9-2 ドラッグ&ドロップでキャンバスに置く
|
||||
|
||||
WS Libraryの基本操作は、とてもシンプルです。
|
||||
|
||||
| 操作 | 動き |
|
||||
| --- | --- |
|
||||
| キャンバスへドラッグ&ドロップ | ドロップした位置に置く・読み込む |
|
||||
| ダブルクリック | 画面の中央付近に置く・読み込む |
|
||||
|
||||
### W - ワークフローを読み込む
|
||||
ワークフローをキャンバスへドラッグ(またはダブルクリック)すると、そのワークフローが読み込まれます。
|
||||
エクスプローラーからワークフローのファイルをドロップしたときと同じ動きです。
|
||||
|
||||
サブタブ:All/★ Favorites/Groups/By Badge(バッジごと)
|
||||
|
||||
> **ポイント**
|
||||
> Workflow Studio本体をブックマークから開いていて「キャンバスへ送る」が使えない場合は、
|
||||
> このWタブに対象のワークフローが表示されるので、ここからドラッグしてください(第4章 4-6)。
|
||||
|
||||
### M - モデルを置く
|
||||
モデルをキャンバスへドラッグすると、**そのモデルが選ばれた状態の読み込みノード** が置かれます。
|
||||
|
||||
| モデルの種類 | 置かれるノード |
|
||||
| --- | --- |
|
||||
| Checkpoint | Load Checkpoint(CheckpointLoaderSimple) |
|
||||
| LoRA | Load LoRA(LoraLoader) |
|
||||
| VAE | Load VAE(VAELoader) |
|
||||
| ControlNet | Load ControlNet Model(ControlNetLoader) |
|
||||
| UNET | Load Diffusion Model(UNETLoader) |
|
||||
| TextEncoder | Load CLIP(CLIPLoader) |
|
||||
| Hypernetwork | HypernetworkLoader |
|
||||
|
||||
ノードを一覧から探して、置いて、ファイル名をプルダウンから選んで……という手間がなくなります。
|
||||
置いたあとは、ほかのノードと線でつないで使います。
|
||||
|
||||
サブタブ:All/★ Favorites/Groups/By Type(種類ごと)
|
||||
|
||||
> **ポイント**
|
||||
> Embeddingには読み込み用のノードがないため、キャンバスに置くことはできません。
|
||||
|
||||
> **ポイント:LoRAをまとめて置く**
|
||||
> LoRAのグループには **All N LoRAs**(Nはグループ内のLoRAの数)という項目が表示されます。
|
||||
> これをドラッグすると、グループ内のLoRAがすべて入った状態の `Lora Loader (LoraManager)` ノードが置かれます。
|
||||
> (カスタムノード **ComfyUI-Lora-Manager** が必要です)
|
||||
|
||||
### P - プロンプトを置く
|
||||
保存したプリセット(第7章)をキャンバスへドラッグすると、
|
||||
ポジティブ・ネガティブのプロンプトが入った **Prompt Text (WFS)** ノードが置かれます。
|
||||
これはWorkflow Studioに付属しているノードで、プロンプトの文章を出力します。
|
||||
|
||||
プロンプトを貼り付けたいだけのときは、項目の **P**(ポジティブ)/**N**(ネガティブ)ボタンでコピーできます。
|
||||
|
||||
サブタブ:All/★ Favorites/Categories(カテゴリーごと)/Groups
|
||||
|
||||
### N - ノードを置く
|
||||
ノードをキャンバスへドラッグすると、そのノードが置かれます。
|
||||
よく使うノードをWorkflow Studio本体の **ノード** タブでお気に入りに登録しておくと、すぐに取り出せます。
|
||||
Nタブの一覧で、ノードを **Alt+クリック** すると、その場でお気に入りのオン/オフを切り替えられます(v0.8.0〜)。
|
||||
Nタブは、ノードの詳細情報を待たずに一覧を先に表示するため、以前より速く開きます。
|
||||
|
||||
サブタブ:All/★ Favorites/Groups/Sets/Category(カテゴリーごと)/Package(カスタムノードのパッケージごと)
|
||||
|
||||
### ノードセット - よく使う組み合わせを丸ごと保存する
|
||||
**ノードセット** は、複数のノードとそのつながりを、ひとまとまりで保存したものです。
|
||||
「いつも同じ組み合わせで使うノード群」を保存しておけば、ドラッグ1回で丸ごと置けます。
|
||||
|
||||
**ノードセットを作る**
|
||||
1. ComfyUIのノード画面で、保存したいノードを選択します(Ctrlキーを押しながらクリック、またはドラッグで範囲選択)。
|
||||
2. 選んだノードの上で **右クリック** し、**Save as Node Set** を選びます。
|
||||
3. 名前を付けて保存します。
|
||||
|
||||
**ノードセットを使う**
|
||||
WS Libraryの **N** タブの **Sets** サブタブから、キャンバスへドラッグします。
|
||||
|
||||
> **例**
|
||||
> 「顔を自動で補正するノード群」や「高解像度化(アップスケール)のノード群」など、
|
||||
> どのワークフローにも後から付け足したい部品をセットにしておくと便利です。
|
||||
|
||||
---
|
||||
|
||||
## 9-3 Informationタブで画像の中身を調べる
|
||||
|
||||
**I(Information)** タブは、画像やワークフローのファイルを調べて、
|
||||
**使われていたモデルやプロンプトを、そのままキャンバスに置ける** 機能です。
|
||||
ギャラリーのメタデータ(第8章 8-2)を、ノード画面の中で使えるようにしたものと考えてください。
|
||||
|
||||
### 使い方
|
||||
1. WS Libraryの **I** タブを開きます。
|
||||
2. 調べたいファイル(ComfyUIで作ったPNG・WebP・MP4・WebMの画像や動画、またはワークフローのJSON)を、パネルにドロップします。
|
||||
3. ファイルの中から見つかった素材が、サブタブに分かれて表示されます。
|
||||
|
||||
| サブタブ | 内容 | キャンバスへドラッグすると |
|
||||
| --- | --- | --- |
|
||||
| model | Checkpoint・VAE・Diffusion Model・Text Encoder | 対応する読み込みノードが置かれる |
|
||||
| lora | 使われていたLoRAと、その強さ | LoRAの読み込みノードが置かれる |
|
||||
| Prompts | ポジティブ(POS)・ネガティブ(NEG)のプロンプト | プロンプトの入ったテキストエンコードノードが置かれる |
|
||||
|
||||
プロンプトの項目をクリックすると全文が表示され、**Copy** でコピーもできます。
|
||||
|
||||
### こんなときに便利
|
||||
- 「前に作ったあの画像と、同じモデルとLoRAで新しいワークフローを組みたい」
|
||||
- 「ネットで見つけたワークフローのプロンプトだけ借りたい」
|
||||
- 「この画像、どのLoRAをどれくらいの強さで使っていたっけ?」
|
||||
|
||||
ワークフローを丸ごと読み込むのではなく、**必要な部品だけを取り出して使える** のがポイントです。
|
||||
|
||||
---
|
||||
|
||||
## 9-4 WS Libraryの見た目を変える
|
||||
|
||||
WS Libraryのパネル内にある **歯車ボタン**から、パネルの配色を設定できます。
|
||||
|
||||
- パネルの背景色
|
||||
- サブヘッダーの背景色
|
||||
- 文字の色・補助的な文字の色
|
||||
- 枠線の色
|
||||
|
||||
ComfyUIのテーマに合わせて調整すると、違和感なく使えます。
|
||||
設定はブラウザに保存され、次に開いたときも反映されます。
|
||||
|
||||
> **この章のまとめ**
|
||||
> - WS Libraryは、ComfyUIのノード画面の横に開く「素材の棚」
|
||||
> - W・N・M・P のタブから、ワークフロー・ノード・モデル・プロンプトをドラッグ(またはダブルクリック)で置ける
|
||||
> - Mタブからモデルをドラッグすると、モデルが選ばれた状態の読み込みノードが置かれる
|
||||
> - 右クリックの「Save as Node Set」で、よく使うノードの組み合わせを保存できる
|
||||
> - Iタブに画像をドロップすると、使われていたモデル・LoRA・プロンプトを取り出して使える
|
||||
@@ -0,0 +1,198 @@
|
||||
# 第10章 AI TOOL - ローカルAIを助手にする
|
||||
|
||||
Workflow Studioは、パソコンの中で動く **ローカルAI(大規模言語モデル)** と連携できます。
|
||||
ローカルAIを用意すると、次のようなことができるようになります。
|
||||
|
||||
- 日本語で考えた内容を、英語のプロンプトに翻訳する
|
||||
- AIとチャットしながら、プロンプトのアイデアを出してもらう
|
||||
- 画像を見せて、その画像の説明やプロンプト、タグを作ってもらう
|
||||
- ワイルドカード用の候補リストを作ってもらう
|
||||
|
||||
インターネット上のサービスではなく、自分のパソコンの中で動くので、
|
||||
**入力した内容や画像が外部に送られない** のが大きな特長です。
|
||||
|
||||
> **ポイント**
|
||||
> AI機能は「あると便利」な機能です。使わなくても、Workflow Studioの基本機能はすべて使えます。
|
||||
> パソコンの性能(特にGPUのメモリ)に余裕がある方は、ぜひ試してみてください。
|
||||
|
||||
---
|
||||
|
||||
## 10-1 ローカルAIソフトを準備する
|
||||
|
||||
### 対応しているソフト
|
||||
Workflow Studioは、次の4つのローカルAIソフトに対応しています。
|
||||
|
||||
| ソフト | 特徴 | 標準のアドレス |
|
||||
| --- | --- | --- |
|
||||
| **Ollama**(オラマ) | 定番。モデルのダウンロードから実行までかんたん | `http://localhost:11434` |
|
||||
| **LM Studio** | 画面で操作できる。モデル探しもアプリ内でできる | `http://localhost:1234` |
|
||||
| Lemonade Server | AMD製のGPU・NPUでも動かしやすい | `http://localhost:13305` |
|
||||
| Unsloth | APIキーなどの追加設定が必要(上級者向け) | `http://localhost:8888` |
|
||||
|
||||
はじめての方には **Ollama** をおすすめします。本章では、Ollamaを例に説明します。
|
||||
|
||||
> **ポイント**
|
||||
> アドレスの `localhost` は「自分のパソコン」、その後ろの数字は **ポート番号** です(第2章 2-4)。
|
||||
> ComfyUIと同じように、AIソフトもそれぞれ決まったポート番号で待ち受けています。
|
||||
|
||||
### Ollamaの準備
|
||||
1. Ollamaの公式サイトから、お使いのOS用のインストーラーをダウンロードして、インストールします。
|
||||
2. Ollamaを起動します(Windowsでは、インストール後に自動で起動し、タスクバーの通知領域に常駐します)。
|
||||
3. 使うAIモデルをダウンロードします。コマンドプロンプトなどで、次のように入力します。
|
||||
|
||||
```
|
||||
ollama pull (モデル名)
|
||||
```
|
||||
|
||||
モデル名は、Ollamaの公式サイトのモデル一覧で確認できます。
|
||||
|
||||
> **モデル選びの目安**
|
||||
> - **画像を読み取る機能(VLM)も使いたい** → 画像入力(vision)に対応したモデルを選ぶ
|
||||
> (作者の検証では、Gemma 4 の `e4b` などで画像生成・画像読み取りがうまく動いています)
|
||||
> - **GPUのメモリが少ない** → パラメータ数の小さいモデル(数B=数十億程度)を選ぶ
|
||||
> - 翻訳の精度を重視するなら、日本語が得意なモデルを選ぶ
|
||||
>
|
||||
> AIモデルの世界は変化が速いので、新しいモデルも試してみてください。
|
||||
|
||||
> **注意:GPUのメモリの取り合い**
|
||||
> ローカルAIも、画像生成と同じく **GPUのメモリ(VRAM)** を使います。
|
||||
> 両方を同時に動かすと、メモリが足りなくなって画像生成が遅くなったり、エラーになったりします。
|
||||
> 対策は 10-3 で説明します。
|
||||
|
||||
---
|
||||
|
||||
## 10-2 AI TOOLタブを使う
|
||||
|
||||
Workflow Studio本体の **AI TOOL** タブを開きます。
|
||||
画面は4つの部分に分かれていて、すべて同時に表示されます。
|
||||
|
||||
| 部分 | できること |
|
||||
| --- | --- |
|
||||
| 翻訳 | 日本語・英語・中国語などの翻訳 |
|
||||
| Chat | AIとの会話。条件がそろえば、会話から画像生成も |
|
||||
| TOOLS | 画像の読み取り(VLM)、ワイルドカード作成 |
|
||||
| 設定 | 使うAIソフト・モデルの設定 |
|
||||
|
||||
### 最初に:設定でAIソフトとつなぐ
|
||||
1. **設定** の **バックエンド** で、使うソフト(例:Ollama)を選びます。
|
||||
2. **接続設定** のアドレスを確認します。Ollamaを標準のまま使っている場合は、変更不要です。
|
||||
3. **接続テスト** を押します。「接続成功」と表示されればOKです。
|
||||
4. **モデル選択** の **更新** を押し、一覧から使うモデルを選びます。
|
||||
5. **設定を保存** を押します。
|
||||
|
||||
> **ポイント**
|
||||
> ここでの設定は、ComfyUI側のWS Libraryの **A(AI TOOL)** タブと共通です。
|
||||
> 一方、プロンプトタブ(第7章)とTaggerタブには、それぞれ専用の **歯車ボタン** 設定があります。
|
||||
> 「AI TOOLタブでは使えるのに、プロンプトタブでは Disconnected」というときは、プロンプトタブの歯車ボタンでも同じように設定してください。
|
||||
|
||||
> **うまくつながらないとき**
|
||||
> - Ollamaなどのソフトが起動しているか確認します。
|
||||
> - LM Studioは、アプリ内で **サーバーを起動** しておく必要があります。
|
||||
> - アドレスのポート番号が、ソフト側の設定と合っているか確認します。
|
||||
> - モデルの一覧が空のときは、モデルがダウンロードされているか確認します。
|
||||
|
||||
### 翻訳
|
||||
1. 翻訳元と翻訳先の言語を選びます(**⇄(入れ替え)** ボタンで入れ替え)。
|
||||
2. 入力欄に文章を書き、**翻訳** を押します。
|
||||
3. 結果を **コピー** して、生成UIやプリセットに貼り付けます。
|
||||
|
||||
> **ポイント**
|
||||
> 小さなモデルは、翻訳せずに元の文章をそのまま返してしまうことがあります。
|
||||
> その場合は「モデルが原文をそのまま返しました」と表示されるので、別のモデルを試してください。
|
||||
|
||||
### Chat
|
||||
入力欄に話しかけて、**Enter** で送信します(**Shift+Enter** で改行)。
|
||||
会話の流れを覚えているので、「もっと明るい雰囲気にして」のような続けての依頼もできます。
|
||||
**Clear** で会話をリセットします。
|
||||
|
||||
> **ポイント:チャットから画像を生成する(上級)**
|
||||
> 「ツール呼び出し(Tool Calling)」に対応したモデルを使うと、
|
||||
> チャットで「猫の絵を描いて」と頼むだけで、生成UIに読み込んだワークフローで画像が生成され、チャット内に表示されます。
|
||||
> この機能は、入力欄の横の **画像生成を許可する** のチェックでオン・オフできます。
|
||||
|
||||
### TOOLS - 画像を読み取る(VLM)
|
||||
画像入力に対応したモデル(VLM)を使うと、画像の内容をAIに読み取らせることができます。
|
||||
|
||||
1. **TOOLS** の枠に、画像(PNG/JPG/WebP)をドロップします。
|
||||
2. 作業を選びます。
|
||||
|
||||
| 作業 | 内容 |
|
||||
| --- | --- |
|
||||
| 画像の解説 | 画像に何が写っているかを文章で説明する |
|
||||
| プロンプト作成 | 画像を再現するためのプロンプトを作る |
|
||||
| Create tags(英語表示のまま) | 画像の要素をタグ形式で書き出す |
|
||||
| Create wildcards(英語表示のまま) | カテゴリー名と件数を指定して、ワイルドカードの候補を作る(画像は不要) |
|
||||
|
||||
3. **実行** を押します。結果はコピーして使えます。
|
||||
|
||||
> **例**
|
||||
> 気に入ったイラストの雰囲気をまねしたいとき、その画像から「プロンプト作成」をして、
|
||||
> できたプロンプトを生成UIで使ってみる - という使い方ができます。
|
||||
|
||||
### ComfyUIの画面の中でも使える
|
||||
同じAI機能は、ComfyUI側のWS Libraryの **A** タブでも使えます。
|
||||
ノード画面で作業しながら、ちょっと翻訳したいときに便利です。
|
||||
|
||||
---
|
||||
|
||||
## 10-3 VRAMの解放とメモリ管理
|
||||
|
||||
10-1で触れたとおり、ローカルAIと画像生成は、GPUのメモリ(VRAM)を取り合います。
|
||||
Ollamaは、一度使ったモデルをしばらくメモリに置いたままにするため、
|
||||
AIを使ったあとに画像生成をすると、メモリが足りなくなることがあります。
|
||||
|
||||
### 手動で解放する
|
||||
AI TOOLの設定にある **モデルをアンロード** を押すと、AIモデルがメモリから降ろされ、VRAMが空きます。
|
||||
(Ollamaの場合は、読み込まれているすべてのモデルが降ろされます)
|
||||
|
||||
### 生成の前に自動で解放する
|
||||
設定タブの **VRAM調整(Ollama)** で、画像生成の直前に自動でOllamaのモデルを降ろすように設定できます。
|
||||
|
||||
| 生成前の動作 | 動き |
|
||||
| --- | --- |
|
||||
| 何もしない | 自動では降ろさない |
|
||||
| 空きが目標未満のときだけ必要な分をアンロード | 空きVRAMが **目標の空き(GB)** より少ないときだけ降ろす |
|
||||
| 毎回すべてアンロード | 生成のたびに、必ずすべて降ろす |
|
||||
|
||||
> **ポイント**
|
||||
> どれを選べばよいか迷ったら、「空きが目標未満のときだけ必要な分をアンロード」がおすすめです。
|
||||
> 目標の空きには、画像生成に必要なメモリの量(使うモデルによって異なります)を目安に入力します。
|
||||
> **今すぐすべてアンロード** ボタンで、その場ですぐに解放することもできます。
|
||||
|
||||
> **注意**
|
||||
> この自動解放は、Ollamaだけが対象です。LM Studioなどを使っている場合は、手動で解放してください。
|
||||
|
||||
---
|
||||
|
||||
## 10-4 セキュリティ上の注意
|
||||
|
||||
### 標準では「自分のパソコン」のAIにだけつながる
|
||||
安全のため、Workflow StudioがつなぐAIソフト(Ollama、LM Studioなど)は、標準では
|
||||
**同じパソコンの中(localhost/127.0.0.1)で動いているもの** に限られています。
|
||||
|
||||
### 別のパソコンのAIを使いたいとき
|
||||
家庭内LANにある別のパソコン(GPUの強いパソコンなど)でOllamaを動かして使いたい場合は、
|
||||
環境変数 **`WFS_ALLOWED_BACKEND_HOSTS`** に、つなぎたいパソコンのアドレスを登録して、ComfyUIを再起動します。
|
||||
|
||||
```
|
||||
WFS_ALLOWED_BACKEND_HOSTS=192.168.1.20:11434
|
||||
```
|
||||
|
||||
複数ある場合は、カンマ(,)で区切って並べます。
|
||||
環境変数の設定方法は、ComfyUIの起動方法によって異なります。
|
||||
|
||||
### ComfyUIを `--listen` 付きで起動している場合
|
||||
ComfyUIを `--listen` オプション付きで起動すると、同じネットワークにいるほかのパソコンやスマホからも
|
||||
ComfyUI(とWorkflow Studio)にアクセスできるようになります。
|
||||
その場合、アクセスできる人なら誰でも、あなたのAIソフトや画像を使えてしまいます。
|
||||
|
||||
> **注意**
|
||||
> `--listen` は、家庭内LANなど **信頼できるネットワークでだけ** 使ってください。
|
||||
> カフェや公共のWi-Fiでは使わないようにしましょう。
|
||||
|
||||
> **この章のまとめ**
|
||||
> - ローカルAI(Ollamaなど)を用意すると、翻訳・チャット・画像の読み取りができる。入力内容は外部に送られない
|
||||
> - AI TOOLタブの設定で、バックエンド・アドレス・モデルを選び、接続テストをする
|
||||
> - プロンプトタブとTaggerタブには、別に歯車ボタンの設定がある
|
||||
> - AIと画像生成はVRAMを取り合う。「モデルをアンロード」や「VRAM調整(Ollama)」で解放する
|
||||
> - 標準では自分のパソコンのAIにだけつながる。`--listen` は信頼できるネットワークだけで
|
||||
@@ -0,0 +1,233 @@
|
||||
# 第11章 さらに広がる機能(紹介編)
|
||||
|
||||
ここまでで、Workflow Studioの基本的な使い方はひととおり身につきました。
|
||||
この章では、まだ紹介していないタブや機能を、**どんなことができるか** を中心に紹介します。
|
||||
すべてを今すぐ使う必要はありません。「こんなこともできるんだ」と頭の片隅に置いておき、
|
||||
必要になったときに試してみてください。
|
||||
|
||||
---
|
||||
|
||||
## 11-1 ノードタブ - インストール済みのノードを一覧する
|
||||
|
||||
**ノード(Nodes)** タブでは、ComfyUIにインストールされているすべてのノードを一覧できます。
|
||||
|
||||
- **検索・絞り込み** - 名前、カテゴリー、パッケージ(どのカスタムノードに含まれるか)で絞り込めます。数千個あっても、一覧が先に表示されて検索も軽く動きます(v0.8.0〜)。
|
||||
- **詳細パネル** - ノードを選ぶと、入力と出力の種類(I/O仕様)を確認できます。
|
||||
- **お気に入り・グループ・タグ** - よく使うノードを整理できます。
|
||||
|
||||
ここでお気に入りやグループに登録したノードは、WS Libraryの **N** タブに表示され、
|
||||
ノード画面へドラッグで置けるようになります(第9章)。
|
||||
|
||||
> **こんなときに**
|
||||
> 「カスタムノードを入れたけど、どんなノードが増えたのか分からない」
|
||||
> → **パッケージ** で絞り込むと、そのカスタムノードに含まれるノードの一覧が見られます。
|
||||
|
||||
---
|
||||
|
||||
## 11-2 Tagger - 画像からタグを自動で作る
|
||||
|
||||
**Tagger** タブは、画像を読み取って、その画像を表すタグ(`1girl, long hair, smile` など)を自動で作る機能です。
|
||||
アニメ系のモデルのプロンプト作りや、学習用画像のタグ付けに使えます。
|
||||
|
||||
### 3つのサブタブ
|
||||
| サブタブ | できること |
|
||||
| --- | --- |
|
||||
| Single | 1枚の画像からタグを作る |
|
||||
| Batch | フォルダ内の画像に、まとめてタグを付ける(画像と同じ名前の `.txt` ファイルを書き出すことも可能) |
|
||||
| DB | タグを付けた画像の記録を検索・編集する |
|
||||
|
||||
### 使い方(Single)
|
||||
1. 画像を、プレビュー部分にドロップします(ギャラリーの詳細パネルの **Tagger** ボタンからも開けます)。
|
||||
2. 使うモデルを選び、実行ボタンを押してタグを作ります。
|
||||
3. 結果を使います。
|
||||
|
||||
| ボタン | 動き |
|
||||
| --- | --- |
|
||||
| GenUI:P | 生成UIのポジティブプロンプトに追加する |
|
||||
| Send to Prompt | プロンプトタブのポジティブプロンプトに追加する |
|
||||
|
||||
**しきい値** のスライダーで、どのくらい確かなタグまで出すかを調整できます。
|
||||
数値を上げるとタグは少なく確かなものだけに、下げると多くなります。
|
||||
|
||||
### 準備が必要
|
||||
Taggerを使うには、次の準備が必要です。
|
||||
|
||||
1. **タグ付け用のモデル**(WD Tagger など)を、ComfyUIの `models/tagger/(モデル名)/` フォルダに置きます。
|
||||
フォルダには、`.onnx` ファイルと `selected_tags.csv` を入れます。
|
||||
2. **追加のPythonパッケージ** をインストールします。
|
||||
Workflow Studioのフォルダにある `requirements.txt` を使います。
|
||||
|
||||
```
|
||||
(ComfyUIのPython) -m pip install -r requirements.txt
|
||||
```
|
||||
|
||||
「ComfyUIのPython」の場所は環境によって違います。第2章 2-6 の表で確認してください
|
||||
(例:Windowsのポータブル版では `python_embeded` フォルダの中の `python.exe`)。
|
||||
|
||||
> **注意**
|
||||
> パソコンにもともと入っているPythonにインストールしても、ComfyUIからは使えません。
|
||||
> 必ず、**ComfyUIが使っているPython** にインストールしてください。
|
||||
> 分からない場合は、ComfyUI Managerの機能でパッケージをインストールする方法もあります。
|
||||
|
||||
> **ポイント**
|
||||
> ローカルAI(第10章)の画像読み取り(VLM)と組み合わせて、両方の結果をまとめたタグを作ることもできます。
|
||||
|
||||
---
|
||||
|
||||
## 11-3 Image Edit - 生成した画像にちょっと手を加える
|
||||
|
||||
**Image Edit** タブは、レイヤー機能を持った簡易画像編集ツールです。
|
||||
生成した画像に文字を入れたり、一部を描き直すためのマスクを作ったりできます。
|
||||
|
||||
### 主な機能
|
||||
| ツール | できること |
|
||||
| --- | --- |
|
||||
| Select | レイヤーの移動・拡大縮小・回転 |
|
||||
| Draw | ペンで描く(ペンタブレットの筆圧にも対応) |
|
||||
| Text | 文字を入れる |
|
||||
| Shape | 四角・丸・線を描く |
|
||||
| Fill | 塗りつぶし・グラデーション |
|
||||
| Mask | 描き直したい部分を指定する(マスク作成) |
|
||||
| Blur | ぼかし・モザイク |
|
||||
| BG Remove | 背景を消す |
|
||||
| Inpaint | マスクした部分を、生成UIのワークフローで描き直す |
|
||||
|
||||
- 画像は、ドラッグ&ドロップ、**File Open**、またはギャラリーの **Image Edit** ボタンで開きます。
|
||||
- 編集した画像は、**Save PNG**(ダウンロード)、**Save to Gallery**(ギャラリーに保存)などで保存します。
|
||||
- **Ctrl+Z** で元に戻す、**Ctrl+Y** でやり直しができます。
|
||||
|
||||
### インペイント(部分の描き直し)
|
||||
Image Editのいちばん便利な使い方が、**インペイント** です。
|
||||
「顔だけ描き直したい」「手が崩れたところだけ直したい」というときに使います。
|
||||
|
||||
1. 生成UIに、インペイント用のワークフロー(付属サンプルの `ws_inpaint_basic` など)を読み込みます。
|
||||
2. Image Editで画像を開き、**Mask** で描き直したい部分を塗ります。
|
||||
3. **Inpaint** ツールで実行すると、塗った部分だけが描き直されます。
|
||||
|
||||
> **ポイント**
|
||||
> 背景を消す機能の高品質版や、より高度なマスク機能を使うには、
|
||||
> 作者の別のカスタムノード **comfyui-mask-editor-one** が必要です。
|
||||
> PSD形式での保存・読み込みには、追加のPythonパッケージ(psd-tools)が必要です。
|
||||
|
||||
---
|
||||
|
||||
## 11-4 Video - 動画を作る・つなぐ
|
||||
|
||||
**Video** タブは、動画生成モデルを使って、画像や文章から短い動画を作るための専用画面です。
|
||||
|
||||
### 対応している動画生成モデル
|
||||
- **MiniMax H3**(画像から動画)
|
||||
- **LTX-2.5**(文章から動画、画像から動画、最初と最後の画像を指定して動画)
|
||||
- **Wan2.2**(文章から動画)
|
||||
|
||||
対応するワークフローを、ワークフロータブの **Videoに読み込み** で読み込んで使います(第4章 4-6)。
|
||||
|
||||
### 主な機能
|
||||
| サブタブ | できること |
|
||||
| --- | --- |
|
||||
| Plan | 動画を「ブロック」に分け、ブロックごとにプロンプト・長さ・最初/最後の画像を決めて、順番に生成する |
|
||||
| Edit | 生成した動画や画像を並べて、切り取り・つなぎ合わせ・文字入れ・BGM付けをして書き出す |
|
||||
| Asset | 生成した動画や画像、音声を一覧する。音声は「BGMに設定」や「サウンドとして追加」ができる(種類フィルタの Audio Only で音声だけ表示) |
|
||||
|
||||
そのほか、動画の好きな場面を静止画として保存する **Frame** や、動画をGIFアニメに変換する **GIF** の機能もあります。
|
||||
|
||||
> **注意**
|
||||
> 動画生成は、画像生成よりもはるかに多くのGPUメモリと時間を使います。
|
||||
> 使うモデルの必要スペックを確認してから試しましょう。
|
||||
|
||||
---
|
||||
|
||||
## 11-5 設定タブの主な項目
|
||||
|
||||
**設定** タブでは、Workflow Studio全体の設定をします。
|
||||
項目ごとに折りたたまれているので、見出しをクリックして開きます。
|
||||
ここでは、これまでの章で紹介していない項目を中心に紹介します。
|
||||
|
||||
| 項目 | 内容 | 関連する章 |
|
||||
| --- | --- | --- |
|
||||
| テーマ | 画面の配色・フォント | 第3章 |
|
||||
| UI言語/要約言語 | 表示言語 | 第2章 |
|
||||
| 文字サイズ | プロンプト入力欄などの文字の大きさ | 第3章 |
|
||||
| ワークフローデータフォルダ | ワークフローを読み込むフォルダ | 第4章 |
|
||||
| ギャラリー Outputフォルダ | ギャラリーで表示するフォルダ | 第8章 |
|
||||
| デフォルトワークフロー | Workflow Studioを開いたとき、生成UIに自動で読み込むワークフロー | 下記 |
|
||||
| デフォルトCheckpoint | 生成UIにワークフローを読み込むとき、モデルを自動で差し替える | 下記 |
|
||||
| CivitAI APIキー | Civitaiの情報取得用(省略可) | 第6章 |
|
||||
| Eagle 連携 (オプション) | 生成画像をEagleに自動保存 | 第8章 |
|
||||
| VRAM調整(Ollama) | 生成前にAIモデルをメモリから降ろす | 第10章 |
|
||||
| データ管理 | 設定やデータのバックアップ・復元 | 下記 |
|
||||
|
||||
### デフォルトワークフロー
|
||||
いつも使う基本のワークフローを設定しておくと、Workflow Studioを開いたときに生成UIへ自動で読み込まれます。
|
||||
ワークフロータブの詳細画面の **デフォルトに設定** ボタンからも設定できます。
|
||||
|
||||
### デフォルトCheckpoint
|
||||
ネットから入手したワークフローには、手元にないモデルが指定されていることがよくあります(第5章 5-3)。
|
||||
**デフォルトCheckpoint** を設定してオンにしておくと、生成UIにワークフローを読み込むたびに、
|
||||
Checkpointが自動で指定のモデルに差し替わります。モデルの選び直しの手間が省けます。
|
||||
|
||||
### データ管理(バックアップ)
|
||||
**データ管理** では、Workflow Studioで整理した情報(お気に入り・バッジ・グループ・プリセットなど)を
|
||||
ファイルに書き出したり(エクスポート)、読み込んで元に戻したり(インポート)できます。
|
||||
|
||||
**フルバックアップ (ZIP)** を使うと、スタイルやLabのプランなどのフォルダ単位のデータも含めて、まとめてバックアップできます。
|
||||
|
||||
> **ポイント**
|
||||
> パソコンの買い替えやComfyUIの入れ直しの前には、必ずバックアップを取っておきましょう。
|
||||
> 時間をかけて整理した情報を、そのまま新しい環境に引き継げます。
|
||||
> (安全のため、APIキーはバックアップに含まれません)
|
||||
|
||||
## 11-6 連携ソフト:ComfyUI Comic Creator - 生成した画像でマンガを作る
|
||||
|
||||
**ComfyUI Comic Creator**(以下、Comic Creator)は、Workflow Studioと同じ作者が開発している、
|
||||
ComfyUI上で動く **マンガ制作用** のカスタムノードです。
|
||||
Workflow Studioとは別にインストールするソフトですが、両方を入れると連携して使えます。
|
||||
|
||||
### Comic Creatorでできること
|
||||
| 機能 | 内容 |
|
||||
| --- | --- |
|
||||
| コマ割り | テンプレートを選んで、ページにコマを作る(自作テンプレートも登録可能) |
|
||||
| 画像の配置 | コマに画像をドラッグ&ドロップで配置する |
|
||||
| フキダシ・テキスト | 縦書き・横書きのセリフ、さまざまな形のフキダシ、効果文字を入れる |
|
||||
| マンガ効果 | 集中線・スクリーントーン・網点(ハーフトーン)などを加える |
|
||||
| 画像の編集 | レイヤー付きの画像編集(Image タブ) |
|
||||
| AIでの自動作成 | お題から、ストーリー・脚本・コマ割りをAIで下書きする(Auto タブ) |
|
||||
| 書き出し | JPEG/PNG/WebP/SVG/PDF/**EPUB** 形式で出力する |
|
||||
|
||||
### Workflow Studioとの連携
|
||||
両方をインストールすると、次のような連携ができます。
|
||||
|
||||
- **Comic Creatorの中でWorkflow Studioのギャラリーを使う**
|
||||
Comic Creatorの中にWorkflow Studioのギャラリーが表示され、生成した画像を選んで **Send CC** ボタンでコマに送れます。
|
||||
(Send CCボタンは、Comic Creatorの中で開いたギャラリーにだけ表示されます)
|
||||
- **Comic Creatorから画像を生成する**
|
||||
Comic Creatorの画面から、Workflow Studio(生成UI)を通して、コマに入れる画像を生成したり(T2I)、
|
||||
描いたラフや配置した画像をもとに描き直したり(I2I・インペイント)できます。
|
||||
|
||||
「Workflow Studioで画像を作る → Comic Creatorでマンガにまとめる」という流れで、
|
||||
画像生成からマンガの完成までを、ComfyUIの中だけで行えます。
|
||||
|
||||
### インストールと起動
|
||||
1. ComfyUI Managerの **Install via Git URL** に、次のURLを入力してインストールします。
|
||||
|
||||
```
|
||||
https://github.com/ketle-man/comfyui-comic-creator
|
||||
```
|
||||
|
||||
(手動の場合は、Workflow Studioと同じく `ComfyUI/custom_nodes/` に `git clone` します)
|
||||
|
||||
2. ComfyUIを再起動します。
|
||||
3. ComfyUIの上部メニューに追加された **CC** ボタンを押すと、Comic Creatorが新しいタブで開きます。
|
||||
|
||||
> **ポイント**
|
||||
> Comic Creatorの詳しい使い方は、アプリ内の **ヘルプ** タブ(日本語対応・検索機能あり)を参照してください。
|
||||
|
||||
---
|
||||
|
||||
> **この章のまとめ**
|
||||
> - ノードタブでインストール済みのノードを一覧・整理でき、WS Libraryで使える
|
||||
> - Taggerは画像からタグを自動生成する。モデルと追加パッケージの準備が必要
|
||||
> - Image Editはレイヤー付きの簡易編集ツール。インペイントで部分的な描き直しもできる
|
||||
> - Videoタブで、対応する動画生成モデルを使った動画作りと簡単な編集ができる
|
||||
> - 設定タブの「デフォルトCheckpoint」と「データ管理(バックアップ)」は特に便利
|
||||
> - 同じ作者の Comic Creator と組み合わせると、生成した画像でマンガを作れる
|
||||
@@ -0,0 +1,186 @@
|
||||
# 第12章 困ったときは(トラブルシューティング/FAQ)
|
||||
|
||||
この章では、Workflow Studioを使っていてよく起こるトラブルと、その対処方法をまとめます。
|
||||
困ったときは、まず **「症状」** の見出しから、自分の状況に近いものを探してください。
|
||||
|
||||
> **まず試してほしい3つのこと**
|
||||
> どんなトラブルでも、次の3つで解決することがよくあります。
|
||||
> 1. ブラウザのページを再読み込みする(F5キー)
|
||||
> 2. Workflow Studioの各タブの **更新**(Refresh)ボタンを押す
|
||||
> 3. ComfyUIを完全に終了して、起動し直す
|
||||
|
||||
---
|
||||
|
||||
## 12-1 起動・接続のトラブル
|
||||
|
||||
### Wボタンが表示されない
|
||||
| 原因 | 対処 |
|
||||
| --- | --- |
|
||||
| インストール後にComfyUIを再起動していない | ComfyUIを完全に終了して、起動し直す(ブラウザの再読み込みだけでは反映されません) |
|
||||
| フォルダの場所が違う | `ComfyUI/custom_nodes/ComfyUI-Workflow-Studio` にフォルダがあるか確認する。フォルダが二重になっていないかも確認 |
|
||||
| ComfyUIが古い | ComfyUI本体を更新する |
|
||||
|
||||
### Workflow Studioのページが開かない
|
||||
- ComfyUIは起動していますか? Workflow StudioはComfyUIの中で動いているため、ComfyUIを終了すると開けません。
|
||||
- アドレスの **ポート番号** は合っていますか? ComfyUIを開いているブラウザのアドレス欄で確認できます(第2章 2-4)。
|
||||
|
||||
### 生成UIが「Disconnected」になる
|
||||
1. ComfyUIが起動していて、ComfyUIの画面で画像を生成できるか確認します。
|
||||
2. 生成UIの上部の **Connect** を押します。
|
||||
3. それでもつながらない場合は、ブラウザのページを再読み込みします。
|
||||
|
||||
### 更新したのに動きが変わらない
|
||||
Workflow Studioを更新(アップデート)したあとは、必ずComfyUIを再起動してください。
|
||||
それでも古い動きのままのときは、ブラウザのキャッシュが残っている可能性があります。
|
||||
**Ctrl+F5**(強制再読み込み)を試してください。
|
||||
|
||||
---
|
||||
|
||||
## 12-2 ワークフローのトラブル
|
||||
|
||||
### ワークフローが一覧に出てこない
|
||||
| 原因 | 対処 |
|
||||
| --- | --- |
|
||||
| 一覧が古いまま | ワークフロータブの **更新** を押す |
|
||||
| 絞り込みがかかっている | ツールバー右端の **× クリア** を押す |
|
||||
| 別のフォルダに保存している | 設定タブの「ワークフローデータフォルダ」を確認する |
|
||||
|
||||
### ノードが赤く表示される(missing)
|
||||
ワークフローを読み込んだとき、ノードが赤く表示されたり、「見つからないノードがあります」と表示されたりすることがあります。
|
||||
これは、そのワークフローに必要な **カスタムノードがインストールされていない** という意味です。
|
||||
|
||||
**対処**
|
||||
1. ComfyUIの **Manager** を開きます。
|
||||
2. **Install Missing Custom Nodes**(不足しているカスタムノードをインストール)を選びます。
|
||||
3. 表示されたカスタムノードをインストールし、ComfyUIを再起動します。
|
||||
|
||||
> **ポイント**
|
||||
> ワークフロータブの **GenerateUIチェック**(第4章 4-7)で「変換 ×」になるのも、多くはこれが原因です。
|
||||
> バッジにマウスを重ねると、足りないノードの名前が表示されます。
|
||||
|
||||
### 生成UIで「使えない」と判定された
|
||||
| 判定 | 意味と対処 |
|
||||
| --- | --- |
|
||||
| 変換 × | 必要なカスタムノードがない → 上の「ノードが赤く表示される」を参照 |
|
||||
| 変換 △ | 手元にないモデルなどが指定されている → 生成UIで選び直す(12-3) |
|
||||
| 操作性 △/× | 生成UIに表示されない設定が多い → 生成はできることが多い。細かい設定はComfyUIのノード画面で変更する |
|
||||
|
||||
---
|
||||
|
||||
## 12-3 生成のトラブル
|
||||
|
||||
### 設定を変えたのに、結果が変わらない
|
||||
いちばん多い原因は、**Apply の押し忘れ** です。
|
||||
生成UIでは、モデルやSettings(ステップ数・サイズなど)の値を変えたあと、**Apply** を押さないとワークフローに反映されません(第5章 5-3)。
|
||||
右側の **Raw JSON** を見ると、実際に反映されている値を確認できます。
|
||||
|
||||
### 読み込んだワークフローとは違う内容で生成される
|
||||
**Batch** サブタブで、バッチの種類のチェックがオンのまま残っていると、
|
||||
Generateを押したときにバッチ生成が実行されます(第5章 5-5)。
|
||||
Batchサブタブを開き、Batch Queueの列のチェックをすべてオフにしてください。
|
||||
|
||||
### 思っていたのと違うモデルで生成される
|
||||
ワークフローに保存されているモデルが手元にないと、別のモデルに自動で差し替えられることがあります。
|
||||
その場合は「Checkpoint「…」が見つからず、無警告で別のモデルに差し替えられました」と表示されます。
|
||||
生成UIの **Model** サブタブで、使いたいモデルを選び直して **Apply** を押してください。
|
||||
|
||||
いつも同じモデルを使いたい場合は、設定タブの **デフォルトCheckpoint** を使うと便利です(第11章 11-5)。
|
||||
|
||||
### 同じ設定なのに、同じ画像にならない
|
||||
生成パネルのシードのモードが **Random** になっていませんか?
|
||||
同じ画像を作るには、シードを **Workflow**(ワークフローのシードをそのまま使う)か **Fixed**(Seed欄の値で固定)にする必要があります。
|
||||
同じシード・同じ設定で続けて生成して新しい画像が増えないのは、ComfyUIが計算済みの結果を再利用しているためで、故障ではありません。
|
||||
ギャラリーの画像を再現する手順は、第8章 8-3を参照してください。
|
||||
|
||||
### 生成が遅い・エラーで止まる(メモリ不足)
|
||||
| 原因 | 対処 |
|
||||
| --- | --- |
|
||||
| ローカルAIがGPUメモリを使っている | AI TOOLの **モデルをアンロード** を押す。設定タブの **VRAM調整(Ollama)** を使う(第10章 10-3) |
|
||||
| 画像サイズやBatch Sizeが大きすぎる | Settingsサブタブで Width・Height・Batch Size を小さくする |
|
||||
| モデルがGPUに対して大きすぎる | より小さいモデル(GGUF版など)を使う |
|
||||
|
||||
### モデルを移動・削除したあとにエラーが出る
|
||||
ComfyUIが、モデルの古い場所を覚えていることがあります。
|
||||
ComfyUIのメニューの **Hard Reset**(キューのメニュー内)を実行するか、ComfyUIを再起動してください。
|
||||
|
||||
### 新しく入れたモデルが一覧に出てこない
|
||||
生成UIの **Refresh Models**、またはモデルタブの **更新** を押してください。
|
||||
それでも出てこない場合は、モデルを置いたフォルダが正しいか(第6章 6-1)を確認します。
|
||||
|
||||
---
|
||||
|
||||
## 12-4 AI機能のトラブル
|
||||
|
||||
### AI機能が「Disconnected」になる・つながらない
|
||||
1. Ollamaなどのソフトが起動しているか確認します。
|
||||
LM StudioやLemonadeの場合は、アプリ内で **サーバーを起動** し、モデルを読み込んでおく必要があります。
|
||||
2. 設定のアドレス(ポート番号)が、ソフト側と合っているか確認します。
|
||||
3. **接続テスト** を押して、結果を確認します。
|
||||
|
||||
### AI TOOLタブでは使えるのに、プロンプトタブでは使えない
|
||||
AIの設定は、場所によって別々に保存されています(第10章 10-2)。
|
||||
|
||||
| 場所 | 設定する場所 |
|
||||
| --- | --- |
|
||||
| AI TOOLタブ/WS LibraryのAタブ | AI TOOLタブの設定(共通) |
|
||||
| プロンプトタブ | プロンプトタブのAI Assistantの **歯車ボタン** |
|
||||
| Taggerタブ | Taggerタブの **歯車ボタン** |
|
||||
|
||||
### モデルの一覧が空になる
|
||||
AIモデルがダウンロードされていない可能性があります。
|
||||
Ollamaの場合は `ollama pull (モデル名)` でモデルをダウンロードしてから、モデル選択の **更新** を押してください。
|
||||
|
||||
### 別のパソコンのOllamaにつながらない
|
||||
安全のため、標準では同じパソコンの中のAIソフトにしかつながりません。
|
||||
環境変数 `WFS_ALLOWED_BACKEND_HOSTS` の設定が必要です(第10章 10-4)。
|
||||
|
||||
---
|
||||
|
||||
## 12-5 そのほかの機能のトラブル
|
||||
|
||||
### Taggerにモデルが表示されない
|
||||
- `ComfyUI/models/tagger/(モデル名)/` フォルダに、`.onnx` ファイル(と `selected_tags.csv`)が入っているか確認します。
|
||||
- 追加のPythonパッケージ(onnxruntime)が、**ComfyUIが使っているPython** にインストールされているか確認します(第11章 11-2)。
|
||||
|
||||
### PSD関連の機能がエラーになる
|
||||
追加のPythonパッケージ(psd-tools)が必要です。
|
||||
エラーメッセージに表示されるインストール用のコマンドを、ComfyUIが使っているPythonで実行してから、ComfyUIを再起動してください。
|
||||
|
||||
### セマンティック検索(Gallery)がうまく動かない
|
||||
| 症状 | 原因 | 対処 |
|
||||
| --- | --- | --- |
|
||||
| GPUが検出されない(設定に「GPU未検出」と出る、実行がCPUになる) | ComfyUIのPythonに入っているonnxruntimeがCPU版 | ComfyUIを停止し、ComfyUIのPythonで `pip uninstall -y onnxruntime onnxruntime-gpu` のあと `pip install onnxruntime-gpu` を実行して、ComfyUIを再起動する(DirectMLは非対応) |
|
||||
| Geminiで「GEMINI_API_KEYが未設定」と出る・キーが拒否される | `.env` にキーが無い、または行頭に `#` が付いている | プラグインの `.env`(`.env.example` をコピー)に `GEMINI_API_KEY=キー` と書き、ComfyUIを再起動する。`.env` は起動時にしか読み込まれない |
|
||||
| 検索やSimilarの結果が出ない | 選んだフォルダにインデックス済みの画像が無い |歯車ボタンでインデックスを作る。緑の点があるフォルダを選ぶ。モデルや精度を変えたときは「全件再作成」 |
|
||||
|
||||
### ギャラリーに画像が出てこない
|
||||
- ギャラリーの **Refresh** を押します。
|
||||
- 設定タブの「ギャラリー Outputフォルダ」が、ComfyUIの画像保存先と合っているか確認します。
|
||||
|
||||
---
|
||||
|
||||
## 12-6 それでも解決しないときは
|
||||
|
||||
### Workflow Studioのヘルプを見る
|
||||
Workflow Studioの **ヘルプ** タブにも、トラブルシューティングの情報があります。
|
||||
本書の発行後に追加された情報が載っていることもあります。
|
||||
|
||||
### GitHubで質問・報告する
|
||||
解決しない問題は、Workflow StudioのGitHubリポジトリの **Issues** で報告できます。
|
||||
報告するときは、次の情報を添えると、原因が見つかりやすくなります。
|
||||
|
||||
- Workflow Studioのバージョン
|
||||
- ComfyUIのバージョンと、インストール方法(ポータブル版、Desktop版、Stability Matrixなど)
|
||||
- どの画面で、何をしたら、どうなったか
|
||||
- ComfyUIを起動した黒い画面(コンソール)に表示されたエラーメッセージ
|
||||
- ブラウザの開発者ツール(F12キー)の「Console」に表示された赤いエラーメッセージ
|
||||
|
||||
> **注意**
|
||||
> エラーメッセージを貼り付けるときは、パソコンのユーザー名などの個人情報が含まれていないか確認しましょう。
|
||||
|
||||
> **この章のまとめ**
|
||||
> - 困ったら「再読み込み」「更新ボタン」「ComfyUIの再起動」をまず試す
|
||||
> - 赤いノードは、カスタムノードの不足。ComfyUI Managerの Install Missing Custom Nodes で解決
|
||||
> - 設定が反映されないときは、Applyの押し忘れとBatchのチェックの残りを確認
|
||||
> - メモリ不足は、ローカルAIのアンロードや画像サイズの見直しで対処
|
||||
> - 解決しないときは、ヘルプタブやGitHubのIssuesを活用する
|
||||
@@ -0,0 +1,136 @@
|
||||
# 付録
|
||||
|
||||
## 付録A 用語集
|
||||
|
||||
本書に登場する主な言葉を、五十音順・アルファベット順にまとめました。
|
||||
|
||||
### 日本語
|
||||
| 用語 | 意味 | 本書 |
|
||||
| --- | --- | --- |
|
||||
| インペイント | 画像の一部(マスクした部分)だけを描き直すこと | 第11章 |
|
||||
| カスタムノード | ComfyUIに後から追加するノード・拡張機能。Workflow Studioもその1つ | 第1章 |
|
||||
| キャンバス | ComfyUIのノード画面で、ノードを並べる作業スペース | 第3章 |
|
||||
| キュー | 生成の予約リスト。順番に処理される | 第1章 |
|
||||
| キーフレーム | Labで「何回目から設定を切り替えるか」を指定したもの | 第5章 |
|
||||
| サンプラー | 画像を描くときのアルゴリズム(euler など) | 第5章 |
|
||||
| シード | 画像のもとになる乱数の種。同じなら、ほぼ同じ画像になる | 第5章 |
|
||||
| セマンティック検索 | 文章や画像の「意味」で画像を探す検索。ギャラリーのSボタンで使う | 第8章 |
|
||||
| スケジューラー | ステップごとの描き込み量の配分のしかた | 第5章 |
|
||||
| スタイル | プロンプトに付け足す雰囲気のテンプレート | 第7章 |
|
||||
| ステップ数 | 描き込みをくり返す回数 | 第5章 |
|
||||
| トリガーワード | LoRAの効果を出すために、プロンプトに入れる言葉 | 第6章 |
|
||||
| ネガティブプロンプト | 描いてほしくないものを書くプロンプト | 第7章 |
|
||||
| ノード | ComfyUIの画面に並ぶ「箱」。1つの処理を受け持つ | 第1章 |
|
||||
| ノードセット | 複数のノードとつながりを、ひとまとまりで保存したもの | 第9章 |
|
||||
| バッジ | ワークフローやモデルに付ける、色付きのラベル | 第4章 |
|
||||
| バッチ生成 | 条件を変えながら、まとめて自動で生成すること | 第5章 |
|
||||
| ハッシュ値 | ファイルの中身から計算される「指紋」のような値。Civitaiでモデルを探すのに使う | 第6章 |
|
||||
| プリセット | ポジティブ・ネガティブのプロンプトをひと組にして保存したもの | 第7章 |
|
||||
| プロンプト | AIに「どんな画像を作ってほしいか」を伝える文章 | 第1章 |
|
||||
| ポジティブプロンプト | 描いてほしいものを書くプロンプト | 第7章 |
|
||||
| ポート番号 | 1台のパソコンの中で、通信先のソフトを区別するための番号 | 第2章 |
|
||||
| マスク | 画像の中で、処理の対象にする部分を指定したもの | 第11章 |
|
||||
| メタデータ | 画像に埋め込まれた、生成時の設定などの情報 | 第8章 |
|
||||
| モデル | 画像を作る「AIの頭脳」にあたるファイル | 第1章 |
|
||||
| ローカルAI | 自分のパソコンの中で動くAI(Ollamaなど) | 第10章 |
|
||||
| ワークフロー | ノードを線でつないだ、処理の流れ全体 | 第1章 |
|
||||
| ワイルドカード | 生成のたびに、プロンプトの一部をランダムに入れ替えるしくみ | 第7章 |
|
||||
|
||||
### アルファベット
|
||||
| 用語 | 意味 | 本書 |
|
||||
| --- | --- | --- |
|
||||
| API形式/UI形式 | ワークフローの保存形式。UI形式はノードの位置なども含み、API形式は処理の内容だけを含む | 第4章 |
|
||||
| Apply | 生成UIで、変更した値をワークフローに反映するボタン | 第5章 |
|
||||
| CFG | プロンプトにどれだけ忠実に従うかの強さ | 第5章 |
|
||||
| Checkpoint | 画像生成の本体となるモデル | 第6章 |
|
||||
| Civitai | 画像生成モデルの共有サイト | 第6章 |
|
||||
| ComfyUI Manager | カスタムノードを検索・インストールするための管理ツール | 第2章 |
|
||||
| Denoise | 元の画像をどれだけ描き変えるかの強さ | 第5章 |
|
||||
| Embedding | 特定の単語に意味を覚えさせた小さなファイル | 第6章 |
|
||||
| I2I(Image to Image) | 画像をもとに、新しい画像を作ること | 第5章 |
|
||||
| JSON | ワークフローの保存に使われるデータ形式 | 第1章 |
|
||||
| LoRA | 絵柄やキャラクターなどを追加で覚えさせる小さなモデル | 第6章 |
|
||||
| Ollama | ローカルAIを手軽に動かせるソフト | 第10章 |
|
||||
| T2I(Text to Image) | 文章(プロンプト)から画像を作ること | 第5章 |
|
||||
| VAE | 画像の色合いや細部を仕上げるモデル | 第6章 |
|
||||
| VLM | 画像を読み取れるAIモデル | 第10章 |
|
||||
| VRAM | GPU(グラフィックボード)のメモリ | 第10章 |
|
||||
| WS Library | ComfyUIのノード画面の横に開く、Workflow Studioのサイドパネル | 第9章 |
|
||||
|
||||
---
|
||||
|
||||
## 付録B キーボード・マウス操作
|
||||
|
||||
### 全体
|
||||
| 操作 | 動き |
|
||||
| --- | --- |
|
||||
| Esc | 開いている画面(モーダル・パネル)を閉じる |
|
||||
| Enter | 名前の変更を確定する/チャットを送信する |
|
||||
| Shift+Enter | チャットで改行する |
|
||||
| ダブルクリック | 詳細画面を開く(ワークフロー・モデルなど) |
|
||||
| Shift+クリック(Wボタン) | Workflow Studioを新しいウィンドウで開く |
|
||||
|
||||
### 生成UI
|
||||
| 操作 | 動き |
|
||||
| --- | --- |
|
||||
| Alt+クリック(Apply) | 値の反映と生成を一度に行う |
|
||||
| Ctrl+↑/↓(プロンプト入力欄) | 選んだ言葉の強調 `(言葉:数値)` を0.05ずつ増減する |
|
||||
| Enter/Shift+Enter(Raw JSONの検索欄) | 次の一致/前の一致へ移動する |
|
||||
|
||||
### ギャラリー
|
||||
| 操作 | 動き |
|
||||
| --- | --- |
|
||||
| Ctrl+クリック | 複数の画像を選ぶ |
|
||||
| Alt+クリック | 画像をメタデータサブタブで開く |
|
||||
| Enter(意味検索がオンのとき) | 検索欄の文章で意味検索を実行する |
|
||||
|
||||
### WS Library
|
||||
| 操作 | 動き |
|
||||
| --- | --- |
|
||||
| ドラッグ&ドロップ | キャンバスのドロップした位置に置く・読み込む |
|
||||
| ダブルクリック | キャンバスの中央付近に置く・読み込む |
|
||||
| Alt+クリック(Nタブ) | ノードのお気に入りをオン/オフする |
|
||||
|
||||
### Image Edit
|
||||
| 操作 | 動き |
|
||||
| --- | --- |
|
||||
| V/B/T/S/G | Select/Draw/Text/Shape/Fill ツールに切り替え |
|
||||
| Ctrl+Z/Ctrl+Y | 元に戻す/やり直す |
|
||||
| マウスホイール | 拡大・縮小 |
|
||||
| Space+ドラッグ | 表示位置を移動する |
|
||||
| Delete | 選んでいるレイヤーを削除する(レイヤーが2つ以上あるとき) |
|
||||
|
||||
---
|
||||
|
||||
## 付録C 参考リンク
|
||||
|
||||
### Workflow Studio
|
||||
- GitHub(最新版・リリースノート・不具合報告)
|
||||
https://github.com/ketle-man/ComfyUI-Workflow-Studio
|
||||
|
||||
### ComfyUI本体と管理ツール
|
||||
- ComfyUI
|
||||
https://github.com/comfyanonymous/ComfyUI
|
||||
- ComfyUI Manager
|
||||
https://github.com/Comfy-Org/ComfyUI-Manager
|
||||
|
||||
### 本書で紹介した関連ソフト・サービス
|
||||
| 名前 | 用途 | 本書 |
|
||||
| --- | --- | --- |
|
||||
| Civitai(https://civitai.com/) | モデルの入手・情報取得 | 第6章 |
|
||||
| Ollama(https://ollama.com/) | ローカルAI | 第10章 |
|
||||
| LM Studio(https://lmstudio.ai/) | ローカルAI | 第10章 |
|
||||
| Lemonade Server(https://lemonade-server.ai/) | ローカルAI | 第10章 |
|
||||
| Eagle(https://eagle.cool/) | 画像管理ソフト | 第8章 |
|
||||
|
||||
### 一緒に使うと便利なカスタムノード
|
||||
| 名前 | 用途 | 本書 |
|
||||
| --- | --- | --- |
|
||||
| ComfyUI Comic Creator(https://github.com/ketle-man/comfyui-comic-creator) | マンガ制作。ギャラリー・画像生成と連携 | 第11章 |
|
||||
| comfyui-image-feeder(https://github.com/ketle-man/comfyui-image-feeder) | FeederのImage Loopモード | 第5章 |
|
||||
| comfyui-mask-editor-one(https://github.com/ketle-man/comfyui-mask-editor-one) | Image Editの高度なマスク・背景除去 | 第11章 |
|
||||
| ComfyUI-Impact-Pack(https://github.com/ltdrdata/ComfyUI-Impact-Pack) | `{A|B}` 形式のワイルドカード | 第7章 |
|
||||
| ComfyUI-Lora-Manager | LoRAの管理・WS LibraryでのLoRAのまとめ置き | 第9章 |
|
||||
|
||||
> **注意**
|
||||
> リンク先の内容やURLは、変更される場合があります。
|
||||
@@ -0,0 +1,27 @@
|
||||
# おわりに
|
||||
|
||||
最後まで読んでいただき、ありがとうございました。
|
||||
|
||||
ComfyUIは、とても自由で奥の深いソフトです。
|
||||
その自由さゆえに、はじめての方には「どこから手をつければいいのか分からない」ソフトでもあります。
|
||||
Workflow Studioは、その入口を少しでも広げ、
|
||||
「作ること」と「整理すること」をもっと気軽にしたいという思いから生まれました。
|
||||
|
||||
本書で紹介した使い方を、あらためて振り返ってみましょう。
|
||||
|
||||
1. **整理する** - ワークフロー・モデル・プロンプトを、サムネイルやバッジで見分けやすくする
|
||||
2. **作る** - 生成UIで、ノード画面を触らずに画像を生成する
|
||||
3. **貯める** - うまくいったプロンプトや設定を、プリセットやギャラリーに残す
|
||||
4. **再現する** - 画像のメタデータから、同じ設定をすぐに呼び出す
|
||||
5. **広げる** - バッチ生成やローカルAIで、試行錯誤のスピードを上げる
|
||||
|
||||
画像生成が上達するいちばんの近道は、**たくさん試して、うまくいったものを残していく** ことです。
|
||||
Workflow Studioが、その積み重ねを支える道具になれば幸いです。
|
||||
|
||||
Workflow Studioは、これからも機能の追加や改善を続けていきます。
|
||||
新しい機能や変更点は、GitHubのリリースノートでお知らせしています。
|
||||
使ってみての感想や、「こんな機能がほしい」というご要望も、GitHubでお待ちしています。
|
||||
|
||||
あなたの画像生成ライフが、もっと楽しく、もっと豊かなものになりますように。
|
||||
|
||||
ketle-man
|
||||
@@ -0,0 +1,32 @@
|
||||
# Getting Started with ComfyUI Workflow Studio
|
||||
|
||||
Don't Be Afraid of Nodes - Generate Images More Easily and Keep Them Organized
|
||||
|
||||
- Covers: Workflow Studio v0.8.3
|
||||
- Author: ketle-man
|
||||
- (c) 2026 ketle-man
|
||||
|
||||
This is the **text-only edition** (without screenshots) of the Kindle book.
|
||||
Chapter files are in the `chapters/` folder; the whole book in one file is `Workflow_Studio_Manual_v0.8.3_en.md`.
|
||||
Screen examples are omitted, so please use the book together with Workflow Studio's Help tab.
|
||||
|
||||
## Contents
|
||||
|
||||
- [00_Introduction](chapters/00_Introduction.md)
|
||||
- [01_Chapter1_Basics](chapters/01_Chapter1_Basics.md)
|
||||
- [02_Chapter2_Install_and_Launch](chapters/02_Chapter2_Install_and_Launch.md)
|
||||
- [03_Chapter3_Screen_Tour](chapters/03_Chapter3_Screen_Tour.md)
|
||||
- [04_Chapter4_Workflow_Tab](chapters/04_Chapter4_Workflow_Tab.md)
|
||||
- [05_Chapter5_GenerateUI_Part1](chapters/05_Chapter5_GenerateUI_Part1.md)
|
||||
- [05_Chapter5_GenerateUI_Part2](chapters/05_Chapter5_GenerateUI_Part2.md)
|
||||
- [06_Chapter6_Models_Tab](chapters/06_Chapter6_Models_Tab.md)
|
||||
- [07_Chapter7_Prompt_Tab](chapters/07_Chapter7_Prompt_Tab.md)
|
||||
- [08_Chapter8_Gallery_Tab](chapters/08_Chapter8_Gallery_Tab.md)
|
||||
- [09_Chapter9_WS_Library](chapters/09_Chapter9_WS_Library.md)
|
||||
- [10_Chapter10_AI_TOOL](chapters/10_Chapter10_AI_TOOL.md)
|
||||
- [11_Chapter11_More_Features](chapters/11_Chapter11_More_Features.md)
|
||||
- [12_Chapter12_Troubleshooting](chapters/12_Chapter12_Troubleshooting.md)
|
||||
- [13_Appendix](chapters/13_Appendix.md)
|
||||
- [14_Afterword](chapters/14_Afterword.md)
|
||||
|
||||
Whole book: [Workflow_Studio_Manual_v0.8.3_en.md](Workflow_Studio_Manual_v0.8.3_en.md)
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -0,0 +1,170 @@
|
||||
# Introduction
|
||||
|
||||
"I installed ComfyUI, but the node screen made me freeze."
|
||||
"I downloaded so many workflows from the web that I can't tell which is which."
|
||||
"I want to reuse the settings of an image that turned out well, but I can't find them."
|
||||
|
||||
This book is for people like that. It is an introduction to **ComfyUI-Workflow-Studio** (Workflow Studio from here on).
|
||||
|
||||
---
|
||||
|
||||
## Why is ComfyUI hard?
|
||||
|
||||
ComfyUI is one of the most flexible image-generation AI tools available today.
|
||||
When a new model or technique is announced, ComfyUI is usually the first place you can use it.
|
||||
Even so, many people stumble at the very first step. The reason is that ComfyUI is built on **a completely different way of thinking from ordinary applications**.
|
||||
|
||||
### How it differs from ordinary applications
|
||||
| | Ordinary application | ComfyUI |
|
||||
| --- | --- | --- |
|
||||
| Screen | A fixed screen designed by the developer | You assemble it yourself by connecting nodes (boxes) with lines |
|
||||
| Usage | Press buttons and menus and it works | You must know which nodes to connect, and how |
|
||||
| Adding features | Wait for an update | You add custom nodes made by other people yourself |
|
||||
| Where settings live | Collected in a settings screen | Scattered across many nodes inside the workflow |
|
||||
|
||||
An ordinary application is like a "finished appliance". Switch it on and you can use it right away, the way it was designed.
|
||||
ComfyUI, on the other hand, is "a kit you build from parts".
|
||||
If you know how to build, you can make anything. If you don't, you can make nothing.
|
||||
|
||||
### Freedom, and its side effects
|
||||
The greatest appeal of ComfyUI is this **freedom to customize**.
|
||||
You can combine custom nodes made by developers around the world to build your own flow of processing (a workflow).
|
||||
Advanced workflows made by experienced users are published all over the web, and you can try them right after downloading.
|
||||
|
||||
But freedom has side effects too.
|
||||
|
||||
- **Workflows pile up** - as you keep downloading things to try, you lose track of which is which
|
||||
- **You don't know where to touch** - in a large workflow made by someone else, even changing just the prompt means hunting for the right node
|
||||
- **Your materials get scattered** - models, LoRAs, prompts and generated images end up in separate places, with no tool to manage them
|
||||
- **Trial and error takes effort** - even to compare a few conditions, you must rewrite node values by hand every time
|
||||
|
||||
ComfyUI is excellent as a tool for "building", but
|
||||
it offers almost nothing for "organizing", "reusing" and "trying things quickly".
|
||||
Workflow Studio was made to fill that gap.
|
||||
|
||||
---
|
||||
|
||||
## What makes Workflow Studio different
|
||||
|
||||
### 1. Why a dedicated screen (SPA)? - separating "building" from "using"
|
||||
Workflow Studio is an **independent, dedicated screen** (an SPA: single-page application) that you open from the **W** button in ComfyUI's top menu.
|
||||
|
||||
Building a workflow is best done by trial and error on ComfyUI's node screen.
|
||||
Workflow Studio was created as a screen for **putting the workflows you have built to quick use**.
|
||||
|
||||
For that reason, Workflow Studio thinks of a workflow as three stages, **input, processing and output**, and is designed as follows.
|
||||
|
||||
| Stage | Design idea |
|
||||
| --- | --- |
|
||||
| Input | Make it easy to enter prompts and images |
|
||||
| Processing | Keep changing values down to the fewest possible operations |
|
||||
| Output | Make generated data easy to manage |
|
||||
|
||||
Underlying the design is the **5S** way of thinking (sort, set in order, shine, standardize, sustain) used in manufacturing.
|
||||
The aim is to keep what you need in a state where you can take it out and use it, when you need it, right away.
|
||||
|
||||
The thing that connects the two screens, ComfyUI's node screen and Workflow Studio, is the **WS Library**, which opens beside the node screen.
|
||||
Together with the supporting features, it makes moving between the two screens smooth.
|
||||
|
||||
### 2. Management - everything scattered, in one place
|
||||
| What you can manage | What you can do |
|
||||
| --- | --- |
|
||||
| Workflows | Thumbnail list, sorting by badges and groups, search, a pre-check of whether a workflow will work in GenerateUI |
|
||||
| Models and LoRAs | Lists by type, automatic retrieval of Civitai information (trigger words, sample images) |
|
||||
| Prompts | Save and sort as presets, wildcards, styles |
|
||||
| Generated images and audio | Browsing folder by folder, search by prompt or by "meaning", reading and reproducing embedded settings (audio files are supported too) |
|
||||
|
||||
### 3. Efficiency - try things quickly without touching nodes
|
||||
- **GenerateUI tab** - automatically picks out, from inside a workflow, the items you change often (prompt, model, size and so on) and turns them into an input form. Even large workflows made by others can be used without hunting for nodes
|
||||
- **Batch generation** - automatically runs your trial and error in bulk: "try all my models", "try prompts one after another", "compare samplers"
|
||||
- **Feeder and Lab** - more advanced automation, such as processing many images in order, or switching several conditions step by step
|
||||
|
||||
### 4. Support features - help before and after generation
|
||||
- **Image Edit** - simple layer-based editing, and redrawing parts with a mask (inpainting)
|
||||
- **Local AI integration** - translating prompts from Japanese, creating prompts and tags from images
|
||||
- **Tagger and Video** - automatic tag generation from images, and video generation with simple editing
|
||||
|
||||
---
|
||||
|
||||
## A custom node that is worth installing
|
||||
|
||||
For the following reasons, Workflow Studio is a custom node that is **"worth installing just in case"** for everyone who uses ComfyUI.
|
||||
|
||||
- **It is free, and you can install it right away from ComfyUI Manager**
|
||||
- **The basic features need no extra preparation** - everything required is already included with ComfyUI. Extras such as AI and image editing can be prepared when you want to use them
|
||||
- **You don't have to change how you work now** - workflows use ComfyUI's own save folder as it is. You can keep working on the node screen as before
|
||||
- **It gets more useful the more you use it** - start with just browsing a list of workflows or checking the settings of generated images, then widen your use to GenerateUI and batch generation as you get used to it
|
||||
|
||||
It keeps ComfyUI's "freedom" and adds "clarity" and "ease". That is Workflow Studio.
|
||||
|
||||
## What you will learn in this book
|
||||
|
||||
- Installing Workflow Studio and how to read its screens
|
||||
- Organizing the workflows you already have, with thumbnails
|
||||
- Generating your first image without touching the node screen
|
||||
- Managing models, LoRAs and prompts so you can reuse settings that worked
|
||||
- Reading the settings used from a generated image and reproducing them
|
||||
- Translating prompts and reading images with local AI
|
||||
- Common problems and how to fix them
|
||||
|
||||
## What this book does not cover
|
||||
|
||||
- How to install ComfyUI itself
|
||||
(the explanation starts from the point where ComfyUI is already installed and can be launched)
|
||||
- How to build a workflow from scratch by assembling nodes
|
||||
- Detailed explanations of how image-generation AI works, or of model training (such as how to make a LoRA)
|
||||
|
||||
---
|
||||
|
||||
## Who this book is for
|
||||
|
||||
- People who have just installed ComfyUI, or who want to start using it seriously
|
||||
- People who find the node screen hard and want to generate images more easily
|
||||
- People who are struggling to organize growing numbers of workflows, models and prompts
|
||||
|
||||
It is written so that you can follow it if you know basic computer operations (copying files, opening folders, using a browser).
|
||||
|
||||
---
|
||||
|
||||
## Version and environment covered
|
||||
|
||||
- **Workflow Studio**: v0.8.3
|
||||
- **ComfyUI**: the latest version at the time of writing
|
||||
- **OS**: Windows (screen examples are from Windows)
|
||||
|
||||
Workflow Studio is under active development, so
|
||||
depending on the version, the look of the screens and the positions of buttons may differ from this book.
|
||||
For features that have changed significantly, also check Workflow Studio's **Help** tab and the release notes on GitHub.
|
||||
|
||||
---
|
||||
|
||||
## Notation used in this book
|
||||
|
||||
| Notation | Meaning |
|
||||
| --- | --- |
|
||||
| **Bold** | Button names and item names shown on screen |
|
||||
| "GenerateUI" | The name as shown on screen |
|
||||
| `ComfyUI/models/` | The location of a folder or file. For how to read this for your environment, see Chapter 2, section 2-6 |
|
||||
| `Ctrl + Z` | A keyboard operation. "+" means pressing the keys at the same time |
|
||||
|
||||
> **Tip**
|
||||
> Information that is handy to know.
|
||||
|
||||
> **Caution**
|
||||
> Information to be careful about, because getting it wrong can lose data or stop things from working.
|
||||
|
||||
### About the display language
|
||||
Workflow Studio supports English, Japanese and Chinese. This English edition explains things using the **English display**.
|
||||
You can change the display language in the Settings tab (Chapter 2, section 2-5).
|
||||
|
||||
---
|
||||
|
||||
## How to read this book
|
||||
|
||||
If you are new, read **Chapters 1 to 5** in order and try things by hand.
|
||||
Once you have generated your first image in Chapter 5, you have the basics of Workflow Studio.
|
||||
|
||||
From Chapter 6 onward, feel free to read from whichever place you need.
|
||||
When in trouble, use the troubleshooting in Chapter 12 and the glossary in the appendix.
|
||||
|
||||
Now, let's start generating images with Workflow Studio, more easily and more enjoyably.
|
||||
@@ -0,0 +1,146 @@
|
||||
# Chapter 1 Basics of ComfyUI and Workflow Studio
|
||||
|
||||
This chapter sorts out the ideas and terms worth knowing before you start operating anything.
|
||||
You don't need to read it at the computer. Read it casually on your commute or in spare moments.
|
||||
|
||||
---
|
||||
|
||||
## 1-1 What is ComfyUI?
|
||||
|
||||
ComfyUI is free software for running image-generation AI on your own computer.
|
||||
It supports many image-generation models, such as Stable Diffusion and FLUX.
|
||||
|
||||
The biggest feature of ComfyUI is that **you build the flow of processing by connecting "boxes" with "lines"**.
|
||||
|
||||
"A box that loads the model" -> "a box that takes the prompt" -> "a box that makes the image" -> "a box that saves it"...
|
||||
When you connect boxes with lines like this, processing happens in that order.
|
||||
|
||||
This approach has big advantages.
|
||||
|
||||
- Everything about the processing is visible, so you can fine-tune it
|
||||
- Even when a new technique appears, you can try it just by adding a box
|
||||
- You can save a flow you have built and reuse it as many times as you like
|
||||
|
||||
On the other hand, for someone touching it for the first time, it is also a screen where "you don't know where to touch".
|
||||
**Workflow Studio**, introduced in this book, is exactly a tool for softening that "hard-to-understand" quality.
|
||||
|
||||
---
|
||||
|
||||
## 1-2 Five terms to remember
|
||||
|
||||
The minimum set of terms worth knowing for using ComfyUI is these five.
|
||||
|
||||
### 1. Node
|
||||
The "boxes" arranged on the screen.
|
||||
One node handles one job, for example "load a model" or "save an image".
|
||||
A node has entrances (inputs) and exits (outputs), and passes data along through connecting lines.
|
||||
|
||||
### 2. Workflow
|
||||
The "whole flow of processing" made by connecting nodes with lines.
|
||||
To use a cooking analogy, nodes are tasks such as "chop" and "stir-fry", and the workflow is the "recipe".
|
||||
A workflow can be saved as a file in a format called JSON.
|
||||
|
||||
> **Tip**
|
||||
> Images made in ComfyUI usually have the workflow information embedded in them.
|
||||
> If you drag such an image onto the ComfyUI screen, you can recall the same workflow.
|
||||
|
||||
### 3. Model
|
||||
The file that acts as the "AI brain" that makes images. They are typically large, from a few GB to tens of GB.
|
||||
The main kinds are as follows (Chapter 6 explains them in detail).
|
||||
|
||||
| Kind | In a phrase |
|
||||
| --- | --- |
|
||||
| Checkpoint | The model that forms the core of image generation |
|
||||
| LoRA | A small add-on model that teaches an art style or a character |
|
||||
| VAE | The model in charge of finishing the colors and fine details of an image |
|
||||
|
||||
### 4. Prompt
|
||||
The text that tells the AI "what kind of image you want". It is what people call a "spell".
|
||||
There are two kinds: the **positive prompt**, where you write what you want drawn, and
|
||||
the **negative prompt**, where you write what you do not want drawn.
|
||||
|
||||
### 5. Queue
|
||||
The "reservation list for generation".
|
||||
In ComfyUI, pressing the generate button first puts a reservation in the queue, and the reservations are processed in order.
|
||||
If you reserve many images, they are generated in bulk while you are away from your seat.
|
||||
|
||||
---
|
||||
|
||||
## 1-3 Where beginners get stuck in ComfyUI
|
||||
|
||||
You installed ComfyUI, but have you stopped at any of these points?
|
||||
|
||||
1. **Workflows pile up and you can't tell which is which**
|
||||
As you keep saving workflows you found online, file names alone stop being enough to tell them apart.
|
||||
|
||||
2. **Hunting for values on the node screen every time is tiring**
|
||||
You only want to change the prompt or seed value, yet you have to find the right node inside a large workflow.
|
||||
|
||||
3. **Models and prompts are managed in a scattered way**
|
||||
It is easy to lose track of where you put which model, or what prompt worked last time.
|
||||
|
||||
4. **You can't reproduce the settings of an image you made before**
|
||||
Even when you wonder "which settings made that image?", you may not know how to look it up.
|
||||
|
||||
None of these is really a lack of ComfyUI features. The cause is **a lack of "organization" and of an "entrance"**.
|
||||
|
||||
---
|
||||
|
||||
## 1-4 What Workflow Studio can do
|
||||
|
||||
Workflow Studio is an **extension (a custom node)** that you add to ComfyUI.
|
||||
It adds "a dedicated screen for management and generation" inside ComfyUI.
|
||||
|
||||
Workflow Studio answers the four sticking points above as follows.
|
||||
|
||||
| Sticking point | Workflow Studio's solution | Chapter |
|
||||
| --- | --- | --- |
|
||||
| Can't tell workflows apart | A thumbnail list, badges and groups, search | Chapter 4 |
|
||||
| Hunting for values on the node screen is tiring | The GenerateUI tab shows only the items you need as a form | Chapter 5 |
|
||||
| Models and prompts are scattered | Managed together in the Models tab and the Prompt tab | Chapters 6 and 7 |
|
||||
| Can't reproduce settings | Check an image's metadata in the Gallery and send it to the canvas | Chapter 8 |
|
||||
|
||||
In addition, a side panel called the **WS Library** is added beside ComfyUI's node screen,
|
||||
letting you place models and prompts onto the node screen by drag and drop (Chapter 9).
|
||||
|
||||
If you prepare AI that runs locally (such as Ollama or LM Studio),
|
||||
you can also use AI support such as prompt translation and tag generation from images (Chapter 10).
|
||||
|
||||
> **Tip**
|
||||
> Workflow Studio is not software that replaces ComfyUI.
|
||||
> It is ComfyUI that makes the images; Workflow Studio plays the role of its "control panel" and "storage shelf".
|
||||
> For that reason, it cannot be used unless ComfyUI is running.
|
||||
|
||||
### The screens can be used in your language
|
||||
Workflow Studio supports English, Japanese and Chinese.
|
||||
This edition explains things using the English display.
|
||||
|
||||
---
|
||||
|
||||
## 1-5 How this book proceeds
|
||||
|
||||
This book is meant to be read in the following order.
|
||||
|
||||
1. **Prepare** (Chapters 2 and 3)
|
||||
Install it and learn how to read the screens.
|
||||
|
||||
2. **Organize** (Chapter 4)
|
||||
Make the workflows you already have viewable as a list.
|
||||
|
||||
3. **Create** (Chapter 5)
|
||||
Generate your first image without touching the node screen.
|
||||
If you read this far, you can use the basics of Workflow Studio.
|
||||
|
||||
4. **Collect and review** (Chapters 6 to 8)
|
||||
Manage models, prompts and generated images, and reuse settings that worked.
|
||||
|
||||
5. **Expand** (Chapters 9 to 11)
|
||||
Bring in handy features such as the side panel and AI support, as you need them.
|
||||
|
||||
When in trouble, see the troubleshooting in Chapter 12 and the glossary in the appendix.
|
||||
|
||||
> **Summary of this chapter**
|
||||
> - ComfyUI is software that makes images with a workflow of connected nodes (boxes)
|
||||
> - The five terms to remember are "node", "workflow", "model", "prompt" and "queue"
|
||||
> - Workflow Studio is an extension that adds a "storage shelf" and an "easy control panel" to ComfyUI
|
||||
> - First, aim for the "first image" in Chapter 5
|
||||
@@ -0,0 +1,253 @@
|
||||
# Chapter 2 Installation and Launch
|
||||
|
||||
In this chapter we add Workflow Studio to ComfyUI and go as far as opening its screen for the first time.
|
||||
It assumes that ComfyUI itself is already installed and can be launched.
|
||||
|
||||
---
|
||||
|
||||
## 2-1 What you need
|
||||
|
||||
### Required
|
||||
| What you need | Description |
|
||||
| --- | --- |
|
||||
| ComfyUI | A recent version is fine. Because it uses a feature that places buttons in the top menu, a fairly new version (frontend v1.33.9 or later) is recommended |
|
||||
| Python 3.10 or later | The one bundled with ComfyUI is fine |
|
||||
| A web browser | Such as Chrome or Edge: the browser in which you open the ComfyUI screen |
|
||||
|
||||
The basic features of Workflow Studio work with no extra preparation as long as ComfyUI is running.
|
||||
|
||||
### Later, as needed
|
||||
The following are needed only when you use particular features. You can ignore them at first.
|
||||
|
||||
- **Ollama, LM Studio and similar** - AI support features such as prompt translation and AI chat (Chapter 10)
|
||||
- **Eagle** - a feature that automatically saves generated images to the image-management software Eagle (Chapter 8)
|
||||
- **Extra Python packages** - Tagger (tag generation from images), PSD export and the like (Chapter 11)
|
||||
|
||||
> **Tip**
|
||||
> It is not the case that "you can't use it unless you have everything".
|
||||
> Start by installing only the main part, and add things when features you want to use come up.
|
||||
|
||||
---
|
||||
|
||||
## 2-2 Install with ComfyUI Manager (recommended)
|
||||
|
||||
**ComfyUI Manager** is a management tool that lets you search for and install custom nodes (extensions) from the screen.
|
||||
Recent versions of ComfyUI often include it from the start, and it is the easiest method.
|
||||
|
||||
1. Start ComfyUI and open its screen in the browser.
|
||||
2. Click the **"Manager"** button in the top menu.
|
||||
|
||||
3. Click **"Custom Nodes Manager"**.
|
||||
4. Type **`Workflow Studio`** in the search box.
|
||||
5. Click **"Install"** on **ComfyUI-Workflow-Studio** in the list.
|
||||
|
||||
6. When the installation finishes, **restart ComfyUI** following the on-screen guidance.
|
||||
|
||||
> **Caution**
|
||||
> ComfyUI loads extensions only once, when it starts.
|
||||
> Always restart ComfyUI after installing. Reloading the browser alone will not take effect.
|
||||
|
||||
---
|
||||
|
||||
## 2-3 Install manually (git clone)
|
||||
|
||||
If ComfyUI Manager is not available, or if you are comfortable with Git, you can also install manually.
|
||||
You use a screen where you type commands (on Windows, "Command Prompt" or "Terminal").
|
||||
|
||||
1. Move to the **`custom_nodes`** folder inside the ComfyUI folder.
|
||||
|
||||
```
|
||||
cd ComfyUI/custom_nodes
|
||||
```
|
||||
|
||||
2. Type the following command to download Workflow Studio.
|
||||
|
||||
```
|
||||
git clone https://github.com/ketle-man/ComfyUI-Workflow-Studio.git
|
||||
```
|
||||
|
||||
3. If a **`ComfyUI-Workflow-Studio`** folder now exists inside `custom_nodes`, it worked.
|
||||
4. Restart ComfyUI.
|
||||
|
||||
> **Tip**
|
||||
> If the `git` command is not available, you first need to install Git (for example Git for Windows).
|
||||
> If you are unsure, the ComfyUI Manager method in 2-2 is recommended.
|
||||
|
||||
---
|
||||
|
||||
## 2-4 Launching
|
||||
|
||||
### Open it from the W button
|
||||
When you restart ComfyUI, a **"W"** button has been added to the menu at the top of the screen.
|
||||
This is the button that opens Workflow Studio.
|
||||
|
||||
- **Click** - Workflow Studio opens in a new tab.
|
||||
- **Shift + click** - It opens in a new window. Handy when you want to use it side by side with the ComfyUI screen.
|
||||
|
||||
A **camera button** has also been added near the W button.
|
||||
It is the button for saving a workflow screen as a thumbnail (you use it in Chapter 4).
|
||||
|
||||
### How addresses and port numbers work
|
||||
When you press the W button, the address of Workflow Studio appears in the browser's address bar.
|
||||
Knowing how to read this address lets you open it directly from a bookmark and track down causes when something goes wrong.
|
||||
|
||||
The address is made of the following three parts.
|
||||
|
||||
| Part | Example | Meaning |
|
||||
| --- | --- | --- |
|
||||
| Host | `127.0.0.1` | Which computer to connect to. `127.0.0.1` (or `localhost`) is a special address meaning "this computer" |
|
||||
| Port number | `8188` | Which piece of software on that computer to connect to |
|
||||
| Path | `/wfm` | Which page inside that software to open |
|
||||
|
||||
Joining these three in the form "`host:port-number/path`" gives the address of Workflow Studio.
|
||||
|
||||
#### What is a port number?
|
||||
Many pieces of software on one computer communicate at the same time.
|
||||
The **port number** is what is used to distinguish which software a communication is meant for.
|
||||
|
||||
To use an apartment building as an analogy, the host (`127.0.0.1`) is the "address of the building" and the port number is the "room number".
|
||||
Even in the same building, if you get the room number wrong, you will not reach the person you want.
|
||||
|
||||
ComfyUI listens on a port number decided when it starts.
|
||||
Commonly used numbers are as follows.
|
||||
|
||||
| Kind of ComfyUI / how it was started | Commonly used port number |
|
||||
| --- | --- |
|
||||
| Portable version or manual install (default settings) | 8188 |
|
||||
| ComfyUI Desktop (the desktop app version) | 8000 |
|
||||
| When the `--port` startup option is given | The number you specified |
|
||||
|
||||
If you use a launcher such as Stability Matrix, the number may also change depending on the launcher's settings.
|
||||
|
||||
#### Checking your own port number
|
||||
The most reliable way is to **look at the address bar of the browser in which you have ComfyUI open right now**.
|
||||
The number after `127.0.0.1:` or `localhost:` is the port number.
|
||||
|
||||
The black screen (console) shown when you start ComfyUI also displays a line such as
|
||||
`To see the GUI go to: http://127.0.0.1:XXXX`.
|
||||
|
||||
#### Opening it by typing the address directly
|
||||
If you know the port number, you can open Workflow Studio without the W button.
|
||||
Just add **`/wfm`** to the end of ComfyUI's address.
|
||||
|
||||
- ComfyUI is open at `127.0.0.1:8188` -> Workflow Studio is at `127.0.0.1:8188/wfm`
|
||||
- ComfyUI is open at `127.0.0.1:8000` -> Workflow Studio is at `127.0.0.1:8000/wfm`
|
||||
|
||||
If you use it often, bookmarking this address is handy.
|
||||
|
||||
> **Caution**
|
||||
> When you open it from a bookmark, "Send to Canvas", which sends a workflow directly to ComfyUI's canvas, cannot be used.
|
||||
> Instead, that workflow appears in ComfyUI's side panel (the WS Library), and you drag it onto the canvas yourself (Chapters 4 and 9).
|
||||
> If you use it while going back and forth with the ComfyUI screen, opening it from the W button is recommended.
|
||||
|
||||
> **Tip**
|
||||
> Workflow Studio runs as a part of ComfyUI, so it uses the same port number as ComfyUI.
|
||||
> There is no port number dedicated to Workflow Studio.
|
||||
|
||||
---
|
||||
|
||||
## 2-5 Changing the display language
|
||||
|
||||
Workflow Studio is displayed in **English** at first. You can switch it to Japanese or Chinese as follows.
|
||||
|
||||
1. Open **"Settings"** from the tabs at the top.
|
||||
2. In the **"UI Language"** field, choose the language you want.
|
||||
|
||||
3. After a notice that the language was changed, the page reloads automatically and switches to the new display language.
|
||||
|
||||
If you switch to Japanese, the tab names change as follows (some stay in English).
|
||||
|
||||
| English display | Japanese display |
|
||||
| --- | --- |
|
||||
| Workflow | ワークフロー |
|
||||
| GenerateUI | 生成UI |
|
||||
| Gallery | ギャラリー |
|
||||
| Prompt | プロンプト |
|
||||
| Models | モデル |
|
||||
| Nodes | ノード |
|
||||
| Settings | 設定 |
|
||||
| Help | ヘルプ |
|
||||
| AI TOOL / Tagger / Image Edit / Video | (stay in English) |
|
||||
|
||||
> **Tip**
|
||||
> The language setting is saved **per browser** you use.
|
||||
> If you open it from another browser or another computer, set it again.
|
||||
|
||||
The **"Summary Language"** field in the same place is the language used when AI creates descriptions of workflows (Chapter 10). You do not need to change it for now.
|
||||
|
||||
---
|
||||
|
||||
## 2-6 Folder locations in each environment
|
||||
|
||||
There are several ways to install ComfyUI. Depending on how it was installed, the folder locations differ slightly.
|
||||
In this book, folder locations are written in a form **starting from `ComfyUI/`**.
|
||||
Read it as the "place that corresponds to `ComfyUI/`" in the table below, to match your environment.
|
||||
|
||||
### How this book writes it, and where it is in each environment
|
||||
| Notation in this book | Contents | Portable version | ComfyUI Desktop | Stability Matrix |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| `ComfyUI/` | ComfyUI's main folder | `ComfyUI_windows_portable/ComfyUI/` | The folder you chose at install time (by default `ComfyUI` inside "Documents") | `(data folder)/Packages/ComfyUI/` |
|
||||
| `ComfyUI/custom_nodes/` | Custom nodes (Workflow Studio too) | `ComfyUI/custom_nodes/` | `ComfyUI/custom_nodes/` | `ComfyUI/custom_nodes/` |
|
||||
| `ComfyUI/models/` | Models | `ComfyUI/models/` | `ComfyUI/models/` | `(data folder)/Models/` (shared by all packages) |
|
||||
| `ComfyUI/output/` | Generated images | `ComfyUI/output/` | `ComfyUI/output/` | `(data folder)/Images/` |
|
||||
| `ComfyUI/user/default/workflows/` | Saved workflows | `ComfyUI/user/default/workflows/` | `ComfyUI/user/default/workflows/` | `ComfyUI/user/default/workflows/` |
|
||||
| ComfyUI's Python | Where extra packages are installed | `ComfyUI_windows_portable/python_embeded/python.exe` | `ComfyUI/.venv/Scripts/python.exe` | `ComfyUI/venv/Scripts/python.exe` |
|
||||
| Default port number | See 2-4 | 8188 | 8000 | 8188 |
|
||||
|
||||
> **Tip**
|
||||
> `ComfyUI/` in the table refers to the "place that corresponds to `ComfyUI/`" in each environment.
|
||||
> On Windows, path separators are shown as `\` instead of `/`.
|
||||
|
||||
### Portable version
|
||||
Everything is inside the `ComfyUI_windows_portable` folder created by extracting the downloaded ZIP file.
|
||||
You launch it with `run_nvidia_gpu.bat` or similar inside the folder.
|
||||
For **Python**, you use the one inside the `python_embeded` folder dedicated to ComfyUI (Chapter 11, section 11-2).
|
||||
|
||||
### ComfyUI Desktop
|
||||
This is the app version installed with an installer. At first launch, you choose the folder in which to put data.
|
||||
If you forget where the folder is, you can check it with the app's menu item that opens the folder ("Open Folder" or similar).
|
||||
The default port number is **8000**, so be careful when typing the address directly (2-4).
|
||||
|
||||
### Stability Matrix
|
||||
This is a launcher that manages several image-generation programs together.
|
||||
Inside the **data folder** you chose first (for example `StabilityMatrix/Data/`), things are separated as follows.
|
||||
|
||||
- **ComfyUI itself** - `Data/Packages/ComfyUI/`
|
||||
- **Models** - folders by type inside `Data/Models/` (`StableDiffusion` for Checkpoints, `Lora` for LoRAs, and so on). They are shared with other programs
|
||||
- **Generated images** - inside `Data/Images/`
|
||||
|
||||
> **Caution**
|
||||
> In Stability Matrix, the folders for models and images are **outside ComfyUI's main folder**.
|
||||
> Where this book says "put it in `ComfyUI/models/checkpoints`", put it in Stability Matrix's shared model folder (such as `Data/Models/StableDiffusion`).
|
||||
> If images do not appear in the Gallery, check that the "Gallery Output Folder" in the Settings tab points inside `Data/Images/`.
|
||||
|
||||
> **Tip**
|
||||
> Folder names and structure can change with each program's version updates.
|
||||
> If you cannot find something, also check each program's official documentation.
|
||||
|
||||
---
|
||||
|
||||
## 2-7 If it does not start properly
|
||||
|
||||
### The W button does not appear
|
||||
- **Did you restart ComfyUI?** Reloading the browser alone does not take effect.
|
||||
- **Is the install location correct?** Check that the folder exists at `ComfyUI/custom_nodes/ComfyUI-Workflow-Studio`.
|
||||
If there is another folder with the same name inside it (a doubled folder), it will not be loaded.
|
||||
- **Is your ComfyUI version old?** Try updating the main program from ComfyUI Manager or similar.
|
||||
|
||||
### The page does not open, or "cannot connect" is shown
|
||||
- **Is ComfyUI running?** Workflow Studio runs inside ComfyUI, so you cannot open it if you quit ComfyUI.
|
||||
- **Is the port number right?** Check ComfyUI's port number using the method in 2-4.
|
||||
For example, if you use ComfyUI Desktop but type `8188`, it will not connect.
|
||||
|
||||
### An error appears in the console at startup
|
||||
Check whether the black screen shown when you start ComfyUI displays any error about `ComfyUI-Workflow-Studio`.
|
||||
Noting the content of the error will help with the troubleshooting in Chapter 12, and when asking questions on GitHub.
|
||||
|
||||
> **Summary of this chapter**
|
||||
> - The easy way to install is to search for "Workflow Studio" in ComfyUI Manager
|
||||
> - Always restart ComfyUI after installing
|
||||
> - Open it with the "W" button in the top menu (Shift + click for a separate window)
|
||||
> - The address is "host:port-number/wfm". You can check the port number in the address bar where ComfyUI is open
|
||||
> - Switch the language in the Settings tab with "UI Language"
|
||||
> - Folder locations differ by environment (portable version, Desktop, Stability Matrix). Read `ComfyUI/` in this book accordingly
|
||||
@@ -0,0 +1,145 @@
|
||||
# Chapter 3 Reading the Screens
|
||||
|
||||
Workflow Studio has many tabs, but you do not need to memorize all of them from the start.
|
||||
In this chapter you will get a rough idea of "what each tab is for",
|
||||
and check the roles of the buttons and the side panel added to the ComfyUI side.
|
||||
|
||||
---
|
||||
|
||||
## 3-1 The tabs and their roles
|
||||
|
||||
When you open Workflow Studio, tabs are lined up in a row across the top of the screen.
|
||||
|
||||
From the left, there are the following tabs.
|
||||
It is enough to learn the tabs marked with a star under "Often used" first.
|
||||
|
||||
| Tab | What it is for | Often used | Chapter in this book |
|
||||
| --- | --- | :---: | --- |
|
||||
| Workflow | Listing and organizing saved workflows | * | Chapter 4 |
|
||||
| Nodes | Listing nodes and registering favorites | | Chapter 11 |
|
||||
| Models | Listing and organizing models such as Checkpoints and LoRAs | * | Chapter 6 |
|
||||
| GenerateUI | Generating images without touching the node screen | * | Chapter 5 |
|
||||
| Prompt | Saving and sorting prompts, AI assistance | * | Chapter 7 |
|
||||
| Gallery | Browsing generated images, checking their settings | * | Chapter 8 |
|
||||
| Image Edit | Simple image editing, making masks | | Chapter 11 |
|
||||
| Video | Video generation and video editing | | Chapter 11 |
|
||||
| Tagger | Automatically generating tags (prompts) from images | | Chapter 11 |
|
||||
| Settings | Language, theme, folders and other settings | | This chapter, Chapter 11 |
|
||||
| Help | Feature list, shortcuts, troubleshooting | | This chapter |
|
||||
| AI TOOL | Translation, chat and image analysis with local AI | | Chapter 10 |
|
||||
|
||||
### Think of the tabs in three groups: "organize", "create" and "support"
|
||||
If the number of tabs makes you lose your way, it helps to think of them in these three groups.
|
||||
|
||||
- **Organize** - Workflow / Nodes / Models / Prompt / Gallery
|
||||
Tabs that list your materials so they are easy to find.
|
||||
- **Create** - GenerateUI / Image Edit / Video
|
||||
Tabs for actually making images and videos, or touching them up.
|
||||
- **Support** - AI TOOL / Tagger / Settings / Help
|
||||
Tabs that help with work in other tabs, or hold overall settings.
|
||||
|
||||
> **Tip**
|
||||
> The tabs are connected to each other.
|
||||
> For example, you can load a workflow picked in the Workflow tab into GenerateUI,
|
||||
> or recall a prompt saved in the Prompt tab from GenerateUI.
|
||||
|
||||
### The Help tab
|
||||
The first thing to open when in trouble is the **Help** tab.
|
||||
A list of topics is lined up on the left, and clicking one shows the explanation on the right.
|
||||
|
||||
- The feature list (an overview of each tab's features)
|
||||
- Keyboard shortcuts
|
||||
- Troubleshooting
|
||||
- Support (links to GitHub and so on)
|
||||
|
||||
It is also useful when, reading this book, you wonder "what was this button?".
|
||||
|
||||
---
|
||||
|
||||
## 3-2 Buttons added to the ComfyUI side
|
||||
|
||||
When you install Workflow Studio, **three buttons** are added to the menu at the top of ComfyUI's screen.
|
||||
|
||||
| Button | Name | Role |
|
||||
| --- | --- | --- |
|
||||
| 1. W | Open Workflow Studio | Opens Workflow Studio in a new tab. Shift + click opens a new window (Chapter 2) |
|
||||
| 2. Camera | Canvas snapshot | Saves the current node screen as an image and makes it the workflow's thumbnail (Chapter 4) |
|
||||
| 3. An icon of lined-up squares | WS Library | Opens and closes a side panel beside the node screen (3-3) |
|
||||
|
||||
When you hover the mouse over a button, a description is shown.
|
||||
|
||||
> **Tip**
|
||||
> The main part of Workflow Studio (the screen with the row of tabs) and ComfyUI's node screen open in **separate browser tabs**.
|
||||
> The basic style is to use the two screens back and forth: "organizing and generating in Workflow Studio",
|
||||
> "detailed building on ComfyUI's node screen".
|
||||
|
||||
---
|
||||
|
||||
## 3-3 The side panel "WS Library"
|
||||
|
||||
When you press button 3, a panel called the **WS Library (Workflow Studio Library)** opens beside ComfyUI's node screen.
|
||||
|
||||
The WS Library is **a shelf for using the materials you organized in Workflow Studio right away on the node screen**.
|
||||
Single-letter tabs are lined up at the top of the panel (hover the mouse over one to see its proper name).
|
||||
|
||||
| Tab | Name | What you can do |
|
||||
| --- | --- | --- |
|
||||
| W | Workflows | Drag a workflow to load it onto the canvas |
|
||||
| N | Nodes | Place favorite nodes and node sets on the canvas |
|
||||
| P | Prompts | Place or copy saved prompts onto the canvas |
|
||||
| M | Models | Drag a model to place it onto the canvas together with a loader node |
|
||||
| I | Information | Drop an image or workflow file to inspect its contents (the models and prompts used) |
|
||||
| A | AI TOOL | Use AI features such as translation and chat while staying on the node screen |
|
||||
|
||||
For example, when you drag a model from the M tab onto the canvas, a node that loads that model is placed automatically.
|
||||
It saves the trouble of finding a node in a list, placing it, choosing the file name, and so on.
|
||||
|
||||
Chapter 9 explains how to use it in detail. For now, it is enough to remember only that "you can bring out a shelf of materials beside the node screen".
|
||||
|
||||
---
|
||||
|
||||
## 3-4 Theme and appearance settings
|
||||
|
||||
The look of Workflow Studio can be changed to your liking in the **Settings** tab.
|
||||
Because it is a tool you use for long periods, a color scheme that is easy on the eyes and a readable text size are recommended.
|
||||
|
||||
### Theme
|
||||
From the **"Theme"** field you can choose the color scheme of the whole screen. The default is the dark scheme "Deep Ocean Dark".
|
||||
|
||||
| Example theme | Feel |
|
||||
| --- | --- |
|
||||
| Deep Ocean Dark (default) | Dark blue. Images are easy to see |
|
||||
| Light Minimalist (clean) | White-based, bright and simple |
|
||||
| Pastel Dream (pastel) | Soft pastel tones |
|
||||
| Corporate Trust (for business) | Calm white and blue |
|
||||
|
||||
Besides these, there are 13 themes in all, including pop, cyberpunk and retro.
|
||||
|
||||
> **Tip**
|
||||
> When checking the colors of generated images, a darker theme makes colors easier to tell apart.
|
||||
> If you can't decide, try using the default for now.
|
||||
|
||||
### Customize
|
||||
Opening **"Customize"** lets you fine-tune the chosen theme further.
|
||||
|
||||
- **Color Override** - change colors such as background, text and accent individually
|
||||
- **Background Pattern** - add patterns such as stripes or dots to the background
|
||||
- **Font** - change the typeface (Japanese fonts such as Zen Maru Gothic and BIZ UDPGothic can also be chosen)
|
||||
|
||||
When you finish adjusting, press **"Apply & Save"**.
|
||||
To go back, press **"Reset Customization"**.
|
||||
|
||||
### Text Size
|
||||
With the **"Text Size"** field you can change the size of the text across the whole screen.
|
||||
If the text feels too small to read, make it bigger here.
|
||||
|
||||
### The look of the WS Library
|
||||
The colors of the WS Library (3-3) can be set separately from the **gear button** inside the panel.
|
||||
You can adjust the background and text colors to match the colors of the ComfyUI screen.
|
||||
|
||||
> **Summary of this chapter**
|
||||
> - Thinking of the tabs in three groups, "organize", "create" and "support", makes them easy to follow
|
||||
> - For now, it is enough to learn five: Workflow, Models, GenerateUI, Prompt and Gallery
|
||||
> - Three buttons, "W", "camera" and "WS Library", are added to the top of ComfyUI
|
||||
> - The WS Library is a shelf of materials you can bring out beside the node screen
|
||||
> - The look can be adjusted with the Settings tab's Theme, Customize and Text Size
|
||||
@@ -0,0 +1,305 @@
|
||||
# Chapter 4 The Workflow Tab - Organizing the Workflows You Made
|
||||
|
||||
The Workflow tab is the first thing shown when you open Workflow Studio, a kind of "front door".
|
||||
In this chapter you will learn how to make the workflows you already have viewable as a list,
|
||||
and how to organize them so they are easy to find later.
|
||||
|
||||
---
|
||||
|
||||
## 4-1 How workflows are listed automatically
|
||||
|
||||
When you open the Workflow tab, some workflows may already be lined up.
|
||||
This is because Workflow Studio automatically reads ComfyUI's workflow save folder.
|
||||
|
||||
A workflow you "Save" on ComfyUI's node screen is normally saved in the following folder.
|
||||
|
||||
```
|
||||
ComfyUI/user/default/workflows/
|
||||
```
|
||||
|
||||
Workflow Studio lists the workflows inside this folder.
|
||||
In other words, **workflows saved in ComfyUI line up in the Workflow tab without your doing anything**.
|
||||
|
||||
> **Tip**
|
||||
> If a workflow you just saved in ComfyUI does not appear in the list,
|
||||
> press the **"Refresh"** button on the toolbar. It reloads to the latest state.
|
||||
|
||||
> **Tip**
|
||||
> The folder that is read can be changed with the **"Workflow Data Folder"** setting in the Settings tab.
|
||||
> Unless you have a reason, leaving it as it is causes no problem.
|
||||
|
||||
---
|
||||
|
||||
## 4-2 Reading the screen and switching the display
|
||||
|
||||
The Workflow tab is divided into three main parts.
|
||||
|
||||
| No. | Place | Role |
|
||||
| --- | --- | --- |
|
||||
| 1 | Toolbar (top) | Search, filtering, sorting, various buttons |
|
||||
| 2 | List (center) | Workflows lined up as cards or in a table |
|
||||
| 3 | Side panel (right) | Shows the thumbnail and contents of the selected workflow |
|
||||
|
||||
### Thumbnail view and table view
|
||||
With the switch buttons on the toolbar you can change how the list is displayed.
|
||||
|
||||
- **Thumbnail** - lines them up as cards with images. Handy when you want to find things by how they look.
|
||||
- **Table** - lines them up in a table. Handy when you want to find one among many workflows by name.
|
||||
|
||||
### Click and double-click
|
||||
Workflows in the list behave differently depending on how you click.
|
||||
|
||||
| Operation | What happens |
|
||||
| --- | --- |
|
||||
| Click | Shows the contents in the right-hand side panel (the workflow becomes "selected") |
|
||||
| Double-click | Opens the detail screen (editing badges, tags and memo; explained in 4-4) |
|
||||
|
||||
### The side panel
|
||||
When you click a workflow, the following three tabs appear in the right-hand side panel.
|
||||
|
||||
- **Thumbnail** - shows the workflow's image large
|
||||
- **JSON** - shows the contents (JSON data) of the workflow with color coding. The "Copy" button copies it all
|
||||
- **Groups** - sorts the workflow into groups (explained in 4-4)
|
||||
|
||||
Below the workflow name, the **format of the workflow** (UI format, API format and so on) and
|
||||
the **check result** of whether it can be used in GenerateUI are shown (explained in 4-7).
|
||||
|
||||
---
|
||||
|
||||
## 4-3 Taking a thumbnail with the camera button
|
||||
|
||||
A workflow that you only saved in ComfyUI has no thumbnail image, and can be hard to tell apart in the list.
|
||||
That is where the **camera button** (canvas snapshot) added to ComfyUI's top menu comes in.
|
||||
|
||||
### How to take a thumbnail
|
||||
1. On ComfyUI's node screen, open the workflow you want to make a thumbnail of.
|
||||
2. Adjust the screen position and zoom so that the whole workflow is easy to see.
|
||||
3. Click the **camera button** in the top menu.
|
||||
|
||||
4. A screen for confirming the name to save appears. Change the name if you wish and save.
|
||||
(At first, the name of the workflow currently open is filled in)
|
||||
5. When "Workflow saved" is shown, you are done.
|
||||
|
||||
When you open the Workflow tab of Workflow Studio (or press "Refresh"),
|
||||
the workflow appears in the list with the image you took attached as its thumbnail.
|
||||
|
||||
> **Tip**
|
||||
> The image (PNG) saved with the camera button also has the workflow information embedded in it.
|
||||
> If you drag and drop this image onto ComfyUI's node screen, you can load that workflow.
|
||||
> A single image file carries both the "look" and the "contents", which is handy.
|
||||
|
||||
### Changing a thumbnail later
|
||||
To replace the thumbnail of an existing workflow,
|
||||
double-click the workflow to open the detail screen, press **"Change Thumbnail"** and choose an image.
|
||||
|
||||
---
|
||||
|
||||
## 4-4 Sorting with favorites, badges and groups
|
||||
|
||||
As workflows increase, sorting them lets you find what you want right away.
|
||||
Workflow Studio has three ways to sort.
|
||||
|
||||
| Method | When to use it | Example |
|
||||
| --- | --- | --- |
|
||||
| Favorites (star) | You want to mark the ones you use often | The basic workflow you use every day |
|
||||
| Badges | You want to tell kinds apart at a glance with colored labels | "SDXL", "FLUX", "Video", "Experimenting" |
|
||||
| Groups | You want to gather them by purpose or project | "Character work", "Background materials" |
|
||||
|
||||
### Favorites (star)
|
||||
Click the **star** on a card to register it as a favorite.
|
||||
Press the **star** button at the top of the toolbar to show only favorites (**ALL** returns to showing everything).
|
||||
|
||||
Workflows registered as favorites also appear under
|
||||
"Favorites" in ComfyUI's side panel (the WS Library) (Chapter 9).
|
||||
|
||||
### Badges
|
||||
A badge is a **colored label** you attach to a workflow.
|
||||
You can also attach several badges to one workflow.
|
||||
|
||||
**1. Make a badge**
|
||||
1. Press the **"Badge"** button on the toolbar.
|
||||
2. Type a name in the **"Badge label..."** field and press **"Add"**.
|
||||
3. Click a color swatch to change the badge's color.
|
||||
|
||||
**2. Attach a badge to a workflow**
|
||||
1. Double-click the workflow to open the detail screen.
|
||||
2. In the **"Badges"** field, tick the badges you want to attach.
|
||||
3. Press **"Save"**.
|
||||
|
||||
**3. Filter by badge**
|
||||
Once you have made badges, they line up next to the star and ALL buttons at the top of the toolbar.
|
||||
Click a badge to show only the workflows that have that badge.
|
||||
|
||||
> **Tip**
|
||||
> The kinds and colors of badges are shared with the Models tab (Chapter 6).
|
||||
> If you make a badge called "SDXL", you can attach it in the same color to both workflows and models.
|
||||
|
||||
### Groups
|
||||
A group is **a box for gathering workflows by purpose**.
|
||||
|
||||
1. Click a workflow to select it.
|
||||
2. In the right-hand side panel, open the **"Groups"** tab.
|
||||
3. Make a group with **"Create New Group"**, or pick an existing group and **"Add to Group"**.
|
||||
|
||||
If you choose a group from the pull-down labeled **"All Groups"** on the toolbar, only the workflows in that group are shown.
|
||||
|
||||
### Tags and memo
|
||||
On the detail screen you can also write the following.
|
||||
|
||||
- **Tags** - keywords for searching. You can enter several, separated by commas (,).
|
||||
- **Memo** - free notes, such as cautions on how to use it or settings that worked well.
|
||||
|
||||
If you note the "source" and the "required custom nodes" for a workflow you got online, you will not be in trouble later.
|
||||
|
||||
### Renaming and deleting
|
||||
- **Rename** - click the workflow name at the top of the detail screen to edit it.
|
||||
- **Delete** - press the **"Delete"** button on the detail screen.
|
||||
|
||||
> **Caution**
|
||||
> Deleting removes the file itself in ComfyUI's workflow save folder (including the thumbnail image).
|
||||
> For workflows that matter, back them up somewhere else before deleting.
|
||||
|
||||
---
|
||||
|
||||
## 4-5 Search, sorting and clearing filters
|
||||
|
||||
### Search
|
||||
Type a keyword in the **"Search..."** box on the toolbar, and only workflows whose name, tags and so on match are shown.
|
||||
Pressing the **x** at the right end of the box clears the search text immediately.
|
||||
|
||||
### Sorting
|
||||
With the pull-down next to the search box you can change the order.
|
||||
|
||||
| Choice | Order |
|
||||
| --- | --- |
|
||||
| Date (Newest) | Newest first |
|
||||
| Date (Oldest) | Oldest first |
|
||||
| Name A-Z | Ascending by name |
|
||||
| Name Z-A | Descending by name |
|
||||
|
||||
The order you choose is remembered, and the same order is used the next time you open it.
|
||||
|
||||
### Clearing filters all at once
|
||||
While narrowing down by search, group and badge, you may wonder "why doesn't it show up in the list?".
|
||||
In that case, press **"x Clear"** at the right end of the toolbar.
|
||||
The search text, group and badge filters are all cleared at once, and every workflow is shown.
|
||||
|
||||
---
|
||||
|
||||
## 4-6 Importing, and sending to the canvas
|
||||
|
||||
### Bringing in workflows (import)
|
||||
Workflow files you got online (`.json`, or `.png` containing a workflow)
|
||||
can be brought into the Workflow tab in either of these ways.
|
||||
|
||||
- Press the **"Import"** button on the toolbar and choose files (you can select several)
|
||||
- **Drag and drop** the files onto the list area of the Workflow tab
|
||||
|
||||
Imported workflows are saved in ComfyUI's workflow save folder and added to the list.
|
||||
|
||||
### Using the selected workflow
|
||||
When you click a workflow to select it, the following three buttons on the toolbar become pressable.
|
||||
|
||||
| Button | What happens |
|
||||
| --- | --- |
|
||||
| Load in GenerateUI | Loads it into the GenerateUI tab so you can generate without touching the node screen (Chapter 5) |
|
||||
| Load in Video | Loads a workflow for video generation into the Video tab (Chapter 11) |
|
||||
| Send to Canvas | Loads the workflow onto ComfyUI's node screen |
|
||||
|
||||
> **Tip**
|
||||
> If a button cannot be pressed (it is gray), you have not yet selected a workflow.
|
||||
> Click a workflow in the list once, then press it.
|
||||
|
||||
When you press **"Send to Canvas"**, that workflow is loaded onto the node screen of the ComfyUI from which you opened Workflow Studio.
|
||||
You can use it like this: find in Workflow Studio, edit in detail in ComfyUI.
|
||||
|
||||
> **Caution**
|
||||
> "Send to Canvas" works in Workflow Studio **opened from ComfyUI's W button**.
|
||||
> If you opened it directly, for example from a bookmark, that workflow appears in the WS Library on the ComfyUI side,
|
||||
> so drag it onto the canvas from there (Chapters 2 and 9).
|
||||
|
||||
---
|
||||
|
||||
## 4-7 Checking in advance whether it works in GenerateUI (GenerateUI Check)
|
||||
|
||||
Not every workflow can be used as it is in GenerateUI (Chapter 5).
|
||||
If it uses special custom nodes, or specifies models you do not have, it may not work well.
|
||||
|
||||
So before you load one into GenerateUI, there is a feature that automatically checks whether it looks usable.
|
||||
|
||||
### Reading the check result
|
||||
When you click a workflow, the following information appears below the workflow name in the side panel.
|
||||
|
||||
- **Format badge** - the workflow's save format (UI format / API format / App format)
|
||||
- **Convert** - whether it can be converted into a form GenerateUI can use
|
||||
- **Operability** - how many of the settings can be changed on the GenerateUI screen alone
|
||||
|
||||
Each is shown in one of three levels.
|
||||
|
||||
| Display | Meaning |
|
||||
| --- | --- |
|
||||
| Check mark | No problem |
|
||||
| Warning mark | Usable, but needs care |
|
||||
| Cross mark | Cannot be used in GenerateUI, or is hard to use |
|
||||
|
||||
Hovering the mouse over a badge shows the reason for the judgment.
|
||||
|
||||
### Common judgments and what to do
|
||||
| Judgment | Common reason | What to do |
|
||||
| --- | --- | --- |
|
||||
| Convert: cross | The custom nodes the workflow needs are not installed | Install the missing nodes with ComfyUI Manager (Chapter 12) |
|
||||
| Convert: warning | The specified model or LoRA is not on your computer | Choose a model you have in GenerateUI. For UI-format workflows, note that it is automatically replaced with the first model in the list |
|
||||
| Operability: warning / cross | Many settings are not shown in GenerateUI | Change settings of nodes that are not shown on ComfyUI's node screen |
|
||||
|
||||
> **Tip**
|
||||
> Operability is "the share of nodes that have settings which are shown in GenerateUI".
|
||||
> It is a check mark at 80% or more, a warning at 50% or more, and a cross below that.
|
||||
> Even with a warning or cross, generation itself is often possible, so treat it as a rough indication of "hard to finish using GenerateUI alone".
|
||||
|
||||
> **Tip**
|
||||
> The first check after opening the Workflow tab can take about 10 seconds, because it fetches node information from ComfyUI.
|
||||
> From the second time on, results appear immediately.
|
||||
|
||||
---
|
||||
|
||||
## 4-8 Trying the bundled sample workflows
|
||||
|
||||
Workflow Studio comes with sample workflows you can try right away.
|
||||
The samples are in the **`workflows`** folder inside the folder where you installed Workflow Studio.
|
||||
|
||||
```
|
||||
ComfyUI/custom_nodes/ComfyUI-Workflow-Studio/workflows/
|
||||
```
|
||||
|
||||
Each sample has a `.json` (the workflow itself) and a `.png` (the thumbnail image) of the same name.
|
||||
|
||||
### Samples recommended for beginners
|
||||
| File name | Contents |
|
||||
| --- | --- |
|
||||
| `ws_sdxl_t2i_basic` | A basic workflow that makes images from text with an SDXL model |
|
||||
| `ws_sd15_t2i_basic` | A basic workflow that makes images from text with an SD1.5 model |
|
||||
|
||||
Choose according to the kind of model you have (SDXL or SD1.5).
|
||||
|
||||
### Importing a sample
|
||||
1. Press **"Import"** in the Workflow tab.
|
||||
2. Open the `workflows` folder above and choose the `.png` file of the sample you want to use.
|
||||
(If you choose the `.png`, it is imported with its thumbnail)
|
||||
3. Check that it has been added to the list.
|
||||
|
||||
There are also more advanced samples, such as pose specification and inpainting (redrawing part of an image).
|
||||
|
||||
> **Caution**
|
||||
> Some samples require additional custom nodes.
|
||||
> If any nodes are shown in red on the node screen, install the missing nodes with ComfyUI Manager (Chapter 12).
|
||||
> The "Convert: cross" shown in the GenerateUI Check of 4-7 is also mostly this case.
|
||||
|
||||
In the next chapter, you load the basic sample you just imported into GenerateUI and finally generate your first image.
|
||||
|
||||
> **Summary of this chapter**
|
||||
> - Workflows saved in ComfyUI line up automatically in the Workflow tab
|
||||
> - Click to show in the side panel; double-click for the detail screen
|
||||
> - With the camera button you can give a workflow a thumbnail that is easy to recognize
|
||||
> - Sort with favorites, badges and groups, and find with search and sorting. If lost, use "x Clear"
|
||||
> - With "Load in GenerateUI" and "Send to Canvas" you can use the selected workflow right away
|
||||
> - The GenerateUI Check lets you confirm in advance whether it works in GenerateUI
|
||||
@@ -0,0 +1,229 @@
|
||||
# Chapter 5 The GenerateUI Tab - Making Images Without Touching Nodes
|
||||
|
||||
At last, you generate an image with Workflow Studio.
|
||||
The **GenerateUI** tab is a screen that picks out, from inside a workflow, the items you change often, such as "prompt", "model" and "size",
|
||||
and shows them as an input form.
|
||||
You no longer need to find nodes and follow lines.
|
||||
|
||||
In the first half of this chapter (5-1 to 5-4), you use the basic sample imported in Chapter 4 to generate your first image.
|
||||
|
||||
> **Before you start**
|
||||
> - ComfyUI is running
|
||||
> - At least one Checkpoint model is in ComfyUI's `models/checkpoints` folder
|
||||
> - You have imported a sample workflow (such as `ws_sdxl_t2i_basic`) in Chapter 4
|
||||
|
||||
---
|
||||
|
||||
## 5-1 Loading a workflow into GenerateUI
|
||||
|
||||
1. Open the **Workflow** tab.
|
||||
2. **Click** the workflow you want to use (for example `ws_sdxl_t2i_basic`) to select it.
|
||||
3. In the side panel's **GenerateUI Check** (Chapter 4, section 4-7), confirm that "Convert" shows a check mark.
|
||||
4. Press **"Load in GenerateUI"** on the toolbar.
|
||||
|
||||
The screen switches automatically to the **GenerateUI** tab, and the contents of the workflow are loaded.
|
||||
If the name of the loaded workflow is shown at the top of the screen, it worked.
|
||||
|
||||
> **Tip**
|
||||
> On the GenerateUI screen, button and item names are shown in English.
|
||||
> This book uses the displayed English names as they are.
|
||||
|
||||
---
|
||||
|
||||
## 5-2 Reading the GenerateUI screen
|
||||
|
||||
The GenerateUI tab is divided into the following main parts.
|
||||
|
||||
| No. | Place | Role |
|
||||
| --- | --- | --- |
|
||||
| 1 | Top bar | Connection state with ComfyUI, workflow name, various buttons |
|
||||
| 2 | Subtabs | Switch between Input / Model / Settings / Feeder / Batch / Lab |
|
||||
| 3 | Editing area (center) | The settings of the chosen subtab |
|
||||
| 4 | Raw JSON (right side) | Shows the contents of the workflow as JSON (for advanced users) |
|
||||
| 5 | Generate panel | The Generate button, progress, seed settings, generated results |
|
||||
|
||||
### 1. The top bar
|
||||
| Display / button | Meaning |
|
||||
| --- | --- |
|
||||
| Connected / Disconnected | Whether it is connected to ComfyUI. If it is a green **Connected**, you can generate |
|
||||
| Connect | Reconnects to ComfyUI |
|
||||
| Refresh Models | Reloads the list of models (press it after adding models to ComfyUI) |
|
||||
| Reset Workflow | Discards edits and returns to the state right after loading the workflow |
|
||||
| Workflow name | The workflow currently loaded |
|
||||
|
||||
> **Tip**
|
||||
> When you open the GenerateUI tab, it connects to ComfyUI automatically.
|
||||
> If it shows **Disconnected**, check that ComfyUI is running and press **Connect**.
|
||||
|
||||
### 2. The subtabs
|
||||
| Subtab | What you set | In this book |
|
||||
| --- | --- | --- |
|
||||
| Input | Prompts, input images | 5-3 |
|
||||
| Model | Models such as Checkpoint, VAE and LoRA | 5-3 |
|
||||
| Settings | Seed, step count, sampler, image size and so on | 5-4 |
|
||||
| Feeder | Process images in a folder in order | 5-6 |
|
||||
| Batch | Generate in bulk while changing conditions | 5-5 |
|
||||
| Lab | Experimental I2I batch generation (advanced) | 5-7 |
|
||||
|
||||
At first, it is enough to learn just the three: **Input, Model and Settings**.
|
||||
|
||||
### 4. Raw JSON
|
||||
To the right of Input, Model and Settings, the contents of the workflow are shown in JSON format.
|
||||
When you change values in the form, they are reflected here too.
|
||||
Until you are used to it, treat this as "view only".
|
||||
|
||||
---
|
||||
|
||||
## 5-3 Generating your first image
|
||||
|
||||
Now, to generate. At minimum, you check and set these three things.
|
||||
|
||||
1. Which model to draw with (Model)
|
||||
2. What to draw (Input -> Prompt)
|
||||
3. Generate (Generate)
|
||||
|
||||
### Step 1: Choose a model (Model)
|
||||
1. Open the **Model** subtab.
|
||||
2. In the **Checkpoint** field, choose a model you have.
|
||||
If the list is long, typing characters in the box above the field narrows it down.
|
||||
3. Press the **Apply** button below the field.
|
||||
|
||||
> **Tip: when a model cannot be found**
|
||||
> The model saved in a workflow may not be on your computer.
|
||||
> You will almost always run into this when using distributed workflows. It is signaled in one of two ways.
|
||||
> - The field shows "(model name) (not found)" with a warning mark
|
||||
> - When loading, a message says the workflow's Checkpoint "..." was not found and was replaced with another model without warning
|
||||
> (in this case it has been replaced automatically with the first model in the list you have)
|
||||
>
|
||||
> In either case, choose the model you want to use from the list and press Apply.
|
||||
> If choosing again each time is a nuisance, the **Default Checkpoint** in the Settings tab (Chapter 11) is handy.
|
||||
|
||||
> **Caution: Don't forget Apply**
|
||||
> In GenerateUI, after changing a model or the Settings values (5-4), you must press **Apply** for them to be reflected in the workflow.
|
||||
> If you Generate without pressing Apply, the image is generated **with the values from before the change**.
|
||||
> When "I changed a setting but the result didn't change", suspect a forgotten Apply first.
|
||||
> (Only the prompt input fields are reflected automatically when you press Generate)
|
||||
|
||||
> **Tip**
|
||||
> Item names shown in bright green are items for which the loaded workflow contains a node for that model.
|
||||
> Items that are not green have no effect on this workflow even if you change them.
|
||||
|
||||
### Step 2: Write a prompt (Input)
|
||||
1. Open the **Input** subtab and choose **Prompt** inside it.
|
||||
2. In the **Positive Prompt** field, enter in English what you want drawn.
|
||||
|
||||
```
|
||||
a cute cat sitting on a windowsill, sunlight, soft colors, high quality
|
||||
```
|
||||
|
||||
3. Press **Apply** for the **Positive Prompt**.
|
||||
4. If needed, enter in the **Negative Prompt** field what you do not want drawn, and press **Apply** for that too.
|
||||
|
||||
> Even if you forget Apply, the prompt is reflected automatically when you press Generate.
|
||||
> However, you can check the reflected result in the Raw JSON (right side), so it is reassuring to get into the habit of pressing Apply.
|
||||
|
||||
```
|
||||
low quality, blurry, bad anatomy
|
||||
```
|
||||
|
||||
> **Tip**
|
||||
> Pressing the **reset arrow** button next to Apply returns the contents of the field to the value currently reflected in the workflow.
|
||||
> Handy when an edit went wrong.
|
||||
|
||||
> **Tip**
|
||||
> If you are not good at English, the AI translation features introduced in Chapters 7 and 10 let you turn a prompt you thought up in your own language into English.
|
||||
|
||||
### Step 3: Generate (Generate)
|
||||
1. Press the **Generate** button in the generate panel on the screen.
|
||||
2. A bar showing progress extends, and a percentage is displayed.
|
||||
3. When "Done" is shown, the generated image appears in the generate panel.
|
||||
|
||||
Congratulations. You have completed your first image with Workflow Studio.
|
||||
|
||||
A generated image is saved in ComfyUI's `output` folder, just as when generated in ComfyUI.
|
||||
To look at it again later, you can browse it in the **Gallery** tab (Chapter 8).
|
||||
|
||||
> **Tip: when you want to stop partway**
|
||||
> During generation, a **Stop** button appears next to the Generate button. Pressing it interrupts generation.
|
||||
|
||||
> **Tip: Apply and Generate at once**
|
||||
> **Click Apply while holding the Alt key** to reflect the values and generate in one go.
|
||||
> Once you are used to it, you can try things quickly: rewrite the prompt, then Alt + Apply.
|
||||
|
||||
### Saving the workflow you generated with
|
||||
If you want to use settings changed in GenerateUI again later, press the **Save** button at the right end of the subtabs.
|
||||
If you save it with a name, it is added as a new workflow in the Workflow tab.
|
||||
|
||||
---
|
||||
|
||||
## 5-4 What seed, sampler and step count mean
|
||||
|
||||
Once the first image is out, next look at the **Settings** subtab, where settings that decide how the result turns out are found.
|
||||
|
||||
The Settings tab is divided into two blocks, left and right.
|
||||
|
||||
- **KSampler (left)** - settings for how the image is drawn
|
||||
- **Latent Image (right)** - settings for the size and number of images
|
||||
|
||||
Here too, don't forget to press **Apply** on each block after changing values.
|
||||
|
||||
### KSampler items
|
||||
| Item | Meaning | Rule of thumb for beginners |
|
||||
| --- | --- | --- |
|
||||
| Seed | The "seed of the random numbers" the image grows from. With the same settings and the same seed, you get almost the same image | When generating, the seed settings in the generate panel (below) take priority, so think of this as "for checking the seed of the loaded workflow". To use the workflow's seed as it is, set the generate panel's mode to **Workflow** |
|
||||
| Steps | How many times to repeat the drawing. More is more careful but takes longer | 20 to 30 |
|
||||
| CFG | How faithfully to follow the prompt. Too high and colors and shapes tend to break down | About 5 to 8 for SDXL |
|
||||
| Sampler | The drawing algorithm | `euler`, `dpmpp_2m` and so on |
|
||||
| Scheduler | How the drawing amount is distributed across steps | `normal`, `karras` and so on |
|
||||
| Denoise | How much to redraw the original image. 1.0 when making from text | 1.0 (0.4 to 0.7 and so on when making from an image) |
|
||||
|
||||
> **Tip**
|
||||
> The suggested values differ by model. The model's distribution page (Civitai and so on) often lists recommended values, so check it.
|
||||
> If unsure, using the values the sample workflow starts with is fine.
|
||||
|
||||
### Latent Image items
|
||||
| Item | Meaning | Rule of thumb |
|
||||
| --- | --- | --- |
|
||||
| Width | Horizontal size of the image (pixels) | Around 1024 for SDXL, around 512 for SD1.5 |
|
||||
| Height | Vertical size of the image (pixels) | Same as above |
|
||||
| Batch Size | How many images to make in one generation | 1 to 4 (more uses more memory) |
|
||||
|
||||
> **Caution**
|
||||
> If you stray far from the size the model learned, people tend to come out doubled or the composition falls apart.
|
||||
> Even when you want portrait or landscape, adjust so the total pixel count stays about the same (for example 832x1216 for SDXL).
|
||||
|
||||
### Managing the seed (generate panel)
|
||||
The seed is managed with the **Seed** field in the generate panel and the pull-down below it.
|
||||
|
||||
| Mode | What it does | When to use it |
|
||||
| --- | --- | --- |
|
||||
| Random | Generates with a random seed every time | When you want to try various pictures |
|
||||
| Fixed | Fixes it to the value in the Seed field | When you want to keep a picture you like and change only the prompt to compare |
|
||||
| Increment | Increases the seed by 1 each time you generate | When you want to make slightly different pictures in sequence |
|
||||
| Decrement | Decreases the seed by 1 each time you generate | The reverse of Increment |
|
||||
| Workflow | Uses the seed in the workflow as it is, without overriding it | When you want to reproduce, with the original seed, an image loaded from the Gallery or a distributed workflow |
|
||||
|
||||
When generation finishes, the Seed field shows **the seed value actually used**.
|
||||
|
||||
> **Tip: Workflow mode (v0.8.3 and later)**
|
||||
> If you set the mode to **Workflow**, it generates with the loaded workflow's own seed, not the Seed field's value or a random one.
|
||||
> Even after trying several images with Random, it returns to the workflow's original seed (the value at the time of loading) when generating.
|
||||
> If no seed input can be found in the workflow, the value in the Seed field is used (random if it is -1).
|
||||
> If you press it twice in a row with the same seed and the same settings, ComfyUI reuses the already computed result, so no new image is added (this is not a malfunction).
|
||||
|
||||
### The flow of "growing" a picture you like
|
||||
Using the seed, you can improve a picture you like a little at a time.
|
||||
|
||||
1. Generate several with **Random** and look for a composition you like
|
||||
2. When a picture you like appears, switch the mode to **Fixed** (the Seed field already holds that picture's seed)
|
||||
3. Add words to the prompt or change Steps, and compare the differences
|
||||
|
||||
Fixing the seed makes it easy to see "what you changed, and how it changed".
|
||||
This is the shortest path to getting used to image generation.
|
||||
|
||||
> **Summary of this chapter (first half)**
|
||||
> - Select in the Workflow tab and press "Load in GenerateUI" to edit in GenerateUI
|
||||
> - The basics are the three subtabs Input (prompt), Model (model) and Settings (detailed settings)
|
||||
> - After changing the model or Settings values, always press **Apply**. If you forget, it generates with the values from before the change (prompts are reflected automatically)
|
||||
> - Generate to produce. Alt + Apply reflects and generates in one go
|
||||
> - If you set the seed to Fixed, you can keep a picture you like and compare by changing conditions. To use the workflow's seed as it is, use Workflow
|
||||
@@ -0,0 +1,180 @@
|
||||
## 5-5 Batch generation - trying while changing conditions
|
||||
|
||||
As you get used to image generation, you start wanting to try things like these.
|
||||
|
||||
- Try all the models you have with the same prompt and compare them
|
||||
- Generate several prompts one after another
|
||||
- Check in bulk which sampler suits this model
|
||||
|
||||
Changing the settings and pressing Generate for each image is a lot of work.
|
||||
With the **Batch** subtab, you specify "what to change while generating" all at once, and it generates in order automatically.
|
||||
|
||||
### What can be changed in a batch
|
||||
In a batch, you choose **one** of the following seven kinds and generate while changing it in order.
|
||||
|
||||
| Kind | What changes | When to use it |
|
||||
| --- | --- | --- |
|
||||
| Checkpoint | The model | Compare how models draw |
|
||||
| Lora | The LoRA | Compare the effect of LoRAs |
|
||||
| Prompt | The prompt | Try saved prompts in order |
|
||||
| Workflow | The workflow | Run several workflows in order |
|
||||
| Sampler | The sampler | Compare the differences between samplers |
|
||||
| Scheduler | The scheduler | Compare the differences between schedulers |
|
||||
| Style | The style | Compare the differences between styles |
|
||||
|
||||
> **Tip**
|
||||
> Only one kind can be changed at a time.
|
||||
> If you want to change both the model and the prompt at once, use the Lab in 5-7.
|
||||
|
||||
### The Batch tab screen
|
||||
The Batch tab is divided into three parts: left, center and right.
|
||||
|
||||
| Place | Role |
|
||||
| --- | --- |
|
||||
| Left (lists) | Choose Checkpoints / Sampler / Scheduler / Style from a list |
|
||||
| Center (groups) | Choose Checkpoint / Lora / Prompt / Workflow by "group" |
|
||||
| Right (Batch Queue) | The list of chosen items. This is where you decide which kind to run |
|
||||
|
||||
The groups in the center are linked to the groups made in each tab.
|
||||
|
||||
- Checkpoint and Lora groups -> the Models tab (Chapter 6)
|
||||
- Prompt groups -> the Prompt tab (Chapter 7)
|
||||
- Workflow groups -> the Workflow tab (Chapter 4)
|
||||
|
||||
### Example: comparing the models you have
|
||||
Let's compare how three models draw, using the same prompt and the same seed.
|
||||
|
||||
1. Using the steps in 5-3, load beforehand a workflow with the prompt you want to compare.
|
||||
2. Set the seed mode in the generate panel to **Fixed**.
|
||||
(Fixing the seed evens out every condition except the model, so the difference is easy to see)
|
||||
3. Open the **Batch** subtab.
|
||||
4. On the left **Checkpoints** tab, tick the models you want to compare.
|
||||
5. In the right-hand **Batch Queue**, turn on the checkbox in the heading of the **Checkpoint** column.
|
||||
The column shows the list of chosen models and their count.
|
||||
|
||||
6. Press **Generate**.
|
||||
|
||||
It generates in order with the chosen models.
|
||||
The **Batch** area of the generate panel shows which one is being generated now, and the overall progress.
|
||||
|
||||
- **Pause** - pauses. Pressing it again resumes.
|
||||
- **Stop** - stops the whole batch.
|
||||
|
||||
> **Caution**
|
||||
> If a Batch Queue column's checkbox stays on, the next time you press Generate it will run as a batch again.
|
||||
> If you want to generate just one image, turn the column's checkbox off.
|
||||
|
||||
> **Tip: LoRA batches**
|
||||
> In a Lora batch, the format of the chosen LoRA (`<lora:name:strength>`) and the trigger words obtained from Civitai
|
||||
> are added automatically to the Positive Prompt. When the batch ends, it returns to the original prompt.
|
||||
|
||||
---
|
||||
|
||||
## 5-6 Feeder - processing images from a folder in order
|
||||
|
||||
**Feeder** is a feature that feeds many images one at a time into a workflow and processes them in order.
|
||||
For example, you can use it like this.
|
||||
|
||||
- Convert photos you have collected into an illustration style in bulk (I2I: making an image from an image)
|
||||
- Read poses from several images and draw a character in the same pose
|
||||
|
||||
Feeder has two modes, switched with the **[Image Loop] / [Gallery]** buttons at the top left of the Feeder tab.
|
||||
|
||||
| Mode | Where images are taken from | What you need |
|
||||
| --- | --- | --- |
|
||||
| Image Loop | A folder on your computer | The custom node **comfyui-image-feeder** (installed separately) |
|
||||
| Gallery | A group in the Gallery tab | No extra installation (the **Gallery Feeder (WFS)** node bundled with Workflow Studio) |
|
||||
|
||||
> **Tip**
|
||||
> In both modes, **a dedicated node must be in the workflow**.
|
||||
> It cannot be used just by loading an ordinary workflow.
|
||||
|
||||
### How to use Gallery mode (no extra installation)
|
||||
1. On ComfyUI's node screen, place a **Gallery Feeder (WFS)** node where the workflow "loads an image",
|
||||
and connect its image output. Save, and load it into GenerateUI.
|
||||
2. In the **Gallery** tab (Chapter 8), gather the images you want to process into a group.
|
||||
(When you first open the Feeder tab, a group called `__Feeder__` is created automatically. You may use this)
|
||||
3. Open the **Feeder** subtab of GenerateUI and choose **[Gallery]**.
|
||||
4. Choose the target **Gallery Feeder Node** and the **group** to take images from, and press **Apply**.
|
||||
5. The images of the group line up in the center. Click an image to start processing from that image.
|
||||
6. Choose **After gen** (what to do after generation) and press **Run**.
|
||||
|
||||
### After gen (what to do after generation)
|
||||
| Mode | What it does |
|
||||
| --- | --- |
|
||||
| Loop | Moves to the next image and, on reaching the end, returns to the start and continues (does not stop until you press Stop) |
|
||||
| Increment | Moves to the next image, and stops automatically after processing the last one |
|
||||
| Fixed | Keeps using the same image (when you want to make many images changing only the seed) |
|
||||
|
||||
At first, choosing **Increment** is reassuring: it processes each image once and stops automatically.
|
||||
|
||||
### Image Loop mode
|
||||
In Image Loop mode, you use the images in a folder on your computer (`ComfyUI/user/default/image-loop-data/`).
|
||||
You can also choose images from the folder and save them as a preset.
|
||||
The **comfyui-image-feeder** custom node is needed separately.
|
||||
|
||||
The bundled samples `ws_sdxl_image_feeder_i2i` (I2I) and `ws_dwpose_image_feeder` (pose reading) are for this Image Loop mode.
|
||||
|
||||
### A sample for Gallery mode (v0.8.3 and later)
|
||||
For Gallery mode you can use the bundled sample `ws_sdxl_gallery_feeder_i2i` (SDXL I2I).
|
||||
You do not need to place nodes yourself: a **Gallery Feeder (WFS)** node is already in it (group name `__Feeder__`, sort order filename_asc).
|
||||
|
||||
1. Import the sample in the Workflow tab and press **Load in GenerateUI**.
|
||||
2. In the Gallery, press the **F** button at the top left of the thumbnail of each image you want to process, to put it into the `__Feeder__` group.
|
||||
3. In the **Feeder** subtab, choose **[Gallery]**, choose the Gallery Feeder Node and the group, and press **Apply**.
|
||||
4. In the Model subtab, choose again the Checkpoint and VAE you have, and press **Apply** (the model names in the sample are those of the author's environment).
|
||||
5. Set **After gen** to **Increment** and press **Run**.
|
||||
|
||||
---
|
||||
|
||||
## 5-7 Lab - experimental I2I batch generation (advanced)
|
||||
|
||||
**Lab** is an advanced, experimental feature that develops the batch generation of 5-5 further.
|
||||
Feel free to skip it at first.
|
||||
|
||||
### Differences from Batch
|
||||
| | Batch (5-5) | Lab |
|
||||
| --- | --- | --- |
|
||||
| What can be changed at once | Only one kind | Model, prompt and KSampler **separately from each other** |
|
||||
| When changes happen | Every time | You freely specify "from which run to change" |
|
||||
| Using a generated image as the next input | Not possible | Possible (can be chained) |
|
||||
|
||||
### The idea of keyframes
|
||||
In Lab, you specify "from which generation run to switch to which setting" as **keyframes**.
|
||||
|
||||
Example: generating 10 times
|
||||
|
||||
| Runs | Model | Prompt | KSampler |
|
||||
| --- | --- | --- | --- |
|
||||
| 1 to 10 | Model A | - | - |
|
||||
| 1 to 4 | - | "Morning city" | - |
|
||||
| 5 to 10 | - | "Night city" | - |
|
||||
| 1 to 7 | - | - | Steps 20 |
|
||||
| 8 to 10 | - | - | Steps 40 |
|
||||
|
||||
In this way, the timing of switching can be decided separately for each column.
|
||||
Until the next keyframe arrives, the previous setting is carried over.
|
||||
|
||||
### Basic flow
|
||||
1. Load a workflow into GenerateUI.
|
||||
2. Open the **Lab** subtab.
|
||||
3. For I2I (image to image), drop the source image.
|
||||
When making from text (T2I), tick **T2I workflow (no source image)**.
|
||||
4. Decide the number of generations (Batch).
|
||||
5. In each of the Model, Prompt and KSampler columns, press **+** to add a keyframe,
|
||||
then double-click the keyframe and enter "from which run" and "to which setting".
|
||||
6. Press **Run**.
|
||||
|
||||
Results are listed in the **Results** panel.
|
||||
|
||||
### Handy features
|
||||
- **Use generated image for next** - uses the generated image as the input image of the next run.
|
||||
You can make a series of images that change little by little.
|
||||
- **Plan Save** - lets you save the settings (the plan). When saved, an overview image summarizing the results is also made,
|
||||
and dropping that image lets you load the same plan again.
|
||||
|
||||
> **Summary of this chapter (second half)**
|
||||
> - With the Batch subtab, you can generate in bulk while changing the model, prompt, sampler and so on, one kind at a time
|
||||
> - Choose the kind with the Batch Queue column checkbox and start with Generate. Turn the check off when done
|
||||
> - Feeder is a feature that feeds many images one at a time into a workflow. A dedicated node is required
|
||||
> - Lab is an advanced feature that can switch several settings at separate timings
|
||||
@@ -0,0 +1,184 @@
|
||||
# Chapter 6 The Models Tab - Managing Models and LoRAs
|
||||
|
||||
As you keep generating images, model and LoRA files keep increasing.
|
||||
"What model was this file?" "What was that LoRA's trigger word?"
|
||||
- The **Models** tab is what solves worries like these.
|
||||
|
||||
---
|
||||
|
||||
## 6-1 Kinds of models
|
||||
|
||||
At the top of the Models tab, tabs for each kind of model are lined up.
|
||||
Each shows the files in the corresponding folder inside ComfyUI's `models` folder.
|
||||
|
||||
| Kind | In a phrase | Main location |
|
||||
| --- | --- | --- |
|
||||
| Checkpoint | The core of image generation. Nothing starts without it | `models/checkpoints` |
|
||||
| LoRA | A small model that teaches an art style, character, outfit and so on | `models/loras` |
|
||||
| VAE | Finishes the colors and fine details of an image. Often built into the Checkpoint | `models/vae` |
|
||||
| ControlNet | A model for specifying composition, such as poses and line art | `models/controlnet` |
|
||||
| UNET | The core of newer-format models such as FLUX (Diffusion Model) | `models/diffusion_models` and so on |
|
||||
| TextEncoder | A model that converts the prompt text into a form the AI can understand | `models/text_encoders` and so on |
|
||||
| Hypernetwork | An older-format add-on model for adjusting art style | `models/hypernetworks` |
|
||||
| Embedding | A small file that teaches a particular word a meaning (often used for negatives) | `models/embeddings` |
|
||||
|
||||
> **Tip**
|
||||
> At first, it is enough to make good use of just two: **Checkpoint** and **LoRA**.
|
||||
> When you start using newer models such as FLUX, UNET and TextEncoder come up more often.
|
||||
|
||||
---
|
||||
|
||||
## 6-2 Displaying and finding in the list
|
||||
|
||||
### The first load
|
||||
When you open the Models tab for the first time, the list is empty and a message says to load models with the refresh button.
|
||||
Press **"Refresh"** on the toolbar and the list of models appears.
|
||||
Press "Refresh" also when you have added new models.
|
||||
|
||||
### Thumbnail view and table view
|
||||
As in the Workflow tab, you can switch between **Thumbnail** and **Table**.
|
||||
24 items are shown per page.
|
||||
|
||||
In table view, clicking a column heading sorts by that column
|
||||
(first click: ascending, second click: descending, third click: sorting off).
|
||||
|
||||
> **Tip**
|
||||
> For thumbnails, `(model name).preview.png` located in the same place as the model file is used automatically.
|
||||
> For models without an image, you can get one from Civitai using the method in 6-3, or set one yourself.
|
||||
|
||||
### Searching and filtering
|
||||
The toolbar has items for filtering.
|
||||
|
||||
| Item | What it filters |
|
||||
| --- | --- |
|
||||
| Search models... | Keywords such as the name |
|
||||
| Star | Favorites only |
|
||||
| All Tags | Tags |
|
||||
| All Folders | Subfolders |
|
||||
| All Groups | Groups |
|
||||
| All / Enabled only / Disabled only | Enabled or disabled state (6-5) |
|
||||
|
||||
If you narrow down so far that you lose track, press **"x Clear"** at the right end of the toolbar to clear everything.
|
||||
|
||||
### Favorites, badges and groups
|
||||
The way of sorting is almost the same as in the Workflow tab (Chapter 4, section 4-4).
|
||||
|
||||
- **Favorites (star)** - mark models you use often
|
||||
- **Badges** - attach colored labels made with **"Badge"**. The kinds and colors of badges are shared with the Workflow tab
|
||||
- **Groups** - click a model and add it in the side panel's **"Groups"** tab
|
||||
|
||||
> **Tip**
|
||||
> Groups are divided **by kind of model**.
|
||||
> A Checkpoint group is shown only in the Checkpoint tab.
|
||||
> Groups made here can also be used in the GenerateUI batch generation (Chapter 5, section 5-5).
|
||||
|
||||
---
|
||||
|
||||
## 6-3 Bringing in Civitai information
|
||||
|
||||
**Civitai** is a sharing site where many image-generation models are published.
|
||||
Many of the models you get online are distributed on Civitai.
|
||||
|
||||
Workflow Studio computes a **hash value** (a value like a fingerprint of the file) from your local model file,
|
||||
and can automatically look up the information registered on Civitai.
|
||||
|
||||
### What information you can get
|
||||
- The model's name and kind (Checkpoint, LoRA and so on)
|
||||
- **Base Model** (which family the model belongs to: SDXL, SD1.5, FLUX and so on)
|
||||
- **Trigger words** (words to put in the prompt to bring out a LoRA's effect)
|
||||
- Tags and description
|
||||
- Sample images (also used for thumbnails)
|
||||
|
||||
### Getting one at a time
|
||||
1. Click a model to select it.
|
||||
2. In the right-hand side panel, open the **"CivitAI"** tab (this tab opens first when you select a model).
|
||||
3. Press **"Fetch from CivitAI"**.
|
||||
|
||||
When fetching finishes, the model's information is shown.
|
||||
In the **Sample** tab, you can look at sample images posted to Civitai.
|
||||
|
||||
### Getting them in bulk
|
||||
Press the **"CivitAI"** button on the toolbar to fetch information in bulk for the models of the kind being shown.
|
||||
Models whose information has already been fetched are skipped, so it is fine to press it again and again after adding models.
|
||||
For models without a thumbnail image, a preview image is also saved automatically.
|
||||
|
||||
> **Tip**
|
||||
> Computing the hash value takes time depending on the size of the model.
|
||||
> If you have many models of several GB, run it when you have time to spare.
|
||||
|
||||
> **Tip**
|
||||
> A model that was not found on Civitai shows a message saying it was checked but this model was not found on CivitAI.
|
||||
> For models you made yourself, or models distributed somewhere other than Civitai, not being found is normal.
|
||||
> If you tick **"Skip not found"**, models that were not found are skipped without being rechecked when fetching in bulk.
|
||||
|
||||
> **Tip: API key**
|
||||
> The **"CivitAI API Key"** in the Settings tab can be left empty (optional).
|
||||
> If authentication is needed to get some information, enter a key issued in your Civitai account settings.
|
||||
|
||||
### Especially handy when using LoRAs
|
||||
Many LoRAs have no effect unless you put their **trigger words** in the prompt.
|
||||
If you have fetched the Civitai information, you can check the trigger words in the side panel right away.
|
||||
Also, when you use a LoRA in GenerateUI batch generation, the trigger words are added to the prompt automatically (Chapter 5, section 5-5).
|
||||
|
||||
---
|
||||
|
||||
## 6-4 Using models in generation and on the canvas
|
||||
|
||||
### Set it in GenerateUI (GenUI Model)
|
||||
You can set the model chosen in the Models tab directly into the workflow in GenerateUI.
|
||||
|
||||
1. Load a workflow into GenerateUI beforehand (Chapter 5, section 5-1).
|
||||
2. In the Models tab, select the model you want to use.
|
||||
3. Press the **"GenUI Model"** button.
|
||||
|
||||
The model in the GenerateUI workflow is now replaced with the one you chose.
|
||||
While comparing Civitai sample images, you can try any model that catches your eye right away.
|
||||
|
||||
> **Tip**
|
||||
> For an Embedding, **GenUI PP** (add to the positive prompt) and **GenUI NP** (add to the negative prompt) buttons are shown.
|
||||
> Add negative Embeddings with GenUI NP.
|
||||
|
||||
> **Caution**
|
||||
> It cannot be used if the GenerateUI workflow has no node that loads that model.
|
||||
> For example, you cannot set a LoRA in a workflow that has no LoRA node.
|
||||
|
||||
### Using it on ComfyUI's node screen
|
||||
If you drag a model from the **M (Models)** tab of the **WS Library** beside ComfyUI's node screen onto the canvas,
|
||||
a node that loads that model is placed automatically (Chapter 9).
|
||||
|
||||
---
|
||||
|
||||
## 6-5 Tidying away models you do not use
|
||||
|
||||
### Switching enabled and disabled
|
||||
Models you will not use for a while can be set to **Disable** instead of being deleted.
|
||||
A disabled model no longer appears in ComfyUI's model-selection lists, so the lists become tidier.
|
||||
|
||||
- With the **pause (II)** button on a card, you can switch enabled and disabled one at a time.
|
||||
- You can also enable or disable them in bulk, by group.
|
||||
|
||||
> **Tip**
|
||||
> When disabled, `.disabled` is added to the end of the file name. The file itself is not deleted.
|
||||
> When you enable it again, the original name comes back.
|
||||
|
||||
### Operating in bulk (Select)
|
||||
Press the green **Select** button to tick several models and operate on them together.
|
||||
|
||||
- Add to or remove from a group
|
||||
- Add or remove badges
|
||||
- Move to another subfolder (related files such as preview images move together)
|
||||
- Delete
|
||||
|
||||
### Deleting
|
||||
You can delete a model from the detail screen or from Select.
|
||||
|
||||
> **Caution**
|
||||
> Deleting **permanently removes** the model file and its related files (preview image, Civitai information and so on).
|
||||
> Many models take a long time to download again, so if in doubt, "disable" instead of deleting.
|
||||
|
||||
> **Summary of this chapter**
|
||||
> - In the Models tab you can list ComfyUI's models by kind. Press "Refresh" first
|
||||
> - You can sort with favorites, badges and groups. Groups can also be used in batch generation
|
||||
> - With "Fetch from CivitAI", you can automatically bring in Base Model, trigger words, sample images and more
|
||||
> - With "GenUI Model", you can try the chosen model in GenerateUI right away
|
||||
> - For models you do not use, "disable" rather than delete, to be safe
|
||||
@@ -0,0 +1,250 @@
|
||||
# Chapter 7 The Prompt Tab - Collecting and Growing Your Spells
|
||||
|
||||
A prompt that worked well is your own treasure.
|
||||
But if you only paste it into a notepad, you can easily lose track of which was which.
|
||||
|
||||
The **Prompt** tab is a place to **save, sort and reuse** prompts.
|
||||
In addition, you can use translation with local AI, and "wildcards" that change the prompt a little each time.
|
||||
|
||||
---
|
||||
|
||||
## 7-1 Prompt basics
|
||||
|
||||
Before getting into how to use the Prompt tab, let's cover the basics of writing prompts.
|
||||
|
||||
### Positive and negative
|
||||
| Kind | What to write | Example |
|
||||
| --- | --- | --- |
|
||||
| Positive Prompt | What you want drawn | `1girl, smiling, school uniform, cherry blossoms, spring` |
|
||||
| Negative Prompt | What you do not want drawn | `low quality, blurry, extra fingers, watermark` |
|
||||
|
||||
### Tips for writing
|
||||
- **Write in English** - most models were trained on English.
|
||||
- **Separate with commas (,)** - it is common to line up words and short phrases separated by commas.
|
||||
- **Put important things first** - words written earlier tend to be reflected more strongly.
|
||||
- **Emphasize words with (word:number)** - writing `(red hair:1.3)` emphasizes that word (1.0 is the default).
|
||||
|
||||
> **Tip: change the emphasis number from the keyboard**
|
||||
> In the prompt field of GenerateUI, select the word to emphasize and press **Ctrl + Up/Down**
|
||||
> to raise or lower the number in `(word:number)` by 0.05. When the number returns to 1.0, the parentheses are removed automatically.
|
||||
|
||||
> **Tip**
|
||||
> Anime-style SDXL models suit "lining up tags", and newer models such as FLUX suit "describing in ordinary English sentences".
|
||||
> The model's distribution page often lists a recommended way of writing, so check it.
|
||||
|
||||
---
|
||||
|
||||
## 7-2 The Prompt tab screen
|
||||
|
||||
The Prompt tab is divided into three columns: left, center and right.
|
||||
|
||||
| Column | Name | Role |
|
||||
| --- | --- | --- |
|
||||
| Left | AI Assistant | Chat and translation with local AI (7-5) |
|
||||
| Center | Presets / Preset Manager | Saving, listing and sorting prompts (7-3) |
|
||||
| Right | Wildcard / Style | Managing wildcards and styles (7-4) |
|
||||
|
||||
With **Form / Table** at the top of the screen, you can switch how things are displayed.
|
||||
|
||||
- **Form** - a screen for editing one item at a time (the screen this chapter explains)
|
||||
- **Table** - a screen for editing presets and wildcards together in a table (handy when the count grows)
|
||||
|
||||
---
|
||||
|
||||
## 7-3 Saving and sorting as presets
|
||||
|
||||
A **preset** is a pair of positive and negative prompts saved together under a name.
|
||||
|
||||
### Saving a preset
|
||||
1. In the center column, open the **Presets** tab.
|
||||
2. Check that the topmost pull-down shows **New Preset (none selected)**.
|
||||
3. Fill in the following items.
|
||||
|
||||
| Item | Contents |
|
||||
| --- | --- |
|
||||
| Preset Name | The name of the preset (for example `Sakura and uniform`) |
|
||||
| Category | A classification (for example `Portrait`, `Landscape`). May be omitted |
|
||||
| Positive Prompt | What you want drawn |
|
||||
| Negative Prompt | What you do not want drawn |
|
||||
|
||||
4. Press **Save**. When a message says the preset was saved, you are done.
|
||||
|
||||
> **Tip**
|
||||
> Get into the habit of saving prompts you tried in GenerateUI and thought "this is good!" as presets on the spot.
|
||||
> Later, when you want to make an image with the same feel, you can recall it right away.
|
||||
|
||||
### Recalling and using a preset
|
||||
1. From the topmost pull-down, choose the preset you want to use.
|
||||
2. Press a button according to how you want to use it.
|
||||
|
||||
| Button | What it does |
|
||||
| --- | --- |
|
||||
| GenUI Set | Sets both the positive and negative into the prompt fields of GenerateUI at once |
|
||||
| PP Copy | Copies the positive prompt |
|
||||
| NP Copy | Copies the negative prompt |
|
||||
|
||||
> **Caution**
|
||||
> **GenUI Set** can be used while a workflow is loaded in GenerateUI.
|
||||
> Load a workflow first, using the steps in Chapter 5.
|
||||
|
||||
### Sorting with groups
|
||||
Presets can also be sorted into groups.
|
||||
|
||||
1. With a preset selected, press **+ Group** to make a new group.
|
||||
2. Choose a group from **Select group...** and press **Add to Group**.
|
||||
|
||||
A group can also be deleted (**Del Group**).
|
||||
|
||||
Groups made here can be used as "Prompt" groups in GenerateUI batch generation (Chapter 5, section 5-5).
|
||||
For example, if you put spring, summer, autumn and winter presets in a group called "Seasons series",
|
||||
you can generate the pictures of all four seasons in bulk.
|
||||
|
||||
### Listing with Preset Manager
|
||||
In the **Preset Manager** tab of the center column, you can see the saved presets as a list.
|
||||
|
||||
- **All** - all presets
|
||||
- **Star** - presets registered as favorites
|
||||
- **Groups** - shown by group
|
||||
|
||||
With the **Search presets...** box at the top, you can search presets.
|
||||
|
||||
Saved presets are also shown in the **P (Prompts)** tab of the **WS Library** beside ComfyUI's node screen,
|
||||
and can be dragged onto the canvas for use (Chapter 9).
|
||||
|
||||
---
|
||||
|
||||
## 7-4 Wildcards and styles
|
||||
|
||||
In the right column, you manage **wildcards**, which change the prompt automatically,
|
||||
and **styles**, which add a mood to the prompt.
|
||||
Switch with **Wildcard / Style** at the top of the column.
|
||||
|
||||
### What is a wildcard?
|
||||
A wildcard is a mechanism that **randomly swaps out a part of the prompt every time you generate**.
|
||||
With the same prompt, you can make many images with variation.
|
||||
|
||||
The easiest way in Workflow Studio is to use a **wildcard file**.
|
||||
Make a file listing candidates, and when you write `__filename__` in the prompt,
|
||||
one line from the file is chosen at random every time you generate.
|
||||
|
||||
### Making a wildcard file
|
||||
As an example, let's make a file called `colors` containing candidate colors.
|
||||
|
||||
1. In the right column, choose **Wildcard** and press **+ New** under **Wildcard Files**.
|
||||
2. Enter a file name (for example `colors`) and choose **txt** as the format.
|
||||
3. Enter one candidate per line.
|
||||
|
||||
```
|
||||
red
|
||||
blue
|
||||
green
|
||||
golden
|
||||
```
|
||||
|
||||
4. Press **Save**.
|
||||
|
||||
### Using a wildcard
|
||||
In the prompt, write the file name enclosed in `__` (two underscores).
|
||||
|
||||
```
|
||||
1girl, __colors__ dress, standing in a garden
|
||||
```
|
||||
|
||||
Each time you generate in GenerateUI, the `__colors__` part is replaced with one of `red`, `blue`, `green` or `golden`.
|
||||
|
||||
> **Tip**
|
||||
> Instead of typing `__colors__` by hand, you can also choose a file with the **File** button in the right column and insert it.
|
||||
|
||||
### More advanced notation (for Impact Pack)
|
||||
At the top of the right column there are also buttons that insert symbols such as `{ }`, `$$` and `[ ]`.
|
||||
These are for notations like the following.
|
||||
|
||||
- `{cat|dog|rabbit}` - choose one out of the three
|
||||
- `{2$$cat|dog|bird}` - choose two out of the three
|
||||
|
||||
> **Caution**
|
||||
> What GenerateUI expands automatically is only the `__filename__` notation.
|
||||
> To use notations such as `{A|B}`, you need to put the wildcard node of the custom node **ComfyUI-Impact-Pack**
|
||||
> (ImpactWildcardProcessor and so on) in the workflow.
|
||||
> Until you are used to it, using only the `__filename__` notation is enough.
|
||||
|
||||
### Sending the prompt you built
|
||||
The prompt you built in the right column can be sent out with the buttons below.
|
||||
|
||||
- **-> Pos** - send to the preset's Positive Prompt
|
||||
- **-> Neg** - send to the preset's Negative Prompt
|
||||
- **Copy** - copy it
|
||||
|
||||
The `__filename__` parts are expanded automatically when you generate in GenerateUI.
|
||||
|
||||
### Styles
|
||||
A **style** is a "mood template" added to the prompt.
|
||||
For example, the "cinematic" style has contents registered such as `cinematic still, {prompt}, dramatic lighting`.
|
||||
Your own prompt goes into the `{prompt}` part.
|
||||
|
||||
To use a style, in the top bar of GenerateUI, turn on the **Style** checkbox and choose a style from the pull-down.
|
||||
When you generate, the chosen style is combined into the prompt automatically (the workflow itself is not rewritten).
|
||||
|
||||
Many styles come with Workflow Studio.
|
||||
In **Style** of the Prompt tab, you can look at the list of styles and make your own with **+ New**.
|
||||
|
||||
> **Tip**
|
||||
> To see what mood each style gives, it helps to use **Create Catalog** in GenerateUI to make sample images for each style in bulk.
|
||||
> The samples you make can be listed in the Style_Catalog of the Gallery tab (Chapter 8).
|
||||
|
||||
---
|
||||
|
||||
## 7-5 Getting AI to help with translation and prompt making
|
||||
|
||||
In the **AI Assistant** in the left column, you can have AI running on your computer (local AI) help you make prompts.
|
||||
|
||||
> **What you need in advance**
|
||||
> To use this feature, you need local AI software such as **Ollama** or **LM Studio**, and an AI model prepared.
|
||||
> How to prepare is explained in Chapter 10. If it is not ready, **Disconnected** is shown at the top of the AI Assistant.
|
||||
|
||||
### Translating your language into English
|
||||
Even if you are not good at English prompts, it is fine.
|
||||
|
||||
1. In the input box at the bottom of the left column, write in your language what you want drawn.
|
||||
|
||||
```
|
||||
A girl in a school uniform smiling under a cherry tree, soft spring light
|
||||
```
|
||||
|
||||
2. Press the **JA->EN** button under **Translate:** (choose the languages to suit your text).
|
||||
3. The translated result is shown in the chat area.
|
||||
|
||||
With the buttons shown below the translation result, you can use the result.
|
||||
|
||||
| Button | What it does |
|
||||
| --- | --- |
|
||||
| Apply to GenerateUI | Puts it into the positive prompt field of GenerateUI |
|
||||
| Copy | Copies it (for pasting into a preset and so on) |
|
||||
|
||||
When you want to know the meaning of an English prompt, you can conversely translate it with **EN->JA**.
|
||||
|
||||
### Making prompts while consulting the AI
|
||||
Write a question in the input box and press **Send** (or the Enter key) to chat with the AI.
|
||||
|
||||
- "Make a prompt for a sunset seaside scene, in English tag format"
|
||||
- "Add a more fantastical mood to this prompt"
|
||||
|
||||
If you ask like this, it offers draft prompts.
|
||||
If you are using an AI model that can read images, you can attach an image with **Attach Image**
|
||||
and ask "turn the mood of this image into a prompt".
|
||||
|
||||
- **Shift + Enter** - line break
|
||||
- **Clear Chat** - reset the conversation
|
||||
- **Gear button** - settings for which AI software and model to use (Chapter 10)
|
||||
|
||||
> **Caution**
|
||||
> A local AI's answers are not always correct.
|
||||
> Adjust the prompts that come out while actually generating to check them.
|
||||
|
||||
> **Summary of this chapter**
|
||||
> - Prompts are basically English and comma-separated. Emphasis is `(word:number)`
|
||||
> - Save prompts that worked as presets with a name
|
||||
> - With "GenUI Set", you can set a preset into GenerateUI right away
|
||||
> - If you sort them into groups, you can try them in bulk with batch generation
|
||||
> - Make a wildcard file and write `__filename__` to make the prompt vary with each generation
|
||||
> - If you prepare local AI, you can translate and consult about prompts
|
||||
@@ -0,0 +1,304 @@
|
||||
# Chapter 8 The Gallery Tab - Looking Back at Generated Images
|
||||
|
||||
As you keep generating images, hundreds and thousands of images pile up in ComfyUI's `output` folder.
|
||||
The **Gallery** tab is a place to browse them comfortably,
|
||||
and to solve "how did I make this image?".
|
||||
|
||||
Images generated in ComfyUI have information about the workflow and prompt used for generation (**metadata**) embedded in them.
|
||||
The Gallery tab reads this information so that you can reproduce the same settings right away.
|
||||
Videos (MP4 and WebM) and audio files (WAV, MP3, OGG, M4A, FLAC and Opus) can also be handled in the same list as images.
|
||||
|
||||
---
|
||||
|
||||
## 8-1 Listing images
|
||||
|
||||
At the top of the Gallery tab there are four subtabs.
|
||||
|
||||
| Subtab | Role | In this book |
|
||||
| --- | --- | --- |
|
||||
| Output | The list of generated images (this is what you normally use) | 8-1 to 8-3 |
|
||||
| ImagePrompt | Build prompts while looking at sample images | 8-4 |
|
||||
| Style_Catalog | Choose from sample images of styles | 8-4 |
|
||||
| Metadata | Drop an image file to inspect the information in it | 8-2 |
|
||||
|
||||
### The Output screen
|
||||
The **Output** subtab is divided into three parts: left, center and right.
|
||||
|
||||
| Place | Role |
|
||||
| --- | --- |
|
||||
| Left (folders) | The list of folders inside the `output` folder. The topmost **[root]** is the whole `output` folder |
|
||||
| Center (list) | The images of the chosen folder. Scroll down and more are loaded |
|
||||
| Right (detail panel) | Information about the chosen image (8-2) |
|
||||
|
||||
First, choose a folder from the folder list on the left, and its images appear in the center.
|
||||
|
||||
> **Tip**
|
||||
> If images you newly generated in GenerateUI or ComfyUI do not appear, press **Refresh** on the toolbar.
|
||||
|
||||
> **Tip**
|
||||
> The location of the `output` folder that is read can be changed with **"Gallery Output Folder"** in the Settings tab.
|
||||
|
||||
### Switching the display, searching and sorting
|
||||
As in other tabs, you can do the following.
|
||||
|
||||
- **Thumbnail / Table** - switch between thumbnail display and table display
|
||||
- **Search box** - search by file name, tags, memo and **the contents of the prompt**. If you turn on the **S** button next to it, you can search by the meaning of a sentence (8-6)
|
||||
- **Sorting** - Date (Newest) / Date (Oldest) / Name A-Z / Name Z-A
|
||||
- **Star** - show favorites only
|
||||
- **x Clear** - clear all filters at once
|
||||
|
||||
> **Tip**
|
||||
> In the search box you can also search by words in the prompt.
|
||||
> For example, searching "cat" finds images whose prompt contains cat.
|
||||
> (Prompt search targets images that you have opened once in the detail panel)
|
||||
|
||||
### Looking large, and comparing
|
||||
- Clicking an image shows it large in the right-hand detail panel.
|
||||
- **Hold the Ctrl key** and click images to select several.
|
||||
Select two to four and press **Compare** to view them side by side.
|
||||
|
||||
Lining up images made by changing only the seed or the model makes the differences easy to see.
|
||||
|
||||
### Organizing
|
||||
- You can sort with **favorites (star), tags, memo and groups** (set in the detail panel).
|
||||
- You can select several and add them to a group together, or move them to another folder.
|
||||
The screen for choosing the destination (**Move To...**) has a filter box: enter part of a folder name to narrow the candidates, and press Enter to move to the first candidate.
|
||||
- Pressing **Export** bundles the chosen images into a ZIP file for download.
|
||||
|
||||
> **Caution**
|
||||
> Using **Delete** in the detail panel, or **Delete File** for a multiple selection, deletes the image files themselves.
|
||||
|
||||
---
|
||||
|
||||
## 8-2 Reading generation settings from metadata
|
||||
|
||||
When you click an image, four tabs appear in the right-hand detail panel.
|
||||
|
||||
| Tab | Contents |
|
||||
| --- | --- |
|
||||
| Prompt | The prompts used to generate the image (the tab shown first) |
|
||||
| Info | File name, size, date, tags, memo |
|
||||
| JSON | The workflow embedded in the image (JSON) |
|
||||
| Groups | Group settings |
|
||||
|
||||
### Checking the prompt
|
||||
The **Prompt** tab lists the prompts that were embedded in the image.
|
||||
Positive ones are marked **POS**, negative ones **NEG**.
|
||||
Clicking an item shows the whole text.
|
||||
|
||||
### Examining more closely (the Metadata subtab)
|
||||
When you want to know in detail even the models and LoRAs used, press the **Metadata** button in the detail panel
|
||||
(or click an image while holding the Alt key).
|
||||
The Gallery's **Metadata** subtab opens and the following information is shown in an organized way.
|
||||
|
||||
- **Models** - Checkpoint, VAE, Diffusion Model, Text Encoder (center column)
|
||||
- **LoRA** - the LoRAs used and their strength (center column)
|
||||
- **Prompt** - positive and negative (center column)
|
||||
- **Settings** - the image size (width x height), and the KSampler's Seed, Steps, CFG, Sampler, Scheduler and Denoise (right column; v0.7.14 and later)
|
||||
- **Nanobanana** - the generation history of images made in Comic Creator's nanobanana tab: engine, model, prompt and so on (right column; only for matching images)
|
||||
|
||||
With the buttons beside the prompt, you can send the contents to other tabs.
|
||||
|
||||
| Button | What it does |
|
||||
| --- | --- |
|
||||
| Copy | Copy |
|
||||
| GenUI:P / GenUI:N | Put it into GenerateUI's positive / negative |
|
||||
| Prompt:P / Prompt:N | Put it into the positive / negative of a preset in the Prompt tab |
|
||||
|
||||
> **Tip: you can also examine images you found online**
|
||||
> If you **drop** an image file onto the left side of the Metadata subtab, you can examine that image's information.
|
||||
> Besides ComfyUI images, PNG images made with SD WebUI (AUTOMATIC1111), SD Forge and Fooocus are also supported.
|
||||
> Handy when you want to know how an image found on a distribution site was made
|
||||
> (however, it cannot be read from images whose metadata was stripped when they were posted).
|
||||
|
||||
---
|
||||
|
||||
## 8-3 Reproducing the same settings
|
||||
|
||||
The handiest use of the Gallery is to **generate again with the same settings as an image you like**.
|
||||
There are two ways.
|
||||
|
||||
### Method 1: Reproduce in GenerateUI (Load GenUI)
|
||||
1. In the Gallery, click the image you want to reproduce.
|
||||
2. Press the **Load GenUI** button in the detail panel.
|
||||
3. The workflow embedded in the image is loaded into GenerateUI.
|
||||
|
||||
After that, as in Chapter 5, you can generate while changing the prompt a little or changing the seed.
|
||||
|
||||
> **Tip**
|
||||
> **When you want to make the same image again (v0.8.3 and later)**
|
||||
> The workflow embedded in the image also contains the seed value from that time.
|
||||
> If you set the generate panel's seed mode to **Workflow** and press Generate, it generates with that seed as it is.
|
||||
>
|
||||
> If the mode stays at Random, it generates with a different seed.
|
||||
> Also, if you use Fixed, paste the value of the **Seed** field in the **Settings** subtab into the generate panel's **Seed** field (because the generate panel's value takes priority).
|
||||
|
||||
### Method 2: Reproduce on ComfyUI's node screen (Copy & Send Canvas)
|
||||
1. In the Gallery, click the image you want to reproduce.
|
||||
2. Open the **JSON** tab in the detail panel.
|
||||
3. Press **Copy & Send Canvas**.
|
||||
|
||||
The workflow that made that image is loaded onto ComfyUI's node screen.
|
||||
Use this when you want to adjust things in detail on the node screen.
|
||||
|
||||
> **Caution**
|
||||
> If a message says "this image has no ComfyUI workflow embedded", it cannot be reproduced.
|
||||
> This applies to images made with settings that do not save workflow information, and images edited or compressed with other software.
|
||||
|
||||
### Using an image as material for the next generation
|
||||
You can also use a Gallery image as an "input image" for generation.
|
||||
|
||||
| Button | What it does |
|
||||
| --- | --- |
|
||||
| Send GenUI Image | Sets the chosen image as the input image (LoadImage node) of the GenerateUI workflow |
|
||||
| Send to LI node | Sets the chosen image on the image-loading node currently selected on ComfyUI's node screen |
|
||||
| Image Edit | Opens the chosen image in the Image Edit tab (Chapter 11) |
|
||||
| Send CC | Sends the chosen image to a panel in Comic Creator (shown only when the Gallery is opened inside Comic Creator; Chapter 11, section 11-6) |
|
||||
|
||||
Handy when redrawing a generated image further with an I2I (image to image) workflow.
|
||||
|
||||
---
|
||||
|
||||
## 8-4 ImagePrompt and Style_Catalog
|
||||
|
||||
### ImagePrompt - building prompts from sample images
|
||||
**ImagePrompt** is a subtab for building prompts by choosing visually,
|
||||
with "sample images" and "prompts" lined up as sets.
|
||||
|
||||
1. Click a sample image and the prompt of that image appears on the right side.
|
||||
2. Press **+ Add** and it is added to **Selected Prompts**.
|
||||
3. After adding several, a **Final Prompt**, with them joined by commas, is produced.
|
||||
4. Use **Copy** to copy it and paste it into GenerateUI or a preset.
|
||||
|
||||
Put the sample images in the `ws_image_prompt` folder, which is created automatically inside the `output` folder.
|
||||
If you put a `.txt` file with the same name as the image (its contents being the prompt) alongside it, it becomes usable as a sample.
|
||||
|
||||
> **Example**
|
||||
> `ws_image_prompt/hairstyle/ponytail.png` and `ws_image_prompt/hairstyle/ponytail.txt` (contents: `ponytail, long hair`)
|
||||
|
||||
### Style_Catalog - choosing styles by sample images
|
||||
The styles introduced in Chapter 7 are hard to picture from their names alone.
|
||||
In **Style_Catalog**, you can line up sample images for each style and choose by how they look.
|
||||
|
||||
Sample images are made with **Create Catalog** in the top bar of GenerateUI.
|
||||
|
||||
1. Load a workflow that makes images from text into GenerateUI.
|
||||
2. In the **Style** section of the **Batch** subtab, tick the styles you want samples of.
|
||||
3. Press **Create Catalog** in the top bar, decide the destination folder and run.
|
||||
4. Press **Catalog** in the top bar to move to Style_Catalog in the Gallery.
|
||||
|
||||
When you choose a sample image in Style_Catalog and press **Select as Style**,
|
||||
GenerateUI's style switches to that style.
|
||||
|
||||
> **Tip**
|
||||
> How a style takes effect changes with the model.
|
||||
> If you separate the destination folders by model, they are easier to compare.
|
||||
|
||||
---
|
||||
|
||||
## 8-5 Eagle integration and PSD export (optional)
|
||||
|
||||
From here on, these are features only for those who need them.
|
||||
|
||||
### Eagle integration
|
||||
**Eagle** is paid software for organizing images.
|
||||
If you enable **Eagle integration** in the Settings tab, images generated in GenerateUI can be automatically saved to Eagle together with information such as the prompt.
|
||||
If you manage images in Eagle, give it a try.
|
||||
|
||||
### PSD export
|
||||
Select several images in the Gallery and press **Create PSD**,
|
||||
and you can make a PSD (Photoshop format) file with each image stacked as a layer.
|
||||
Handy when you want to gather difference images together and finish them in image-editing software.
|
||||
|
||||
> **Caution**
|
||||
> To use PSD-related features, an extra Python package (psd-tools) is needed.
|
||||
> If it is not installed, the installation method is shown in an error message (Chapter 11).
|
||||
|
||||
---
|
||||
|
||||
## 8-6 Finding images by "meaning" (semantic search)
|
||||
|
||||
Normal search finds images whose file name, tags or prompt characters match.
|
||||
**Semantic search** (v0.8.2 and later) searches by the "meaning" of an image.
|
||||
For example, if you enter "a city street at dusk", it finds images with a matching mood even when the prompt does not contain those words.
|
||||
You can also bring up a list of **similar images** to the one you choose.
|
||||
|
||||
### How to use it
|
||||
1. Turn on the **S** button next to the search box. The search box switches to semantic search, and a second row appears on the toolbar.
|
||||
2. Press the **gear** (settings) button on the second row and build the **index** (an index for searching) (see below).
|
||||
3. Enter a sentence in the search box and press **Enter**. Results line up in score order, with the score shown on each thumbnail.
|
||||
4. Select an image and press **Similar** on the second row, and images similar to it line up. Select another image and press the **refresh** button to redo the similar-image list for that image. Press **Similar** again to return to the normal display.
|
||||
|
||||
> **Tip**
|
||||
> Sorting and tag/group filtering do not apply to semantic search results.
|
||||
> The search range is inside the folder you have selected (including subfolders).
|
||||
> A folder with a green dot next to its image count has all the images directly in it indexed.
|
||||
|
||||
### Choosing a model (the "Model" tab of the gear)
|
||||
| Model | Characteristics | Preparation |
|
||||
| --- | --- | --- |
|
||||
| Gemini Embedding 2 | Computed on Google's service. Fast. Images are sent to Google | Get an API key, write `GEMINI_API_KEY=key` in the plugin's `.env`, and restart ComfyUI |
|
||||
| EmbeddingGemma 2 | Computed inside your computer (local). Nothing is sent outside | No extra preparation. The model is downloaded automatically only the first time |
|
||||
|
||||
> **Caution: when using Gemini**
|
||||
> Images are sent to Google's service. Content sent under the free tier may be used by Google to improve its products.
|
||||
> If you have many images you do not want to expose, choose the local EmbeddingGemma 2.
|
||||
> Write the API key only in `.env`, and do not show it to others.
|
||||
|
||||
### Building the index (the "Index" tab of the gear)
|
||||
1. Choose the target folder (you can also choose whether to include subfolders).
|
||||
2. Choose "new only" or "rebuild all" and start. Progress is shown, and you can stop partway.
|
||||
3. The index is one shared across all folders. You may build it a little at a time, folder by folder.
|
||||
|
||||
When you change the model, the vector dimension or the image precision, a **rebuild of everything** is needed.
|
||||
|
||||
### Speed guidelines and settings
|
||||
- The local EmbeddingGemma 2 runs on the CPU by default and takes a few seconds per image.
|
||||
Setting the **image precision** to "standard" or "light" makes it faster (rebuild everything after changing it).
|
||||
Reducing the **number of CPU threads** lightens the computer's load while generating images.
|
||||
- If you have an NVIDIA GPU, installing `onnxruntime-gpu` into ComfyUI's Python brings it to about 0.1 second per image (the fix is in Chapter 12, section 12-5).
|
||||
- In the **Search** tab, you can decide the "minimum score" for similar-image and text search, and the maximum number of results.
|
||||
Because the score level differs by model, it is saved per model.
|
||||
|
||||
---
|
||||
|
||||
## 8-7 Handling audio files, and converting
|
||||
|
||||
As opportunities to make music and sound effects in ComfyUI have increased, the Gallery can handle audio files too (v0.8.0 and later).
|
||||
Supported are WAV, MP3, OGG, M4A, FLAC and Opus.
|
||||
|
||||
- In the list, a waveform thumbnail and a note badge are shown. The waveform color differs by format (MP3 blue, WAV green, FLAC amber, OGG/Opus purple, M4A pink).
|
||||
- When you select one, the waveform and a player appear in the right-hand detail panel, and you can play it right there.
|
||||
- For audio saved with a workflow (`prompt` / `workflow`) embedded, the Prompt and JSON tabs also work.
|
||||
- Videos (MP4 and WebM) can be listed in the same way. With the **Send to LV node** button, you can send the chosen video to the **Load Video** node selected on the ComfyUI screen (the video version of Send to LI node for images).
|
||||
|
||||
### Converting files
|
||||
When you select several items including audio or video, **Convert...** appears on the bulk-action bar.
|
||||
|
||||
1. Select the files you want to convert and press **Convert...**.
|
||||
2. Decide the output format (FLAC / MP3 / Opus / M4A / WAV) and, if needed, the bitrate, sample rate and number of channels.
|
||||
3. When run, the result is saved as a separate file in the same folder (if the same name exists, a number is added such as `name_converted`, and nothing is overwritten).
|
||||
|
||||
When you choose a video, only the audio track is extracted and saved.
|
||||
|
||||
| Carried over | Description |
|
||||
| --- | --- |
|
||||
| Workflow information | Carried over to MP3, FLAC, Opus and M4A. It cannot be carried over to WAV (a notice appears) |
|
||||
| Favorites, tags, memo, groups | You can choose whether to carry them over |
|
||||
| Deleting the original file | You can choose whether to delete it after a successful conversion (with a confirmation screen) |
|
||||
|
||||
> **Tip**
|
||||
> OGG can be played, but cannot be chosen as an output format of conversion.
|
||||
> You can convert with Workflow Studio alone, without installing other video-editing software.
|
||||
|
||||
> **Tip: use in the Video tab**
|
||||
> In the Asset subtab of Video, you can set an audio file as "Set as BGM" or "Add as sound" (Chapter 11, section 11-4).
|
||||
|
||||
> **Summary of this chapter**
|
||||
> - In the Gallery's Output, you can look back at generated images folder by folder. You can also search by words in the prompt
|
||||
> - The detail panel's Prompt tab shows right away the prompt used to generate the image
|
||||
> - With "Load GenUI" you can reproduce the same workflow in GenerateUI, and with "Copy & Send Canvas" on the node screen
|
||||
> - To reproduce, set the seed mode to Workflow (or Fixed)
|
||||
> - If you drop an image onto the Metadata subtab, you can examine the models, LoRAs and prompt in detail
|
||||
> - With the S button you can search by the meaning of a sentence or by "similar images" (semantic search)
|
||||
> - Audio files can also be listed, played and converted
|
||||
@@ -0,0 +1,171 @@
|
||||
# Chapter 9 The WS Library - Using It Inside the ComfyUI Screen
|
||||
|
||||
In the chapters so far, we mainly used the main part of Workflow Studio (the screen with the row of tabs).
|
||||
In this chapter, we use the **WS Library (Workflow Studio Library)** that opens beside ComfyUI's node screen.
|
||||
|
||||
With the WS Library, you can use the workflows, nodes, models and prompts you organized in Workflow Studio
|
||||
**just by dragging and dropping onto the node screen**.
|
||||
It is a feature whose convenience you feel more the longer you spend working on the node screen.
|
||||
|
||||
---
|
||||
|
||||
## 9-1 Opening the WS Library
|
||||
|
||||
1. Open ComfyUI's node screen.
|
||||
2. Press the **WS Library** button (the icon of lined-up squares) added to the top menu.
|
||||
|
||||
A panel opens at the edge of the screen. Press the button again to close it.
|
||||
|
||||
### Six tabs
|
||||
At the top of the panel, single-letter tabs are lined up. Hovering the mouse shows the proper name.
|
||||
|
||||
| Tab | Name | What you can do | In this book |
|
||||
| --- | --- | --- | --- |
|
||||
| W | Workflows | Load workflows | 9-2 |
|
||||
| N | Nodes | Place nodes and node sets | 9-2 |
|
||||
| M | Models | Place nodes that load models | 9-2 |
|
||||
| P | Prompts | Place or copy saved prompts | 9-2 |
|
||||
| I | Information | Inspect images and workflows and place the materials used | 9-3 |
|
||||
| A | AI TOOL | Use AI features such as translation and chat | Chapter 10 |
|
||||
|
||||
Inside each tab there are further small tabs (subtabs).
|
||||
In many tabs, the following subtabs are common.
|
||||
|
||||
- **All** - everything
|
||||
- **Favorites** - things registered as favorites in the main Workflow Studio
|
||||
- **Groups** - by the groups made in the main Workflow Studio
|
||||
|
||||
Also, in each subtab's search box, you can narrow down by typing a name.
|
||||
|
||||
> **Tip**
|
||||
> What is shown in the WS Library is linked to the organization done in the main Workflow Studio (favorites, groups, badges).
|
||||
> The better you organize in the main part, the easier the WS Library is to use.
|
||||
|
||||
---
|
||||
|
||||
## 9-2 Placing onto the canvas with drag and drop
|
||||
|
||||
The basic operation of the WS Library is very simple.
|
||||
|
||||
| Operation | What happens |
|
||||
| --- | --- |
|
||||
| Drag and drop onto the canvas | Places or loads it at the dropped position |
|
||||
| Double-click | Places or loads it near the center of the screen |
|
||||
|
||||
### W - Load a workflow
|
||||
When you drag a workflow onto the canvas (or double-click it), that workflow is loaded.
|
||||
It behaves the same as when you drop a workflow file from the file explorer.
|
||||
|
||||
Subtabs: All / Favorites / Groups / By Badge (by badge)
|
||||
|
||||
> **Tip**
|
||||
> If you opened the main Workflow Studio from a bookmark and "Send to Canvas" is unavailable,
|
||||
> the target workflow is shown in this W tab, so drag it from here (Chapter 4, section 4-6).
|
||||
|
||||
### M - Place a model
|
||||
When you drag a model onto the canvas, **a loader node with that model already chosen** is placed.
|
||||
|
||||
| Kind of model | Node placed |
|
||||
| --- | --- |
|
||||
| Checkpoint | Load Checkpoint (CheckpointLoaderSimple) |
|
||||
| LoRA | Load LoRA (LoraLoader) |
|
||||
| VAE | Load VAE (VAELoader) |
|
||||
| ControlNet | Load ControlNet Model (ControlNetLoader) |
|
||||
| UNET | Load Diffusion Model (UNETLoader) |
|
||||
| TextEncoder | Load CLIP (CLIPLoader) |
|
||||
| Hypernetwork | HypernetworkLoader |
|
||||
|
||||
The trouble of finding a node in a list, placing it, choosing the file name from a pull-down and so on goes away.
|
||||
After placing it, you connect it with lines to other nodes and use it.
|
||||
|
||||
Subtabs: All / Favorites / Groups / By Type (by kind)
|
||||
|
||||
> **Tip**
|
||||
> There is no loader node for Embeddings, so they cannot be placed on the canvas.
|
||||
|
||||
> **Tip: placing LoRAs in bulk**
|
||||
> In a LoRA group, an item called **All N LoRAs** (N is the number of LoRAs in the group) is shown.
|
||||
> If you drag it, a `Lora Loader (LoraManager)` node containing all the LoRAs in the group is placed.
|
||||
> (The custom node **ComfyUI-Lora-Manager** is required)
|
||||
|
||||
### P - Place a prompt
|
||||
When you drag a saved preset (Chapter 7) onto the canvas,
|
||||
a **Prompt Text (WFS)** node containing the positive and negative prompts is placed.
|
||||
This is a node bundled with Workflow Studio, and it outputs the prompt text.
|
||||
|
||||
If you only want to paste the prompt, you can copy it with the **P** (positive) / **N** (negative) buttons on the item.
|
||||
|
||||
Subtabs: All / Favorites / Categories (by category) / Groups
|
||||
|
||||
### N - Place a node
|
||||
When you drag a node onto the canvas, that node is placed.
|
||||
If you register frequently used nodes as favorites in the **Nodes** tab of the main Workflow Studio, you can take them out quickly.
|
||||
In the N tab's list, **Alt + click** a node to switch its favorite on or off on the spot (v0.8.0 and later).
|
||||
The N tab opens faster than before, because it shows the list first without waiting for the nodes' detailed information.
|
||||
|
||||
Subtabs: All / Favorites / Groups / Sets / Category (by category) / Package (by custom-node package)
|
||||
|
||||
### Node sets - saving a frequently used combination as a whole
|
||||
A **node set** is a bundle of several nodes and their connections saved together.
|
||||
If you save "a group of nodes you always use in the same combination", you can place the whole thing with one drag.
|
||||
|
||||
**Making a node set**
|
||||
1. On ComfyUI's node screen, select the nodes you want to save (click while holding the Ctrl key, or drag to select a range).
|
||||
2. **Right-click** on the selected nodes and choose **Save as Node Set**.
|
||||
3. Save it with a name.
|
||||
|
||||
**Using a node set**
|
||||
From the **Sets** subtab of the WS Library's **N** tab, drag it onto the canvas.
|
||||
|
||||
> **Example**
|
||||
> It is handy to make sets of parts you want to add afterwards to any workflow,
|
||||
> such as "a group of nodes that automatically corrects faces" or "a group of nodes for upscaling".
|
||||
|
||||
---
|
||||
|
||||
## 9-3 Inspecting the contents of an image in the Information tab
|
||||
|
||||
The **I (Information)** tab is a feature that inspects image and workflow files and lets you
|
||||
**place the models and prompts that were used straight onto the canvas**.
|
||||
Think of it as the Gallery's metadata (Chapter 8, section 8-2) made usable inside the node screen.
|
||||
|
||||
### How to use it
|
||||
1. Open the **I** tab of the WS Library.
|
||||
2. Drop the file you want to inspect (a PNG, WebP, MP4 or WebM image or video made in ComfyUI, or a workflow JSON) onto the panel.
|
||||
3. The materials found in the file are shown, split into subtabs.
|
||||
|
||||
| Subtab | Contents | When dragged onto the canvas |
|
||||
| --- | --- | --- |
|
||||
| model | Checkpoint, VAE, Diffusion Model, Text Encoder | The corresponding loader node is placed |
|
||||
| lora | The LoRAs used and their strength | A LoRA loader node is placed |
|
||||
| Prompts | Positive (POS) and negative (NEG) prompts | A text-encode node containing the prompt is placed |
|
||||
|
||||
Clicking a prompt item shows the whole text, and **Copy** also copies it.
|
||||
|
||||
### When it is handy
|
||||
- "I want to build a new workflow with the same model and LoRAs as that image I made before"
|
||||
- "I just want to borrow the prompt from a workflow I found online"
|
||||
- "Which LoRA did this image use, and at what strength?"
|
||||
|
||||
The point is that rather than loading the whole workflow, **you can take out and use only the parts you need**.
|
||||
|
||||
---
|
||||
|
||||
## 9-4 Changing the look of the WS Library
|
||||
|
||||
From the **gear button** inside the WS Library panel, you can set the panel's colors.
|
||||
|
||||
- The panel's background color
|
||||
- The sub-header's background color
|
||||
- Text color, and the color of auxiliary text
|
||||
- Border color
|
||||
|
||||
If you adjust them to match ComfyUI's theme, you can use it without any sense of mismatch.
|
||||
The settings are saved in the browser and applied the next time you open it.
|
||||
|
||||
> **Summary of this chapter**
|
||||
> - The WS Library is a "shelf of materials" that opens beside ComfyUI's node screen
|
||||
> - From the W, N, M and P tabs, you can place workflows, nodes, models and prompts by dragging (or double-clicking)
|
||||
> - If you drag a model from the M tab, a loader node with the model already chosen is placed
|
||||
> - With "Save as Node Set" in the right-click menu, you can save a combination of frequently used nodes
|
||||
> - If you drop an image onto the I tab, you can take out and use the models, LoRAs and prompts that were used
|
||||
@@ -0,0 +1,198 @@
|
||||
# Chapter 10 AI TOOL - Making Local AI Your Assistant
|
||||
|
||||
Workflow Studio can work together with **local AI (large language models)** running inside your computer.
|
||||
If you prepare local AI, you can do things like the following.
|
||||
|
||||
- Translate what you thought up in your own language into an English prompt
|
||||
- Chat with the AI and have it come up with prompt ideas
|
||||
- Show it an image and have it make a description, prompt or tags for that image
|
||||
- Have it make candidate lists for wildcards
|
||||
|
||||
Because it runs inside your own computer rather than as a service on the internet,
|
||||
a big feature is that **what you type and the images you use are not sent outside**.
|
||||
|
||||
> **Tip**
|
||||
> AI features are "nice to have" features. Even if you do not use them, all of Workflow Studio's basic features are available.
|
||||
> If your computer has room to spare (especially GPU memory), please give them a try.
|
||||
|
||||
---
|
||||
|
||||
## 10-1 Preparing local AI software
|
||||
|
||||
### Supported software
|
||||
Workflow Studio supports the following four pieces of local AI software.
|
||||
|
||||
| Software | Characteristics | Default address |
|
||||
| --- | --- | --- |
|
||||
| **Ollama** | The standard. Easy from downloading models to running them | `http://localhost:11434` |
|
||||
| **LM Studio** | Operated from a screen. You can also look for models inside the app | `http://localhost:1234` |
|
||||
| Lemonade Server | Easy to run on AMD GPUs and NPUs | `http://localhost:13305` |
|
||||
| Unsloth | Requires extra setup such as an API key (for advanced users) | `http://localhost:8888` |
|
||||
|
||||
For beginners, **Ollama** is recommended. This chapter explains using Ollama as the example.
|
||||
|
||||
> **Tip**
|
||||
> `localhost` in the address means "this computer", and the number after it is the **port number** (Chapter 2, section 2-4).
|
||||
> Just like ComfyUI, AI software also listens on its own fixed port number.
|
||||
|
||||
### Preparing Ollama
|
||||
1. From Ollama's official site, download the installer for your OS and install it.
|
||||
2. Start Ollama (on Windows it starts automatically after installation and stays resident in the taskbar's notification area).
|
||||
3. Download the AI model you will use. In Command Prompt or similar, type the following.
|
||||
|
||||
```
|
||||
ollama pull (model name)
|
||||
```
|
||||
|
||||
Model names can be checked in the model list on Ollama's official site.
|
||||
|
||||
> **Guide to choosing a model**
|
||||
> - **You also want the image-reading feature (VLM)** -> choose a model that supports image input (vision)
|
||||
> (in the author's testing, image generation and image reading work well with Gemma 4 `e4b` and similar)
|
||||
> - **GPU memory is small** -> choose a model with a small parameter count (a few B, that is a few billion)
|
||||
> - If translation accuracy matters, choose a model that is good at your language
|
||||
>
|
||||
> The world of AI models changes quickly, so please try newer models too.
|
||||
|
||||
> **Caution: competing for GPU memory**
|
||||
> Local AI also uses **GPU memory (VRAM)**, just like image generation.
|
||||
> If you run both at the same time, memory runs short and image generation slows down or errors out.
|
||||
> Countermeasures are explained in 10-3.
|
||||
|
||||
---
|
||||
|
||||
## 10-2 Using the AI TOOL tab
|
||||
|
||||
Open the **AI TOOL** tab of the main Workflow Studio.
|
||||
The screen is divided into four parts, all shown at the same time.
|
||||
|
||||
| Part | What you can do |
|
||||
| --- | --- |
|
||||
| Translate | Translation between languages such as Japanese, English and Chinese |
|
||||
| Chat | Conversation with the AI. If the conditions are met, generating images from the conversation too |
|
||||
| TOOLS | Reading images (VLM), making wildcards |
|
||||
| Settings | Settings for which AI software and model to use |
|
||||
|
||||
### First: connect to the AI software in the settings
|
||||
1. In **Backend** under the settings, choose the software to use (for example Ollama).
|
||||
2. Check the address under **Connection**. If you use Ollama with its defaults, no change is needed.
|
||||
3. Press **Test Connection**. If it shows success, it is OK.
|
||||
4. Press **Refresh** next to **Model** and choose the model to use from the list.
|
||||
5. Press **Save Settings**.
|
||||
|
||||
> **Tip**
|
||||
> The settings here are shared with the **A (AI TOOL)** tab of the WS Library on the ComfyUI side.
|
||||
> On the other hand, the Prompt tab (Chapter 7) and the Tagger tab each have their own **gear button** settings.
|
||||
> If "it works in the AI TOOL tab but the Prompt tab says Disconnected", set the same thing with the gear button in the Prompt tab as well.
|
||||
|
||||
> **If it does not connect well**
|
||||
> - Check that software such as Ollama is running.
|
||||
> - For LM Studio, you need to **start the server** inside the app.
|
||||
> - Check that the port number in the address matches the software's settings.
|
||||
> - If the model list is empty, check that the model has been downloaded.
|
||||
|
||||
### Translate
|
||||
1. Choose the source and target languages (swap them with the **swap** button).
|
||||
2. Write the text in the input box and press **Translate**.
|
||||
3. **Copy** the result and paste it into GenerateUI or a preset.
|
||||
|
||||
> **Tip**
|
||||
> Small models sometimes return the original text as it is without translating.
|
||||
> In that case a message says the model returned the original text, so try another model.
|
||||
|
||||
### Chat
|
||||
Talk in the input box and send with **Enter** (**Shift + Enter** for a line break).
|
||||
It remembers the flow of the conversation, so follow-up requests such as "make it a brighter mood" also work.
|
||||
**Clear** resets the conversation.
|
||||
|
||||
> **Tip: generating images from chat (advanced)**
|
||||
> If you use a model that supports "Tool Calling",
|
||||
> just asking in chat "draw a cat" generates an image with the workflow loaded in GenerateUI, and it is shown inside the chat.
|
||||
> This feature can be turned on or off with the **Allow image generation** check next to the input box.
|
||||
|
||||
### TOOLS - reading images (VLM)
|
||||
With a model that supports image input (a VLM), you can have the AI read the contents of an image.
|
||||
|
||||
1. Drop an image (PNG / JPG / WebP) into the **TOOLS** frame.
|
||||
2. Choose a task.
|
||||
|
||||
| Task | Contents |
|
||||
| --- | --- |
|
||||
| Describe | Explains in text what is in the image |
|
||||
| Create prompt | Makes a prompt for reproducing the image |
|
||||
| Create tags | Writes out the elements of the image in tag format |
|
||||
| Create wildcards | Makes candidate wildcard lists by specifying a category name and count (no image needed) |
|
||||
|
||||
3. Press **Run**. You can copy the result and use it.
|
||||
|
||||
> **Example**
|
||||
> When you want to imitate the mood of an illustration you like, run "Create prompt" on that image
|
||||
> and try the resulting prompt in GenerateUI - you can use it like that.
|
||||
|
||||
### It can be used inside the ComfyUI screen too
|
||||
The same AI features can also be used in the **A** tab of the WS Library on the ComfyUI side.
|
||||
Handy when you want to translate something briefly while working on the node screen.
|
||||
|
||||
---
|
||||
|
||||
## 10-3 Freeing VRAM and managing memory
|
||||
|
||||
As touched on in 10-1, local AI and image generation compete for GPU memory (VRAM).
|
||||
Ollama keeps a model that has been used in memory for a while,
|
||||
so if you generate images after using the AI, memory may run short.
|
||||
|
||||
### Freeing manually
|
||||
Pressing **Unload Model** in the AI TOOL settings takes the AI model out of memory and frees VRAM.
|
||||
(With Ollama, all loaded models are unloaded)
|
||||
|
||||
### Freeing automatically before generation
|
||||
In **VRAM Management (Ollama)** in the Settings tab, you can set Ollama's models to be unloaded automatically just before image generation.
|
||||
|
||||
| Behavior before generation | What it does |
|
||||
| --- | --- |
|
||||
| Do nothing | Does not unload automatically |
|
||||
| Unload what is needed only when free memory is below the target | Unloads only when free VRAM is less than the **Target free VRAM (GB)** |
|
||||
| Unload everything every time | Always unloads everything at every generation |
|
||||
|
||||
> **Tip**
|
||||
> If you can't decide which to choose, "Unload what is needed only when free memory is below the target" is recommended.
|
||||
> For the target free VRAM, enter a rough value of the amount of memory image generation needs (it differs by the model you use).
|
||||
> The **Unload all now** button can also free it immediately, on the spot.
|
||||
|
||||
> **Caution**
|
||||
> This automatic unloading applies to Ollama only. If you use LM Studio or similar, free memory manually.
|
||||
|
||||
---
|
||||
|
||||
## 10-4 Security notes
|
||||
|
||||
### By default it connects only to AI on "your own computer"
|
||||
For safety, the AI software Workflow Studio connects to (Ollama, LM Studio and so on) is by default limited to
|
||||
**software running inside the same computer (localhost / 127.0.0.1)**.
|
||||
|
||||
### When you want to use AI on another computer
|
||||
If you want to run Ollama on another computer on your home LAN (such as a computer with a strong GPU) and use it,
|
||||
register the address of the computer you want to connect to in the environment variable **`WFS_ALLOWED_BACKEND_HOSTS`**, and restart ComfyUI.
|
||||
|
||||
```
|
||||
WFS_ALLOWED_BACKEND_HOSTS=192.168.1.20:11434
|
||||
```
|
||||
|
||||
If there are several, list them separated by commas (,).
|
||||
How to set environment variables differs depending on how you start ComfyUI.
|
||||
|
||||
### If you start ComfyUI with `--listen`
|
||||
If you start ComfyUI with the `--listen` option, other computers and smartphones on the same network
|
||||
can also access ComfyUI (and Workflow Studio).
|
||||
In that case, anyone who can access it can use your AI software and images.
|
||||
|
||||
> **Caution**
|
||||
> Use `--listen` **only on a trusted network**, such as a home LAN.
|
||||
> Do not use it in cafes or on public Wi-Fi.
|
||||
|
||||
> **Summary of this chapter**
|
||||
> - If you prepare local AI (Ollama and so on), you can translate, chat and read images. What you type is not sent outside
|
||||
> - In the AI TOOL tab's settings, choose the backend, address and model, and test the connection
|
||||
> - The Prompt tab and Tagger tab have separate gear-button settings
|
||||
> - AI and image generation compete for VRAM. Free it with "Unload Model" or "VRAM Management (Ollama)"
|
||||
> - By default it connects only to AI on your own computer. Use `--listen` only on a trusted network
|
||||
@@ -0,0 +1,233 @@
|
||||
# Chapter 11 Even More Features (Overview)
|
||||
|
||||
By now, you have covered the basic usage of Workflow Studio from start to finish.
|
||||
This chapter introduces the tabs and features not yet covered, focusing on **what you can do with them**.
|
||||
You do not need to use everything right now. Keep in the back of your mind that "you can do this too",
|
||||
and try them when you need them.
|
||||
|
||||
---
|
||||
|
||||
## 11-1 The Nodes tab - listing the installed nodes
|
||||
|
||||
In the **Nodes** tab, you can list all the nodes installed in ComfyUI.
|
||||
|
||||
- **Search and filtering** - narrow down by name, category and package (which custom node it belongs to). Even with thousands of nodes, the list appears first and search runs lightly (v0.8.0 and later).
|
||||
- **Detail panel** - when you select a node, you can check the kinds of its inputs and outputs (the I/O specification).
|
||||
- **Favorites, groups and tags** - organize the nodes you use often.
|
||||
|
||||
Nodes you register as favorites or in groups here are shown in the **N** tab of the WS Library,
|
||||
and can be placed by dragging onto the node screen (Chapter 9).
|
||||
|
||||
> **When it helps**
|
||||
> "I installed a custom node but can't tell what nodes were added"
|
||||
> -> narrow down by **Package** and you can see the list of nodes contained in that custom node.
|
||||
|
||||
---
|
||||
|
||||
## 11-2 Tagger - automatically making tags from images
|
||||
|
||||
The **Tagger** tab is a feature that reads an image and automatically makes tags that describe it (such as `1girl, long hair, smile`).
|
||||
It can be used for making prompts for anime-style models, and for tagging images for training.
|
||||
|
||||
### Three subtabs
|
||||
| Subtab | What you can do |
|
||||
| --- | --- |
|
||||
| Single | Make tags from one image |
|
||||
| Batch | Tag the images in a folder in bulk (it can also write out a `.txt` file with the same name as each image) |
|
||||
| DB | Search and edit the records of images you tagged |
|
||||
|
||||
### How to use it (Single)
|
||||
1. Drop an image onto the preview area (you can also open it from the **Tagger** button in the Gallery's detail panel).
|
||||
2. Choose the model to use and press the run button to make tags.
|
||||
3. Use the result.
|
||||
|
||||
| Button | What it does |
|
||||
| --- | --- |
|
||||
| GenUI:P | Adds it to GenerateUI's positive prompt |
|
||||
| Send to Prompt | Adds it to the positive prompt in the Prompt tab |
|
||||
|
||||
With the **threshold** slider, you can adjust how certain a tag must be to be shown.
|
||||
Raising the number leaves only fewer, more certain tags; lowering it gives more.
|
||||
|
||||
### Preparation needed
|
||||
To use Tagger, you need the following preparation.
|
||||
|
||||
1. Put a **model for tagging** (such as WD Tagger) in ComfyUI's `models/tagger/(model name)/` folder.
|
||||
Put a `.onnx` file and `selected_tags.csv` in the folder.
|
||||
2. Install the **extra Python packages**.
|
||||
Use the `requirements.txt` in the Workflow Studio folder.
|
||||
|
||||
```
|
||||
(ComfyUI's Python) -m pip install -r requirements.txt
|
||||
```
|
||||
|
||||
The location of "ComfyUI's Python" differs by environment. Check the table in Chapter 2, section 2-6
|
||||
(for example, for the Windows portable version it is `python.exe` inside the `python_embeded` folder).
|
||||
|
||||
> **Caution**
|
||||
> Installing into the Python that was already on your computer cannot be used from ComfyUI.
|
||||
> Always install into **the Python that ComfyUI uses**.
|
||||
> If you are not sure, there is also a method of installing packages with a ComfyUI Manager feature.
|
||||
|
||||
> **Tip**
|
||||
> You can also combine it with the local AI image reading (VLM) from Chapter 10 to make tags that combine both results.
|
||||
|
||||
---
|
||||
|
||||
## 11-3 Image Edit - touching up generated images
|
||||
|
||||
The **Image Edit** tab is a simple image-editing tool with layers.
|
||||
You can put text on a generated image, or make a mask for redrawing part of it.
|
||||
|
||||
### Main features
|
||||
| Tool | What you can do |
|
||||
| --- | --- |
|
||||
| Select | Move, scale and rotate layers |
|
||||
| Draw | Draw with a pen (pen-tablet pressure is also supported) |
|
||||
| Text | Put in text |
|
||||
| Shape | Draw rectangles, circles and lines |
|
||||
| Fill | Fill and gradients |
|
||||
| Mask | Specify the part you want redrawn (making a mask) |
|
||||
| Blur | Blur and mosaic |
|
||||
| BG Remove | Remove the background |
|
||||
| Inpaint | Redraw the masked part with the GenerateUI workflow |
|
||||
|
||||
- Open an image by drag and drop, **File Open**, or the **Image Edit** button in the Gallery.
|
||||
- Save the edited image with **Save PNG** (download), **Save to Gallery** and so on.
|
||||
- Undo with **Ctrl + Z**, redo with **Ctrl + Y**.
|
||||
|
||||
### Inpainting (redrawing part of an image)
|
||||
The handiest use of Image Edit is **inpainting**.
|
||||
It is for when "I want to redraw only the face" or "I want to fix only the place where the hand broke".
|
||||
|
||||
1. Load an inpainting workflow (such as the bundled sample `ws_inpaint_basic`) into GenerateUI.
|
||||
2. Open the image in Image Edit and paint the part you want redrawn with **Mask**.
|
||||
3. Run it with the **Inpaint** tool, and only the painted part is redrawn.
|
||||
|
||||
> **Tip**
|
||||
> To use a higher-quality version of background removal, or more advanced masking,
|
||||
> the author's separate custom node **comfyui-mask-editor-one** is needed.
|
||||
> Saving and loading in PSD format requires an extra Python package (psd-tools).
|
||||
|
||||
---
|
||||
|
||||
## 11-4 Video - making and joining videos
|
||||
|
||||
The **Video** tab is a dedicated screen for making short videos from images or text using video-generation models.
|
||||
|
||||
### Supported video-generation models
|
||||
- **MiniMax H3** (image to video)
|
||||
- **LTX-2.5** (text to video, image to video, and video from specified first and last images)
|
||||
- **Wan2.2** (text to video)
|
||||
|
||||
You load a matching workflow with **Load in Video** in the Workflow tab and use it (Chapter 4, section 4-6).
|
||||
|
||||
### Main features
|
||||
| Subtab | What you can do |
|
||||
| --- | --- |
|
||||
| Plan | Divide a video into "blocks", decide the prompt, length and first/last image for each block, and generate in order |
|
||||
| Edit | Line up generated videos and images, then cut, join, add text and BGM, and export |
|
||||
| Asset | List generated videos, images and audio. Audio can be set as BGM or added as sound (the Audio Only type filter shows audio only) |
|
||||
|
||||
There are also the **Frame** feature, which saves a favorite scene of a video as a still image, and **GIF**, which converts a video to an animated GIF.
|
||||
|
||||
> **Caution**
|
||||
> Video generation uses far more GPU memory and time than image generation.
|
||||
> Check the required specs of the model before trying it.
|
||||
|
||||
---
|
||||
|
||||
## 11-5 Main items of the Settings tab
|
||||
|
||||
In the **Settings** tab, you configure Workflow Studio as a whole.
|
||||
Items are collapsed, so click a heading to open it.
|
||||
Here we mainly introduce items not covered in earlier chapters.
|
||||
|
||||
| Item | Contents | Related chapter |
|
||||
| --- | --- | --- |
|
||||
| Theme | Screen color scheme and font | Chapter 3 |
|
||||
| UI Language / Summary Language | Display language | Chapter 2 |
|
||||
| Text Size | Size of text such as in the prompt fields | Chapter 3 |
|
||||
| Workflow Data Folder | The folder workflows are read from | Chapter 4 |
|
||||
| Gallery Output Folder | The folder shown in the Gallery | Chapter 8 |
|
||||
| Default Workflow | The workflow automatically loaded into GenerateUI when you open Workflow Studio | Below |
|
||||
| Default Checkpoint | Automatically replaces the model when loading a workflow into GenerateUI | Below |
|
||||
| CivitAI API Key | For fetching Civitai information (optional) | Chapter 6 |
|
||||
| Eagle integration (optional) | Automatically save generated images to Eagle | Chapter 8 |
|
||||
| VRAM Management (Ollama) | Unload AI models from memory before generation | Chapter 10 |
|
||||
| Data Management | Backing up and restoring settings and data | Below |
|
||||
|
||||
### Default Workflow
|
||||
If you set the basic workflow you always use, it is loaded into GenerateUI automatically when you open Workflow Studio.
|
||||
You can also set it with the **Set as Default** button on the Workflow tab's detail screen.
|
||||
|
||||
### Default Checkpoint
|
||||
Workflows you get online often specify models you do not have (Chapter 5, section 5-3).
|
||||
If you set a **Default Checkpoint** and turn it on, each time you load a workflow into GenerateUI,
|
||||
the Checkpoint is automatically replaced with the specified model. It saves the trouble of choosing a model again.
|
||||
|
||||
### Data Management (backup)
|
||||
In **Data Management**, you can write out the information you organized in Workflow Studio (favorites, badges, groups, presets and so on)
|
||||
to a file (Export), and read it back to restore it (Import).
|
||||
|
||||
With **Full Backup (ZIP)**, you can back up everything together, including folder-based data such as styles and Lab plans.
|
||||
|
||||
> **Tip**
|
||||
> Always take a backup before buying a new computer or reinstalling ComfyUI.
|
||||
> The information you spent time organizing can be carried over as it is to the new environment.
|
||||
> (For safety, API keys are not included in backups)
|
||||
|
||||
## 11-6 A companion app: ComfyUI Comic Creator - making manga from generated images
|
||||
|
||||
**ComfyUI Comic Creator** (Comic Creator from here on) is a custom node **for making manga** that runs on ComfyUI,
|
||||
developed by the same author as Workflow Studio.
|
||||
It is software you install separately from Workflow Studio, but if you install both, they work together.
|
||||
|
||||
### What you can do with Comic Creator
|
||||
| Feature | Contents |
|
||||
| --- | --- |
|
||||
| Panel layout | Choose a template and make panels on a page (your own templates can also be registered) |
|
||||
| Placing images | Place images into panels by drag and drop |
|
||||
| Speech balloons and text | Vertical and horizontal dialogue, balloons of various shapes, sound-effect text |
|
||||
| Manga effects | Add speed lines, screen tones, halftone dots and so on |
|
||||
| Image editing | Image editing with layers (the Image tab) |
|
||||
| Automatic creation with AI | Draft a story, script and panel layout from a theme with AI (the Auto tab) |
|
||||
| Export | Output as JPEG / PNG / WebP / SVG / PDF / **EPUB** |
|
||||
|
||||
### Working together with Workflow Studio
|
||||
If you install both, the following integrations are possible.
|
||||
|
||||
- **Use Workflow Studio's Gallery inside Comic Creator**
|
||||
Workflow Studio's Gallery appears inside Comic Creator, and you can choose generated images and send them to panels with the **Send CC** button.
|
||||
(The Send CC button is shown only in a Gallery opened inside Comic Creator)
|
||||
- **Generate images from Comic Creator**
|
||||
From the Comic Creator screen, through Workflow Studio (GenerateUI), you can generate images to put in panels (T2I),
|
||||
or redraw based on a rough you drew or an image you placed (I2I and inpainting).
|
||||
|
||||
With the flow "make images in Workflow Studio -> put them together as manga in Comic Creator",
|
||||
you can go from image generation to finished manga entirely inside ComfyUI.
|
||||
|
||||
### Installing and launching
|
||||
1. In ComfyUI Manager's **Install via Git URL**, enter the following URL and install.
|
||||
|
||||
```
|
||||
https://github.com/ketle-man/comfyui-comic-creator
|
||||
```
|
||||
|
||||
(For a manual install, `git clone` into `ComfyUI/custom_nodes/`, same as Workflow Studio)
|
||||
|
||||
2. Restart ComfyUI.
|
||||
3. Press the **CC** button added to ComfyUI's top menu, and Comic Creator opens in a new tab.
|
||||
|
||||
> **Tip**
|
||||
> For detailed usage of Comic Creator, see the **Help** tab inside the app (with search).
|
||||
|
||||
---
|
||||
|
||||
> **Summary of this chapter**
|
||||
> - In the Nodes tab you can list and organize installed nodes, and use them in the WS Library
|
||||
> - Tagger automatically generates tags from images. A model and extra packages must be prepared
|
||||
> - Image Edit is a simple editing tool with layers. Inpainting also lets you redraw parts
|
||||
> - In the Video tab, you can make videos with supported video-generation models and do simple editing
|
||||
> - "Default Checkpoint" and "Data Management (backup)" in the Settings tab are especially handy
|
||||
> - Combined with Comic Creator by the same author, you can make manga from generated images
|
||||
@@ -0,0 +1,186 @@
|
||||
# Chapter 12 When You Are in Trouble (Troubleshooting / FAQ)
|
||||
|
||||
This chapter collects the troubles that often occur when using Workflow Studio, and how to deal with them.
|
||||
When in trouble, first look in the **"symptom"** headings for the one closest to your situation.
|
||||
|
||||
> **Three things to try first**
|
||||
> For almost any trouble, these three often solve it.
|
||||
> 1. Reload the browser page (F5 key)
|
||||
> 2. Press the **Refresh** button of each Workflow Studio tab
|
||||
> 3. Quit ComfyUI completely and start it again
|
||||
|
||||
---
|
||||
|
||||
## 12-1 Startup and connection troubles
|
||||
|
||||
### The W button does not appear
|
||||
| Cause | What to do |
|
||||
| --- | --- |
|
||||
| You did not restart ComfyUI after installing | Quit ComfyUI completely and start it again (reloading the browser alone does not take effect) |
|
||||
| The folder is in the wrong place | Check that the folder exists at `ComfyUI/custom_nodes/ComfyUI-Workflow-Studio`. Also check that the folder is not doubled |
|
||||
| ComfyUI is old | Update ComfyUI itself |
|
||||
|
||||
### The Workflow Studio page does not open
|
||||
- Is ComfyUI running? Workflow Studio runs inside ComfyUI, so you cannot open it if you quit ComfyUI.
|
||||
- Is the **port number** in the address right? You can check it in the address bar of the browser where ComfyUI is open (Chapter 2, section 2-4).
|
||||
|
||||
### GenerateUI shows "Disconnected"
|
||||
1. Check that ComfyUI is running and that you can generate an image on ComfyUI's screen.
|
||||
2. Press **Connect** at the top of GenerateUI.
|
||||
3. If it still does not connect, reload the browser page.
|
||||
|
||||
### You updated but the behavior did not change
|
||||
After updating Workflow Studio, always restart ComfyUI.
|
||||
If it still behaves the old way, the browser cache may remain.
|
||||
Try **Ctrl + F5** (forced reload).
|
||||
|
||||
---
|
||||
|
||||
## 12-2 Workflow troubles
|
||||
|
||||
### Workflows do not appear in the list
|
||||
| Cause | What to do |
|
||||
| --- | --- |
|
||||
| The list is still old | Press **Refresh** in the Workflow tab |
|
||||
| A filter is applied | Press **x Clear** at the right end of the toolbar |
|
||||
| You saved to another folder | Check "Workflow Data Folder" in the Settings tab |
|
||||
|
||||
### Nodes are shown in red (missing)
|
||||
When you load a workflow, nodes may be shown in red, or a message may say there are missing nodes.
|
||||
This means **the custom nodes the workflow needs are not installed**.
|
||||
|
||||
**What to do**
|
||||
1. Open ComfyUI's **Manager**.
|
||||
2. Choose **Install Missing Custom Nodes**.
|
||||
3. Install the custom nodes shown, and restart ComfyUI.
|
||||
|
||||
> **Tip**
|
||||
> The "Convert: cross" in the Workflow tab's **GenerateUI Check** (Chapter 4, section 4-7) is also mostly caused by this.
|
||||
> Hovering the mouse over the badge shows the names of the missing nodes.
|
||||
|
||||
### GenerateUI judged it "unusable"
|
||||
| Judgment | Meaning and what to do |
|
||||
| --- | --- |
|
||||
| Convert: cross | A required custom node is missing -> see "Nodes are shown in red" above |
|
||||
| Convert: warning | A model you do not have is specified -> choose again in GenerateUI (12-3) |
|
||||
| Operability: warning / cross | Many settings are not shown in GenerateUI -> generation is often still possible. Change detailed settings on ComfyUI's node screen |
|
||||
|
||||
---
|
||||
|
||||
## 12-3 Generation troubles
|
||||
|
||||
### You changed a setting but the result did not change
|
||||
The most common cause is **forgetting to press Apply**.
|
||||
In GenerateUI, after changing the model or Settings values (steps, size and so on), the change is not reflected in the workflow unless you press **Apply** (Chapter 5, section 5-3).
|
||||
Looking at the **Raw JSON** on the right lets you check the values actually reflected.
|
||||
|
||||
### It generates something different from the loaded workflow
|
||||
If a batch kind's checkbox in the **Batch** subtab stays on,
|
||||
a batch generation runs when you press Generate (Chapter 5, section 5-5).
|
||||
Open the Batch subtab and turn off all the Batch Queue column checkboxes.
|
||||
|
||||
### It generates with a different model than you expected
|
||||
If the model saved in the workflow is not on your computer, it may be replaced automatically with another model.
|
||||
In that case a message says the Checkpoint "..." was not found and was replaced with another model without warning.
|
||||
In the **Model** subtab of GenerateUI, choose the model you want to use again and press **Apply**.
|
||||
|
||||
If you always want to use the same model, the **Default Checkpoint** in the Settings tab is handy (Chapter 11, section 11-5).
|
||||
|
||||
### It does not become the same image even with the same settings
|
||||
Is the seed mode in the generate panel set to **Random**?
|
||||
To make the same image, you need to set the seed to **Workflow** (use the workflow's seed as it is) or **Fixed** (fix it to the value in the Seed field).
|
||||
If no new image is added when you generate in a row with the same seed and settings, that is because ComfyUI reuses the already computed result, not a malfunction.
|
||||
For the steps to reproduce a Gallery image, see Chapter 8, section 8-3.
|
||||
|
||||
### Slow generation, or it stops with an error (out of memory)
|
||||
| Cause | What to do |
|
||||
| --- | --- |
|
||||
| Local AI is using GPU memory | Press **Unload Model** in AI TOOL. Use **VRAM Management (Ollama)** in the Settings tab (Chapter 10, section 10-3) |
|
||||
| The image size or Batch Size is too large | Make Width, Height and Batch Size smaller in the Settings subtab |
|
||||
| The model is too large for your GPU | Use a smaller model (such as a GGUF version) |
|
||||
|
||||
### Errors appear after moving or deleting a model
|
||||
ComfyUI may remember the old location of a model.
|
||||
Run **Hard Reset** in ComfyUI's menu (inside the queue menu), or restart ComfyUI.
|
||||
|
||||
### A newly added model does not appear in the list
|
||||
Press **Refresh Models** in GenerateUI, or **Refresh** in the Models tab.
|
||||
If it still does not appear, check that the folder where you put the model is correct (Chapter 6, section 6-1).
|
||||
|
||||
---
|
||||
|
||||
## 12-4 AI feature troubles
|
||||
|
||||
### AI features show "Disconnected" or do not connect
|
||||
1. Check that software such as Ollama is running.
|
||||
For LM Studio or Lemonade, you need to **start the server** inside the app and have a model loaded.
|
||||
2. Check that the address (port number) in the settings matches the software.
|
||||
3. Press **Test Connection** and check the result.
|
||||
|
||||
### It works in the AI TOOL tab but not in the Prompt tab
|
||||
AI settings are saved separately depending on the place (Chapter 10, section 10-2).
|
||||
|
||||
| Place | Where to set it |
|
||||
| --- | --- |
|
||||
| AI TOOL tab / the A tab of the WS Library | The AI TOOL tab's settings (shared) |
|
||||
| Prompt tab | The **gear button** of the AI Assistant in the Prompt tab |
|
||||
| Tagger tab | The **gear button** in the Tagger tab |
|
||||
|
||||
### The model list is empty
|
||||
The AI model may not have been downloaded.
|
||||
For Ollama, download the model with `ollama pull (model name)`, then press **Refresh** in the model selection.
|
||||
|
||||
### It does not connect to Ollama on another computer
|
||||
For safety, by default it connects only to AI software inside the same computer.
|
||||
You need to set the environment variable `WFS_ALLOWED_BACKEND_HOSTS` (Chapter 10, section 10-4).
|
||||
|
||||
---
|
||||
|
||||
## 12-5 Troubles with other features
|
||||
|
||||
### No model appears in Tagger
|
||||
- Check that a `.onnx` file (and `selected_tags.csv`) is in the `ComfyUI/models/tagger/(model name)/` folder.
|
||||
- Check that the extra Python package (onnxruntime) is installed in **the Python that ComfyUI uses** (Chapter 11, section 11-2).
|
||||
|
||||
### PSD-related features give an error
|
||||
An extra Python package (psd-tools) is needed.
|
||||
Run the installation command shown in the error message in the Python that ComfyUI uses, then restart ComfyUI.
|
||||
|
||||
### Semantic search (Gallery) does not work well
|
||||
| Symptom | Cause | What to do |
|
||||
| --- | --- | --- |
|
||||
| The GPU is not detected (settings say no GPU detected, or runs on the CPU) | The onnxruntime in ComfyUI's Python is the CPU version | Stop ComfyUI, then in ComfyUI's Python run `pip uninstall -y onnxruntime onnxruntime-gpu` followed by `pip install onnxruntime-gpu`, and restart ComfyUI (DirectML is not supported) |
|
||||
| Gemini says "GEMINI_API_KEY is not set", or the key is rejected | There is no key in `.env`, or the line starts with `#` | Write `GEMINI_API_KEY=key` in the plugin's `.env` (copy `.env.example`) and restart ComfyUI. `.env` is only read at startup |
|
||||
| Search or Similar gives no results | The selected folder has no indexed images | Build the index with the gear button. Choose a folder with a green dot. When you change the model or precision, "rebuild all" |
|
||||
|
||||
### Images do not appear in the Gallery
|
||||
- Press **Refresh** in the Gallery.
|
||||
- Check that the "Gallery Output Folder" in the Settings tab matches where ComfyUI saves images.
|
||||
|
||||
---
|
||||
|
||||
## 12-6 If it is still not solved
|
||||
|
||||
### Look at Workflow Studio's Help
|
||||
The **Help** tab of Workflow Studio also has troubleshooting information.
|
||||
It may include information added after this book was published.
|
||||
|
||||
### Ask or report on GitHub
|
||||
Problems that are not solved can be reported in **Issues** on Workflow Studio's GitHub repository.
|
||||
When reporting, attaching the following information makes the cause easier to find.
|
||||
|
||||
- The Workflow Studio version
|
||||
- The ComfyUI version and how it was installed (portable version, Desktop version, Stability Matrix and so on)
|
||||
- On which screen, what you did, and what happened
|
||||
- The error message shown on the black screen (console) where ComfyUI was started
|
||||
- The red error message shown in the "Console" of the browser's developer tools (F12 key)
|
||||
|
||||
> **Caution**
|
||||
> When pasting error messages, check that they do not contain personal information such as your computer's user name.
|
||||
|
||||
> **Summary of this chapter**
|
||||
> - When in trouble, first try "reload", "Refresh buttons" and "restarting ComfyUI"
|
||||
> - Red nodes mean missing custom nodes. Solve with ComfyUI Manager's Install Missing Custom Nodes
|
||||
> - When settings are not reflected, check for a forgotten Apply and a leftover Batch check
|
||||
> - For out-of-memory, deal with it by unloading local AI and reviewing the image size
|
||||
> - When not solved, make use of the Help tab and GitHub Issues
|
||||
@@ -0,0 +1,131 @@
|
||||
# Appendix
|
||||
|
||||
## Appendix A Glossary
|
||||
|
||||
The main terms that appear in this book, in alphabetical order.
|
||||
|
||||
| Term | Meaning | In this book |
|
||||
| --- | --- | --- |
|
||||
| API format / UI format | The save format of a workflow. UI format includes things such as node positions; API format contains only the processing content | Chapter 4 |
|
||||
| Apply | The button in GenerateUI that reflects changed values into the workflow | Chapter 5 |
|
||||
| Badge | A colored label attached to a workflow or model | Chapter 4 |
|
||||
| Batch generation | Automatically generating in bulk while changing conditions | Chapter 5 |
|
||||
| Canvas | The work space where nodes are laid out on ComfyUI's node screen | Chapter 3 |
|
||||
| CFG | How strongly to follow the prompt | Chapter 5 |
|
||||
| Checkpoint | The model that forms the core of image generation | Chapter 6 |
|
||||
| Civitai | A sharing site for image-generation models | Chapter 6 |
|
||||
| ComfyUI Manager | A management tool for searching for and installing custom nodes | Chapter 2 |
|
||||
| Custom node | A node or extension added to ComfyUI afterwards. Workflow Studio is one of them | Chapter 1 |
|
||||
| Denoise | How strongly to redraw the original image | Chapter 5 |
|
||||
| Embedding | A small file that teaches a particular word a meaning | Chapter 6 |
|
||||
| Hash value | A "fingerprint"-like value computed from a file's contents. Used to look up models on Civitai | Chapter 6 |
|
||||
| I2I (Image to Image) | Making a new image based on an image | Chapter 5 |
|
||||
| Inpainting | Redrawing only part of an image (the masked part) | Chapter 11 |
|
||||
| JSON | The data format used to save workflows | Chapter 1 |
|
||||
| Keyframe | In Lab, a specification of "from which run to switch settings" | Chapter 5 |
|
||||
| Local AI | AI that runs inside your own computer (such as Ollama) | Chapter 10 |
|
||||
| LoRA | A small model that teaches an art style, character and so on as an add-on | Chapter 6 |
|
||||
| Mask | A specification of the part of an image to be processed | Chapter 11 |
|
||||
| Metadata | Information embedded in an image, such as the settings used at generation | Chapter 8 |
|
||||
| Model | The file that acts as the "AI brain" that makes images | Chapter 1 |
|
||||
| Negative prompt | A prompt where you write what you do not want drawn | Chapter 7 |
|
||||
| Node | A "box" arranged on ComfyUI's screen. It handles one process | Chapter 1 |
|
||||
| Node set | Several nodes and their connections saved together | Chapter 9 |
|
||||
| Ollama | Software for running local AI easily | Chapter 10 |
|
||||
| Port number | A number for distinguishing which software to communicate with inside one computer | Chapter 2 |
|
||||
| Positive prompt | A prompt where you write what you want drawn | Chapter 7 |
|
||||
| Preset | A pair of positive and negative prompts saved together | Chapter 7 |
|
||||
| Prompt | The text that tells the AI "what kind of image you want" | Chapter 1 |
|
||||
| Queue | The reservation list for generation. Processed in order | Chapter 1 |
|
||||
| Sampler | The algorithm used when drawing an image (such as euler) | Chapter 5 |
|
||||
| Scheduler | How the drawing amount is distributed across steps | Chapter 5 |
|
||||
| Seed | The seed of random numbers an image grows from. If the same, you get almost the same image | Chapter 5 |
|
||||
| Semantic search | Searching images by the "meaning" of a sentence or image. Used with the Gallery's S button | Chapter 8 |
|
||||
| Steps | The number of times drawing is repeated | Chapter 5 |
|
||||
| Style | A mood template added to a prompt | Chapter 7 |
|
||||
| T2I (Text to Image) | Making an image from text (a prompt) | Chapter 5 |
|
||||
| Trigger word | A word to put in the prompt to bring out a LoRA's effect | Chapter 6 |
|
||||
| VAE | The model that finishes an image's colors and fine details | Chapter 6 |
|
||||
| VLM | An AI model that can read images | Chapter 10 |
|
||||
| VRAM | The memory of the GPU (graphics card) | Chapter 10 |
|
||||
| Wildcard | A mechanism that randomly swaps a part of the prompt at every generation | Chapter 7 |
|
||||
| Workflow | The whole flow of processing made by connecting nodes with lines | Chapter 1 |
|
||||
| WS Library | Workflow Studio's side panel that opens beside ComfyUI's node screen | Chapter 9 |
|
||||
|
||||
---
|
||||
|
||||
## Appendix B Keyboard and mouse operations
|
||||
|
||||
### General
|
||||
| Operation | What happens |
|
||||
| --- | --- |
|
||||
| Esc | Closes the open screen (modal or panel) |
|
||||
| Enter | Confirms a rename / sends a chat message |
|
||||
| Shift + Enter | Line break in chat |
|
||||
| Double-click | Opens the detail screen (workflows, models and so on) |
|
||||
| Shift + click (W button) | Opens Workflow Studio in a new window |
|
||||
|
||||
### GenerateUI
|
||||
| Operation | What happens |
|
||||
| --- | --- |
|
||||
| Alt + click (Apply) | Reflects the values and generates at once |
|
||||
| Ctrl + Up/Down (prompt field) | Raises or lowers the emphasis `(word:number)` of the selected word by 0.05 |
|
||||
| Enter / Shift + Enter (Raw JSON search box) | Moves to the next / previous match |
|
||||
|
||||
### Gallery
|
||||
| Operation | What happens |
|
||||
| --- | --- |
|
||||
| Ctrl + click | Select several images |
|
||||
| Alt + click | Open the image in the Metadata subtab |
|
||||
| Enter (when semantic search is on) | Run a semantic search with the text in the search box |
|
||||
|
||||
### WS Library
|
||||
| Operation | What happens |
|
||||
| --- | --- |
|
||||
| Drag and drop | Place or load at the dropped position on the canvas |
|
||||
| Double-click | Place or load near the center of the canvas |
|
||||
| Alt + click (N tab) | Switch a node's favorite on or off |
|
||||
|
||||
### Image Edit
|
||||
| Operation | What happens |
|
||||
| --- | --- |
|
||||
| V / B / T / S / G | Switch to the Select / Draw / Text / Shape / Fill tool |
|
||||
| Ctrl + Z / Ctrl + Y | Undo / redo |
|
||||
| Mouse wheel | Zoom in and out |
|
||||
| Space + drag | Move the view position |
|
||||
| Delete | Delete the selected layer (when there are two or more layers) |
|
||||
|
||||
---
|
||||
|
||||
## Appendix C Reference links
|
||||
|
||||
### Workflow Studio
|
||||
- GitHub (latest version, release notes, bug reports)
|
||||
https://github.com/ketle-man/ComfyUI-Workflow-Studio
|
||||
|
||||
### ComfyUI itself and management tools
|
||||
- ComfyUI
|
||||
https://github.com/comfyanonymous/ComfyUI
|
||||
- ComfyUI Manager
|
||||
https://github.com/Comfy-Org/ComfyUI-Manager
|
||||
|
||||
### Related software and services introduced in this book
|
||||
| Name | Use | In this book |
|
||||
| --- | --- | --- |
|
||||
| Civitai (https://civitai.com/) | Getting models, fetching information | Chapter 6 |
|
||||
| Ollama (https://ollama.com/) | Local AI | Chapter 10 |
|
||||
| LM Studio (https://lmstudio.ai/) | Local AI | Chapter 10 |
|
||||
| Lemonade Server (https://lemonade-server.ai/) | Local AI | Chapter 10 |
|
||||
| Eagle (https://eagle.cool/) | Image-management software | Chapter 8 |
|
||||
|
||||
### Custom nodes that are handy to use together
|
||||
| Name | Use | In this book |
|
||||
| --- | --- | --- |
|
||||
| ComfyUI Comic Creator (https://github.com/ketle-man/comfyui-comic-creator) | Manga making. Works with the Gallery and image generation | Chapter 11 |
|
||||
| comfyui-image-feeder (https://github.com/ketle-man/comfyui-image-feeder) | Feeder's Image Loop mode | Chapter 5 |
|
||||
| comfyui-mask-editor-one (https://github.com/ketle-man/comfyui-mask-editor-one) | Advanced masking and background removal in Image Edit | Chapter 11 |
|
||||
| ComfyUI-Impact-Pack (https://github.com/ltdrdata/ComfyUI-Impact-Pack) | Curly-brace-style wildcards | Chapter 7 |
|
||||
| ComfyUI-Lora-Manager | Managing LoRAs; placing LoRAs together from the WS Library | Chapter 9 |
|
||||
|
||||
> **Caution**
|
||||
> The contents and URLs of linked pages may change.
|
||||
@@ -0,0 +1,27 @@
|
||||
# Afterword
|
||||
|
||||
Thank you for reading to the end.
|
||||
|
||||
ComfyUI is very free and deep software.
|
||||
Because of that freedom, it is also software where beginners think "I don't know where to start".
|
||||
Workflow Studio was born from the wish to widen that entrance a little,
|
||||
and to make "creating" and "organizing" more casual.
|
||||
|
||||
Let's look back once more at the ways of using it introduced in this book.
|
||||
|
||||
1. **Organize** - make workflows, models and prompts easy to tell apart with thumbnails and badges
|
||||
2. **Create** - generate images in GenerateUI without touching the node screen
|
||||
3. **Collect** - keep prompts and settings that worked in presets and the Gallery
|
||||
4. **Reproduce** - recall the same settings right away from an image's metadata
|
||||
5. **Expand** - speed up trial and error with batch generation and local AI
|
||||
|
||||
The shortest path to improving at image generation is to **try a lot, and keep what worked**.
|
||||
I will be glad if Workflow Studio becomes a tool that supports that accumulation.
|
||||
|
||||
Workflow Studio will continue to gain features and improvements.
|
||||
New features and changes are announced in the release notes on GitHub.
|
||||
Your impressions after using it, and requests such as "I want this feature", are also welcome on GitHub.
|
||||
|
||||
May your life with image generation become more fun and richer.
|
||||
|
||||
ketle-man
|
||||
@@ -0,0 +1,107 @@
|
||||
"""Partner (API) node execution support for GenerateUI.
|
||||
|
||||
ComfyUI's partner API nodes (Nano Banana / Gemini, Kling, Seedream, ...) authenticate through the
|
||||
``extra_data`` of the ``/prompt`` request: ``auth_token_comfy_org`` (the browser's Comfy login) or
|
||||
``api_key_comfy_org`` (a Comfy API key issued at platform.comfy.org). ComfyUI's own web UI adds
|
||||
the login token automatically, but Workflow Studio is a separate page that POSTs to ``/prompt`` itself,
|
||||
so such a prompt fails with "Unauthorized: Please login first to use this node."
|
||||
|
||||
When COMFY_API_KEY is set (loaded from the plugin's .env by prestartup_script.py), the frontend
|
||||
queues prompts through this proxy instead. The proxy adds the key to ``extra_data`` — only when the
|
||||
prompt actually contains an API node (``api_node: true`` in /object_info) — and relays the request
|
||||
to the local ComfyUI. The key never reaches the browser. Usage is billed as Comfy credits.
|
||||
"""
|
||||
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
from urllib.parse import quote
|
||||
|
||||
import aiohttp
|
||||
from aiohttp import web
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
_api_node_cache: dict = {} # class_type -> bool (api_node flag); the node set only changes on restart
|
||||
|
||||
|
||||
def _get_comfy_key():
|
||||
"""Return the Comfy API key from the environment (.env), or None."""
|
||||
return os.environ.get("COMFY_API_KEY", "").strip() or None
|
||||
|
||||
|
||||
def _local_base_url() -> str:
|
||||
"""Base URL of this ComfyUI instance (from its --listen / --port launch arguments)."""
|
||||
try:
|
||||
from comfy.cli_args import args as _a
|
||||
port = getattr(_a, "port", None) or 8188
|
||||
host = str(getattr(_a, "listen", "") or "127.0.0.1").split(",")[0].strip()
|
||||
if host in ("", "0.0.0.0", "::"):
|
||||
host = "127.0.0.1"
|
||||
elif ":" in host:
|
||||
host = f"[{host}]"
|
||||
except Exception:
|
||||
host, port = "127.0.0.1", 8188
|
||||
return f"http://{host}:{port}"
|
||||
|
||||
|
||||
async def _is_api_node(sess: aiohttp.ClientSession, base: str, class_type: str) -> bool:
|
||||
if class_type in _api_node_cache:
|
||||
return _api_node_cache[class_type]
|
||||
for attempt in range(2): # /object_info occasionally drops the connection; one retry is enough
|
||||
try:
|
||||
async with sess.get(f"{base}/object_info/{quote(class_type, safe='')}") as r:
|
||||
if r.status == 200:
|
||||
info = await r.json(content_type=None)
|
||||
flag = bool((info.get(class_type) or {}).get("api_node"))
|
||||
_api_node_cache[class_type] = flag
|
||||
return flag
|
||||
break
|
||||
except Exception:
|
||||
if attempt == 1:
|
||||
logger.warning("object_info lookup failed for %s", class_type)
|
||||
return False
|
||||
|
||||
|
||||
def setup_routes(app: web.Application):
|
||||
app.router.add_get("/api/wfm/partner/status", handle_status)
|
||||
app.router.add_post("/api/wfm/partner/prompt", handle_prompt)
|
||||
|
||||
|
||||
async def handle_status(request: web.Request) -> web.Response:
|
||||
"""GET /api/wfm/partner/status - whether a Comfy API key is configured (the key itself is never returned)."""
|
||||
return web.json_response({"configured": _get_comfy_key() is not None})
|
||||
|
||||
|
||||
async def handle_prompt(request: web.Request) -> web.Response:
|
||||
"""POST /api/wfm/partner/prompt - Relay a /prompt request to this ComfyUI, adding the Comfy API key
|
||||
to ``extra_data`` when the prompt contains an API node. The response is passed through unchanged."""
|
||||
try:
|
||||
body = await request.json()
|
||||
except Exception:
|
||||
return web.json_response({"error": {"message": "invalid JSON body"}}, status=400)
|
||||
prompt = body.get("prompt")
|
||||
if not isinstance(prompt, dict):
|
||||
return web.json_response({"error": {"message": "prompt is required"}}, status=400)
|
||||
|
||||
base = _local_base_url()
|
||||
key = _get_comfy_key()
|
||||
try:
|
||||
async with aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(total=120, connect=10)) as sess:
|
||||
if key:
|
||||
extra = body.get("extra_data")
|
||||
extra = extra if isinstance(extra, dict) else {}
|
||||
already = extra.get("auth_token_comfy_org") or extra.get("api_key_comfy_org")
|
||||
if not already:
|
||||
classes = {n.get("class_type") for n in prompt.values() if isinstance(n, dict) and n.get("class_type")}
|
||||
for cls in classes:
|
||||
if await _is_api_node(sess, base, cls):
|
||||
extra["api_key_comfy_org"] = key
|
||||
break
|
||||
body["extra_data"] = extra
|
||||
async with sess.post(f"{base}/prompt", json=body) as r:
|
||||
data = await r.read()
|
||||
return web.Response(status=r.status, body=data, content_type="application/json")
|
||||
except Exception as e:
|
||||
logger.error("partner prompt relay failed: %s", e)
|
||||
return web.json_response({"error": {"message": f"relay failed: {e}"}}, status=502)
|
||||
@@ -99,12 +99,13 @@ class WorkflowStudio:
|
||||
app.router.add_get("/wfm", serve_index_page)
|
||||
|
||||
# API routes
|
||||
from .routes import workflow_routes, settings_routes, ollama_routes, unsloth_routes, eagle_routes, nodes_routes, prompts_routes, models_routes, gallery_routes, wildcard_routes, tagger_routes, gmic_routes, skill_routes, lab_routes, video_routes, vram_routes
|
||||
from .routes import workflow_routes, settings_routes, ollama_routes, unsloth_routes, eagle_routes, nodes_routes, prompts_routes, models_routes, gallery_routes, wildcard_routes, tagger_routes, gmic_routes, skill_routes, lab_routes, video_routes, vram_routes, partner_routes
|
||||
|
||||
workflow_routes.setup_routes(app)
|
||||
settings_routes.setup_routes(app)
|
||||
ollama_routes.setup_routes(app)
|
||||
unsloth_routes.setup_routes(app)
|
||||
partner_routes.setup_routes(app)
|
||||
eagle_routes.setup_routes(app)
|
||||
nodes_routes.setup_routes(app)
|
||||
prompts_routes.setup_routes(app)
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
[project]
|
||||
name = "comfyui-workflow-studio"
|
||||
description = "A comprehensive workflow, asset management, and generation UI plugin for ComfyUI. Manage workflows, models, images, and prompts; batch generation and Image Feeder in the GenerateUI tab; library side panel with canvas drag & drop and AI tools."
|
||||
version = "0.8.2"
|
||||
version = "0.8.7"
|
||||
license = { file = "LICENSE" }
|
||||
requires-python = ">= 3.10"
|
||||
dependencies = ["jinja2"]
|
||||
|
||||
+3
-1
@@ -492,6 +492,7 @@ function applyI18nToHtml() {
|
||||
"wfm-help-gen-29": "helpGen29",
|
||||
"wfm-help-gen-30": "helpGen30",
|
||||
"wfm-help-gen-31": "helpGen31",
|
||||
"wfm-help-gen-32": "helpGen32",
|
||||
"wfm-help-feeder-title": "helpFeederTitle",
|
||||
"wfm-help-feeder-desc": "helpFeederDesc",
|
||||
"wfm-help-feeder-imgloop-title": "helpFeederImgloopTitle",
|
||||
@@ -685,7 +686,7 @@ function applyI18nToHtml() {
|
||||
"wfm-help-trouble-3": "helpTrouble3", "wfm-help-trouble-4": "helpTrouble4",
|
||||
"wfm-help-trouble-5": "helpTrouble5", "wfm-help-trouble-6": "helpTrouble6",
|
||||
"wfm-help-trouble-7": "helpTrouble7", "wfm-help-trouble-8": "helpTrouble8",
|
||||
"wfm-help-trouble-9": "helpTrouble9",
|
||||
"wfm-help-trouble-9": "helpTrouble9", "wfm-help-trouble-10": "helpTrouble10", "wfm-help-trouble-11": "helpTrouble11", "wfm-help-trouble-12": "helpTrouble12",
|
||||
"wfm-help-support-title": "helpSupportTitle",
|
||||
"wfm-help-support-desc": "helpSupportDesc",
|
||||
"wfm-help-github-desc": "helpGithubDesc",
|
||||
@@ -746,6 +747,7 @@ function applyI18nToHtml() {
|
||||
"wfm-help-trouble-card-connection-title": "helpTroubleCardConnection",
|
||||
"wfm-help-trouble-card-workflow-title": "helpTroubleCardWorkflow",
|
||||
"wfm-help-trouble-card-tagger-title": "helpTroubleCardTagger",
|
||||
"wfm-help-trouble-card-semantic-title": "helpTroubleCardSemantic",
|
||||
"wfm-help-video-title": "helpVideoTitle",
|
||||
"wfm-help-video-desc": "helpVideoDesc",
|
||||
"wfm-help-video-1": "helpVideo1", "wfm-help-video-2": "helpVideo2",
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
import { prepareVramForGeneration } from "./vram-prepare.js";
|
||||
import { t } from "./i18n.js";
|
||||
|
||||
function _uuid() {
|
||||
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
|
||||
@@ -194,6 +195,21 @@ export const comfyUI = {
|
||||
return this._fetchModelList(["KSampler"], "scheduler");
|
||||
},
|
||||
|
||||
// パートナー(API)ノード(Nano Banana等)は /prompt の extra_data にComfyの認証情報が必要。ComfyUI画面は
|
||||
// ログイン情報を自動で付けるが、本アプリの直接fetchは付けないため、サーバー側の COMFY_API_KEY(.env) が
|
||||
// 設定されていれば WFSサーバー経由で投入してキーを付与する(キーはブラウザへ出さない)。
|
||||
async isPartnerKeyConfigured() {
|
||||
const now = Date.now();
|
||||
if (this._partnerKey && now - this._partnerKey.at < 60000) return this._partnerKey.value;
|
||||
let value = false;
|
||||
try {
|
||||
const res = await fetch("/api/wfm/partner/status");
|
||||
if (res.ok) value = !!(await res.json()).configured;
|
||||
} catch { /* 無視 */ }
|
||||
this._partnerKey = { value, at: now };
|
||||
return value;
|
||||
},
|
||||
|
||||
// Generation
|
||||
async queuePrompt(workflow, extraData = null) {
|
||||
// Settings tab "VRAM Management": unload Ollama models to free VRAM (no-op when off, never throws)
|
||||
@@ -203,7 +219,10 @@ export const comfyUI = {
|
||||
client_id: this.clientId,
|
||||
};
|
||||
if (extraData) body.extra_data = extraData;
|
||||
const res = await fetch(`${this.baseUrl}/prompt`, {
|
||||
// 接続先が同一オリジン(このComfyUI)のときだけ中継を使う(別サーバーへキーを送らない)
|
||||
const sameOrigin = !this.baseUrl || this.baseUrl === location.origin;
|
||||
const viaProxy = sameOrigin && await this.isPartnerKeyConfigured();
|
||||
const res = await fetch(viaProxy ? "/api/wfm/partner/prompt" : `${this.baseUrl}/prompt`, {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify(body),
|
||||
@@ -251,7 +270,10 @@ export const comfyUI = {
|
||||
}
|
||||
}
|
||||
if (msg.type === "execution_error" && msg.data?.prompt_id === promptId) {
|
||||
finish(false, new Error(msg.data.exception_message || "Execution error"));
|
||||
let message = msg.data.exception_message || "Execution error";
|
||||
// パートナー(API)ノードの認証エラーには、設定方法を案内する
|
||||
if (/Unauthorized|login first/i.test(message)) message = `${message.trim()} ${t("partnerAuthHint")}`;
|
||||
finish(false, new Error(message));
|
||||
}
|
||||
if (msg.type === "execution_interrupted" && msg.data?.prompt_id === promptId) {
|
||||
finish(false, new Error("Execution interrupted"));
|
||||
@@ -312,18 +334,43 @@ export const comfyUI = {
|
||||
}
|
||||
},
|
||||
|
||||
// First literal seed/noise_seed value in an API-format workflow (null if none).
|
||||
// Linked inputs (arrays) are skipped.
|
||||
getWorkflowSeed(workflow) {
|
||||
for (const node of Object.values(workflow)) {
|
||||
if (!node?.inputs) continue;
|
||||
for (const key of ["seed", "noise_seed"]) {
|
||||
const v = node.inputs[key];
|
||||
if (typeof v === "number" && v >= 0) return v;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
},
|
||||
|
||||
// High-level generate
|
||||
async generate(workflow, options = {}) {
|
||||
const { seedMode = "random", seedValue = -1, onProgress, onComplete, onError, timeoutMs } = options;
|
||||
|
||||
this.generating = true;
|
||||
try {
|
||||
// Callers pass a shallow copy ({ ...workflow }) whose node objects are shared with
|
||||
// currentWorkflow; clone so seed overrides don't leak back into the loaded
|
||||
// workflow (otherwise "workflow" mode would reuse the last random seed).
|
||||
workflow = structuredClone(workflow);
|
||||
// Apply seed
|
||||
let seed = seedValue;
|
||||
if (seedMode === "random" || seed < 0) {
|
||||
seed = Math.floor(Math.random() * Number.MAX_SAFE_INTEGER);
|
||||
if (seedMode === "workflow") {
|
||||
// Use the workflow's own seed as-is (no override). Fall back to the
|
||||
// panel value only if the workflow has no seed input at all.
|
||||
const wfSeed = this.getWorkflowSeed(workflow);
|
||||
if (wfSeed != null) seed = wfSeed;
|
||||
else this.applySeedToWorkflow(workflow, seed < 0 ? Math.floor(Math.random() * Number.MAX_SAFE_INTEGER) : seed);
|
||||
} else {
|
||||
if (seedMode === "random" || seed < 0) {
|
||||
seed = Math.floor(Math.random() * Number.MAX_SAFE_INTEGER);
|
||||
}
|
||||
this.applySeedToWorkflow(workflow, seed);
|
||||
}
|
||||
this.applySeedToWorkflow(workflow, seed);
|
||||
|
||||
// Connect WebSocket
|
||||
const wsOk = await this.connectWebSocket();
|
||||
|
||||
@@ -198,7 +198,59 @@ function _buildLoraManagerSyntax(stackModels) {
|
||||
.join(" ");
|
||||
}
|
||||
|
||||
// ── Native LoRA stack nodes (LoadLoraModel / LoadLoraTextEncoder) ─────────
|
||||
// DynamicGroup rows are flat API keys "loras.<row>.lora_name|strength|enabled" (max 20,
|
||||
// min 1). The Model node takes the model strength and the Text Encoder node the clip
|
||||
// strength; every stack node in the workflow is written together so a single Apply /
|
||||
// Bypass keeps the pair consistent.
|
||||
const _LORA_STACK_STRENGTH = { LoadLoraModel: "strModel", LoadLoraTextEncoder: "strClip" };
|
||||
|
||||
function _isLoraStackNode(wfNode) {
|
||||
return !!wfNode && Object.hasOwn(_LORA_STACK_STRENGTH, wfNode.class_type);
|
||||
}
|
||||
|
||||
function _readLoraStackRows(inputs) {
|
||||
const rows = new Map();
|
||||
for (const [k, v] of Object.entries(inputs || {})) {
|
||||
const m = /^loras\.(\d+)\.(lora_name|strength|enabled)$/.exec(k);
|
||||
if (!m) continue;
|
||||
if (!rows.has(+m[1])) rows.set(+m[1], {});
|
||||
rows.get(+m[1])[m[2]] = v;
|
||||
}
|
||||
return [...rows.entries()].sort((a, b) => a[0] - b[0]).map(([, r]) => r);
|
||||
}
|
||||
|
||||
function _writeLoraStackRows(wfNode, rows) {
|
||||
for (const k of Object.keys(wfNode.inputs)) if (k.startsWith("loras.")) delete wfNode.inputs[k];
|
||||
rows.slice(0, 20).forEach((r, i) => {
|
||||
wfNode.inputs[`loras.${i}.lora_name`] = r.lora_name;
|
||||
wfNode.inputs[`loras.${i}.strength`] = r.strength;
|
||||
wfNode.inputs[`loras.${i}.enabled`] = r.enabled;
|
||||
});
|
||||
}
|
||||
|
||||
// items: [{ name, strModel?, strClip?, enabled? }] — omitted strengths keep the node's
|
||||
// first existing row (default 1). Writes every stack node in `wf`.
|
||||
function _applyLoraStack(items, wf = comfyUI.currentWorkflow) {
|
||||
if (!items.length) return;
|
||||
for (const wfNode of Object.values(wf || {})) {
|
||||
if (!_isLoraStackNode(wfNode)) continue;
|
||||
const key = _LORA_STACK_STRENGTH[wfNode.class_type];
|
||||
const prev = _readLoraStackRows(wfNode.inputs)[0]?.strength;
|
||||
wfNode.inputs ??= {};
|
||||
_writeLoraStackRows(wfNode, items.slice(0, 20).map((it) => ({
|
||||
lora_name: it.name,
|
||||
strength: it[key] ?? (typeof prev === "number" ? prev : 1),
|
||||
enabled: it.enabled !== false,
|
||||
})));
|
||||
}
|
||||
}
|
||||
|
||||
function _applyLoraToNode(nodeId, loraPath, strModel, strClip, isLoraManager) {
|
||||
if (_isLoraStackNode(comfyUI.currentWorkflow[nodeId])) {
|
||||
_applyLoraStack([{ name: comfyEditor.resolveLoraName(loraPath), strModel, strClip }]);
|
||||
return;
|
||||
}
|
||||
if (isLoraManager) {
|
||||
const stem = _loraBasename(loraPath);
|
||||
comfyUI.currentWorkflow[nodeId].inputs.loras = {
|
||||
@@ -463,6 +515,10 @@ export const comfyEditor = {
|
||||
return found || name;
|
||||
},
|
||||
|
||||
// Native LoRA stack nodes (LoadLoraModel / LoadLoraTextEncoder) — see _applyLoraStack.
|
||||
isLoraStackNode: _isLoraStackNode,
|
||||
applyLoraStack: _applyLoraStack,
|
||||
|
||||
renderAll(analysis, workflow, opts = {}) {
|
||||
this.renderPromptTab(analysis, "wfm-gen-prompt-fields");
|
||||
this.renderImageTab(analysis, "wfm-gen-image-fields");
|
||||
@@ -776,7 +832,11 @@ export const comfyEditor = {
|
||||
// Restore whatever was set before bypassing
|
||||
const snap = _loraBypassSnapshot[nodeId];
|
||||
if (snap) {
|
||||
if (isLoraManager) {
|
||||
if (snap.stackRows) {
|
||||
for (const [id, rows] of Object.entries(snap.stackRows)) {
|
||||
if (comfyUI.currentWorkflow?.[id]) _writeLoraStackRows(comfyUI.currentWorkflow[id], JSON.parse(JSON.stringify(rows)));
|
||||
}
|
||||
} else if (isLoraManager) {
|
||||
wfNode.inputs.loras = { __value__: JSON.parse(JSON.stringify(snap.loras || [])) };
|
||||
wfNode.inputs.text = snap.text ?? "";
|
||||
} else {
|
||||
@@ -791,7 +851,16 @@ export const comfyEditor = {
|
||||
// Snapshot current values, then zero the strength (LoraManager: every
|
||||
// entry in its loras list, keeping the list itself intact so un-bypassing
|
||||
// restores the exact same Stack — not just a single-LoRA fallback).
|
||||
if (isLoraManager) {
|
||||
if (_isLoraStackNode(wfNode)) {
|
||||
// Native stack nodes: snapshot every stack node's rows, then zero each strength
|
||||
const stackRows = {};
|
||||
for (const [id, n] of Object.entries(comfyUI.currentWorkflow)) {
|
||||
if (!_isLoraStackNode(n)) continue;
|
||||
stackRows[id] = _readLoraStackRows(n.inputs);
|
||||
_writeLoraStackRows(n, stackRows[id].map((r) => ({ ...r, strength: 0 })));
|
||||
}
|
||||
_loraBypassSnapshot[nodeId] = { stackRows };
|
||||
} else if (isLoraManager) {
|
||||
const loras = Array.isArray(wfNode.inputs.loras?.__value__) ? wfNode.inputs.loras.__value__ : [];
|
||||
_loraBypassSnapshot[nodeId] = { loras: JSON.parse(JSON.stringify(loras)), text: wfNode.inputs.text ?? "" };
|
||||
wfNode.inputs.loras = { __value__: loras.map((l) => ({ ...l, strength: 0, clipStrength: 0 })) };
|
||||
@@ -862,7 +931,9 @@ export const comfyEditor = {
|
||||
const _firstLoraNode = loraNodes[0];
|
||||
if (_firstLoraNode && comfyUI.currentWorkflow?.[_firstLoraNode.id]) {
|
||||
const _wfNode = comfyUI.currentWorkflow[_firstLoraNode.id];
|
||||
if (!_firstLoraNode.is_lora_manager) {
|
||||
if (_firstLoraNode.is_lora_stack) {
|
||||
currentVal = _readLoraStackRows(_wfNode.inputs)[0]?.lora_name || currentVal;
|
||||
} else if (!_firstLoraNode.is_lora_manager) {
|
||||
currentVal = _wfNode.inputs?.lora_name || currentVal;
|
||||
} else {
|
||||
// LoraManager: loras.__value__[0].nameからフルパスを復元
|
||||
@@ -1294,6 +1365,14 @@ export const comfyEditor = {
|
||||
});
|
||||
comfyUI.currentWorkflow[nodeId].inputs.loras = { __value__: loraValue };
|
||||
comfyUI.currentWorkflow[nodeId].inputs.text = _buildLoraManagerSyntax(stackModels);
|
||||
} else if (node?.is_lora_stack) {
|
||||
// Native stack nodes take the whole Stack group as rows (max 20)
|
||||
_applyLoraStack(stackModels.map((m) => ({
|
||||
name: comfyEditor.resolveLoraName(m),
|
||||
strModel: _stackStrengths[m]?.m ?? 1.0,
|
||||
strClip: _stackStrengths[m]?.c ?? 1.0,
|
||||
enabled: _stackActive[m] !== false,
|
||||
})));
|
||||
} else {
|
||||
const first = stackModels[0];
|
||||
if (first) {
|
||||
|
||||
@@ -172,6 +172,11 @@ function _getWidgetInputTypes(objectInfo, classType) {
|
||||
* presence_penalty under optional — all 7 still occupy a widgets_values slot). Dropping the
|
||||
* optional ones here under-counts how many slots the combo actually consumed, misaligning
|
||||
* every widget declared after it in the node's schema.
|
||||
*
|
||||
* Only sub-fields that are actually widgets count: a sub-field can also be a link socket (e.g. the
|
||||
* Nano Banana 2.1 node's "images" Autogrow group and its "files" GEMINI_INPUT_FILES input), which the
|
||||
* frontend does NOT serialize into widgets_values — counting those would shift every value after
|
||||
* them (seed read as "IMAGE", the system prompt landing in response_modalities, ...).
|
||||
*/
|
||||
function _getDynamicComboSubNames(objectInfo, classType, widgetName, selectedKey) {
|
||||
const info = objectInfo[classType];
|
||||
@@ -179,9 +184,13 @@ function _getDynamicComboSubNames(objectInfo, classType, widgetName, selectedKey
|
||||
const options = spec?.[1]?.options;
|
||||
if (!Array.isArray(options)) return [];
|
||||
const opt = options.find((o) => o.key === selectedKey) || options[0];
|
||||
const isWidget = ([, sub]) => {
|
||||
if (Array.isArray(sub) && sub[1]?.forceInput) return false;
|
||||
return !!_resolveWidgetType(Array.isArray(sub) ? sub[0] : sub, sub);
|
||||
};
|
||||
return [
|
||||
...Object.keys(opt?.inputs?.required || {}),
|
||||
...Object.keys(opt?.inputs?.optional || {}),
|
||||
...Object.entries(opt?.inputs?.required || {}).filter(isWidget).map(([k]) => k),
|
||||
...Object.entries(opt?.inputs?.optional || {}).filter(isWidget).map(([k]) => k),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -192,6 +201,14 @@ function _getDynamicComboSubNames(objectInfo, classType, widgetName, selectedKey
|
||||
*/
|
||||
const _CONTROL_AFTER_GENERATE = new Set(["fixed", "increment", "decrement", "randomize"]);
|
||||
|
||||
// True when the widget's object_info spec declares control_after_generate (seed-style INT widgets):
|
||||
// the frontend then serializes one extra "randomize"/"fixed"/... slot right after the widget's value.
|
||||
function _hasControlAfterGenerate(objectInfo, classType, widgetName) {
|
||||
const info = objectInfo[classType]?.input;
|
||||
const spec = info?.required?.[widgetName] || info?.optional?.[widgetName];
|
||||
return !!(Array.isArray(spec) && spec[1]?.control_after_generate);
|
||||
}
|
||||
|
||||
function _isExtraWidgetValue(val, expectedType) {
|
||||
if (expectedType === "INT" || expectedType === "FLOAT") {
|
||||
// If we expect a number but got a string like "fixed", it's a control widget
|
||||
@@ -441,6 +458,9 @@ function _flattenSubgraphs(workflow, objectInfo) {
|
||||
// from ports that truly carry a link end-to-end (e.g. width/height wired to a
|
||||
// ResolutionSelector node).
|
||||
const redirectedTargets = new Set();
|
||||
// Extra links for the 2nd+ fan-out targets of a port that has a real outer link
|
||||
// (collected here and appended after the loop so wf.links isn't mutated mid-iteration).
|
||||
const fanOutLinks = [];
|
||||
for (const link of wf.links) {
|
||||
if (link[3] === node.id) {
|
||||
const dstSlot = link[4];
|
||||
@@ -458,6 +478,13 @@ function _flattenSubgraphs(workflow, objectInfo) {
|
||||
link[3] = target.targetNodeId;
|
||||
link[4] = target.targetSlot;
|
||||
redirectedTargets.add(`${target.targetNodeId}:${target.targetSlot}`);
|
||||
// Same real outer link feeding further internal targets (e.g. Qwen Image 2.1
|
||||
// Edit: images.image_1 -> TextEncodeQwenImage21 AND the prompt-enhancer's
|
||||
// BatchImagesNode) — duplicate it for each remaining target.
|
||||
for (const extra of (inputPortTargets[portIdx] || []).slice(1)) {
|
||||
fanOutLinks.push([0, link[1], link[2], extra.targetNodeId, extra.targetSlot, link[5]]);
|
||||
redirectedTargets.add(`${extra.targetNodeId}:${extra.targetSlot}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (link[1] === node.id) {
|
||||
@@ -470,6 +497,11 @@ function _flattenSubgraphs(workflow, objectInfo) {
|
||||
}
|
||||
}
|
||||
|
||||
for (const l of fanOutLinks) {
|
||||
l[0] = ++maxLinkId;
|
||||
wf.links.push(l);
|
||||
}
|
||||
|
||||
// === Add internal nodes (remapped IDs) ===
|
||||
const remappedByOrigId = {};
|
||||
for (const iNode of sgDef.nodes) {
|
||||
@@ -764,6 +796,16 @@ export const comfyWorkflow = {
|
||||
if (wIdx >= widgets.length) break;
|
||||
const name = widgetNames[nIdx];
|
||||
const expectedType = widgetTypes[nIdx];
|
||||
// A control_after_generate widget (seed etc.) is followed by a frontend-only
|
||||
// "randomize"/"fixed"/... slot even when the next widget is not numeric (e.g.
|
||||
// Nano Banana 2.1: seed -> response_modalities); the type heuristic below only
|
||||
// catches it when the next widget happens to be INT/FLOAT.
|
||||
if (nIdx > 0 && !linkedInputNames.has(widgetNames[nIdx - 1])
|
||||
&& _hasControlAfterGenerate(objectInfo, node.type, widgetNames[nIdx - 1])
|
||||
&& _CONTROL_AFTER_GENERATE.has(widgets[wIdx])) {
|
||||
wIdx++;
|
||||
if (wIdx >= widgets.length) break;
|
||||
}
|
||||
// Skip if this input is already linked
|
||||
if (linkedInputNames.has(name)) {
|
||||
if (!linkedSlotNames.has(name)) {
|
||||
@@ -819,6 +861,14 @@ export const comfyWorkflow = {
|
||||
const spec = allInputDefs[name];
|
||||
if (spec) {
|
||||
const choices = Array.isArray(spec[0]) ? spec[0] : null;
|
||||
// Template saved the bare file name while this install lists it under a
|
||||
// sub-folder (or the reverse, or with the other path separator): prefer the
|
||||
// choice whose file name matches over an unrelated choices[0].
|
||||
if (choices && choices.length > 0 && typeof val === "string" && !choices.includes(val)) {
|
||||
const base = (x) => String(x).split(/[\\/]/).pop();
|
||||
const sameFile = choices.filter((c) => typeof c === "string" && base(c) === base(val));
|
||||
if (sameFile.length === 1) val = sameFile[0];
|
||||
}
|
||||
if (!opts.readOnly && choices && choices.length > 0 && !choices.includes(val)) {
|
||||
if (name === "ckpt_name") {
|
||||
_lastCheckpointSubstitutions.push({
|
||||
@@ -879,6 +929,7 @@ export const comfyWorkflow = {
|
||||
_meta: { title: node.title || node.type },
|
||||
};
|
||||
}
|
||||
_unifyPromptEnhancerText(api);
|
||||
return api;
|
||||
},
|
||||
|
||||
@@ -1109,6 +1160,13 @@ export const comfyWorkflow = {
|
||||
if (isPos && Array.isArray(inputs.positive)) samplerPositiveRef[inputs.positive[0]] = true;
|
||||
if (isNeg && Array.isArray(inputs.negative)) samplerNegativeRef[inputs.negative[0]] = true;
|
||||
}
|
||||
// ReferenceMultiLatent (Flux.3 Klein edit) — encodes reference images into the
|
||||
// conditioning and outputs positive/negative/empty_latent: separate positive/negative
|
||||
// inputs feeding separate outputs, so each role routes only to its own input.
|
||||
if (ct === "ReferenceMultiLatent") {
|
||||
if (isPos && Array.isArray(inputs.positive)) samplerPositiveRef[inputs.positive[0]] = true;
|
||||
if (isNeg && Array.isArray(inputs.negative)) samplerNegativeRef[inputs.negative[0]] = true;
|
||||
}
|
||||
// LTXVConditioning (LTX-2.5) — same shape as InstructPixToPixConditioning:
|
||||
// separate positive/negative inputs feeding separate outputs consumed by
|
||||
// LTXVDualCFGGuider, so each role must route only to its own input.
|
||||
@@ -1141,6 +1199,13 @@ export const comfyWorkflow = {
|
||||
if (isNeg) samplerNegativeRef[tv[0]] = true;
|
||||
}
|
||||
}
|
||||
// TextEncodeQwenImage21 — fixed roles (the node feeds both guider inputs): a linked
|
||||
// "prompt" (prompt-enhancer switch chain, Qwen Image 2.1 Turbo) is the positive text,
|
||||
// a linked "negative_prompt" the negative.
|
||||
if (ct === "TextEncodeQwenImage21") {
|
||||
if (Array.isArray(inputs.prompt)) samplerPositiveRef[inputs.prompt[0]] = true;
|
||||
if (Array.isArray(inputs.negative_prompt)) samplerNegativeRef[inputs.negative_prompt[0]] = true;
|
||||
}
|
||||
// PreviewAny — generic value tap/relay used mid-chain in prompt-enhancement wiring
|
||||
// (e.g. Krea-2's "Refine Prompt?" switch output tap); pass role through its
|
||||
// "source" input unchanged.
|
||||
@@ -1165,6 +1230,19 @@ export const comfyWorkflow = {
|
||||
}
|
||||
}
|
||||
|
||||
// ReferenceMultiLatent outputs its own empty latent sized from the reference image, so a
|
||||
// template's leftover EmptyFlux2LatentImage that nothing consumes does nothing — don't offer
|
||||
// its width/height in Settings.
|
||||
const hasRefMultiLatent = Object.values(workflow).some((n) => n?.class_type === "ReferenceMultiLatent");
|
||||
const referencedIds = new Set();
|
||||
if (hasRefMultiLatent) {
|
||||
for (const n of Object.values(workflow)) {
|
||||
for (const v of Object.values(n?.inputs || {})) {
|
||||
if (Array.isArray(v) && v.length === 2) referencedIds.add(String(v[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// === Pass 2: Main analysis ===
|
||||
for (const [id, node] of Object.entries(workflow)) {
|
||||
if (!node?.class_type) continue;
|
||||
@@ -1435,6 +1513,16 @@ export const comfyWorkflow = {
|
||||
}
|
||||
}
|
||||
|
||||
// ComfySwitchNode holding the raw prompt as an inline literal (on_false) — the
|
||||
// prompt-enhancer toggle of Qwen Image 2.1 Turbo, where the subgraph's prompt widget
|
||||
// lands directly on the switch instead of a PrimitiveStringMultiline.
|
||||
if (ct === "ComfySwitchNode" && typeof inputs.on_false === "string" && (isPos || isNeg)) {
|
||||
result.prompt_nodes.push({
|
||||
id, type: ct, title, role: getRole(),
|
||||
text: inputs.on_false, textKey: "on_false",
|
||||
});
|
||||
}
|
||||
|
||||
// PrimitiveStringMultiline / PrimitiveString — when feeding a prompt node
|
||||
if ((ct === "PrimitiveStringMultiline" || ct === "PrimitiveString") && (isPos || isNeg)) {
|
||||
result.prompt_nodes.push({
|
||||
@@ -1457,6 +1545,16 @@ export const comfyWorkflow = {
|
||||
});
|
||||
}
|
||||
|
||||
// Gemini image nodes (Nano Banana etc., partner API nodes) — like the video all-in-one nodes above
|
||||
// they hold their own "prompt" widget (no negative counterpart; the node's reference images
|
||||
// arrive through LoadImage nodes, which GenerateUI's Image tab already handles generically).
|
||||
if (/^Gemini(Image|NanoBanana)/.test(ct) && typeof inputs.prompt === "string") {
|
||||
result.prompt_nodes.push({
|
||||
id, type: ct, title, role: "positive",
|
||||
text: inputs.prompt, textKey: "prompt",
|
||||
});
|
||||
}
|
||||
|
||||
// --- Latent nodes ---
|
||||
// EmptyFlux2LatentImage (Flux.2 templates) often has width/height wired to a
|
||||
// GetImageSize node (auto-follows the reference image) rather than a direct number —
|
||||
@@ -1466,12 +1564,14 @@ export const comfyWorkflow = {
|
||||
// has the same width/height/batch_size shape plus a "layers" count, left as-is.
|
||||
if (ct === "EmptyLatentImage" || ct === "EmptySD3LatentImage" || ct === "EmptyFlux2LatentImage"
|
||||
|| ct === "EmptyQwenImageLayeredLatentImage") {
|
||||
result.latent_nodes.push({
|
||||
id, type: ct, title,
|
||||
width: typeof inputs.width === "number" ? inputs.width : undefined,
|
||||
height: typeof inputs.height === "number" ? inputs.height : undefined,
|
||||
batch_size: inputs.batch_size,
|
||||
});
|
||||
if (!hasRefMultiLatent || referencedIds.has(String(id))) {
|
||||
result.latent_nodes.push({
|
||||
id, type: ct, title,
|
||||
width: typeof inputs.width === "number" ? inputs.width : undefined,
|
||||
height: typeof inputs.height === "number" ? inputs.height : undefined,
|
||||
batch_size: inputs.batch_size,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Video latent nodes (Wan2.2's EmptyHunyuanLatentVideo, LTX-2.5's
|
||||
@@ -1541,6 +1641,29 @@ export const comfyWorkflow = {
|
||||
}
|
||||
}
|
||||
|
||||
// Native Load LoRA (Model / Text Encoder) — DynamicGroup rows arrive as flat keys
|
||||
// "loras.<row>.lora_name|strength|enabled". One entry per node (first enabled row
|
||||
// is the representative); editing goes through comfyEditor.applyLoraStack.
|
||||
if (ct === "LoadLoraModel" || ct === "LoadLoraTextEncoder") {
|
||||
const isModel = ct === "LoadLoraModel";
|
||||
const rows = new Map();
|
||||
for (const [k, v] of Object.entries(inputs)) {
|
||||
const m = /^loras\.(\d+)\.(lora_name|strength|enabled)$/.exec(k);
|
||||
if (!m) continue;
|
||||
if (!rows.has(+m[1])) rows.set(+m[1], {});
|
||||
rows.get(+m[1])[m[2]] = v;
|
||||
}
|
||||
const first = [...rows.entries()].sort((a, b) => a[0] - b[0]).map(([, r]) => r)
|
||||
.find((r) => r.enabled !== false && typeof r.lora_name === "string");
|
||||
const s = typeof first?.strength === "number" ? first.strength : 1;
|
||||
result.lora_nodes.push({
|
||||
id, type: ct, title, is_lora_stack: true,
|
||||
lora_name: first?.lora_name,
|
||||
strength_model: isModel ? s : 1,
|
||||
strength_clip: isModel ? 1 : s,
|
||||
});
|
||||
}
|
||||
|
||||
// Lora Loader (LoraManager) — loras stored in inputs.loras.__value__
|
||||
if (ct === "Lora Loader (LoraManager)") {
|
||||
result.lora_nodes.push({ id, type: ct, title, is_lora_manager: true });
|
||||
@@ -1698,6 +1821,30 @@ export const comfyWorkflow = {
|
||||
};
|
||||
|
||||
/** Check if a node is display-only (no connected inputs or outputs) */
|
||||
/**
|
||||
* Prompt-enhancer toggle (Qwen Image 2.1 Turbo): the template's subgraph "prompt" port fans out to
|
||||
* both a ComfySwitchNode.on_false (raw text) and TextGenerate.prompt (text fed to the enhancer,
|
||||
* wired to on_true). After flattening these are two independent literals, so editing one in the UI
|
||||
* would leave the other stale. Route both through one shared PrimitiveStringMultiline instead.
|
||||
*/
|
||||
function _unifyPromptEnhancerText(api) {
|
||||
for (const [swId, sw] of Object.entries(api)) {
|
||||
if (sw.class_type !== "ComfySwitchNode" || typeof sw.inputs?.on_false !== "string") continue;
|
||||
const tgRef = sw.inputs.on_true;
|
||||
if (!Array.isArray(tgRef)) continue;
|
||||
const tg = api[String(tgRef[0])];
|
||||
if (tg?.class_type !== "TextGenerate" || tg.inputs.prompt !== sw.inputs.on_false) continue;
|
||||
const primId = `${swId}:wfs_prompt`;
|
||||
api[primId] = {
|
||||
class_type: "PrimitiveStringMultiline",
|
||||
inputs: { value: sw.inputs.on_false },
|
||||
_meta: { title: "Prompt" },
|
||||
};
|
||||
sw.inputs.on_false = [primId, 0];
|
||||
tg.inputs.prompt = [primId, 0];
|
||||
}
|
||||
}
|
||||
|
||||
function _isDisplayOnlyNode(node) {
|
||||
const hasConnectedOutput = node.outputs?.some(o => o.links && o.links.length > 0);
|
||||
const hasConnectedInput = node.inputs?.some(i => i.link != null);
|
||||
|
||||
@@ -1082,6 +1082,9 @@ async function loadImageDetail(img) {
|
||||
apiFetch(API.imageWorkflow(img.path)),
|
||||
]);
|
||||
state.embeddedWorkflow = wfRes.has_workflow ? wfRes.workflow : null;
|
||||
// cc_nanobananaフォルダでも、ComfyUIネイティブノード経由(半自動マンガ・Auto等)の画像にはワークフロー/
|
||||
// プロンプトが埋め込まれているため、Promptタブを表示する(埋め込みの無いGemini API直叩きの画像だけ非表示のまま)
|
||||
if (state.embeddedWorkflow && isNanobananaFolderImage(img)) updatePromptTabVisibility(false);
|
||||
renderWorkflowJson(state.embeddedWorkflow);
|
||||
_updateCopyCanvasBtn();
|
||||
renderImagePromptSection(metaRes.image_prompt);
|
||||
|
||||
@@ -1889,6 +1889,9 @@ async function _runBatchGenerate() {
|
||||
__value__: [{ name: stem, strength: 1.0, active: true, expanded: false, clipStrength: 1.0, locked: false }],
|
||||
};
|
||||
comfyUI.currentWorkflow[node.id].inputs.text = `<lora:${stem}:1:1>`;
|
||||
} else if (node.is_lora_stack) {
|
||||
const actualName = loraNameMap?.get(loraName.replace(/\\/g, "/")) || loraName;
|
||||
comfyEditor.applyLoraStack([{ name: actualName }]);
|
||||
} else {
|
||||
const actualName = loraNameMap?.get(loraName.replace(/\\/g, "/")) || loraName;
|
||||
comfyUI.currentWorkflow[node.id].inputs.lora_name = actualName;
|
||||
|
||||
+33
-15
@@ -914,7 +914,7 @@ const LANGUAGES = {
|
||||
helpGen6: "Settings tab: KSampler and Latent Image side by side, each at 50% width",
|
||||
helpGen31: "LTX-2.5 and Wan2.2 video workflows also work when loaded as regular workflows in this tab (not just the dedicated Video tab): Positive/Negative Prompt detection follows LTX-2.5's LTXVDualCFGGuider / LTXVConditioning nodes to find the actual prompt text, and the Settings tab's Latent Image section recognizes Wan2.2's EmptyHunyuanLatentVideo and LTX-2.5's EmptyLTXVLatentVideo nodes (with an added Length (frames) field) instead of showing \"No EmptyLatentImage node found\"; generating from these workflows also gets the same extended timeout as MiniMax H3 video generations",
|
||||
helpGen7: "Raw JSON always visible in the right column of each tab — edit directly and Apply to reload the workflow; if the loaded workflow has Bypass or Mute nodes, a note listing them appears above the search bar (Bypass nodes are excluded with their wires reconnected around them; Mute nodes are excluded with no reconnection, matching ComfyUI itself); the search bar highlights matches and scrolls to them without moving the cursor into the editor, so typing right after a search can't accidentally overwrite the JSON — click into the editor first to actually edit",
|
||||
helpGen8: "Seed control: random, fixed, increment, decrement",
|
||||
helpGen8: "Seed control: random, fixed, increment, decrement, workflow (use the workflow's own seed as-is, without overriding it)",
|
||||
helpGen9: "Generate, progress display, stop, and view results",
|
||||
helpGen10: "Eagle integration: auto-save generated images to Eagle (SVG output supported too — both the standard SaveSVGNode and comfyui-tosvg's Save SVG String node)",
|
||||
helpGen11: "Batch tab — enable one batch type at a time by checking the checkbox in the Batch Queue column header; Generate then runs through all queued items sequentially with Pause/Resume and Stop controls",
|
||||
@@ -926,13 +926,15 @@ const LANGUAGES = {
|
||||
helpGen17: "Style batch: select styles from the Style tab in the left pane, enable the Style column in Batch Queue, then Generate — each selected style is applied in sequence to the positive and negative prompts; applied to workflow copies so the loaded workflow is not modified; style files are re-read on each page load from user/default/Workflow-Studio/style/*.json",
|
||||
helpGen18: "Alt+Click any Apply button (Positive Prompt / Checkpoint / KSampler) to Apply & Generate in one step — applies the parameter to the workflow then immediately queues a generation; only fires when the target node exists in the loaded workflow",
|
||||
helpGen19: "Lora batch: for each LoRA, its syntax (<lora:name:strength_model:strength_clip>) and CivitAI trained words are automatically appended to the Positive prompt — rebuilt from the original prompt each time, not accumulated; the prompt is automatically restored to its pre-batch state when the batch completes or is stopped; if a selected LoRA is not yet recognized by ComfyUI's model list, a warning toast is shown (Refresh or restart ComfyUI)",
|
||||
helpGen20: "Two ways LoRAs are attached: a chain of standard LoraLoader nodes (one LoRA per node — add more by chaining additional nodes) or a single Lora Loader (LoraManager) node (from the ComfyUI-Lora-Manager custom node pack) that holds a list of LoRAs internally, each with its own active/model-strength/clip-strength; the Single/Stack tabs below adapt automatically depending on which type the target node is",
|
||||
helpGen21: "Single tab: pick one LoRA + Str M/Str C, then Apply — for a Lora Manager node this replaces its entire internal LoRA list with just this one entry, discarding any others it had",
|
||||
helpGen20: "Three ways LoRAs are attached: a chain of standard LoraLoader nodes (one LoRA per node — add more by chaining additional nodes), a single Lora Loader (LoraManager) node (from the ComfyUI-Lora-Manager custom node pack) that holds a list of LoRAs internally, each with its own active/model-strength/clip-strength, or ComfyUI's native Load LoRA (Model) + Load LoRA (Text Encoder) node pair (v0.40+; each holds up to 20 rows of LoRA / strength / enabled — the Model node takes Str M, the Text Encoder node takes Str C, and Apply writes both nodes together; API-format workflows only for now, because ComfyUI frontend 1.55.17 cannot add rows to these nodes in its own graph editor); the Single/Stack tabs below adapt automatically depending on which type the target node is",
|
||||
partnerAuthHint: "(Partner API node authentication failed. Add COMFY_API_KEY=... — issued at platform.comfy.org — to the plugin's .env file and restart ComfyUI; or run the workflow from ComfyUI's own screen while logged in to Comfy.)",
|
||||
helpGen21: "Single tab: pick one LoRA + Str M/Str C, then Apply — for a Lora Manager node this replaces its entire internal LoRA list with just this one entry, discarding any others it had; the native Load LoRA nodes likewise have all their rows replaced by this single row",
|
||||
helpGen22: "Stack tab — Use Stack Group checkbox (shown only when a Lora Manager node exists in the workflow): OFF (the default whenever a workflow is loaded) shows and edits the LoRAs actually configured in the workflow's Lora Manager node itself; ON shows and edits the \"Stack\" group registered in the Models tab instead; switching either direction clears the node's LoRA list first, then loads it from the newly selected source; switching back to OFF restores exactly the LoRA list that was present when the workflow was loaded (captured as a snapshot at load time)",
|
||||
helpGen23: "Stack tab controls: each row has an active checkbox and Str M / Str C fields; the header \"Stack\" checkbox toggles all rows at once; the +/- step buttons adjust the strength of all currently active rows together; a \"Showing: LoRAs currently in workflow\" / \"Showing: registered Stack group\" label indicates which source is currently displayed; Apply writes the full list back to the target node and also appends LoRA syntax + CivitAI trigger words to the Positive prompt",
|
||||
helpGen24: "Caution for CLIP Text Encode edit+ (CLIPTextEncodeEditPlus) nodes: when a Lora Manager node's trigger_words output feeds this node's text1 input (RAW/EDIT/front/back modes combine text1 with the editable text_edit field), trigger words are already included automatically at generation time; clicking a LoRA Apply button or turning on Use Stack Group additionally writes LoRA syntax/trigger words into text_edit, duplicating them — leave Use Stack Group off and avoid the LoRA Apply buttons if you want the workflow's original prompt and LoRA composition to stay unmodified",
|
||||
helpGen29: "Bypass button (⛔, in the LoRA column header, next to Refresh Stack group): forces the target LoRA node's strength to 0 — strength_model/strength_clip for a standard LoraLoader, or every entry's strength/clipStrength for a Lora Manager node (its LoRA list is kept intact, not replaced) — without touching the actual ComfyUI node's mode; click again to restore the exact values that were there before toggling; targets whichever node Single/Stack Apply default to (the workflow's Lora Manager node if it has one, else the first LoRA node); clicking a Single or Stack Apply button clears the bypass state so it can't silently reassert itself on a later toggle",
|
||||
helpGen29: "Bypass button (⛔, in the LoRA column header, next to Refresh Stack group): forces the target LoRA node's strength to 0 — strength_model/strength_clip for a standard LoraLoader, every entry's strength/clipStrength for a Lora Manager node (its LoRA list is kept intact, not replaced), or every row's strength on both native Load LoRA nodes (Model and Text Encoder; rows kept) — without touching the actual ComfyUI node's mode; click again to restore the exact values that were there before toggling; targets whichever node Single/Stack Apply default to (the workflow's Lora Manager node if it has one, else the first LoRA node); clicking a Single or Stack Apply button clears the bypass state so it can't silently reassert itself on a later toggle",
|
||||
helpGen30: "The Save button (right end of the subtab bar) is hidden while the Batch or Lab subtab is active, since those work on workflow copies / their own Plan files rather than the currently loaded workflow; it reappears on Input/Model/Settings/Feeder",
|
||||
helpGen32: "Partner API nodes (Nano Banana / Gemini image nodes, etc.): GenerateUI can run workflows that contain ComfyUI's partner API nodes. These nodes need Comfy credentials in the /prompt request — ComfyUI's own screen adds them automatically, but a separate page cannot — so add COMFY_API_KEY=... (a Comfy API key issued at platform.comfy.org) to the plugin's .env file and restart ComfyUI. With the key set, GenerateUI sends the request through the plugin server, which adds the key only when the workflow contains a partner API node (the key never reaches the browser); usage is billed as Comfy credits. A Gemini image node's prompt appears in the Prompt tab, and its reference images go through LoadImage nodes in the Image tab. Sample: ws_nano_banana_2_1_t2i",
|
||||
helpFeederTitle: "GenerateUI Tab — Feeder subtab",
|
||||
helpFeederDesc: "Two modes switchable via the [Image Loop] / [Gallery] toggle at the top of the left pane.",
|
||||
helpFeederImgloopTitle: "Image Loop mode",
|
||||
@@ -1130,7 +1132,7 @@ const LANGUAGES = {
|
||||
helpSidepanel12: "⚙ Theme button (header): customize panel background, sub-header background, text, border, and secondary text colors — changes are saved to localStorage and applied on next open",
|
||||
helpSidepanel13: "I tab (Information): drop a ComfyUI PNG/WebP/MP4/JSON to inspect model, LoRA, and prompt metadata in the side panel — sub-tabs: model / lora / Prompts; supports UnetLoaderGGUF, QuadrupleCLIPLoader, Lora Loader (LoraManager), and ImageMetadataLoRALoader node types (API format included); MP4 reads the workflow/prompt tags embedded by SaveVideo, including all-in-one video nodes like MiniMax H3 ImageToVideo",
|
||||
helpSidepanel14: "Information tab — drag items to canvas: model sub-tab places the loader node (Checkpoint → CheckpointLoaderSimple, VAE → VAELoader, Diffusion Model → UNETLoader, Text Encoder → CLIPLoader); double-click also places at canvas center",
|
||||
helpSidepanel15: "Information tab — LoRA sub-tab: detects LoRAs from LoraLoader, LoraLoaderModelOnly, and Lora Loader (LoraManager) nodes (API format supported); drag individual LoRA to place LoraLoader; \"Multiple LORA\" section places all LoRAs in a single Lora Loader (LoraManager) node with LoRA syntax pre-filled; Prompts sub-tab: drag a prompt to place CLIPTextEncode node with text pre-filled; click prompt to view full text and copy",
|
||||
helpSidepanel15: "Information tab — LoRA sub-tab: detects LoRAs from LoraLoader, LoraLoaderModelOnly, Lora Loader (LoraManager), and native Load LoRA (Model / Text Encoder) nodes (API format supported); drag individual LoRA to place LoraLoader; \"Multiple LORA\" section places all LoRAs in a single Lora Loader (LoraManager) node with LoRA syntax pre-filled; Prompts sub-tab: drag a prompt to place CLIPTextEncode node with text pre-filled; click prompt to view full text and copy",
|
||||
helpSidepanel16: "A tab (AI Tools): Translation, Chat, TOOLS, and Settings sub-tabs powered by Ollama, LM Studio, Lemonade, or Unsloth; Chat supports multi-turn conversations; TOOLS includes VLM image analysis and wildcard generation; settings shared with the SPA AI TOOL tab via localStorage; the Settings sub-tab's VRAM (Ollama) → \"Unload all now\" unloads every model loaded in Ollama on localhost, decision models included (same as Settings → VRAM Management)",
|
||||
helpSidepanel17: "Send to Canvas: clicking 'Send to Canvas' (Workflow tab) or 'Copy & Send Canvas' (Gallery tab) sends the workflow directly to the ComfyUI canvas — both UI and API formats are supported; if Workflow Studio was not opened from the ComfyUI toolbar (window.opener unavailable), UI-format workflows fall back to title drag (title turns blue with a green ●)",
|
||||
helpAiTitle: "AI Tab (A)",
|
||||
@@ -1210,6 +1212,7 @@ const LANGUAGES = {
|
||||
helpTroubleCardConnection: "Connection Issues",
|
||||
helpTroubleCardWorkflow: "Workflow & Generation Issues",
|
||||
helpTroubleCardTagger: "Tagger & Model Issues",
|
||||
helpTroubleCardSemantic: "Semantic Search (Gallery)",
|
||||
helpImageEditTitle: "Image Edit Tab",
|
||||
helpImageEdit1: "Layer-based image editor — compose images with multiple layers (Image, Text, Draw, Mask types) and export the composite",
|
||||
helpImageEdit2: "Loading images: drag & drop onto the canvas, File Open button, or send from the Gallery tab via the Image Edit button in the Gallery toolbar; the first image becomes Layer 1 (auto-locked); subsequent images are added as new layers scaled to fit the canvas",
|
||||
@@ -1308,6 +1311,9 @@ const LANGUAGES = {
|
||||
helpTrouble7: "Tagger tab shows no models: verify the model folder exists at ComfyUI/models/tagger/<model-name>/ and contains a .onnx or .h5 file; if onnxruntime is not installed, run: python_embeded\\python.exe -m pip install onnxruntime",
|
||||
helpTrouble8: "Model tab shows a checkpoint you didn't expect (e.g. always the same model regardless of the loaded workflow): the checkpoint saved in the workflow file is not installed, so it was silently replaced with another available model during loading — an error toast reports the original (missing) model name when this happens. Select the correct checkpoint manually in the Model tab, or enable \"Default Checkpoint\" in Settings to force a known-good model on every load.",
|
||||
helpTrouble9: "Generate runs a different workflow than the one just loaded: a Batch type checkbox (Checkpoint/LoRA/Prompt/Workflow/Sampler/Scheduler) is left ON in the Batch subtab. While any Batch type is active, the Generate button runs the batch selection instead of the currently loaded workflow. Open the Batch subtab and turn off the active batch type checkbox.",
|
||||
helpTrouble10: "GPU not detected for EmbeddingGemma 2 (Semantic settings > Model says 'No GPU detected', or the connection test reports CPU): the onnxruntime in ComfyUI's Python is the CPU build, so 'CUDAExecutionProvider' is missing. Fix: stop ComfyUI (files in use cannot be replaced), then in ComfyUI's Python run 'pip uninstall -y onnxruntime onnxruntime-gpu' followed by 'pip install --no-deps onnxruntime-gpu', and start ComfyUI again. It can silently return to the CPU build later: other packages that require 'onnxruntime' (e.g. insightface, rtmlib, qwen-tts) make pip install the CPU build over the GPU files whenever they are installed or updated, so if the GPU disappears after adding a custom node, repeat the fix. Requires an NVIDIA GPU with the CUDA runtime/cuDNN that ComfyUI's PyTorch uses; DirectML is not supported. Without a GPU the CPU is used automatically (slower)",
|
||||
helpTrouble11: "Semantic Search with Gemini says 'GEMINI_API_KEY is not set' or the key is rejected: add GEMINI_API_KEY=your-key (no leading #) to the plugin's .env file (copy .env.example), then restart ComfyUI - the .env file is only read at startup. Get a key at Google AI Studio. If you do not want to use the API, choose EmbeddingGemma 2 (local, no key) in Semantic settings > Model",
|
||||
helpTrouble12: "Semantic Search or Similar shows no results: results only include images that are already indexed inside the selected folder (a green dot in the folder tree means the folder is fully indexed) - build the index from the gear button first, and select a folder that contains indexed images. After changing the model, vector size or image precision, choose 'Rebuild all'. A minimum score set in Semantic settings > Search can also hide everything; set it to 0 to check. The first search after indexing takes a few seconds because the local model is reloaded",
|
||||
helpSupportTitle: "Support",
|
||||
helpSupportDesc: "If you find this plugin useful, please consider supporting its development!",
|
||||
helpGithubDesc: "Report issues, request features, and contribute",
|
||||
@@ -2616,7 +2622,7 @@ const LANGUAGES = {
|
||||
helpGen6: "Settingsタブ:KSamplerとLatent Imageを横並び(各50%幅)",
|
||||
helpGen31: "LTX-2.5とWan2.2の動画ワークフローも、専用のVideoタブだけでなく本タブに通常ワークフローとして読み込んだ場合に対応 — Positive/Negative PromptはLTX-2.5のLTXVDualCFGGuider / LTXVConditioningノードをたどって実際のプロンプト文を検出し、SettingsタブのLatent ImageはWan2.2のEmptyHunyuanLatentVideoとLTX-2.5のEmptyLTXVLatentVideoノードを認識(Length(フレーム数)欄も追加表示)して「No EmptyLatentImage node found」にならない;これらのワークフローからの生成もMiniMax H3の動画生成と同じ延長タイムアウトが適用される",
|
||||
helpGen7: "Raw JSONを各タブの右列に常時表示 — 直接編集してApplyでワークフロー即時反映;読み込んだワークフローにBypass/Muteノードがある場合、検索バー上部に一覧が表示される(Bypassは除外され配線が再接続される、Muteは除外されるが再接続はされない点はComfyUI本体と同じ);検索バーはヒット箇所をハイライト表示してスクロールするだけでエディタにカーソルを移動しないため、検索直後にキー入力してもJSONが誤って書き換わることはない — 編集する際はエディタ内をクリックしてから行う",
|
||||
helpGen8: "シード管理:ランダム / 固定 / 増加 / 減少",
|
||||
helpGen8: "シード管理:ランダム / 固定 / 増加 / 減少 / Workflow(ワークフロー側のシードをそのまま使用)",
|
||||
helpGen9: "画像生成、進捗表示、生成停止、結果表示",
|
||||
helpGen10: "Eagle連携:生成画像をEagleへ自動保存(SVG出力にも対応 — 標準SaveSVGNodeおよびcomfyui-tosvgのSave SVG Stringノードの両方)",
|
||||
helpGen11: "Batchタブ — バッチキューのカラムヘッダーのチェックボックスで1種類だけ有効化;Generateで全キュー項目を順次処理;一時停止/再開・停止ボタンで制御可能",
|
||||
@@ -2628,13 +2634,15 @@ const LANGUAGES = {
|
||||
helpGen17: "スタイルバッチ:左ペインのStyleタブでスタイルを選択し、バッチキューのStyle列を有効化してGenerateを実行 — 選択した各スタイルをPositiveおよびNegativeプロンプトに順番に適用;ワークフローコピーに適用されるため読み込み済みワークフローは変更されない;スタイルファイルはページロードのたびに user/default/Workflow-Studio/style/*.json から再読み込み",
|
||||
helpGen18: "Applyボタンを Alt+Click すると Apply & Generate を1操作で実行 — 対象:Positive Prompt・Checkpoint・KSamplerの各Applyボタン;ワークフローに値を書き込んだ後、即座に生成をキューに追加;対象ノードが存在しない場合は何もしない",
|
||||
helpGen19: "Loraバッチ:各LoRA適用時にLora構文(<lora:名前:strength_model:strength_clip>)とCivitAIトリガーワードをPositiveプロンプトへ自動追加 — 毎回元のプロンプトを起点に再構築するため蓄積しない;バッチ完了・停止後はプロンプトを開始前の状態へ自動復元;選択したLoRAがComfyUIのモデル一覧にまだ認識されていない場合は警告トーストを表示(ComfyUIのRefreshまたは再起動が必要)",
|
||||
helpGen20: "LoRAの接続方式は2通り:標準の LoraLoader ノードをチェーン接続する方式(1ノードにつき1LoRA — 増やすにはノードを追加接続)と、単一の Lora Loader (LoraManager) ノード(ComfyUI-Lora-Manager由来のカスタムノード)にLoRA一覧を内部保持する方式(各LoRAごとに有効/モデル強度/CLIP強度を個別管理);下のSingle/Stackタブは対象ノードがどちらのタイプかによって自動的に挙動が変わる",
|
||||
helpGen21: "Singleタブ:LoRAを1つ選びStr M/Str Cを設定してApply — Lora Managerノードが対象の場合、内部のLoRA一覧を丸ごとこの1件だけに置き換え、既存の他のLoRAは失われる",
|
||||
helpGen20: "LoRAの接続方式は3通り:標準の LoraLoader ノードをチェーン接続する方式(1ノードにつき1LoRA — 増やすにはノードを追加接続)、単一の Lora Loader (LoraManager) ノード(ComfyUI-Lora-Manager由来のカスタムノード)にLoRA一覧を内部保持する方式(各LoRAごとに有効/モデル強度/CLIP強度を個別管理)、またはComfyUI標準の Load LoRA (Model) と Load LoRA (Text Encoder) のノードペア(v0.40以降。各ノードにLoRA/強度/有効の行を最大20行保持 — Modelノードには Str M、Text Encoderノードには Str C を設定し、Applyは両ノードへ同時に書き込み;現状はAPI形式のワークフローのみ対応 — ComfyUIフロントエンド1.55.17は標準のグラフエディタでこれらのノードに行を追加できないため);下のSingle/Stackタブは対象ノードがどちらのタイプかによって自動的に挙動が変わる",
|
||||
partnerAuthHint: "(パートナーAPIノードの認証に失敗しました。プラグインの .env に COMFY_API_KEY=...(platform.comfy.org で発行)を追加して ComfyUI を再起動してください。ComfyUI 本体の画面でログインして実行する方法もあります)",
|
||||
helpGen21: "Singleタブ:LoRAを1つ選びStr M/Str Cを設定してApply — Lora Managerノードが対象の場合、内部のLoRA一覧を丸ごとこの1件だけに置き換え、既存の他のLoRAは失われる;ComfyUI標準の Load LoRA ノードも同様に、全行がこの1行に置き換わる",
|
||||
helpGen22: "Stackタブ — Use Stack Groupチェックボックス(ワークフロー内にLora Managerノードがある場合のみ表示):OFF(ワークフロー読み込み時の既定)はLora Managerノードに実際に設定されているLoRAをそのまま表示・編集;ONにするとModelsタブに登録済みの「Stack」グループを表示・編集;どちらへの切替もまずノードのLoRA一覧をクリアしてから切替先のソースを読み込む;OFFへ戻すとワークフロー読み込み時点のLoRA一覧(読み込み時にスナップショットとして保存済み)へ正確に復元される",
|
||||
helpGen23: "Stackタブの操作:各行に有効チェックボックスとStr M / Str Cフィールド;ヘッダーの「Stack」チェックボックスで全行を一括切替;上部の+/-ステップボタンで現在有効な全行の強度をまとめて増減;「Showing: LoRAs currently in workflow」/「Showing: registered Stack group」のラベルで現在どちらのソースを表示中か分かる;Applyで対象ノードへ一覧全体を書き込み、同時にLoRA構文とCivitAIトリガーワードをPositiveプロンプトへ追加",
|
||||
helpGen24: "CLIP Text Encode edit+(CLIPTextEncodeEditPlus)ノードを使う場合の注意:Lora Managerノードのtrigger_words出力がこのノードのtext1入力に接続されている構成(RAW/EDIT/front/backモードでtext1と編集可能なtext_editを結合)では、生成時にトリガーワードは既に自動的に反映済み;LoRAのApplyボタンをクリックしたりUse Stack GroupをONにしたりすると、LoRA構文・トリガーワードがtext_editへも追加で書き込まれ二重になる — ワークフロー本来のプロンプト・LoRA構成を変更せず維持したい場合は、Use Stack GroupをOFFのままにしLoRAのApply系ボタンには触れないこと",
|
||||
helpGen29: "バイパスボタン(⛔、LoRA列ヘッダー内、Refresh Stack groupボタンの隣):対象のLoRAノードの強度を強制的に0にします — 通常のLoraLoaderならstrength_model/strength_clip、Lora Managerノードならリスト内の全エントリのstrength/clipStrength(LoRAリスト自体は差し替えず維持)が対象で、実際のComfyUIノードのmodeには一切触れません;もう一度クリックすると、切り替え前の値に正確に戻ります;対象はSingle/Stack Applyがデフォルトで対象とするノード(ワークフローにLora Managerノードがあればそれ、無ければ最初のLoRAノード);SingleまたはStackのApplyボタンをクリックするとバイパス状態はクリアされ、後から無言で再適用されることはありません",
|
||||
helpGen29: "バイパスボタン(⛔、LoRA列ヘッダー内、Refresh Stack groupボタンの隣):対象のLoRAノードの強度を強制的に0にします — 通常のLoraLoaderならstrength_model/strength_clip、Lora Managerノードならリスト内の全エントリのstrength/clipStrength(LoRAリスト自体は差し替えず維持)、ComfyUI標準の Load LoRA ノードなら両ノード(Model/Text Encoder)の全行のstrength(行は維持)が対象で、実際のComfyUIノードのmodeには一切触れません;もう一度クリックすると、切り替え前の値に正確に戻ります;対象はSingle/Stack Applyがデフォルトで対象とするノード(ワークフローにLora Managerノードがあればそれ、無ければ最初のLoRAノード);SingleまたはStackのApplyボタンをクリックするとバイパス状態はクリアされ、後から無言で再適用されることはありません",
|
||||
helpGen30: "Saveボタン(サブタブバー右端)は、BatchまたはLabサブタブがアクティブな間は非表示になります — これらは現在読み込み中のワークフロー本体ではなく、ワークフローの複製や独自のPlanファイルを操作するためです。Input/Model/Settings/Feederでは再表示されます",
|
||||
helpGen32: "パートナーAPIノード(Nano Banana/Gemini画像ノードなど):GenerateUIで、ComfyUIのパートナーAPIノードを含むワークフローを実行できます。これらのノードは /prompt リクエストにComfyの認証情報が必要で、ComfyUI本体の画面は自動で付けますが別ページからは付けられないため、プラグインの .env に COMFY_API_KEY=...(platform.comfy.org で発行するComfy APIキー)を追加して ComfyUI を再起動してください。キーを設定すると、GenerateUIはプラグインのサーバー経由でリクエストを送り、ワークフローにパートナーAPIノードがあるときだけキーを付与します(キーはブラウザへは出ません)。課金はComfyクレジットです。Gemini画像ノードのプロンプトはPromptタブに表示され、参考画像はImageタブのLoadImageノード経由で指定します。サンプル: ws_nano_banana_2_1_t2i",
|
||||
helpFeederTitle: "GenerateUI Tab — Feeder サブタブ",
|
||||
helpFeederDesc: "左ペイン上部の [Image Loop] / [Gallery] トグルで2つのモードを切り替えられます。",
|
||||
helpFeederImgloopTitle: "Image Loop モード",
|
||||
@@ -2832,7 +2840,7 @@ const LANGUAGES = {
|
||||
helpSidepanel12: "⚙ テーマボタン(ヘッダー):パネル背景・サブヘッダー背景・文字色・ボーダー・補助テキスト色をカスタマイズ可能、設定はlocalStorageに保存され次回起動時も反映",
|
||||
helpSidepanel13: "I タブ(Information):ComfyUI の PNG / WebP / MP4 / JSON をドロップするとサイドパネル内でモデル・LoRA・プロンプトのメタデータを確認可能 — サブタブ: model / lora / Prompts;UnetLoaderGGUF・QuadrupleCLIPLoader・Lora Loader (LoraManager)・ImageMetadataLoRALoader(API形式も可)ノードタイプに対応;MP4はSaveVideoが埋め込むworkflow/promptタグを読み取り、MiniMax H3 ImageToVideoのようなオールインワン動画ノードのプロンプトにも対応",
|
||||
helpSidepanel14: "Information タブ — キャンバスへドラッグ:model サブタブのアイテムをドラッグすると対応ローダーノードを配置(Checkpoint → CheckpointLoaderSimple、VAE → VAELoader、Diffusion Model → UNETLoader、Text Encoder → CLIPLoader);ダブルクリックでもキャンバス中央に配置可能",
|
||||
helpSidepanel15: "Information タブ — lora サブタブ:LoraLoader・LoraLoaderModelOnly・Lora Loader (LoraManager) ノード(APIフォーマット含む)から LoRA を検出;個別 LoRA をドラッグで LoraLoader を配置;「Multiple LORA」セクションで全 LoRA を Lora Loader (LoraManager) ノードに一括配置(LoRA構文自動入力);Prompts サブタブ:プロンプトをドラッグするとテキスト入力済みの CLIPTextEncode ノードを配置;クリックで全文表示・コピー可能",
|
||||
helpSidepanel15: "Information タブ — lora サブタブ:LoraLoader・LoraLoaderModelOnly・Lora Loader (LoraManager)・ComfyUI標準の Load LoRA (Model/Text Encoder) ノード(APIフォーマット含む)から LoRA を検出;個別 LoRA をドラッグで LoraLoader を配置;「Multiple LORA」セクションで全 LoRA を Lora Loader (LoraManager) ノードに一括配置(LoRA構文自動入力);Prompts サブタブ:プロンプトをドラッグするとテキスト入力済みの CLIPTextEncode ノードを配置;クリックで全文表示・コピー可能",
|
||||
helpSidepanel16: "A タブ(AI ツール):翻訳・Chat・TOOLS・設定のサブタブ。Ollama、LM Studio、Lemonade、Unsloth に対応;Chat は LLM とのマルチターン会話;TOOLS は VLM 画像解析とワイルドカード生成に対応;設定は SPA の AI タブと localStorage で共有される。Settings サブタブの「VRAM (Ollama)」→「Unload all now」で、ローカルホストのOllamaにロード中の全モデル(意思決定モデルを含む)をアンロードできます(設定タブ「VRAM調整」と同じ処理)",
|
||||
helpSidepanel17: "Send to Canvas:WorkflowタブのSend to CanvasまたはGalleryタブのCopy & Send Canvasをクリックするとワークフローをキャンバスへ直接送信(UI形式・API形式どちらも対応);ComfyUIのツールバーから開いていない場合はUI形式のみタイトルドラッグのフォールバック(タイトルが青くなり緑の●が表示される — ドラッグで読み込み)",
|
||||
helpAiTitle: "AI タブ(A)",
|
||||
@@ -2912,6 +2920,7 @@ const LANGUAGES = {
|
||||
helpTroubleCardConnection: "接続の問題",
|
||||
helpTroubleCardWorkflow: "ワークフロー・生成の問題",
|
||||
helpTroubleCardTagger: "Tagger・モデルの問題",
|
||||
helpTroubleCardSemantic: "セマンティック検索(Gallery)",
|
||||
helpImageEditTitle: "Image Edit タブ",
|
||||
helpImageEdit1: "レイヤーベースの画像エディタ — 複数のレイヤー(画像・テキスト・描画・マスク)を重ね合わせて画像を合成・エクスポート",
|
||||
helpImageEdit2: "画像の読み込み:キャンバスへのドラッグ&ドロップ、File Openボタン、またはGalleryタブのImage Editボタンから送信;最初の画像はLayer 1として自動ロック;以降の画像はキャンバスサイズに合わせてスケールされ新規レイヤーとして追加",
|
||||
@@ -3010,6 +3019,9 @@ const LANGUAGES = {
|
||||
helpTrouble7: "Taggerタブにモデルが表示されない:ComfyUI/models/tagger/<モデル名>/ フォルダの存在と .onnx または .h5 ファイルの有無を確認;onnxruntimeが未インストールの場合は python_embeded\\python.exe -m pip install onnxruntime を実行",
|
||||
helpTrouble8: "ModelタブのCheckpointが想定と違うモデルになっている(どのワークフローを読み込んでも同じモデルになる等):ワークフローファイルに保存されたCheckpointが実際にはインストールされておらず、読み込み時に無警告で別のインストール済みモデルに差し替えられています。この場合、元の(見つからなかった)モデル名を含むエラートーストが表示されます。Modelタブで正しいCheckpointを手動選択するか、設定タブの「デフォルトCheckpoint」を有効にして、読み込み時に常に動作確認済みのモデルを強制適用してください。",
|
||||
helpTrouble9: "Generateを押すと、読み込んだワークフローとは別のワークフローで実行される:Batchサブタブでバッチタイプ(Checkpoint/LoRA/Prompt/Workflow/Sampler/Scheduler)のチェックボックスがONのまま残っています。いずれかのバッチタイプが有効な間は、Generateボタンは現在読み込まれているワークフローではなくバッチ選択された内容を実行します。Batchサブタブを開き、有効になっているバッチタイプのチェックボックスをOFFにしてください。",
|
||||
helpTrouble10: "EmbeddingGemma 2でGPUが検出されない(セマンティック設定のモデル設定タブに「GPU未検出」と出る、または接続テストの実行がCPUになる):ComfyUIのPythonに入っているonnxruntimeがCPU版で、CUDAExecutionProviderが無い状態です。対処:ComfyUIを停止し(使用中のファイルは置き換えられません)、ComfyUIのPythonで「pip uninstall -y onnxruntime onnxruntime-gpu」のあと「pip install --no-deps onnxruntime-gpu」を実行して、ComfyUIを起動し直します。後からCPU版に戻ることがあります:「onnxruntime」を名前で要求する他のパッケージ(insightface・rtmlib・qwen-ttsなど)をインストール・更新するたびに、pipがGPU版のファイルの上にCPU版を入れ直すためです。カスタムノードを追加した後にGPUが使えなくなったら、同じ手順をやり直してください。NVIDIA GPUと、ComfyUIのPyTorchが使うCUDAランタイム/cuDNNが必要です(DirectMLは非対応)。GPUが無い場合は自動でCPUが使われます(低速)",
|
||||
helpTrouble11: "GeminiでSemantic Searchを使うと「GEMINI_API_KEYが未設定」と出る、またはキーが拒否される:プラグインの.env(.env.exampleをコピー)にGEMINI_API_KEY=キー(行頭に#を付けない)を追記し、ComfyUIを再起動してください。.envは起動時にしか読み込まれません。キーはGoogle AI Studioで取得できます。APIを使いたくない場合は、セマンティック設定のモデル設定でEmbeddingGemma 2(ローカル・キー不要)を選びます",
|
||||
helpTrouble12: "意味検索やSimilarの結果が出ない:結果には選択中フォルダ内でインデックス済みの画像だけが入ります(フォルダツリーの緑のドットは全件済み)。先に歯車ボタンからインデックスを作成し、インデックス済みの画像があるフォルダを選んでください。モデル・ベクトル次元・画像精度を変えたときは「全件再作成」が必要です。セマンティック設定の検索設定タブの最小スコアで全件が隠れている場合もあるので、0にして確認してください。インデックス作成直後の最初の検索は、ローカルモデルの再ロードで数秒かかります",
|
||||
helpSupportTitle: "サポート",
|
||||
helpSupportDesc: "このプラグインが役に立ったら、開発を支援していただけると嬉しいです!",
|
||||
helpGithubDesc: "バグ報告、機能リクエスト、コントリビュート",
|
||||
@@ -4318,7 +4330,7 @@ const LANGUAGES = {
|
||||
helpGen6: "Settings标签:KSampler与Latent Image并排显示(各占50%宽度)",
|
||||
helpGen31: "LTX-2.5和Wan2.2视频工作流在本标签中作为普通工作流加载时(不仅限于专用的Video标签)也可正常使用 — Positive/Negative Prompt会沿LTX-2.5的LTXVDualCFGGuider / LTXVConditioning节点追溯找到实际提示词文本,Settings标签的Latent Image部分能识别Wan2.2的EmptyHunyuanLatentVideo和LTX-2.5的EmptyLTXVLatentVideo节点(并新增Length(帧数)字段),不再显示\"No EmptyLatentImage node found\";从这些工作流生成时也会应用与MiniMax H3视频生成相同的延长超时",
|
||||
helpGen7: "Raw JSON在每个标签右列常驻显示 — 直接编辑并Apply即时重载工作流;如果加载的工作流包含Bypass或Mute节点,搜索栏上方会显示列表(Bypass节点会被排除但其连线会重新连接;Mute节点会被排除且不重新连接,与ComfyUI本体行为一致);搜索栏只会高亮匹配项并滚动到该位置,不会将光标移入编辑器,因此搜索后立即按键不会意外覆盖JSON — 需要先点击编辑器内部才能实际编辑",
|
||||
helpGen8: "种子管理:随机/固定/递增/递减",
|
||||
helpGen8: "种子管理:随机/固定/递增/递减/Workflow(直接使用工作流自带的种子)",
|
||||
helpGen9: "生成图片、进度显示、停止生成、查看结果",
|
||||
helpGen10: "Eagle集成:自动保存生成图片到Eagle(也支持SVG输出 — 标准SaveSVGNode节点和comfyui-tosvg的Save SVG String节点均可)",
|
||||
helpGen11: "Batch标签 — 勾选批次队列列标题复选框激活对应批次类型(每次仅一种);Generate按顺序处理所有队列项目;支持暂停/继续/停止控制",
|
||||
@@ -4330,13 +4342,15 @@ const LANGUAGES = {
|
||||
helpGen17: "样式批处理:在左窗格Style标签中选择样式,启用批次队列Style列后点击Generate — 每个选中样式依次应用到正向和负向提示词;样式应用于工作流副本,不会修改已加载的工作流;每次页面加载时从 user/default/Workflow-Studio/style/*.json 重新读取样式文件",
|
||||
helpGen18: "Alt+单击Apply按钮(Positive Prompt / Checkpoint / KSampler)可一步完成Apply & Generate — 将参数写入工作流后立即排队生成;仅当工作流中存在目标节点时才触发生成",
|
||||
helpGen19: "Lora批处理:应用每个LoRA时,会自动将其语法(<lora:名称:strength_model:strength_clip>)和CivitAI触发词追加到Positive提示词 — 每次都基于原始提示词重新构建,不会累积;批处理完成或停止后提示词会自动恢复到批处理前的状态;若所选LoRA尚未被ComfyUI模型列表识别,会显示警告提示(需在ComfyUI中Refresh或重启)",
|
||||
helpGen20: "LoRA有两种连接方式:链式连接标准 LoraLoader 节点(每个节点1个LoRA — 需要更多则继续串联节点),或使用单个 Lora Loader (LoraManager) 节点(来自ComfyUI-Lora-Manager自定义节点包,内部保存一个LoRA列表,每个LoRA各自管理启用/模型强度/CLIP强度);下方的Single/Stack标签会根据目标节点类型自动调整行为",
|
||||
helpGen21: "Single标签:选择一个LoRA并设置Str M/Str C后点击Apply — 若目标是Lora Manager节点,则会将其内部LoRA列表整体替换为仅这一项,其余原有LoRA将丢失",
|
||||
helpGen20: "LoRA有三种连接方式:链式连接标准 LoraLoader 节点(每个节点1个LoRA — 需要更多则继续串联节点)、使用单个 Lora Loader (LoraManager) 节点(来自ComfyUI-Lora-Manager自定义节点包,内部保存一个LoRA列表,每个LoRA各自管理启用/模型强度/CLIP强度),或使用ComfyUI原生的 Load LoRA (Model) 与 Load LoRA (Text Encoder) 节点对(v0.40及以上;每个节点最多保存20行LoRA/强度/启用 — Model节点使用 Str M,Text Encoder节点使用 Str C,Apply会同时写入两个节点;目前仅支持API格式的工作流 — 因为ComfyUI前端1.55.17无法在其自带图编辑器中为这些节点添加行);下方的Single/Stack标签会根据目标节点类型自动调整行为",
|
||||
partnerAuthHint: "(合作伙伴API节点认证失败。请在插件的 .env 中添加 COMFY_API_KEY=...(在 platform.comfy.org 获取)并重启 ComfyUI;也可以在 ComfyUI 自带界面登录后运行)",
|
||||
helpGen21: "Single标签:选择一个LoRA并设置Str M/Str C后点击Apply — 若目标是Lora Manager节点,则会将其内部LoRA列表整体替换为仅这一项,其余原有LoRA将丢失;ComfyUI原生 Load LoRA 节点同样会将全部行替换为这一行",
|
||||
helpGen22: "Stack标签 — Use Stack Group复选框(仅当工作流中存在Lora Manager节点时显示):OFF(加载工作流时的默认状态)显示并编辑Lora Manager节点中实际配置的LoRA;ON则改为显示并编辑Models标签中已注册的\"Stack\"分组;切换任一方向都会先清空节点的LoRA列表,再从新选择的来源加载;切回OFF会精确恢复为加载工作流那一刻的LoRA列表(加载时已保存快照)",
|
||||
helpGen23: "Stack标签的操作:每行都有启用复选框及Str M / Str C字段;表头的\"Stack\"复选框可一次性切换所有行;顶部的+/-步进按钮可同时调整所有当前启用行的强度;\"Showing: LoRAs currently in workflow\" / \"Showing: registered Stack group\"标签指示当前显示的是哪个来源;点击Apply会将完整列表写回目标节点,并同时将LoRA语法和CivitAI触发词追加到Positive提示词",
|
||||
helpGen24: "使用 CLIP Text Encode edit+(CLIPTextEncodeEditPlus)节点时的注意事项:当Lora Manager节点的trigger_words输出连接到该节点的text1输入时(RAW/EDIT/front/back模式会将text1与可编辑的text_edit字段组合),触发词在生成时已自动包含;此时点击LoRA的Apply按钮或开启Use Stack Group会额外把LoRA语法/触发词写入text_edit,造成重复 — 如果想保持工作流原始的提示词和LoRA配置不被修改,请保持Use Stack Group为OFF,并避免点击LoRA的Apply类按钮",
|
||||
helpGen29: "绕过按钮(⛔,位于LoRA列表头,紧邻Refresh Stack group):将目标LoRA节点的强度强制设为0——普通LoraLoader对应strength_model/strength_clip,Lora Manager节点则对应列表中每一项的strength/clipStrength(LoRA列表本身保持不变,不会被替换),不会改动实际ComfyUI节点的mode;再次点击可精确恢复切换前的数值;作用于Single/Stack Apply默认所用的节点(工作流中若有Lora Manager节点则用它,否则用第一个LoRA节点);点击Single或Stack的Apply按钮会清除绕过状态,避免其在之后被无声地重新生效",
|
||||
helpGen29: "绕过按钮(⛔,位于LoRA列表头,紧邻Refresh Stack group):将目标LoRA节点的强度强制设为0——普通LoraLoader对应strength_model/strength_clip,Lora Manager节点则对应列表中每一项的strength/clipStrength(LoRA列表本身保持不变,不会被替换),ComfyUI原生 Load LoRA 节点则对应两个节点(Model/Text Encoder)所有行的strength(行保持不变),不会改动实际ComfyUI节点的mode;再次点击可精确恢复切换前的数值;作用于Single/Stack Apply默认所用的节点(工作流中若有Lora Manager节点则用它,否则用第一个LoRA节点);点击Single或Stack的Apply按钮会清除绕过状态,避免其在之后被无声地重新生效",
|
||||
helpGen30: "Save按钮(子标签栏右端)在Batch或Lab子标签处于激活状态时会隐藏,因为它们操作的是工作流副本或各自的Plan文件,而不是当前加载的工作流本身;切换回Input/Model/Settings/Feeder时会重新显示",
|
||||
helpGen32: "合作伙伴API节点(Nano Banana/Gemini图像节点等):GenerateUI可以运行包含ComfyUI合作伙伴API节点的工作流。这些节点需要在 /prompt 请求中携带Comfy认证信息——ComfyUI自带界面会自动添加,独立页面则无法添加——因此请在插件的 .env 中添加 COMFY_API_KEY=...(在 platform.comfy.org 获取的Comfy API密钥)并重启ComfyUI。设置密钥后,GenerateUI会通过插件服务器发送请求,仅当工作流包含合作伙伴API节点时才附加密钥(密钥不会到达浏览器);费用按Comfy积分计算。Gemini图像节点的提示词显示在Prompt标签中,参考图通过Image标签的LoadImage节点指定。示例:ws_nano_banana_2_1_t2i",
|
||||
helpFeederTitle: "GenerateUI Tab — Feeder 子标签",
|
||||
helpFeederDesc: "通过左侧面板顶部的 [图片循环] / [图库] 切换按钮可在两种模式间切换。",
|
||||
helpFeederImgloopTitle: "图片循环模式",
|
||||
@@ -4534,7 +4548,7 @@ const LANGUAGES = {
|
||||
helpSidepanel12: "⚙ 主题按钮(标题栏):可自定义面板背景、子标题背景、文字颜色、边框及辅助文字颜色,设置保存至localStorage并在下次打开时生效",
|
||||
helpSidepanel13: "I 标签(Information):拖放 ComfyUI PNG/WebP/MP4/JSON 即可在侧面板内查看模型、LoRA 和提示词元数据 — 子标签:model / lora / Prompts;支持 UnetLoaderGGUF、QuadrupleCLIPLoader 、Lora Loader (LoraManager) 和 ImageMetadataLoRALoader(含API格式)节点类型;MP4会读取SaveVideo写入的workflow/prompt标签,也支持MiniMax H3 ImageToVideo等一体化视频节点的提示词",
|
||||
helpSidepanel14: "Information 标签 — 拖拽到画布:model 子标签拖拽可放置对应加载节点(Checkpoint → CheckpointLoaderSimple、VAE → VAELoader、Diffusion Model → UNETLoader、Text Encoder → CLIPLoader);双击也可放置到画布中央",
|
||||
helpSidepanel15: "Information 标签 — lora 子标签:可检测 LoraLoader、LoraLoaderModelOnly 及 Lora Loader (LoraManager) 节点(含API格式)的 LoRA;拖拽单个 LoRA 放置 LoraLoader;「Multiple LORA」区域可将全部 LoRA 一次性放入 Lora Loader (LoraManager) 节点并自动填入LoRA语法;Prompts 子标签:拖拽提示词放置预填文本的 CLIPTextEncode 节点;点击可查看全文并复制",
|
||||
helpSidepanel15: "Information 标签 — lora 子标签:可检测 LoraLoader、LoraLoaderModelOnly、Lora Loader (LoraManager) 及 ComfyUI 原生 Load LoRA (Model/Text Encoder) 节点(含API格式)的 LoRA;拖拽单个 LoRA 放置 LoraLoader;「Multiple LORA」区域可将全部 LoRA 一次性放入 Lora Loader (LoraManager) 节点并自动填入LoRA语法;Prompts 子标签:拖拽提示词放置预填文本的 CLIPTextEncode 节点;点击可查看全文并复制",
|
||||
helpSidepanel16: "A 标签(AI 工具):翻译、Chat、TOOLS 和设置子标签,支持 Ollama、LM Studio、Lemonade 或 Unsloth;Chat 支持与 LLM 的多轮对话;TOOLS 包含 VLM 图像分析和通配符生成;设置通过 localStorage 与 SPA 的 AI 标签共享;Settings 子标签的“VRAM (Ollama)”→“Unload all now”可卸载本机 Ollama 已加载的所有模型(包括决策模型,与设置标签“显存调整”相同)",
|
||||
helpSidepanel17: "Send to Canvas:在Workflow标签点击'Send to Canvas'或Gallery标签点击'Copy & Send Canvas',工作流直接发送到ComfyUI画布(支持UI和API所有格式);若Workflow Studio不是从ComfyUI工具栏打开,UI格式工作流将回退到标题拖拽(标题变蓝并显示绿色●——拖拽到画布加载)",
|
||||
helpAiTitle: "AI 标签页(A)",
|
||||
@@ -4614,6 +4628,7 @@ const LANGUAGES = {
|
||||
helpTroubleCardConnection: "连接问题",
|
||||
helpTroubleCardWorkflow: "工作流与生成问题",
|
||||
helpTroubleCardTagger: "Tagger 与模型问题",
|
||||
helpTroubleCardSemantic: "语义搜索(Gallery)",
|
||||
helpImageEditTitle: "图像编辑选项卡",
|
||||
helpImageEdit1: "基于图层的图像编辑器 — 通过多个图层(图像、文字、绘制、遮罩类型)合成图像并导出",
|
||||
helpImageEdit2: "加载图像:拖放到画布、点击File Open按钮、或通过Gallery标签工具栏的Image Edit按钮发送;第一张图像成为图层1(自动锁定);后续图像缩放至画布大小作为新图层添加",
|
||||
@@ -4712,6 +4727,9 @@ const LANGUAGES = {
|
||||
helpTrouble7: "Tagger标签不显示模型:确认ComfyUI/models/tagger/<模型名>/文件夹存在且包含.onnx或.h5文件;如未安装onnxruntime,请运行:python_embeded\\python.exe -m pip install onnxruntime",
|
||||
helpTrouble8: "Model 标签页显示的 Checkpoint 与预期不符(例如无论加载哪个工作流都显示相同模型):工作流文件中保存的 Checkpoint 实际未安装,加载时已被静默替换为其他已安装模型,此时会弹出包含原始(未找到)模型名称的错误提示。请在 Model 标签页手动选择正确的 Checkpoint,或在设置标签页启用\"默认 Checkpoint\",在每次加载时强制应用一个已验证可用的模型。",
|
||||
helpTrouble9: "点击 Generate 后,执行的是与刚加载的工作流不同的工作流:Batch 子标签页中的某个批量类型(Checkpoint/LoRA/Prompt/Workflow/Sampler/Scheduler)复选框仍处于开启状态。只要有任意批量类型处于启用状态,Generate 按钮执行的就是批量选择的内容,而不是当前加载的工作流。请打开 Batch 子标签页,关闭已启用的批量类型复选框。",
|
||||
helpTrouble10: "EmbeddingGemma 2未检测到GPU(语义设置的模型设置标签显示“未检测到GPU”,或连接测试显示在CPU上运行):ComfyUI的Python中的onnxruntime是CPU版,缺少CUDAExecutionProvider。解决:先停止ComfyUI(正在使用的文件无法替换),然后在ComfyUI的Python中执行“pip uninstall -y onnxruntime onnxruntime-gpu”,再执行“pip install --no-deps onnxruntime-gpu”,之后重新启动ComfyUI。之后它可能悄悄变回CPU版:按名称要求“onnxruntime”的其他软件包(如insightface、rtmlib、qwen-tts)在安装或更新时,pip会在GPU版文件上覆盖安装CPU版;如果添加自定义节点后GPU失效,请重复上述步骤。需要NVIDIA GPU以及ComfyUI的PyTorch所使用的CUDA运行库/cuDNN(不支持DirectML)。没有GPU时会自动使用CPU(较慢)",
|
||||
helpTrouble11: "使用Gemini的语义搜索提示“未设置GEMINI_API_KEY”或密钥被拒绝:在插件的.env文件(复制.env.example)中添加GEMINI_API_KEY=密钥(行首不要加#),然后重启ComfyUI——.env只在启动时读取。密钥可在Google AI Studio获取。如果不想使用API,请在语义设置的模型设置中选择EmbeddingGemma 2(本地,无需密钥)",
|
||||
helpTrouble12: "语义搜索或Similar没有结果:结果只包含所选文件夹内已建立索引的图像(文件夹树中的绿点表示该文件夹已全部建立索引)。请先通过齿轮按钮创建索引,并选择包含已索引图像的文件夹。更改模型、向量维度或图像精度后需要“全部重建”。语义设置搜索标签中的最低分数也可能隐藏全部结果,请设为0以确认。创建索引后的首次搜索需要几秒钟,因为要重新加载本地模型",
|
||||
helpSupportTitle: "支持",
|
||||
helpSupportDesc: "如果您觉得这个插件有用,请考虑支持它的开发!",
|
||||
helpGithubDesc: "报告问题、请求功能和贡献代码",
|
||||
|
||||
@@ -1353,7 +1353,9 @@ function _applyLabLoraToWorkflow(wf, analysis, lora) {
|
||||
const bypass = !!lora.nodeBypass;
|
||||
const strModel = bypass ? 0 : (lora.strengthModel ?? 1.0);
|
||||
const strClip = bypass ? 0 : (lora.strengthClip ?? 1.0);
|
||||
if (isLoraManager) {
|
||||
if (comfyEditor.isLoraStackNode(wf[nodeId])) {
|
||||
comfyEditor.applyLoraStack([{ name: comfyEditor.resolveLoraName(lora.name), strModel, strClip, enabled: !bypass }], wf);
|
||||
} else if (isLoraManager) {
|
||||
const stem = lora.name.replace(/\\/g, "/").split("/").pop().replace(/\.[^.]+$/, "");
|
||||
wf[nodeId].inputs.loras = {
|
||||
__value__: [{ name: stem, strength: strModel, active: !bypass, expanded: false, clipStrength: strClip, locked: false }],
|
||||
|
||||
@@ -201,7 +201,12 @@ function extractDiffusionModels(wf) {
|
||||
if (!wf || typeof wf !== "object") return [];
|
||||
const UNET_TYPES = new Set(["UNETLoader", "UnetLoaderGGUF", "UNETLoaderGGUF"]);
|
||||
if (Array.isArray(wf.nodes)) return collectUnique(collectAllNodes(wf).filter(n => UNET_TYPES.has(n.type)).map(n => n.widgets_values?.[0]));
|
||||
return collectUnique(Object.values(wf).filter(n => UNET_TYPES.has(n?.class_type)).map(n => n.inputs?.unet_name));
|
||||
// Gemini系の画像生成ノード(Nano Banana等、API形式)は"model"入力がモデル名(例: "Gemini Nano Banana 2.1")
|
||||
const isGeminiImage = (ct) => /^Gemini(Image|NanoBanana)/.test(ct ?? "");
|
||||
return collectUnique([
|
||||
...Object.values(wf).filter(n => UNET_TYPES.has(n?.class_type)).map(n => n.inputs?.unet_name),
|
||||
...Object.values(wf).filter(n => isGeminiImage(n?.class_type)).map(n => typeof n.inputs?.model === "string" ? n.inputs.model : undefined),
|
||||
]);
|
||||
}
|
||||
function extractTextEncoders(wf) {
|
||||
if (!wf || typeof wf !== "object") return [];
|
||||
@@ -227,7 +232,7 @@ function extractTextEncoders(wf) {
|
||||
}
|
||||
function extractLoRAs(wf) {
|
||||
if (!wf || typeof wf !== "object") return [];
|
||||
const results = [], seen = new Set();
|
||||
const results = [], seen = new Set(), stackNames = new Set();
|
||||
function add(name, sm, sc) {
|
||||
if (!name || typeof name !== "string" || name === "None" || seen.has(name)) return;
|
||||
seen.add(name);
|
||||
@@ -250,6 +255,19 @@ function extractLoRAs(wf) {
|
||||
if (ct === "LoraLoader") add(n.inputs?.lora_name, n.inputs?.strength_model, n.inputs?.strength_clip);
|
||||
else if (ct === "LoraLoaderModelOnly") add(n.inputs?.lora_name, n.inputs?.strength, 1.0);
|
||||
else if (ct === "ImageMetadataLoRALoader") { for (let i = 1; i <= 3; i++) add(n.inputs?.[`lora_${i}`], n.inputs?.[`strength_model_${i}`], n.inputs?.[`strength_clip_${i}`]); }
|
||||
else if (ct === "LoadLoraModel" || ct === "LoadLoraTextEncoder") {
|
||||
// Native stack node: DynamicGroup rows are flat API keys "loras.<row>.<field>".
|
||||
// Model node carries the model strength, Text Encoder node the clip strength.
|
||||
const isModel = ct === "LoadLoraModel";
|
||||
for (const [k, name] of Object.entries(n.inputs || {})) {
|
||||
const m = /^loras\.(\d+)\.lora_name$/.exec(k);
|
||||
if (!m || typeof name !== "string" || n.inputs[`loras.${m[1]}.enabled`] === false) continue;
|
||||
const s = n.inputs[`loras.${m[1]}.strength`];
|
||||
const hit = stackNames.has(name) && results.find((r) => r.name === name);
|
||||
if (hit) hit[isModel ? "strength_model" : "strength_clip"] = parseFloat(s) || 1.0;
|
||||
else { add(name, isModel ? s : 1.0, isModel ? 1.0 : s); stackNames.add(name); }
|
||||
}
|
||||
}
|
||||
else if (ct === "Lora Loader (LoraManager)") {
|
||||
const lorasData = n.inputs?.loras;
|
||||
const list = lorasData?.__value__ ?? (Array.isArray(lorasData) ? lorasData : null);
|
||||
@@ -287,6 +305,11 @@ function extractSamplerSettings(apiWf) {
|
||||
// 補助ノードから不足分を補う。
|
||||
const AUX = {
|
||||
RandomNoise: ["noise_seed"],
|
||||
// Gemini系の画像生成ノード(Nano Banana等)はseedのみ(GeminiへはseedではなくComfyUIのキャッシュキーとして働く)
|
||||
GeminiImageNode: ["seed"],
|
||||
GeminiImage2Node: ["seed"],
|
||||
GeminiNanoBanana2: ["seed"],
|
||||
GeminiNanoBanana2V2: ["seed"],
|
||||
BasicScheduler: ["steps", "scheduler", "denoise"],
|
||||
KSamplerSelect: ["sampler_name"],
|
||||
CFGGuider: ["cfg"],
|
||||
@@ -600,7 +623,8 @@ function extractPromptsAPI(wf) {
|
||||
// MiniMaxH3ImageToVideo等の動画生成オールインワンノード。CLIPTextEncode等を経由せず
|
||||
// 自ノードの"prompt"入力に直接テキストを持つ(positive/negativeの区別も無い)ため、
|
||||
// isTextEncoderNode判定を通さずtextMapへ直接投入する(fallbackのtextsに載る)。
|
||||
if (typeof n.inputs?.prompt === "string" && /ImageToVideo|TextToVideo/i.test(ct)) {
|
||||
// Gemini系の画像生成ノード(Nano Banana等)も同様に自ノードの"prompt"入力を持つ。
|
||||
if (typeof n.inputs?.prompt === "string" && /ImageToVideo|TextToVideo|^Gemini(Image|NanoBanana)/i.test(ct)) {
|
||||
textMap.set(id, n.inputs.prompt);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -61,6 +61,8 @@ export function applyToGenUI(modelName, modelType) {
|
||||
__value__: [{ name: stem, strength: 1.0, active: true, expanded: false, clipStrength: 1.0, locked: false }],
|
||||
};
|
||||
comfyUI.currentWorkflow[nodeId].inputs.text = `<lora:${stem}:1:1>`;
|
||||
} else if (comfyEditor.isLoraStackNode(comfyUI.currentWorkflow[nodeId])) {
|
||||
comfyEditor.applyLoraStack([{ name: comfyEditor.resolveLoraName(modelName) }]);
|
||||
} else {
|
||||
comfyUI.currentWorkflow[nodeId].inputs.lora_name = comfyEditor.resolveLoraName(modelName);
|
||||
}
|
||||
|
||||
+14
-4
@@ -892,6 +892,7 @@
|
||||
<option value="fixed">Fixed</option>
|
||||
<option value="increment">Increment</option>
|
||||
<option value="decrement">Decrement</option>
|
||||
<option value="workflow">Workflow</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1430,12 +1431,13 @@
|
||||
<li id="wfm-help-gen-31">LTX-2.5 and Wan2.2 video workflows also work when loaded as regular workflows in this tab (not just the dedicated Video tab): Positive/Negative Prompt detection follows LTX-2.5's LTXVDualCFGGuider / LTXVConditioning nodes to find the actual prompt text, and the Settings tab's Latent Image section recognizes Wan2.2's EmptyHunyuanLatentVideo and LTX-2.5's EmptyLTXVLatentVideo nodes (with an added Length (frames) field) instead of showing "No EmptyLatentImage node found"; generating from these workflows also gets the same extended timeout as MiniMax H3 video generations</li>
|
||||
<li id="wfm-help-gen-7">Raw JSON always visible in the right column of each tab — edit directly and Apply to reload the workflow; if the loaded workflow has Bypass or Mute nodes, a note listing them appears above the search bar (Bypass nodes are excluded with their wires reconnected around them; Mute nodes are excluded with no reconnection, matching ComfyUI itself); the search bar highlights matches and scrolls to them without moving the cursor into the editor, so typing right after a search can't accidentally overwrite the JSON — click into the editor first to actually edit</li>
|
||||
<li id="wfm-help-gen-30">The <b>Save</b> button (right end of the subtab bar) is hidden while the <b>Batch</b> or <b>Lab</b> subtab is active, since those work on workflow copies / their own Plan files rather than the currently loaded workflow; it reappears on Input/Model/Settings/Feeder</li>
|
||||
<li id="wfm-help-gen-32"><b>Partner API nodes</b> (Nano Banana / Gemini image nodes, etc.): GenerateUI can run workflows that contain ComfyUI's partner API nodes. These nodes need Comfy credentials in the /prompt request — ComfyUI's own screen adds them automatically, but a separate page cannot — so add <code>COMFY_API_KEY=...</code> (a Comfy API key issued at platform.comfy.org) to the plugin's .env file and restart ComfyUI. With the key set, GenerateUI sends the request through the plugin server, which adds the key only when the workflow contains a partner API node (the key never reaches the browser); usage is billed as Comfy credits. A Gemini image node's prompt appears in the Prompt tab, and its reference images go through LoadImage nodes in the Image tab. Sample: ws_nano_banana_2_1_t2i</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="wfm-help-card">
|
||||
<h3 id="wfm-help-gen-card-seed-title">Seed & Generation</h3>
|
||||
<ul>
|
||||
<li id="wfm-help-gen-8">Seed control: random, fixed, increment, decrement — seed input and mode selector stacked vertically for readability</li>
|
||||
<li id="wfm-help-gen-8">Seed control: random, fixed, increment, decrement, workflow (uses the workflow's own seed) — seed input and mode selector stacked vertically for readability</li>
|
||||
<li id="wfm-help-gen-9">Generate, progress display, stop, and view results</li>
|
||||
<li id="wfm-help-gen-10">Eagle integration: auto-save generated images to Eagle (SVG output supported too — both the standard SaveSVGNode and comfyui-tosvg's Save SVG String node)</li>
|
||||
<li id="wfm-help-gen-18">Alt+Click any Apply button (Positive Prompt / Checkpoint / KSampler) to Apply & Generate in one step — applies the parameter to the workflow then immediately queues a generation; only fires when the target node exists in the loaded workflow</li>
|
||||
@@ -1462,12 +1464,12 @@
|
||||
<div class="wfm-help-card">
|
||||
<h3 id="wfm-help-gen-card-lora-title">Model Tab — LoRA Details</h3>
|
||||
<ul>
|
||||
<li id="wfm-help-gen-20">Two ways LoRAs are attached: a chain of standard <b>LoraLoader</b> nodes (one LoRA per node — add more by chaining additional nodes) or a single <b>Lora Loader (LoraManager)</b> node (from the ComfyUI-Lora-Manager custom node pack) that holds a list of LoRAs internally, each with its own active/model-strength/clip-strength; the Single/Stack tabs below adapt automatically depending on which type the target node is</li>
|
||||
<li id="wfm-help-gen-21">Single tab: pick one LoRA + Str M/Str C, then Apply — for a Lora Manager node this <b>replaces its entire internal LoRA list with just this one entry</b>, discarding any others it had</li>
|
||||
<li id="wfm-help-gen-20">Three ways LoRAs are attached: a chain of standard <b>LoraLoader</b> nodes (one LoRA per node — add more by chaining additional nodes), a single <b>Lora Loader (LoraManager)</b> node (from the ComfyUI-Lora-Manager custom node pack) that holds a list of LoRAs internally, each with its own active/model-strength/clip-strength, or ComfyUI's native <b>Load LoRA (Model)</b> + <b>Load LoRA (Text Encoder)</b> node pair (v0.40+; each holds up to 20 rows of LoRA / strength / enabled — the Model node takes Str M, the Text Encoder node takes Str C, and Apply writes both nodes together; API-format workflows only for now, because ComfyUI frontend 1.55.17 cannot add rows to these nodes in its own graph editor); the Single/Stack tabs below adapt automatically depending on which type the target node is</li>
|
||||
<li id="wfm-help-gen-21">Single tab: pick one LoRA + Str M/Str C, then Apply — for a Lora Manager node this <b>replaces its entire internal LoRA list with just this one entry</b>, discarding any others it had; the native Load LoRA nodes likewise have all their rows replaced by this single row</li>
|
||||
<li id="wfm-help-gen-22">Stack tab — Use Stack Group checkbox (shown only when a Lora Manager node exists in the workflow): <b>OFF</b> (the default whenever a workflow is loaded) shows and edits the LoRAs actually configured in the workflow's Lora Manager node itself; <b>ON</b> shows and edits the "Stack" group registered in the Models tab instead; switching either direction clears the node's LoRA list first, then loads it from the newly selected source; switching back to OFF restores exactly the LoRA list that was present when the workflow was loaded (captured as a snapshot at load time)</li>
|
||||
<li id="wfm-help-gen-23">Stack tab controls: each row has an active checkbox and Str M / Str C fields; the header "Stack" checkbox toggles all rows at once; the +/- step buttons adjust the strength of all currently active rows together; a "Showing: LoRAs currently in workflow" / "Showing: registered Stack group" label indicates which source is currently displayed; Apply writes the full list back to the target node and also appends LoRA syntax + CivitAI trigger words to the Positive prompt</li>
|
||||
<li id="wfm-help-gen-24">Caution for <b>CLIP Text Encode edit+</b> (CLIPTextEncodeEditPlus) nodes: when a Lora Manager node's trigger_words output feeds this node's text1 input (RAW/EDIT/front/back modes combine text1 with the editable text_edit field), trigger words are already included automatically at generation time; clicking a LoRA Apply button or turning on Use Stack Group additionally writes LoRA syntax/trigger words into text_edit, duplicating them — leave Use Stack Group off and avoid the LoRA Apply buttons if you want the workflow's original prompt and LoRA composition to stay unmodified</li>
|
||||
<li id="wfm-help-gen-29">Bypass button (⛔, in the LoRA column header, next to Refresh Stack group): forces the target LoRA node's strength to 0 — strength_model/strength_clip for a standard LoraLoader, or every entry's strength/clipStrength for a Lora Manager node (its LoRA list is kept intact, not replaced) — without touching the actual ComfyUI node's mode; click again to restore the exact values that were there before toggling; targets whichever node Single/Stack Apply default to (the workflow's Lora Manager node if it has one, else the first LoRA node); clicking a Single or Stack Apply button clears the bypass state so it can't silently reassert itself on a later toggle</li>
|
||||
<li id="wfm-help-gen-29">Bypass button (⛔, in the LoRA column header, next to Refresh Stack group): forces the target LoRA node's strength to 0 — strength_model/strength_clip for a standard LoraLoader, every entry's strength/clipStrength for a Lora Manager node (its LoRA list is kept intact, not replaced), or every row's strength on both native Load LoRA nodes (Model and Text Encoder; rows kept) — without touching the actual ComfyUI node's mode; click again to restore the exact values that were there before toggling; targets whichever node Single/Stack Apply default to (the workflow's Lora Manager node if it has one, else the first LoRA node); clicking a Single or Stack Apply button clears the bypass state so it can't silently reassert itself on a later toggle</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -2206,6 +2208,14 @@
|
||||
<li id="wfm-help-trouble-8">Model tab shows a checkpoint you didn't expect (e.g. always the same model regardless of the loaded workflow): the checkpoint saved in the workflow file is not installed, so it was silently replaced with another available model during loading — an error toast reports the original (missing) model name when this happens. Select the correct checkpoint manually in the Model tab, or enable "Default Checkpoint" in Settings to force a known-good model on every load.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="wfm-help-card">
|
||||
<h3 id="wfm-help-trouble-card-semantic-title">Semantic Search (Gallery)</h3>
|
||||
<ul>
|
||||
<li id="wfm-help-trouble-10">GPU not detected for EmbeddingGemma 2 (Semantic settings > Model says 'No GPU detected', or the connection test reports CPU): the onnxruntime in ComfyUI's Python is the CPU build, so 'CUDAExecutionProvider' is missing. Fix: stop ComfyUI (files in use cannot be replaced), then in ComfyUI's Python run 'pip uninstall -y onnxruntime onnxruntime-gpu' followed by 'pip install --no-deps onnxruntime-gpu', and start ComfyUI again. It can silently return to the CPU build later: other packages that require 'onnxruntime' (e.g. insightface, rtmlib, qwen-tts) make pip install the CPU build over the GPU files whenever they are installed or updated, so if the GPU disappears after adding a custom node, repeat the fix. Requires an NVIDIA GPU with the CUDA runtime/cuDNN that ComfyUI's PyTorch uses; DirectML is not supported. Without a GPU the CPU is used automatically (slower)</li>
|
||||
<li id="wfm-help-trouble-11">Semantic Search with Gemini says 'GEMINI_API_KEY is not set' or the key is rejected: add GEMINI_API_KEY=your-key (no leading #) to the plugin's .env file (copy .env.example), then restart ComfyUI - the .env file is only read at startup. Get a key at Google AI Studio. If you do not want to use the API, choose EmbeddingGemma 2 (local, no key) in Semantic settings > Model</li>
|
||||
<li id="wfm-help-trouble-12">Semantic Search or Similar shows no results: results only include images that are already indexed inside the selected folder (a green dot in the folder tree means the folder is fully indexed) - build the index from the gear button first, and select a folder that contains indexed images. After changing the model, vector size or image precision, choose 'Rebuild all'. A minimum score set in Semantic settings > Search can also hide everything; set it to 0 to check. The first search after indexing takes a few seconds because the local model is reloaded</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wfm-help-page" id="wfm-help-page-support">
|
||||
|
||||
@@ -3214,7 +3214,12 @@ function _extractDiffusionModels(wf) {
|
||||
if (!wf || typeof wf !== "object") return [];
|
||||
const _UNET_TYPES = new Set(["UNETLoader", "UnetLoaderGGUF", "UNETLoaderGGUF"]);
|
||||
if (Array.isArray(wf.nodes)) return _collectUnique(_collectAllNodes(wf).filter(n => _UNET_TYPES.has(n.type)).map(n => n.widgets_values?.[0]));
|
||||
return _collectUnique(Object.values(wf).filter(n => _UNET_TYPES.has(n?.class_type)).map(n => n.inputs?.unet_name));
|
||||
// Gemini系の画像生成ノード(Nano Banana等、API形式)は"model"入力がモデル名(例: "Gemini Nano Banana 2.1")
|
||||
const _isGeminiImage = (ct) => /^Gemini(Image|NanoBanana)/.test(ct ?? "");
|
||||
return _collectUnique([
|
||||
...Object.values(wf).filter(n => _UNET_TYPES.has(n?.class_type)).map(n => n.inputs?.unet_name),
|
||||
...Object.values(wf).filter(n => _isGeminiImage(n?.class_type)).map(n => typeof n.inputs?.model === "string" ? n.inputs.model : undefined),
|
||||
]);
|
||||
}
|
||||
function _extractTextEncoders(wf) {
|
||||
if (!wf || typeof wf !== "object") return [];
|
||||
@@ -3240,7 +3245,7 @@ function _extractTextEncoders(wf) {
|
||||
}
|
||||
function _extractLoRAs(wf) {
|
||||
if (!wf || typeof wf !== "object") return [];
|
||||
const results = [], seen = new Set();
|
||||
const results = [], seen = new Set(), stackNames = new Set();
|
||||
function add(name, sm, sc) {
|
||||
if (!name || typeof name !== "string" || name === "None" || seen.has(name)) return;
|
||||
seen.add(name);
|
||||
@@ -3263,6 +3268,19 @@ function _extractLoRAs(wf) {
|
||||
if (ct === "LoraLoader") add(n.inputs?.lora_name, n.inputs?.strength_model, n.inputs?.strength_clip);
|
||||
else if (ct === "LoraLoaderModelOnly") add(n.inputs?.lora_name, n.inputs?.strength, 1.0);
|
||||
else if (ct === "ImageMetadataLoRALoader") { for (let i = 1; i <= 3; i++) add(n.inputs?.[`lora_${i}`], n.inputs?.[`strength_model_${i}`], n.inputs?.[`strength_clip_${i}`]); }
|
||||
else if (ct === "LoadLoraModel" || ct === "LoadLoraTextEncoder") {
|
||||
// Native stack node: DynamicGroup rows are flat API keys "loras.<row>.<field>".
|
||||
// Model node carries the model strength, Text Encoder node the clip strength.
|
||||
const isModel = ct === "LoadLoraModel";
|
||||
for (const [k, name] of Object.entries(n.inputs || {})) {
|
||||
const m = /^loras\.(\d+)\.lora_name$/.exec(k);
|
||||
if (!m || typeof name !== "string" || n.inputs[`loras.${m[1]}.enabled`] === false) continue;
|
||||
const s = n.inputs[`loras.${m[1]}.strength`];
|
||||
const hit = stackNames.has(name) && results.find((r) => r.name === name);
|
||||
if (hit) hit[isModel ? "strength_model" : "strength_clip"] = parseFloat(s) || 1.0;
|
||||
else { add(name, isModel ? s : 1.0, isModel ? 1.0 : s); stackNames.add(name); }
|
||||
}
|
||||
}
|
||||
else if (ct === "Lora Loader (LoraManager)") {
|
||||
const lorasData = n.inputs?.loras;
|
||||
const list = lorasData?.__value__ ?? (Array.isArray(lorasData) ? lorasData : null);
|
||||
@@ -3524,7 +3542,8 @@ function _extractPromptsAPI(wf) {
|
||||
// MiniMaxH3ImageToVideo等の動画生成オールインワンノード。CLIPTextEncode等を経由せず
|
||||
// 自ノードの"prompt"入力に直接テキストを持つ(positive/negativeの区別も無い)ため、
|
||||
// _isTextEncoderNode判定を通さずtextMapへ直接投入する(fallbackのtextsに載る)。
|
||||
if (typeof n.inputs?.prompt === "string" && /ImageToVideo|TextToVideo/i.test(ct)) {
|
||||
// Gemini系の画像生成ノード(Nano Banana等)も同様に自ノードの"prompt"入力を持つ。
|
||||
if (typeof n.inputs?.prompt === "string" && /ImageToVideo|TextToVideo|^Gemini(Image|NanoBanana)/i.test(ct)) {
|
||||
textMap.set(id, n.inputs.prompt);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,246 @@
|
||||
{
|
||||
"id": "ws-nano-banana-2-1-t2i",
|
||||
"revision": 0,
|
||||
"last_node_id": 2,
|
||||
"last_link_id": 1,
|
||||
"nodes": [
|
||||
{
|
||||
"id": 1,
|
||||
"type": "GeminiNanoBanana2V2",
|
||||
"pos": [
|
||||
100,
|
||||
100
|
||||
],
|
||||
"size": [
|
||||
400,
|
||||
398
|
||||
],
|
||||
"flags": {},
|
||||
"order": 0,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"localized_name": "prompt",
|
||||
"name": "prompt",
|
||||
"type": "STRING",
|
||||
"widget": {
|
||||
"name": "prompt"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "aspect_ratio",
|
||||
"name": "model.aspect_ratio",
|
||||
"type": "COMBO",
|
||||
"widget": {
|
||||
"name": "model.aspect_ratio"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "resolution",
|
||||
"name": "model.resolution",
|
||||
"type": "COMBO",
|
||||
"widget": {
|
||||
"name": "model.resolution"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "thinking_level",
|
||||
"name": "model.thinking_level",
|
||||
"type": "COMBO",
|
||||
"widget": {
|
||||
"name": "model.thinking_level"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "image_1",
|
||||
"name": "model.images.image_1",
|
||||
"shape": 7,
|
||||
"type": "IMAGE",
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "files",
|
||||
"name": "model.files",
|
||||
"shape": 7,
|
||||
"type": "GEMINI_INPUT_FILES",
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "model",
|
||||
"name": "model",
|
||||
"type": "COMFY_DYNAMICCOMBO_V3",
|
||||
"widget": {
|
||||
"name": "model"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "seed",
|
||||
"name": "seed",
|
||||
"type": "INT",
|
||||
"widget": {
|
||||
"name": "seed"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "response_modalities",
|
||||
"name": "response_modalities",
|
||||
"type": "COMBO",
|
||||
"widget": {
|
||||
"name": "response_modalities"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "system_prompt",
|
||||
"name": "system_prompt",
|
||||
"shape": 7,
|
||||
"type": "STRING",
|
||||
"widget": {
|
||||
"name": "system_prompt"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "temperature",
|
||||
"name": "temperature",
|
||||
"shape": 7,
|
||||
"type": "FLOAT",
|
||||
"widget": {
|
||||
"name": "temperature"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "top_p",
|
||||
"name": "top_p",
|
||||
"shape": 7,
|
||||
"type": "FLOAT",
|
||||
"widget": {
|
||||
"name": "top_p"
|
||||
},
|
||||
"link": null
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"localized_name": "IMAGE",
|
||||
"name": "IMAGE",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
1
|
||||
]
|
||||
},
|
||||
{
|
||||
"localized_name": "STRING",
|
||||
"name": "STRING",
|
||||
"type": "STRING",
|
||||
"links": null
|
||||
},
|
||||
{
|
||||
"localized_name": "thought_image",
|
||||
"name": "thought_image",
|
||||
"type": "IMAGE",
|
||||
"links": null
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "GeminiNanoBanana2V2"
|
||||
},
|
||||
"widgets_values": [
|
||||
"a cute watercolor illustration of a red fox in a forest",
|
||||
"Gemini Nano Banana 2.1",
|
||||
"auto",
|
||||
"1K",
|
||||
"MEDIUM",
|
||||
42,
|
||||
"randomize",
|
||||
"IMAGE",
|
||||
"You are an expert image-generation engine. You must ALWAYS produce an image.\nInterpret all user input—regardless of format, intent, or abstraction—as literal visual directives for image composition.\nIf a prompt is conversational or lacks specific visual details, you must creatively invent a concrete visual scenario that depicts the concept.\nPrioritize generating the visual representation above any text, formatting, or conversational requests.",
|
||||
1,
|
||||
0.95
|
||||
],
|
||||
"color": "#432",
|
||||
"bgcolor": "#653",
|
||||
"title": "Nano Banana 2.1"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"type": "SaveImage",
|
||||
"pos": [
|
||||
700,
|
||||
100
|
||||
],
|
||||
"size": [
|
||||
270,
|
||||
58
|
||||
],
|
||||
"flags": {},
|
||||
"order": 1,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"localized_name": "images",
|
||||
"name": "images",
|
||||
"type": "IMAGE",
|
||||
"link": 1
|
||||
},
|
||||
{
|
||||
"localized_name": "filename_prefix",
|
||||
"name": "filename_prefix",
|
||||
"type": "STRING",
|
||||
"widget": {
|
||||
"name": "filename_prefix"
|
||||
},
|
||||
"link": null
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"localized_name": "images",
|
||||
"name": "images",
|
||||
"type": "IMAGE",
|
||||
"links": null
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "SaveImage"
|
||||
},
|
||||
"widgets_values": [
|
||||
"nano_banana"
|
||||
],
|
||||
"widgets_values_named": {
|
||||
"filename_prefix": "ComfyUI"
|
||||
}
|
||||
}
|
||||
],
|
||||
"links": [
|
||||
[
|
||||
1,
|
||||
1,
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
"IMAGE"
|
||||
]
|
||||
],
|
||||
"groups": [],
|
||||
"config": {},
|
||||
"extra": {
|
||||
"bvSmartPipeRootId": "fab0b8d3-84d9-402b-a229-8e739ac71670",
|
||||
"bvSmartPipeRoutes": {},
|
||||
"ds": {
|
||||
"scale": 1.0545043882575544,
|
||||
"offset": [
|
||||
944.7666109676784,
|
||||
628.4452835934753
|
||||
]
|
||||
}
|
||||
},
|
||||
"version": 0.4
|
||||
}
|
||||
@@ -0,0 +1,665 @@
|
||||
{
|
||||
"id": "8b76d6d0-7819-4828-a1a1-4e698976dfd3",
|
||||
"revision": 0,
|
||||
"last_node_id": 28,
|
||||
"last_link_id": 50,
|
||||
"nodes": [
|
||||
{
|
||||
"id": 8,
|
||||
"type": "VAEEncode",
|
||||
"pos": [
|
||||
551.8454158175873,
|
||||
-685.9812381649755
|
||||
],
|
||||
"size": [
|
||||
242.296875,
|
||||
96
|
||||
],
|
||||
"flags": {},
|
||||
"order": 5,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"localized_name": "pixels",
|
||||
"name": "pixels",
|
||||
"type": "IMAGE",
|
||||
"link": 49
|
||||
},
|
||||
{
|
||||
"localized_name": "vae",
|
||||
"name": "vae",
|
||||
"type": "VAE",
|
||||
"link": 34
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"localized_name": "LATENT",
|
||||
"name": "LATENT",
|
||||
"type": "LATENT",
|
||||
"links": [
|
||||
5
|
||||
]
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "VAEEncode",
|
||||
"ue_properties": {
|
||||
"widget_ue_connectable": {},
|
||||
"input_ue_unconnectable": {},
|
||||
"version": "7.8"
|
||||
}
|
||||
},
|
||||
"widgets_values": []
|
||||
},
|
||||
{
|
||||
"id": 22,
|
||||
"type": "VAELoader",
|
||||
"pos": [
|
||||
75.4452850000009,
|
||||
-464.22850100000056
|
||||
],
|
||||
"size": [
|
||||
270,
|
||||
58
|
||||
],
|
||||
"flags": {},
|
||||
"order": 0,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"localized_name": "vae_name",
|
||||
"name": "vae_name",
|
||||
"type": "COMBO",
|
||||
"widget": {
|
||||
"name": "vae_name"
|
||||
},
|
||||
"link": null
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"localized_name": "VAE",
|
||||
"name": "VAE",
|
||||
"type": "VAE",
|
||||
"links": [
|
||||
34,
|
||||
35
|
||||
]
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "VAELoader",
|
||||
"ue_properties": {
|
||||
"widget_ue_connectable": {},
|
||||
"input_ue_unconnectable": {},
|
||||
"version": "7.8"
|
||||
}
|
||||
},
|
||||
"widgets_values": [
|
||||
"SDXL-VAE-FP16-Fix.safetensors"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"type": "VAEDecode",
|
||||
"pos": [
|
||||
1312.282348239462,
|
||||
-683.1137137997414
|
||||
],
|
||||
"size": [
|
||||
254.390625,
|
||||
96
|
||||
],
|
||||
"flags": {},
|
||||
"order": 7,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"localized_name": "samples",
|
||||
"name": "samples",
|
||||
"type": "LATENT",
|
||||
"link": 11
|
||||
},
|
||||
{
|
||||
"localized_name": "vae",
|
||||
"name": "vae",
|
||||
"type": "VAE",
|
||||
"link": 35
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"localized_name": "IMAGE",
|
||||
"name": "IMAGE",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
50
|
||||
]
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "VAEDecode",
|
||||
"ue_properties": {
|
||||
"widget_ue_connectable": {},
|
||||
"input_ue_unconnectable": {},
|
||||
"version": "7.8"
|
||||
}
|
||||
},
|
||||
"widgets_values": []
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"type": "KSampler",
|
||||
"pos": [
|
||||
1000.0439480441502,
|
||||
-674.780789922787
|
||||
],
|
||||
"size": [
|
||||
270,
|
||||
589.3125
|
||||
],
|
||||
"flags": {},
|
||||
"order": 6,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"localized_name": "model",
|
||||
"name": "model",
|
||||
"type": "MODEL",
|
||||
"link": 36
|
||||
},
|
||||
{
|
||||
"localized_name": "positive",
|
||||
"name": "positive",
|
||||
"type": "CONDITIONING",
|
||||
"link": 37
|
||||
},
|
||||
{
|
||||
"localized_name": "negative",
|
||||
"name": "negative",
|
||||
"type": "CONDITIONING",
|
||||
"link": 10
|
||||
},
|
||||
{
|
||||
"localized_name": "latent_image",
|
||||
"name": "latent_image",
|
||||
"type": "LATENT",
|
||||
"link": 5
|
||||
},
|
||||
{
|
||||
"localized_name": "seed",
|
||||
"name": "seed",
|
||||
"type": "INT",
|
||||
"widget": {
|
||||
"name": "seed"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "steps",
|
||||
"name": "steps",
|
||||
"type": "INT",
|
||||
"widget": {
|
||||
"name": "steps"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "cfg",
|
||||
"name": "cfg",
|
||||
"type": "FLOAT",
|
||||
"widget": {
|
||||
"name": "cfg"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "sampler_name",
|
||||
"name": "sampler_name",
|
||||
"type": "COMBO",
|
||||
"widget": {
|
||||
"name": "sampler_name"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "scheduler",
|
||||
"name": "scheduler",
|
||||
"type": "COMBO",
|
||||
"widget": {
|
||||
"name": "scheduler"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "denoise",
|
||||
"name": "denoise",
|
||||
"type": "FLOAT",
|
||||
"widget": {
|
||||
"name": "denoise"
|
||||
},
|
||||
"link": null
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"localized_name": "LATENT",
|
||||
"name": "LATENT",
|
||||
"type": "LATENT",
|
||||
"links": [
|
||||
11
|
||||
]
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "KSampler",
|
||||
"ue_properties": {
|
||||
"widget_ue_connectable": {},
|
||||
"input_ue_unconnectable": {},
|
||||
"version": "7.8"
|
||||
}
|
||||
},
|
||||
"widgets_values": [
|
||||
240074286219855,
|
||||
"randomize",
|
||||
30,
|
||||
8,
|
||||
"euler",
|
||||
"karras",
|
||||
0.7
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 24,
|
||||
"type": "CLIPTextEncode",
|
||||
"pos": [
|
||||
528.6156850000002,
|
||||
-509.49460100000033
|
||||
],
|
||||
"size": [
|
||||
400,
|
||||
200
|
||||
],
|
||||
"flags": {},
|
||||
"order": 4,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"localized_name": "clip",
|
||||
"name": "clip",
|
||||
"type": "CLIP",
|
||||
"link": 38
|
||||
},
|
||||
{
|
||||
"localized_name": "text",
|
||||
"name": "text",
|
||||
"type": "STRING",
|
||||
"widget": {
|
||||
"name": "text"
|
||||
},
|
||||
"link": null
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"localized_name": "CONDITIONING",
|
||||
"name": "CONDITIONING",
|
||||
"type": "CONDITIONING",
|
||||
"links": [
|
||||
37
|
||||
]
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "CLIPTextEncode",
|
||||
"ue_properties": {
|
||||
"widget_ue_connectable": {},
|
||||
"input_ue_unconnectable": {},
|
||||
"version": "7.8"
|
||||
}
|
||||
},
|
||||
"widgets_values": [
|
||||
"flower,anime girl"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"type": "CLIPTextEncode",
|
||||
"pos": [
|
||||
526.8870184488446,
|
||||
-252.08752270664039
|
||||
],
|
||||
"size": [
|
||||
400,
|
||||
200
|
||||
],
|
||||
"flags": {
|
||||
"collapsed": false
|
||||
},
|
||||
"order": 3,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"localized_name": "clip",
|
||||
"name": "clip",
|
||||
"type": "CLIP",
|
||||
"link": 9
|
||||
},
|
||||
{
|
||||
"localized_name": "text",
|
||||
"name": "text",
|
||||
"type": "STRING",
|
||||
"widget": {
|
||||
"name": "text"
|
||||
},
|
||||
"link": null
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"localized_name": "CONDITIONING",
|
||||
"name": "CONDITIONING",
|
||||
"type": "CONDITIONING",
|
||||
"links": [
|
||||
10
|
||||
]
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "CLIPTextEncode",
|
||||
"ue_properties": {
|
||||
"widget_ue_connectable": {},
|
||||
"input_ue_unconnectable": {},
|
||||
"version": "7.8"
|
||||
}
|
||||
},
|
||||
"widgets_values": [
|
||||
""
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"type": "CheckpointLoaderSimple",
|
||||
"pos": [
|
||||
70.30033916275676,
|
||||
-694.6312926669282
|
||||
],
|
||||
"size": [
|
||||
270,
|
||||
154.65625
|
||||
],
|
||||
"flags": {},
|
||||
"order": 1,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"localized_name": "ckpt_name",
|
||||
"name": "ckpt_name",
|
||||
"type": "COMBO",
|
||||
"widget": {
|
||||
"name": "ckpt_name"
|
||||
},
|
||||
"link": null
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"localized_name": "MODEL",
|
||||
"name": "MODEL",
|
||||
"type": "MODEL",
|
||||
"links": [
|
||||
36
|
||||
]
|
||||
},
|
||||
{
|
||||
"localized_name": "CLIP",
|
||||
"name": "CLIP",
|
||||
"type": "CLIP",
|
||||
"links": [
|
||||
9,
|
||||
38
|
||||
]
|
||||
},
|
||||
{
|
||||
"localized_name": "VAE",
|
||||
"name": "VAE",
|
||||
"type": "VAE",
|
||||
"links": []
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "CheckpointLoaderSimple",
|
||||
"ue_properties": {
|
||||
"widget_ue_connectable": {},
|
||||
"input_ue_unconnectable": {},
|
||||
"version": "7.8"
|
||||
}
|
||||
},
|
||||
"widgets_values": [
|
||||
"anime\\IllustriousStyle_v22.safetensors"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 28,
|
||||
"type": "WFS_GalleryFeeder",
|
||||
"pos": [
|
||||
76.77559983502367,
|
||||
-338.79391585532534
|
||||
],
|
||||
"size": [
|
||||
270,
|
||||
150
|
||||
],
|
||||
"flags": {},
|
||||
"order": 2,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"localized_name": "group_name",
|
||||
"name": "group_name",
|
||||
"type": "STRING",
|
||||
"widget": {
|
||||
"name": "group_name"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "index",
|
||||
"name": "index",
|
||||
"type": "INT",
|
||||
"widget": {
|
||||
"name": "index"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "sort_mode",
|
||||
"name": "sort_mode",
|
||||
"type": "COMBO",
|
||||
"widget": {
|
||||
"name": "sort_mode"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "seed",
|
||||
"name": "seed",
|
||||
"type": "INT",
|
||||
"widget": {
|
||||
"name": "seed"
|
||||
},
|
||||
"link": null
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"localized_name": "IMAGE",
|
||||
"name": "IMAGE",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
49
|
||||
]
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "WFS_GalleryFeeder"
|
||||
},
|
||||
"widgets_values": [
|
||||
"__Feeder__",
|
||||
0,
|
||||
"filename_asc",
|
||||
0,
|
||||
"fixed"
|
||||
],
|
||||
"title": "WFS Gallery Feeder"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"type": "PreviewImage",
|
||||
"pos": [
|
||||
1603.3762031816507,
|
||||
-693.7018206825535
|
||||
],
|
||||
"size": [
|
||||
284.5062499999997,
|
||||
301.77375000000023
|
||||
],
|
||||
"flags": {},
|
||||
"order": 8,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"localized_name": "images",
|
||||
"name": "images",
|
||||
"type": "IMAGE",
|
||||
"link": 50
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"properties": {
|
||||
"Node name for S&R": "PreviewImage",
|
||||
"ue_properties": {
|
||||
"widget_ue_connectable": {},
|
||||
"input_ue_unconnectable": {},
|
||||
"version": "7.8"
|
||||
}
|
||||
},
|
||||
"widgets_values": []
|
||||
}
|
||||
],
|
||||
"links": [
|
||||
[
|
||||
5,
|
||||
8,
|
||||
0,
|
||||
7,
|
||||
3,
|
||||
"LATENT"
|
||||
],
|
||||
[
|
||||
9,
|
||||
9,
|
||||
1,
|
||||
11,
|
||||
0,
|
||||
"CLIP"
|
||||
],
|
||||
[
|
||||
10,
|
||||
11,
|
||||
0,
|
||||
7,
|
||||
2,
|
||||
"CONDITIONING"
|
||||
],
|
||||
[
|
||||
11,
|
||||
7,
|
||||
0,
|
||||
5,
|
||||
0,
|
||||
"LATENT"
|
||||
],
|
||||
[
|
||||
34,
|
||||
22,
|
||||
0,
|
||||
8,
|
||||
1,
|
||||
"VAE"
|
||||
],
|
||||
[
|
||||
35,
|
||||
22,
|
||||
0,
|
||||
5,
|
||||
1,
|
||||
"VAE"
|
||||
],
|
||||
[
|
||||
36,
|
||||
9,
|
||||
0,
|
||||
7,
|
||||
0,
|
||||
"MODEL"
|
||||
],
|
||||
[
|
||||
37,
|
||||
24,
|
||||
0,
|
||||
7,
|
||||
1,
|
||||
"CONDITIONING"
|
||||
],
|
||||
[
|
||||
38,
|
||||
9,
|
||||
1,
|
||||
24,
|
||||
0,
|
||||
"CLIP"
|
||||
],
|
||||
[
|
||||
49,
|
||||
28,
|
||||
0,
|
||||
8,
|
||||
0,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
50,
|
||||
5,
|
||||
0,
|
||||
4,
|
||||
0,
|
||||
"IMAGE"
|
||||
]
|
||||
],
|
||||
"groups": [],
|
||||
"config": {},
|
||||
"extra": {
|
||||
"ue_links": [],
|
||||
"links_added_by_ue": [],
|
||||
"linearData": {
|
||||
"inputs": [
|
||||
[
|
||||
"9",
|
||||
"ckpt_name"
|
||||
],
|
||||
[
|
||||
"3",
|
||||
"pose_editor_3d_widget"
|
||||
],
|
||||
[
|
||||
"3",
|
||||
"timer_interval"
|
||||
]
|
||||
],
|
||||
"outputs": []
|
||||
}
|
||||
},
|
||||
"version": 0.4
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 258 KiB |
Reference in New Issue
Block a user