頭像風格化變體
上傳頭像,輸入主題,產生64種風格變體。
下載工作流程在 Cloud 中試用 API 文件
關於
「大頭貼風格變化生成」工作流程可將你的大頭貼依指定主題創意轉換為 64 種獨特變化。流程結合先進 AI 模型與自訂節點,確保高品質且多元的輸出。首先由 'LoadImage' 節點上傳大頭貼,接著經 'Nano Banana Pro' 模型進行風格轉換。'Gemini3 Pro Image Preview' 模型確保每個變化都具備細節與藝術品質。流程整合 'comfyui-kjnodes' 與 'comfyui_essentials' 等自訂節點,提升彈性與多樣性。特別適合社群愛好者與專業人士,為線上形象注入創意主題變化。
您提供的內容
- 正在讀取工作流程
在 ComfyUI 中執行。 此工作流程無法在此頁面上執行。請在已載入所有內容的 Comfy Cloud 中開啟,或下載到您自己的 ComfyUI。
在 Cloud 中試用範例
工作流程內部
節點圖的唯讀預覽。請在 Comfy Cloud 中開啟,或下載後編輯節點。
Loading the graph
Open full-size workflow preview- 作者
- Rob
需要自訂節點
- 正在讀取工作流程
從程式碼使用此工作流程
可行時會根據工作流程圖和輸入內容產生;否則會顯示儲存的範例。執行可能產生費用的程式碼前,請檢查認證資訊和端點。
1 取得 API 金鑰 ↗
What you need
- Runs on
- Comfy Cloud
- 金鑰
- COMFY_API_KEY
需要付費 Cloud 方案與點數。
下載 API JSONAPI 文件 ↗
# Python 3.10+: pip install comfy-sdk==0.4.0
import os
from comfy_sdk import Comfy
api_key = os.environ.get("COMFY_API_KEY", "").strip()
if not api_key: raise RuntimeError("Set COMFY_API_KEY")
os.environ.setdefault("COMFY_BASE_URL", "https://cloud.comfy.org")
client = Comfy(api_key=api_key)
workflow = client.workflows.from_json({
"10": {
"class_type": "LoadImage",
"inputs": {
"image": "subject-profile.png"
},
"_meta": {
"title": "Load Image"
}
},
"16": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 1
},
"_meta": {
"title": "Select Image Number"
}
},
"19": {
"class_type": "GeminiImage2Node",
"inputs": {
"aspect_ratio": "auto",
"images": [
"17:78",
0
],
"model": "gemini-3-pro-image-preview",
"prompt": "Analyze the input image to understand it's aesthetic qualities. Upscale image 1 and add subtle details, fix text while maintaining the subject's identity.",
"resolution": "2K",
"response_modalities": "IMAGE+TEXT",
"seed": 222,
"system_prompt": "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."
},
"_meta": {
"title": "Nano Banana Pro (Google Gemini Image)"
}
},
"32": {
"class_type": "GeminiImage2Node",
"inputs": {
"aspect_ratio": "1:1",
"images": [
"10",
0
],
"model": "gemini-3-pro-image-preview",
"prompt": "Generate a 8x8 grid (8 rows, 8 cols) of variations of this profile picture used for social media. There should be 64 total images. Each grid image should have a unique visual appearance.\n\nThe theme for the grid images is: glitch art",
"resolution": "4K",
"response_modalities": "IMAGE+TEXT",
"seed": 111,
"system_prompt": "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."
},
"_meta": {
"title": "Nano Banana Pro (Google Gemini Image)"
}
},
"36": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-selected_image-upscaled",
"images": [
"19",
0
]
},
"_meta": {
"title": "Save Upscaled Image"
}
},
"37": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-selected_image",
"images": [
"17:78",
0
]
},
"_meta": {
"title": "Save Selected Image"
}
},
"39": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-64_grid_images",
"images": [
"32",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"15:101": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": 0,
"y": [
"15:63",
0
]
},
"_meta": {
"title": "9"
}
},
"15:102": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:59",
0
],
"y": [
"15:63",
0
]
},
"_meta": {
"title": "10"
}
},
"15:103": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:60",
0
],
"y": [
"15:63",
0
]
},
"_meta": {
"title": "11"
}
},
"15:104": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:82",
0
],
"y": [
"15:63",
0
]
},
"_meta": {
"title": "12"
}
},
"15:105": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:83",
0
],
"y": [
"15:63",
0
]
},
"_meta": {
"title": "13"
}
},
"15:106": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:86",
0
],
"y": [
"15:63",
0
]
},
"_meta": {
"title": "14"
}
},
"15:107": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:94",
0
],
"y": [
"15:63",
0
]
},
"_meta": {
"title": "16"
}
},
"15:114": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:87",
0
],
"y": [
"15:63",
0
]
},
"_meta": {
"title": "15"
}
},
"15:144": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"15:66",
0
],
"b": 0,
"value": "2*a"
},
"_meta": {
"title": "Row 3 - Y val"
}
},
"15:145": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": 0,
"y": [
"15:144",
0
]
},
"_meta": {
"title": "17"
}
},
"15:146": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:59",
0
],
"y": [
"15:144",
0
]
},
"_meta": {
"title": "18"
}
},
"15:147": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:60",
0
],
"y": [
"15:144",
0
]
},
"_meta": {
"title": "19"
}
},
"15:148": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:82",
0
],
"y": [
"15:144",
0
]
},
"_meta": {
"title": "20"
}
},
"15:149": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:83",
0
],
"y": [
"15:144",
0
]
},
"_meta": {
"title": "21"
}
},
"15:150": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:86",
0
],
"y": [
"15:144",
0
]
},
"_meta": {
"title": "22"
}
},
"15:151": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:87",
0
],
"y": [
"15:144",
0
]
},
"_meta": {
"title": "23"
}
},
"15:152": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:94",
0
],
"y": [
"15:144",
0
]
},
"_meta": {
"title": "24"
}
},
"15:156": {
"class_type": "ImageBatchMulti",
"inputs": {
"image_1": [
"15:29",
0
],
"image_2": [
"15:33",
0
],
"image_3": [
"15:39",
0
],
"image_4": [
"15:80",
0
],
"image_5": [
"15:81",
0
],
"image_6": [
"15:88",
0
],
"image_7": [
"15:89",
0
],
"image_8": [
"15:95",
0
],
"inputcount": 8
},
"_meta": {
"title": "Image Batch Multi"
}
},
"15:158": {
"class_type": "ImageBatchMulti",
"inputs": {
"image_1": [
"15:101",
0
],
"image_2": [
"15:102",
0
],
"image_3": [
"15:103",
0
],
"image_4": [
"15:104",
0
],
"image_5": [
"15:105",
0
],
"image_6": [
"15:106",
0
],
"image_7": [
"15:114",
0
],
"image_8": [
"15:107",
0
],
"inputcount": 8
},
"_meta": {
"title": "Image Batch Multi"
}
},
"15:161": {
"class_type": "ImageBatchMulti",
"inputs": {
"image_1": [
"15:145",
0
],
"image_2": [
"15:146",
0
],
"image_3": [
"15:147",
0
],
"image_4": [
"15:148",
0
],
"image_5": [
"15:149",
0
],
"image_6": [
"15:150",
0
],
"image_7": [
"15:151",
0
],
"image_8": [
"15:152",
0
],
"inputcount": 8
},
"_meta": {
"title": "Image Batch Multi"
}
},
"15:172": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"15:66",
0
],
"b": 0,
"value": "3*a"
},
"_meta": {
"title": "Row 4 - Y val"
}
},
"15:18": {
"class_type": "GetImageSize",
"inputs": {
"image": [
"32",
0
]
},
"_meta": {
"title": "Get Image Size"
}
},
"15:186": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"15:66",
0
],
"b": 0,
"value": "4*a"
},
"_meta": {
"title": "Row 5 - Y val"
}
},
"15:187": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": 0,
"y": [
"15:172",
0
]
},
"_meta": {
"title": "25"
}
},
"15:188": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:59",
0
],
"y": [
"15:172",
0
]
},
"_meta": {
"title": "26"
}
},
"15:189": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:60",
0
],
"y": [
"15:172",
0
]
},
"_meta": {
"title": "27"
}
},
"15:190": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:82",
0
],
"y": [
"15:172",
0
]
},
"_meta": {
"title": "28"
}
},
"15:191": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:83",
0
],
"y": [
"15:172",
0
]
},
"_meta": {
"title": "29"
}
},
"15:192": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:86",
0
],
"y": [
"15:172",
0
]
},
"_meta": {
"title": "30"
}
},
"15:193": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:87",
0
],
"y": [
"15:172",
0
]
},
"_meta": {
"title": "31"
}
},
"15:194": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:94",
0
],
"y": [
"15:172",
0
]
},
"_meta": {
"title": "32"
}
},
"15:195": {
"class_type": "ImageBatchMulti",
"inputs": {
"image_1": [
"15:187",
0
],
"image_2": [
"15:188",
0
],
"image_3": [
"15:189",
0
],
"image_4": [
"15:190",
0
],
"image_5": [
"15:191",
0
],
"image_6": [
"15:192",
0
],
"image_7": [
"15:193",
0
],
"image_8": [
"15:194",
0
],
"inputcount": 8
},
"_meta": {
"title": "Image Batch Multi"
}
},
"15:197": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": 0,
"y": [
"15:186",
0
]
},
"_meta": {
"title": "33"
}
},
"15:198": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:59",
0
],
"y": [
"15:186",
0
]
},
"_meta": {
"title": "34"
}
},
"15:199": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:60",
0
],
"y": [
"15:186",
0
]
},
"_meta": {
"title": "35"
}
},
"15:200": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:82",
0
],
"y": [
"15:186",
0
]
},
"_meta": {
"title": "36"
}
},
"15:201": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:83",
0
],
"y": [
"15:186",
0
]
},
"_meta": {
"title": "37"
}
},
"15:202": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:86",
0
],
"y": [
"15:186",
0
]
},
"_meta": {
"title": "38"
}
},
"15:203": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:87",
0
],
"y": [
"15:186",
0
]
},
"_meta": {
"title": "39"
}
},
"15:204": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:94",
0
],
"y": [
"15:186",
0
]
},
"_meta": {
"title": "40"
}
},
"15:205": {
"class_type": "ImageBatchMulti",
"inputs": {
"image_1": [
"15:197",
0
],
"image_2": [
"15:198",
0
],
"image_3": [
"15:199",
0
],
"image_4": [
"15:200",
0
],
"image_5": [
"15:201",
0
],
"image_6": [
"15:202",
0
],
"image_7": [
"15:203",
0
],
"image_8": [
"15:204",
0
],
"inputcount": 8
},
"_meta": {
"title": "Image Batch Multi"
}
},
"15:278": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"15:66",
0
],
"b": 0,
"value": "5*a"
},
"_meta": {
"title": "Row 6 - Y val"
}
},
"15:279": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": 0,
"y": [
"15:278",
0
]
},
"_meta": {
"title": "41"
}
},
"15:280": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:59",
0
],
"y": [
"15:278",
0
]
},
"_meta": {
"title": "42"
}
},
"15:281": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:60",
0
],
"y": [
"15:278",
0
]
},
"_meta": {
"title": "43"
}
},
"15:282": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:82",
0
],
"y": [
"15:278",
0
]
},
"_meta": {
"title": "44"
}
},
"15:283": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:83",
0
],
"y": [
"15:278",
0
]
},
"_meta": {
"title": "45"
}
},
"15:284": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:86",
0
],
"y": [
"15:278",
0
]
},
"_meta": {
"title": "46"
}
},
"15:285": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:87",
0
],
"y": [
"15:278",
0
]
},
"_meta": {
"title": "47"
}
},
"15:286": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:94",
0
],
"y": [
"15:278",
0
]
},
"_meta": {
"title": "48"
}
},
"15:287": {
"class_type": "ImageBatchMulti",
"inputs": {
"image_1": [
"15:279",
0
],
"image_2": [
"15:280",
0
],
"image_3": [
"15:281",
0
],
"image_4": [
"15:282",
0
],
"image_5": [
"15:283",
0
],
"image_6": [
"15:284",
0
],
"image_7": [
"15:285",
0
],
"image_8": [
"15:286",
0
],
"inputcount": 8
},
"_meta": {
"title": "Image Batch Multi"
}
},
"15:29": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": 0,
"y": 0
},
"_meta": {
"title": "1"
}
},
"15:311": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": 0,
"y": [
"15:331",
0
]
},
"_meta": {
"title": "49"
}
},
"15:312": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:59",
0
],
"y": [
"15:331",
0
]
},
"_meta": {
"title": "50"
}
},
"15:313": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:60",
0
],
"y": [
"15:331",
0
]
},
"_meta": {
"title": "51"
}
},
"15:314": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:82",
0
],
"y": [
"15:331",
0
]
},
"_meta": {
"title": "52"
}
},
"15:315": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:83",
0
],
"y": [
"15:331",
0
]
},
"_meta": {
"title": "53"
}
},
"15:316": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:86",
0
],
"y": [
"15:331",
0
]
},
"_meta": {
"title": "54"
}
},
"15:317": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:87",
0
],
"y": [
"15:331",
0
]
},
"_meta": {
"title": "55"
}
},
"15:318": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:94",
0
],
"y": [
"15:331",
0
]
},
"_meta": {
"title": "56"
}
},
"15:319": {
"class_type": "ImageBatchMulti",
"inputs": {
"image_1": [
"15:311",
0
],
"image_2": [
"15:312",
0
],
"image_3": [
"15:313",
0
],
"image_4": [
"15:314",
0
],
"image_5": [
"15:315",
0
],
"image_6": [
"15:316",
0
],
"image_7": [
"15:317",
0
],
"image_8": [
"15:318",
0
],
"inputcount": 8
},
"_meta": {
"title": "Image Batch Multi"
}
},
"15:321": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": 0,
"y": [
"15:332",
0
]
},
"_meta": {
"title": "57"
}
},
"15:322": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:59",
0
],
"y": [
"15:332",
0
]
},
"_meta": {
"title": "58"
}
},
"15:323": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:60",
0
],
"y": [
"15:332",
0
]
},
"_meta": {
"title": "59"
}
},
"15:324": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:82",
0
],
"y": [
"15:332",
0
]
},
"_meta": {
"title": "60"
}
},
"15:325": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:83",
0
],
"y": [
"15:332",
0
]
},
"_meta": {
"title": "61"
}
},
"15:326": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:86",
0
],
"y": [
"15:332",
0
]
},
"_meta": {
"title": "62"
}
},
"15:327": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:87",
0
],
"y": [
"15:332",
0
]
},
"_meta": {
"title": "63"
}
},
"15:328": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:94",
0
],
"y": [
"15:332",
0
]
},
"_meta": {
"title": "64"
}
},
"15:329": {
"class_type": "ImageBatchMulti",
"inputs": {
"image_1": [
"15:321",
0
],
"image_2": [
"15:322",
0
],
"image_3": [
"15:323",
0
],
"image_4": [
"15:324",
0
],
"image_5": [
"15:325",
0
],
"image_6": [
"15:326",
0
],
"image_7": [
"15:327",
0
],
"image_8": [
"15:328",
0
],
"inputcount": 8
},
"_meta": {
"title": "Image Batch Multi"
}
},
"15:33": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:59",
0
],
"y": 0
},
"_meta": {
"title": "2"
}
},
"15:331": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"15:66",
0
],
"b": 0,
"value": "6*a"
},
"_meta": {
"title": "Row 7 - Y val"
}
},
"15:332": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"15:66",
0
],
"b": 0,
"value": "7*a"
},
"_meta": {
"title": "Row 8 - Y val"
}
},
"15:333": {
"class_type": "ImageBatchMulti",
"inputs": {
"image_1": [
"15:156",
0
],
"image_2": [
"15:158",
0
],
"image_3": [
"15:161",
0
],
"image_4": [
"15:195",
0
],
"image_5": [
"15:205",
0
],
"image_6": [
"15:287",
0
],
"image_7": [
"15:319",
0
],
"image_8": [
"15:329",
0
],
"inputcount": 8
},
"_meta": {
"title": "Image Batch Multi"
}
},
"15:39": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:60",
0
],
"y": 0
},
"_meta": {
"title": "3"
}
},
"15:59": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"15:65",
0
],
"b": 0,
"value": "a"
},
"_meta": {
"title": "Col 2 - X val"
}
},
"15:60": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"15:65",
0
],
"b": 0,
"value": "2*a"
},
"_meta": {
"title": "Col 3 - X val"
}
},
"15:63": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"15:66",
0
],
"b": 0,
"value": "a"
},
"_meta": {
"title": "Row 2 - Y val"
}
},
"15:65": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"15:18",
0
],
"b": 0,
"value": "a / 8"
},
"_meta": {
"title": "WIDTH"
}
},
"15:66": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"15:18",
1
],
"b": 0,
"value": "a / 8"
},
"_meta": {
"title": "HEIGHT"
}
},
"15:80": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:82",
0
],
"y": 0
},
"_meta": {
"title": "4"
}
},
"15:81": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:83",
0
],
"y": 0
},
"_meta": {
"title": "5"
}
},
"15:82": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"15:65",
0
],
"b": 0,
"value": "3*a"
},
"_meta": {
"title": "Col 4 - X val"
}
},
"15:83": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"15:65",
0
],
"b": 0,
"value": "4*a"
},
"_meta": {
"title": "Col 5 - X val"
}
},
"15:86": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"15:65",
0
],
"b": 0,
"value": "5*a"
},
"_meta": {
"title": "Col 6 - X val"
}
},
"15:87": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"15:65",
0
],
"b": 0,
"value": "6*a"
},
"_meta": {
"title": "Col 7 - X val"
}
},
"15:88": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:86",
0
],
"y": 0
},
"_meta": {
"title": "6"
}
},
"15:89": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:87",
0
],
"y": 0
},
"_meta": {
"title": "7"
}
},
"15:94": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"15:65",
0
],
"b": 0,
"value": "7*a"
},
"_meta": {
"title": "Col 8 - X val"
}
},
"15:95": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"15:66",
0
],
"image": [
"32",
0
],
"width": [
"15:65",
0
],
"x": [
"15:94",
0
],
"y": 0
},
"_meta": {
"title": "8"
}
},
"17:78": {
"class_type": "ImageFromBatch",
"inputs": {
"batch_index": [
"17:89",
0
],
"image": [
"15:333",
0
],
"length": 1
},
"_meta": {
"title": "Get Image from Batch"
}
},
"17:83": {
"class_type": "ResizeAndPadImage",
"inputs": {
"image": [
"10",
0
],
"interpolation": "area",
"padding_color": "white",
"target_height": [
"17:86",
1
],
"target_width": [
"17:86",
0
]
},
"_meta": {
"title": "Resize And Pad Image"
}
},
"17:86": {
"class_type": "GetImageSize",
"inputs": {
"image": [
"17:78",
0
]
},
"_meta": {
"title": "Get Image Size"
}
},
"17:87": {
"class_type": "ImageBatch",
"inputs": {
"image1": [
"17:78",
0
],
"image2": [
"17:83",
0
]
},
"_meta": {
"title": "Batch Images (DEPRECATED)"
}
},
"17:89": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"16",
0
],
"b": 0,
"value": "a - 1"
},
"_meta": {
"title": "Image # as index"
}
}
})
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)問答
可以,但建議使用清晰高解析度的大頭貼以獲得最佳效果。
你可輸入任何啟發你的主題,如「未來感」、「復古」、「抽象」等。模型能理解並應用多元主題。
處理時間依系統效能而異,通常數分鐘內可完成全部 64 種變化。
預設產生 64 種變化,你可在 'PrimitiveInt' 節點調整參數以更改數量。