Ensaios editoriais de moda
Envie seu personagem, cena de fundo e produto. Gere uma grade 2x2, selecione a imagem desejada e amplie
Sobre
Este fluxo de trabalho para ComfyUI foi projetado para otimizar a geração de editoriais de moda de alta qualidade. Integrando modelos e nós específicos, como Nano Banana Pro e Google Gemini Image, permite ao usuário enviar um personagem, cena de fundo e produto para criar uma grade 2x2 de imagens potenciais. O usuário pode então selecionar a imagem desejada para fazer upscale, garantindo um resultado final polido. Nós-chave como LoadImage e GeminiImage2Node são usados para lidar com entradas e transformações de imagem, enquanto o nó SaveImage garante o armazenamento eficiente das imagens finais. Nós personalizados dos pacotes comfyui-kjnodes e comfyui_essentials também são utilizados para ampliar a funcionalidade, tornando o fluxo versátil para entusiastas e profissionais da fotografia de moda.
Tecnicamente, o fluxo combina modelos de IA e nós personalizados para automatizar a geração de imagens. O nó Reroute gerencia o fluxo de dados de forma eficiente, enquanto o PrimitiveInt auxilia na configuração de parâmetros de processamento. O nó PreviewImage permite visualizar resultados intermediários, facilitando a escolha antes do upscale final. Este fluxo é especialmente útil para marcas e fotógrafos de moda que desejam gerar e refinar imagens editoriais rapidamente, sem necessidade de edição manual extensa.
O que você fornece
- Lendo o fluxo de trabalho
É executado no ComfyUI. Este fluxo de trabalho não pode ser executado nesta página. Abra-o no Comfy Cloud com tudo carregado ou baixe-o para usar no seu próprio ComfyUI.
Experimentar no CloudDentro do workflow
Uma prévia somente leitura do gráfico de nós. Abra-o no Comfy Cloud ou faça o download para editar os nós.
Loading the graph
Open full-size workflow preview- Autor
- Rob
Requer nós personalizados
- Lendo o fluxo de trabalho
Use este fluxo de trabalho a partir do código
Gerado a partir do grafo e das entradas do fluxo de trabalho quando possível; caso contrário, são exibidos exemplos armazenados. Revise as credenciais e os endpoints antes de executar o código, pois isso pode gerar cobranças.
What you need
- Runs on
- Comfy Cloud
- Chave
- COMFY_API_KEY
- Seus arquivos
- Enviados pelo código a partir de suas URLs
Requer um plano pago do Cloud e créditos.
# 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({
"1": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_FILENAME"
},
"_meta": {
"title": "Load Character Image"
}
},
"2": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_2_FILENAME"
},
"_meta": {
"title": "Load Background Image"
}
},
"3": {
"class_type": "GeminiImage2Node",
"inputs": {
"aspect_ratio": "16:9",
"images": [
"15:10:14",
0
],
"model": "gemini-3-pro-image-preview",
"prompt": "Generate a 2x2 (2 rows, 2 cols) grid.\n\nDivide the frame in 4 different 16:9 frames.\n\nFashion editorial photoshoot of the model from image 1 in the scene from image 2. The character is showcasing the product from image 3. No visible margin or borders between grid images.\n\nFor each frame choose the angle and type of shot, ensure the character and product are visible in each frame, seamlessly interacting.",
"resolution": "4K",
"response_modalities": "IMAGE+TEXT",
"seed": 12345,
"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)"
}
},
"4": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-2x2_grid",
"images": [
"3",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"5": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_3_FILENAME"
},
"_meta": {
"title": "Load Product Image"
}
},
"52": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 0
},
"_meta": {
"title": "Crop Inset Grid Images"
}
},
"54": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-image_1",
"images": [
"53:8",
0
]
},
"_meta": {
"title": "Save Image 1"
}
},
"55": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-image_2",
"images": [
"53:9",
0
]
},
"_meta": {
"title": "Save Image 2"
}
},
"56": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-image_3",
"images": [
"53:10",
0
]
},
"_meta": {
"title": "Save Image 3"
}
},
"57": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-image_4",
"images": [
"53:11",
0
]
},
"_meta": {
"title": "Save Image 4"
}
},
"60": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"75:74",
0
]
},
"_meta": {
"title": "Preview Selected Image"
}
},
"62": {
"class_type": "GeminiImage2Node",
"inputs": {
"aspect_ratio": "auto",
"images": [
"68:14",
0
],
"model": "gemini-3-pro-image-preview",
"prompt": "Upscale image 1 while maintaining pose and composition, add subtle details. Use the product from image 2 to add back details to the product.",
"resolution": "4K",
"response_modalities": "IMAGE+TEXT",
"seed": 12345,
"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)"
}
},
"77": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-image_upscaled",
"images": [
"62",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"15:10:12": {
"class_type": "GetImageSize",
"inputs": {
"image": [
"15:9:14",
0
]
},
"_meta": {
"title": "Get Image Size"
}
},
"15:10:13": {
"class_type": "ResizeAndPadImage",
"inputs": {
"image": [
"5",
0
],
"interpolation": "area",
"padding_color": "white",
"target_height": [
"15:10:12",
1
],
"target_width": [
"15:10:12",
0
]
},
"_meta": {
"title": "Resize And Pad Image"
}
},
"15:10:14": {
"class_type": "ImageBatch",
"inputs": {
"image1": [
"15:9:14",
0
],
"image2": [
"15:10:13",
0
]
},
"_meta": {
"title": "Batch Images (DEPRECATED)"
}
},
"15:9:12": {
"class_type": "GetImageSize",
"inputs": {
"image": [
"1",
0
]
},
"_meta": {
"title": "Get Image Size"
}
},
"15:9:13": {
"class_type": "ResizeAndPadImage",
"inputs": {
"image": [
"2",
0
],
"interpolation": "area",
"padding_color": "white",
"target_height": [
"15:9:12",
1
],
"target_width": [
"15:9:12",
0
]
},
"_meta": {
"title": "Resize And Pad Image"
}
},
"15:9:14": {
"class_type": "ImageBatch",
"inputs": {
"image1": [
"1",
0
],
"image2": [
"15:9:13",
0
]
},
"_meta": {
"title": "Batch Images (DEPRECATED)"
}
},
"53:10": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"53:16",
0
],
"image": [
"3",
0
],
"width": [
"53:15",
0
],
"x": [
"53:24",
0
],
"y": [
"53:12",
0
]
},
"_meta": {
"title": "3"
}
},
"53:11": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"53:16",
0
],
"image": [
"3",
0
],
"width": [
"53:15",
0
],
"x": [
"53:13",
0
],
"y": [
"53:12",
0
]
},
"_meta": {
"title": "4"
}
},
"53:12": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"53:16",
0
],
"b": [
"53:14",
0
],
"value": "a + (b/2)"
},
"_meta": {
"title": "Row 2 - Y val"
}
},
"53:13": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"53:15",
0
],
"b": [
"53:14",
0
],
"value": "a + (b/2)"
},
"_meta": {
"title": "Col 2 - X val"
}
},
"53:14": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"52",
0
],
"b": 0,
"value": "a"
},
"_meta": {
"title": "Crop Inset Grid Images Value"
}
},
"53:15": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"53:17",
0
],
"b": [
"53:14",
0
],
"value": "(a-2*b) / 2"
},
"_meta": {
"title": "WIDTH"
}
},
"53:16": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"53:17",
1
],
"b": [
"53:14",
0
],
"value": "(a-2*b) / 2"
},
"_meta": {
"title": "HEIGHT"
}
},
"53:17": {
"class_type": "GetImageSize",
"inputs": {
"image": [
"3",
0
]
},
"_meta": {
"title": "Get Image Size"
}
},
"53:19": {
"class_type": "ImageBatchMulti",
"inputs": {
"image_1": [
"53:8",
0
],
"image_2": [
"53:9",
0
],
"image_3": [
"53:10",
0
],
"image_4": [
"53:11",
0
],
"inputcount": 4
},
"_meta": {
"title": "Image Batch Multi"
}
},
"53:20": {
"class_type": "ImageResizeKJv2",
"inputs": {
"crop_position": "center",
"device": "cpu",
"divisible_by": 2,
"height": [
"53:22",
0
],
"image": [
"53:19",
0
],
"keep_proportion": "stretch",
"pad_color": "0, 0, 0",
"upscale_method": "nearest-exact",
"width": [
"53:23",
0
]
},
"_meta": {
"title": "Resize Images"
}
},
"53:21": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"53:20",
0
]
},
"_meta": {
"title": "Preview Image"
}
},
"53:22": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"53:17",
1
],
"b": 0,
"value": "(a) / 2"
},
"_meta": {
"title": "HEIGHT / 2"
}
},
"53:23": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"53:17",
0
],
"b": 0,
"value": "(a) / 2"
},
"_meta": {
"title": "WIDTH / 2"
}
},
"53:24": {
"class_type": "SimpleMath+",
"inputs": {
"a": 0,
"b": [
"53:14",
0
],
"value": "b/2"
},
"_meta": {
"title": "Col 1 - X val"
}
},
"53:4": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"53:8",
0
]
},
"_meta": {
"title": "Preview Image"
}
},
"53:5": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"53:9",
0
]
},
"_meta": {
"title": "Preview Image"
}
},
"53:6": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"53:10",
0
]
},
"_meta": {
"title": "Preview Image"
}
},
"53:7": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"53:11",
0
]
},
"_meta": {
"title": "Preview Image"
}
},
"53:8": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"53:16",
0
],
"image": [
"3",
0
],
"width": [
"53:15",
0
],
"x": [
"53:24",
0
],
"y": [
"53:24",
0
]
},
"_meta": {
"title": "1"
}
},
"53:9": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"53:16",
0
],
"image": [
"3",
0
],
"width": [
"53:15",
0
],
"x": [
"53:13",
0
],
"y": 0
},
"_meta": {
"title": "2"
}
},
"68:12": {
"class_type": "GetImageSize",
"inputs": {
"image": [
"75:74",
0
]
},
"_meta": {
"title": "Get Image Size"
}
},
"68:13": {
"class_type": "ResizeAndPadImage",
"inputs": {
"image": [
"5",
0
],
"interpolation": "area",
"padding_color": "white",
"target_height": [
"68:12",
1
],
"target_width": [
"68:12",
0
]
},
"_meta": {
"title": "Resize And Pad Image"
}
},
"68:14": {
"class_type": "ImageBatch",
"inputs": {
"image1": [
"75:74",
0
],
"image2": [
"68:13",
0
]
},
"_meta": {
"title": "Batch Images (DEPRECATED)"
}
},
"75:69": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 1
},
"_meta": {
"title": "Select Image Number"
}
},
"75:73": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"75:69",
0
],
"b": 0,
"value": "a - 1"
},
"_meta": {
"title": "Image # as index"
}
},
"75:74": {
"class_type": "ImageFromBatch",
"inputs": {
"batch_index": [
"75:73",
0
],
"image": [
"53:20",
0
],
"length": 1
},
"_meta": {
"title": "Get Image from Batch"
}
}
})
# Replace each example.com URL with a public URL of your file.
workflow.set_input("1", "image", client.assets.from_url("https://example.com/replace-with-a-url/image"))
workflow.set_input("2", "image", client.assets.from_url("https://example.com/replace-with-a-url/image_2"))
workflow.set_input("5", "image", client.assets.from_url("https://example.com/replace-with-a-url/image_3"))
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)Perguntas e respostas
Você pode enviar imagens de personagem, cena de fundo e produto em formatos comuns como JPEG e PNG.
O recurso de upscale utiliza modelos de IA para aumentar a resolução da imagem selecionada, aprimorando sua qualidade para uso profissional.
Atualmente, o fluxo gera uma grade 2x2, mas futuras atualizações podem permitir tamanhos de grade personalizáveis.
Não é necessário. O fluxo foi projetado para ser amigável, com nós e modelos cuidando dos processos complexos.
Workflows relacionados
- 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
- Nano Banana Pro, Google
1.3 Starter - Fotografia de Produto
- Gemini3 Pro Image Preview, Google, Nano Banana Pro
Adicionar cor à ilustração em traço
- Gemini3 Pro Image Preview, Google, Nano Banana Pro
Adicionar Produto à Mão do Personagem, AI UGC
- ByteDance, Seedream, Google Gemini, Nano Banana Pro
Animações de Logo 3D Dinâmicas
- Gemini3 Pro Image Preview, Nano Banana Pro, Google, ByteDance, Seedance
Aplicar Textura + Elementos ao Logo
- Gemini3 Pro Image Preview, Nano Banana Pro, Google, ByteDance, Seedance
Aplicar Textura ao Logo
- Nano Banana Pro
Aprimoramento de qualidade: Melhoria de detalhes do produto com Nano Banana Pro
- Flux.2 Dev, Flux.2 Klein, GPT-Image-1.5, Grok, Nano Banana Pro, Qwen-Image-Edit, Seedream
Comparação de 1 entrada e múltiplos modelos de edição
- Nano Banana Pro
De uma única imagem para múltiplas tomadas consistentes