6.6 KiB
6.6 KiB
- Top
- Node / Image Node / Text Node / XYPlot Node / Float Palet
- Workflow
Node
🍅 XY Plot Node
D2 XY Plot Easy
- 一個可建立限定於 KSampler 項目的簡化工作流程 XY Plot 的節點
輸入
positive/negative/seed/steps/cfg/sampler_name/scheduler/denoise- 傳遞給 KSampler 的設定
ckpt_name- 傳遞給 D2 Checkpoint Loader 的設定
x_type/y_type- 指定要在 XY Plot 中執行的項目
- 當指定為
STRING、INT、FLOAT時,將從x_other、y_other輸出
x_list/y_list- XY Plot 的變更內容
- 因為是換行分隔的文字,所以也可以使用其他節點輸入
auto_queuetrue:自動執行所需次數的 Queuefalse:手動執行 Queue
Reset index- 中途停止時使用此按鈕重置索引
輸出
xy_pipe- 統一輸出用於 D2 KSampler 的參數
grid_pipe- 統一輸出用於 D2 Grid Image 的參數
x_annotationy_annotationstatus
- 統一輸出用於 D2 Grid Image 的參數
positive/negative/seed/steps/cfg/sampler_name/scheduler/denoise- 傳遞給 KSampler 的參數
ckpt_name- 傳遞給 D2 Checkpoint Loader 的設定
x_other/y_other- 當
x_typey_type設定為STRINGINTFLOAT時從此處輸出
- 當
x_annotation/y_annotation- 連接至
D2 XY Grid Image的標題文字
- 連接至
status- 連接至
D2 XY Grid Image的控制信號
- 連接至
index- 目前的處理次數
D2 XY Plot
- 可創建通用 XY Plot 工作流程的節點
- X / Y 輸入為簡單的換行分隔文字,易於與其他節點組合
Input
x_type/y_type- 從
STRINGINTFLOAT中指定x_listy_list的數據類型
- 從
x_title/y_title- 添加到標題文字的文字
x_list/y_list- XY Plot 的變更內容
- 為換行分隔文字,可使用其他節點輸入
auto_queuetrue: 自動執行所需次數的 Queuefalse: 手動執行 Queue
Reset index- 中途停止時用此按鈕重置 index
Output
X/Y- 從
x_listy_list獲取的元素
- 從
x_annotation/y_annotation- 連接到
D2 XY Grid Image的標題文字
- 連接到
status- 連接到
D2 XY Grid Image的控制信號
- 連接到
index- 當前處理次數
D2 XY Grid Image
- 與
D2 XY Plot連接使用的網格圖像創建節點
Input
x_annotation/y_annotation- 連接到
D2 XY Grid Image的標題文字
- 連接到
status- 連接到
D2 XY Grid Image的控制文字 INIT: 初始化FINISH: 輸出網格圖像{空字串}: 其他狀態
- 連接到
font_size- 標題文字的字體大小
grid_gap- 圖像間距
swap_dimensionstrue: 垂直方向網格false: 水平方向網格
grid_onlytrue: 僅輸出網格圖像false: 也輸出個別圖像
D2 XY Prompt SR
- 搜索替換輸入文字並傳遞給
D2 XY Plot - 也可輸出列表
Input
prompt- 提示詞。可包含換行
search_txt- 搜索目標文字。可包含多個詞
- 不能使用換行
replace- 替換用文字
- 因為用換行分隔,所以可以包含「,」
Output
x / y_list- 連接到
D2 XY Plot
- 連接到
LIST- 以列表形式輸出替換後的文字
D2 XY Prompt SR2
- 搜索替換從
D2 XY Plot接收的提示詞並傳遞給 KSampler - 如果要重現
Stable Diffusion webui A1111的 Prompt S/R 請使用此節點
Input
x_y- 從
D2 XY Plot接收的替換用文字
- 從
prompt- 替換目標文字
search- 搜索文字。可包含多個詞
- 不能使用換行
D2 XY Seed
- 指定
-1時輸出隨機數值 - 其他數值直接輸出
D2 XY Plot側需要將x/y_type設為INT
D2 XY Checkpoint List / D2 XY Lora List
- 傳遞 Checkpoint / Lora 到
D2 XY Plot的節點 - 最多可指定 50 個
D2 XY Seed2
- 輸出指定數量種子值的節點
input
initial_number- 當
mode設為increment、decrement或fixed時,以此值為基準
- 當
count- 要生成的種子值數量
modefixed: 僅輸出initial_numberincrement: 以initial_number為基礎,每次加1decrement: 以initial_number為基礎,每次減1randomize: 不考慮initial_number,輸出隨機數
D2 XY Model List
- 將 Checkpoint/Lora 傳遞給
D2 XY Plot的節點 - 當你想獲取大量模型列表,但不想在
D2 Checkpoint List中一個一個選擇時使用 - 點擊
get_list獲取模型列表,然後編輯保留需要的部分
input
model_type- 選擇
checkpoints或loras
- 選擇
filter- 輸入過濾文字
- 支援正則表達式
- 當搜尋文字包含
\時,需寫成\\
get_list- 獲取模型列表按鈕
D2 XY Folder Images
- 傳遞指定資料夾內圖像路徑到
D2 XY Plot的節點
D2 XY Annotation
- 用於不使用
D2 XY Plot時或進行特殊 XY Plot 時添加標題
D2 XY List To Plot
- 將列表輸出節點的內容轉換為可用於
D2 XY Plot的格式 - 內部僅執行
"\n".join(list),因此如果列表內容包含換行符,可能無法按預期工作 - 處理包含換行符的文本時,請使用
D2 XY String To Plot
D2 XY String To Plot
- 將多行文本轉換為可用於
D2 XY Plot/D2 XY Plot Easy的格式 - 當需要比較整個提示詞時使用
- 在
D2 XY Plot Easy中進行提示詞比較時,將x/y_type設置為STRING,並將x/y_other連接到D2 KSampler的positive輸入