Tomas editoriales de moda
Sube tu personaje, escena de fondo y producto. Genera una cuadrícula de 2x2, selecciona la imagen deseada y amplíala
Acerca de
Este flujo de trabajo para ComfyUI está diseñado para optimizar la generación de tomas editoriales de moda de alta calidad. Integrando modelos y nodos específicos como Nano Banana Pro y Google Gemini Image, permite subir un personaje, una escena de fondo y un producto para crear una cuadrícula 2x2 de imágenes potenciales. El usuario puede seleccionar la imagen deseada para hacer upscale, asegurando un resultado final pulido. Nodos clave como LoadImage y GeminiImage2Node gestionan la entrada y transformación de imágenes, mientras que el nodo SaveImage asegura el almacenamiento eficiente de las imágenes finales. También se utilizan nodos personalizados de comfyui-kjnodes y comfyui_essentials para mejorar la funcionalidad, haciendo de este flujo una herramienta versátil para entusiastas y profesionales de la fotografía de moda.
Técnicamente, el flujo aprovecha una combinación de modelos de IA y nodos personalizados para automatizar la generación de imágenes. El nodo Reroute gestiona el flujo de datos eficientemente, mientras que PrimitiveInt ayuda a configurar parámetros para el procesamiento de imágenes. El nodo PreviewImage permite visualizar resultados intermedios, facilitando la toma de decisiones antes del upscale final. Este flujo es especialmente útil para marcas y fotógrafos de moda que buscan generar y refinar imágenes editoriales rápidamente sin necesidad de edición manual extensa.
Lo que proporcionas
- Leyendo el flujo de trabajo
Se ejecuta en ComfyUI. Este flujo de trabajo no puede ejecutarse en esta página. Ábrelo en Comfy Cloud con todo cargado o descárgalo para tu propio ComfyUI.
Probar en CloudDentro del flujo de trabajo
Una vista previa de solo lectura del gráfico de nodos. Ábrelo en Comfy Cloud o descárgalo para editar los nodos.
Loading the graph
Open full-size workflow preview- Autor
- Rob
Requiere nodos personalizados
- Leyendo el flujo de trabajo
Usa este flujo de trabajo desde código
Se genera a partir del gráfico y las entradas del flujo de trabajo cuando es posible; de lo contrario, se muestran ejemplos almacenados. Revisa las credenciales y los endpoints antes de ejecutar el código, ya que puede generar cargos.
What you need
- Runs on
- Comfy Cloud
- Clave
- COMFY_API_KEY
- Tus archivos
- El código los sube desde sus URL
Requiere un plan de pago de Cloud y 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)Preguntas y respuestas
Puedes subir imágenes de personaje, escena de fondo y producto en formatos comunes como JPEG y PNG.
La función de upscale utiliza modelos de IA para aumentar la resolución de la imagen seleccionada, mejorando su calidad para uso profesional.
Actualmente, el flujo está configurado para generar una cuadrícula 2x2, pero futuras actualizaciones podrían permitir tamaños personalizables.
No es necesario tener experiencia previa. El flujo está diseñado para ser fácil de usar, con nodos y modelos que gestionan los procesos complejos.
Flujos de trabajo 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 - Fotografía de Producto
- ByteDance, Seedream, Google Gemini, Nano Banana Pro
Animaciones de logotipo 3D dinámicas
- Gemini3 Pro Image Preview, Nano Banana Pro, Google, ByteDance, Seedance
Aplicar textura al logo
- Gemini3 Pro Image Preview, Nano Banana Pro, Google, ByteDance, Seedance
Añadir textura y elementos a logo
- Gemini3 Pro Image Preview, Google, Nano Banana Pro
Cambiar producto en mano (estilo UGC)
- Gemini3 Pro Image Preview, Google, Nano Banana Pro
Colorear ilustración lineal
- Flux.2 Dev, Flux.2 Klein, GPT-Image-1.5, Grok, Nano Banana Pro, Qwen-Image-Edit, Seedream
Comparación de 1 entrada y múltiples modelos de edición
- Gemini3 Pro Image Preview, Google, Nano Banana Pro
Cuadrícula de activos de iconos de marca 3x3
- Google Gemini Image, Nano Banana Pro, Google, Kling, Kling O1, OpenAI
De personaje y accesorios a video de moda