Ohneis - 產品工作流程
關於
Ohneis - 產品圖工作流程是 ComfyUI 的精簡批次處理管線,能將產品照片批次處理成乾淨一致的素材,並可選擇產生動態短片。流程以 LoadImage 與 BatchImagesNode 載入一張或多張原始照片,並對整批圖片套用相同處理。圖像經 GeminiImage2Node 處理,進行核心圖像轉圖像(如增強、風格統一、輕微修圖等)。流程內含自訂工具節點(ID: f4fca0c6-bff8-4410-84df-a9d8961ce181),可於前後處理階段進行尺寸調整、補邊、色彩/格式標準化等,最終用 SaveImage 輸出。
如需動態,ByteDance2FirstLastFrameNode 會以批次首尾兩張處理後的靜態圖進行插值,產生平滑過渡的短片(如平移、旋轉、揭示等)。SaveVideo 輸出最終影片。結合批次一致性(BatchImagesNode)、可控圖像轉圖像(GeminiImage2Node)、首尾影格插值(ByteDance2FirstLastFrameNode),非常適合電商目錄與社群產品短片,設定簡單。
您提供的內容
- 正在讀取工作流程
在 ComfyUI 中執行。 此工作流程無法在此頁面上執行。請在已載入所有內容的 Comfy Cloud 中開啟,或下載到您自己的 ComfyUI。
在 Cloud 中試用工作流程內部
節點圖的唯讀預覽。請在 Comfy Cloud 中開啟,或下載後編輯節點。
Loading the graph
Open full-size workflow preview- 作者
- ComfyUI
需要自訂節點
- 正在讀取工作流程
從程式碼使用此工作流程
可行時會根據工作流程圖和輸入內容產生;否則會顯示儲存的範例。執行可能產生費用的程式碼前,請檢查認證資訊和端點。
What you need
- Runs on
- Comfy Cloud
- 金鑰
- COMFY_API_KEY
- 您的檔案
- 由程式碼透過其 URL 上傳
需要付費 Cloud 方案與點數。
# 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({
"14": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_FILENAME"
},
"_meta": {
"title": "Load Image"
}
},
"15": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_2_FILENAME"
},
"_meta": {
"title": "Load Image"
}
},
"16": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_3_FILENAME"
},
"_meta": {
"title": "Load Image"
}
},
"17": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_4_FILENAME"
},
"_meta": {
"title": "Load Image"
}
},
"18": {
"class_type": "BatchImagesNode",
"inputs": {
"images.image0": [
"14",
0
],
"images.image1": [
"15",
0
],
"images.image2": [
"16",
0
],
"images.image3": [
"17",
0
]
},
"_meta": {
"title": "Batch Images"
}
},
"19": {
"class_type": "GeminiImage2Node",
"inputs": {
"aspect_ratio": "4:3",
"images": [
"18",
0
],
"model": "gemini-3-pro-image-preview",
"prompt": [
"26:21",
0
],
"resolution": "2K",
"response_modalities": "IMAGE",
"seed": 0,
"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)"
}
},
"20": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-ohneis",
"images": [
"19",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"27": {
"class_type": "ByteDance2FirstLastFrameNode",
"inputs": {
"first_frame": [
"19",
0
],
"first_frame_asset_id": "",
"last_frame_asset_id": "",
"model": "Seedance 2.0",
"model.duration": 4,
"model.generate_audio": True,
"model.prompt": "The model takes the sunglasses and places them on top of her head. Light dolly in. Handheld.\n\nNo Music. Ambient Sounds. No Talking. No Text. No Captions.",
"model.ratio": "4:3",
"model.resolution": "1080p",
"seed": 55580326,
"watermark": False
},
"_meta": {
"title": "ByteDance Seedance 2.5 First-Last-Frame to Video"
}
},
"28": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/ComfyUI",
"format": "auto",
"format.codec": "auto",
"video": [
"27",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"26:10": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "{CAMERA_AND_POSE}. {SUBJECT}, {PRODUCT}. {VIBE}"
},
"_meta": {
"title": "Prompt Template"
}
},
"26:11": {
"class_type": "JWStringReplace",
"inputs": {
"replace_with": [
"26:5",
0
],
"source": [
"26:10",
0
],
"to_replace": "{CAMERA_AND_POSE}"
},
"_meta": {
"title": "Replace {CAMERA_AND_POSE}"
}
},
"26:12": {
"class_type": "JWStringReplace",
"inputs": {
"replace_with": [
"26:7",
0
],
"source": [
"26:11",
0
],
"to_replace": "{SUBJECT}"
},
"_meta": {
"title": "Replace {SUBJET}"
}
},
"26:13": {
"class_type": "JWStringReplace",
"inputs": {
"replace_with": [
"26:8",
0
],
"source": [
"26:12",
0
],
"to_replace": "{PRODUCT}"
},
"_meta": {
"title": "Replace {PRODUCT}"
}
},
"26:21": {
"class_type": "JWStringReplace",
"inputs": {
"replace_with": [
"26:6",
0
],
"source": [
"26:13",
0
],
"to_replace": "{VIBE}"
},
"_meta": {
"title": "Replace {VIBE}"
}
},
"26:5": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "Cinematic medium shot portrait, crop from waist to crown, head in three-quarter profile, one hand gently raised near the jawline to showcase accessories, gaze directed slightly off-camera, slight low-angle approximately 10 degrees below eye-level, approximately 85mm equivalent focal length, shallow depth of field, background completely defocused, neutral composed expression"
},
"_meta": {
"title": "CAMERA_AND_POSE"
}
},
"26:6": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "dressed in a white wrap dress, lightweight fabric with slight drape, open water surface behind subject rendered as soft flat warm-gray shimmer, golden dusk light from upper-left creating warm directional highlight across left side of face and jaw, right side receiving cool ambient fill from water reflection, dual warm-cool color temperature split, Fujifilm Eterna 500 color profile, cool gray-green water background with Eterna's flat tonal response, bleached soft highlights, melancholic introspective high fashion editorial mood"
},
"_meta": {
"title": "VIBE"
}
},
"26:7": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "beautiful Black woman late-20s, deep warm brown skin tone with smooth even texture, closely cropped natural dark hair"
},
"_meta": {
"title": "SUBJECT"
}
},
"26:8": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "prominently wearing attached product"
},
"_meta": {
"title": "PRODUCT"
}
}
})
# Replace each example.com URL with a public URL of your file.
workflow.set_input("14", "image", client.assets.from_url("https://example.com/replace-with-a-url/image"))
workflow.set_input("15", "image", client.assets.from_url("https://example.com/replace-with-a-url/image_2"))
workflow.set_input("16", "image", client.assets.from_url("https://example.com/replace-with-a-url/image_3"))
workflow.set_input("17", "image", client.assets.from_url("https://example.com/replace-with-a-url/image_4"))
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)問答
GeminiImage2Node 負責每張輸入圖片的主要 image-to-image 轉換(例如增強或風格統一)。實際效果取決於你在工作流程中如何設定參數。開啟節點調整強度、風格或其他控制項,以符合你的產品視覺。
它會取兩張已處理的靜態圖(通常是批次中的第一張與最後一張),並在中間插入新影格,產生短且平滑的轉場。調整節點的影格數或時長設定以控制動作長度與平滑度,接著由 SaveVideo 寫出最終影片。
它是用於前/後處理的工具步驟,例如縮放、補邊到目標長寬比,或其他格式化任務。開啟節點檢查其參數,並確保符合你的目標輸出(例如正方形縮圖或特定解析度)。
可以,但建議先標準化輸入以取得較佳結果。使用自訂節點統一解析度/長寬比,讓 GeminiImage2Node 的變更更一致,且 ByteDance 插幀在轉場時更平順、較不易變形。
相關工作流程
- Qwen-Image-Edit
Change a material
- Qwen-Image-Edit
See your subject from a new angle
- Flux.2 Dev, Flux
Create a product mockup
- Nano Banana Pro
Try an outfit on a character
- Seedream
Put your product in a new scene
- Seedream, MiniMax
Turn a product photo into a video
- Nano Banana Pro
Sharpen a product photo
- Flux.2 Klein
1.3 入門 – 產品攝影
- Nano Banana Pro, Google
1.3 入門-產品攝影
- Gemini3 Pro Image Preview, Google, Nano Banana Pro
3x3 品牌圖示素材網格
- Nano Banana Pro, Google
3x3產品廣告產生
- 合合作夥伴節點
Clothes Changer