Depth Estimation: Marigold V2
Estimate scene depth from an input image using Marigold V2, generating a depth map with brighter areas representing closer objects and darker areas…
تنزيل سير العملجرّبه في Cloud وثائق API
حول
Estimate scene depth from an input image using Marigold V2, generating a depth map with brighter areas representing closer objects and darker areas…
ما تقدّمه
- جارٍ قراءة سير العمل
يعمل في 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": "ev_suv_gold_desert_pavilion.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_depth_log_stage2_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": "depth"
},
"_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_depth_log_stage2.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_depth_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)