1.3 入門-產品攝影
學習如何用圖像輸入製作產品攝影,進入子圖、取消節點略過,並認識 Nano Banana Pro 合作夥伴節點。
關於
此 ComfyUI 工作流程「1.3 入門-產品攝影」專為利用 AI 生成高品質產品攝影而設計。流程採用 Nano Banana Pro 模型,該模型以生成細緻、寫實產品圖像著稱。流程從 'LoadImage' 節點開始,讓你輸入現有圖像作為 AI 處理的基礎或參考。在流程中,你會遇到一個子圖,可點擊右上角圖示進入。子圖內含如 'comfyui-kjnodes' 與 'comfyui_essentials' 等重要節點,負責圖像轉換與增強。
技術上,流程設計引導使用者學會取消節點略過(unbypass),這對啟用子圖內特定功能至關重要。'SaveImage' 節點確保最終輸出易於儲存與存取。'MarkdownNote' 節點則提供流程內說明與指引,即使新手也能輕鬆上手。此流程特別適合電商與攝影師自動化、提升產品攝影品質,確保圖像風格與品質一致。
您提供的內容
- 正在讀取工作流程
在 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({
"2": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "comfyui-relight-product",
"images": [
"46:40:20",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"3": {
"class_type": "LoadImage",
"inputs": {
"image": "gsc3_landscape.png"
},
"_meta": {
"title": "Load Image"
}
},
"7": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_FILENAME"
},
"_meta": {
"title": "Load Image"
}
},
"46:40:10": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"46:40:16",
0
],
"image": [
"7",
0
],
"width": [
"46:40:15",
0
],
"x": [
"46:40:24",
0
],
"y": [
"46:40:12",
0
]
},
"_meta": {
"title": "3"
}
},
"46:40:11": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"46:40:16",
0
],
"image": [
"7",
0
],
"width": [
"46:40:15",
0
],
"x": [
"46:40:13",
0
],
"y": [
"46:40:12",
0
]
},
"_meta": {
"title": "4"
}
},
"46:40:12": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"46:40:16",
0
],
"b": [
"46:40:14",
0
],
"value": "a + (b/2)"
},
"_meta": {
"title": "Row 2 - Y val"
}
},
"46:40:13": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"46:40:15",
0
],
"b": [
"46:40:14",
0
],
"value": "a + (b/2)"
},
"_meta": {
"title": "Col 2 - X val"
}
},
"46:40:14": {
"class_type": "SimpleMath+",
"inputs": {
"a": 0,
"b": 0,
"value": "a"
},
"_meta": {
"title": "🔧 Simple Math"
}
},
"46:40:15": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"46:40:17",
0
],
"b": [
"46:40:14",
0
],
"value": "(a-2*b) / 2"
},
"_meta": {
"title": "WIDTH"
}
},
"46:40:16": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"46:40:17",
1
],
"b": [
"46:40:14",
0
],
"value": "(a-2*b) / 2"
},
"_meta": {
"title": "HEIGHT"
}
},
"46:40:17": {
"class_type": "GetImageSize",
"inputs": {
"image": [
"7",
0
]
},
"_meta": {
"title": "Get Image Size"
}
},
"46:40:19": {
"class_type": "ImageBatchMulti",
"inputs": {
"image_1": [
"46:40:8",
0
],
"image_2": [
"46:40:9",
0
],
"image_3": [
"46:40:10",
0
],
"image_4": [
"46:40:11",
0
],
"inputcount": 4
},
"_meta": {
"title": "Image Batch Multi"
}
},
"46:40:20": {
"class_type": "ImageResizeKJv2",
"inputs": {
"crop_position": "center",
"device": "cpu",
"divisible_by": 2,
"height": [
"46:40:22",
0
],
"image": [
"46:40:19",
0
],
"keep_proportion": "stretch",
"pad_color": "0, 0, 0",
"upscale_method": "lanczos",
"width": [
"46:40:23",
0
]
},
"_meta": {
"title": "Resize Images"
}
},
"46:40:22": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"46:40:17",
1
],
"b": 0,
"value": "(a) / 2"
},
"_meta": {
"title": "HEIGHT / 2"
}
},
"46:40:23": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"46:40:17",
0
],
"b": 0,
"value": "(a) / 2"
},
"_meta": {
"title": "WIDTH / 2"
}
},
"46:40:24": {
"class_type": "SimpleMath+",
"inputs": {
"a": 0,
"b": [
"46:40:14",
0
],
"value": "b/2"
},
"_meta": {
"title": "Col 1 - X val"
}
},
"46:40:4": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"46:40:8",
0
]
},
"_meta": {
"title": "Preview Image"
}
},
"46:40:5": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"46:40:9",
0
]
},
"_meta": {
"title": "Preview Image"
}
},
"46:40:6": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"46:40:10",
0
]
},
"_meta": {
"title": "Preview Image"
}
},
"46:40:7": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"46:40:11",
0
]
},
"_meta": {
"title": "Preview Image"
}
},
"46:40:8": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"46:40:16",
0
],
"image": [
"7",
0
],
"width": [
"46:40:15",
0
],
"x": [
"46:40:24",
0
],
"y": [
"46:40:24",
0
]
},
"_meta": {
"title": "1"
}
},
"46:40:9": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"46:40:16",
0
],
"image": [
"7",
0
],
"width": [
"46:40:15",
0
],
"x": [
"46:40:13",
0
],
"y": 0
},
"_meta": {
"title": "2"
}
}
})
# Replace each example.com URL with a public URL of your file.
workflow.set_input("7", "image", client.assets.from_url("https://example.com/replace-with-a-url/image"))
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)問答
子圖內含專用節點,可增強與轉換輸入圖像,產生更細緻、寫實的產品攝影輸出。
進入子圖後,點擊欲啟用的節點,確保其功能已納入圖像處理流程。
本流程針對 Nano Banana Pro 模型最佳化,但你可嘗試其他模型,品質與風格可能有所不同。
建議使用高品質、清楚呈現產品的圖像,這將作為 AI 增強的基礎。
相關工作流程
- Nano Banana Pro, Gemini3 Pro Image Preview, Google
Create a character turnaround
- Nano Banana Pro
Try an outfit on a character
- Nano Banana Pro
Sharpen a product photo
- Flux.2 Dev, Flux.2 Klein, GPT-Image-1.5, Grok, Nano Banana Pro, Qwen-Image-Edit, Seedream
1個輸入與多個編輯模型對比
- Gemini3 Pro Image Preview, Google, Nano Banana Pro
3x3 品牌圖示素材網格
- Nano Banana Pro, Google
3x3產品廣告產生
- Kling, Google, Nano Banana Pro, Gemini3 Pro Image Preview
LED廣告牌資訊
- Gemini3 Pro Image Preview, Google, Nano Banana Pro
Nano Banana Pro
- Gemini3 Pro Image Preview, Google, Nano Banana Pro
Nano Banana Pro:風格化藝術創意放大
- Google, Nano Banana Pro
Upscale:使用 Nano Banana Pro 進行 AI 圖像增強
- Nano Banana Pro
YouTube 縮圖產生器
- Gemini3 Pro Image Preview, Google, Nano Banana Pro
交換手中商品,UGC風格