Albedo Estimation: Marigold V2
Estimate albedo from an input image using Marigold V2. The workflow separates surface color from lighting and shading, producing an albedo map useful for…
À propos
Estimate albedo from an input image using Marigold V2. The workflow separates surface color from lighting and shading, producing an albedo map useful for…
Ce que vous fournissez
- Lecture du workflow
S’exécute dans ComfyUI. Ce workflow ne peut pas s’exécuter sur cette page. Téléchargez-le et ouvrez-le dans ComfyUI.
Télécharger le workflowPas encore d’exemples de résultats pour ce workflow.
Dans le workflow
Un aperçu en lecture seule du graphe de nœuds. Ouvrez-le dans Comfy Cloud ou téléchargez-le pour modifier les nœuds.
Loading the graph
Open full-size workflow previewFichiers de ce workflow
- Comfy Cloud
- Oui
- Auteur
- Auteur indisponible
Nécessite des nœuds personnalisés
- Lecture du workflow
Utiliser ce workflow depuis du code
Généré à partir du graphe et des entrées du workflow lorsque cela est possible ; sinon, les exemples enregistrés sont affichés. Vérifiez les identifiants et les points de terminaison avant d’exécuter le code, ce qui peut entraîner des frais.
What you need
- Runs on
- Comfy Cloud
- Clé
- COMFY_API_KEY
Nécessite un forfait Cloud payant et des crédits.
# 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": "flower_with_texture.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_albedo_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": "albedo"
},
"_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_albedo.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_albedo_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)