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)