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,…
ワークフローをダウンロードCloudで試す API ドキュメント
概要
Estimate surface normals from an input image using Marigold V2. The workflow generates a normal map representing the orientation of surfaces in the scene,…
入力するもの
- ワークフローを読み込み中
ComfyUI で実行できます。 このワークフローはこのページでは実行できません。ダウンロードしてComfyUIで開いてください。
ワークフローをダウンロードこのワークフローにはまだサンプル出力がありません。
ワークフローの内部
ノードグラフの読み取り専用プレビューです。ノードを編集するには、Comfy Cloudで開くかダウンロードしてください。
Loading the graph
Open full-size workflow previewこのワークフロー内のファイル
- Comfy Cloud
- はい
- 作成者
- 著者は利用できません
カスタムノードが必要です
- ワークフローを読み込み中
コードからこのワークフローを使用する
可能な場合はワークフローグラフと入力から生成されます。それ以外の場合は保存された例が表示されます。料金が発生する場合があるため、コードを実行する前に認証情報とエンドポイントを確認してください。
1 API キーを取得 ↗
What you need
- Runs on
- Comfy Cloud
- キー
- COMFY_API_KEY
有料の Cloud プランとクレジットが必要です。
API JSONをダウンロードAPI ドキュメント ↗
# 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)