Surface Normal Estimation: Marigold V2
Estimate surface normals from an input image using Marigold V2. The workflow generates a normal map representing the orientation of surfaces in the scene,…
Acerca de
Estimate surface normals from an input image using Marigold V2. The workflow generates a normal map representing the orientation of surfaces in the scene,…
Lo que proporcionas
- Leyendo el flujo de trabajo
Se ejecuta en ComfyUI. Este flujo de trabajo no puede ejecutarse en esta página. Descárgalo y ábrelo en ComfyUI.
Descargar flujo de trabajoAún no hay resultados de muestra para este flujo de trabajo.
Dentro 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 previewArchivos de este flujo de trabajo
- Comfy Cloud
- Sí
- Autor
- Autor no disponible
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
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({
"12": {
"class_type": "LoadImage",
"inputs": {
"image": "greek_statue_orange_cloth.png"
},
"_meta": {
"title": "Load Image"
}
},
"21": {
"class_type": "ImageCompare",
"inputs": {
"compare_view": None,
"image_a": [
"12",
0
],
"image_b": [
"23",
0
]
},
"_meta": {
"title": "Compare Images"
}
},
"23": {
"class_type": "SaveImageAdvanced",
"inputs": {
"filename_prefix": "ComfyUI",
"format": "png",
"format.bit_depth": "8-bit",
"format.input_color_space": "sRGB",
"images": [
"24:17",
0
]
},
"_meta": {
"title": "Save Image (Advanced)"
}
},
"24:1": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "qwen_image_edit_2509_int8_convrot.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"24:10": {
"class_type": "BasicGuider",
"inputs": {
"conditioning": [
"24:9",
0
],
"model": [
"24:8",
0
]
},
"_meta": {
"title": "Basic Guider"
}
},
"24:13": {
"class_type": "VAEEncode",
"inputs": {
"pixels": [
"12",
0
],
"vae": [
"24:14",
0
]
},
"_meta": {
"title": "VAE Encode"
}
},
"24:14": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "marigold_v2_normals_vae.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"24:15": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"24:3",
0
],
"vae": [
"24:14",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"24:17": {
"class_type": "MarigoldV2PostProcess",
"inputs": {
"image": [
"24:15",
0
],
"prediction": "normals"
},
"_meta": {
"title": "Marigold V2 Post-Process"
}
},
"24:18": {
"class_type": "KSamplerSelect",
"inputs": {
"sampler_name": "euler"
},
"_meta": {
"title": "KSamplerSelect"
}
},
"24:19": {
"class_type": "DisableNoise",
"inputs": {},
"_meta": {
"title": "DisableNoise"
}
},
"24:20": {
"class_type": "ManualSigmas",
"inputs": {
"sigmas": "0.5, 0"
},
"_meta": {
"title": "ManualSigmas"
}
},
"24:3": {
"class_type": "SamplerCustomAdvanced",
"inputs": {
"guider": [
"24:10",
0
],
"latent_image": [
"24:13",
0
],
"noise": [
"24:19",
0
],
"sampler": [
"24:18",
0
],
"sigmas": [
"24:20",
0
]
},
"_meta": {
"title": "SamplerCustomAdvanced"
}
},
"24:7": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "marigold_v2_normals.safetensors",
"model": [
"24:1",
0
],
"strength_model": 1
},
"_meta": {
"title": "Load LoRA"
}
},
"24:8": {
"class_type": "ModelSamplingAuraFlow",
"inputs": {
"model": [
"24:7",
0
],
"sampling": "img_to_img_velocity",
"shift": 1.73
},
"_meta": {
"title": "ModelSamplingAuraFlow"
}
},
"24:9": {
"class_type": "ConditioningLoader",
"inputs": {
"conditioning_name": "marigold_v2_normals_conditioning.safetensors"
},
"_meta": {
"title": "Load Conditioning"
}
}
})
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)