Run this model with HF Jobs
Run neuralvfx/Z-Image-SAM-ControlNet on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/neuralvfx/Z-Image-SAM-ControlNet. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/neuralvfx/Z-Image-SAM-ControlNet on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use neuralvfx/Z-Image-SAM-ControlNet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use neuralvfx/Z-Image-SAM-ControlNet with Diffusers:
pip install -U diffusers transformers accelerate
from diffusers import ControlNetModel, StableDiffusionControlNetPipeline controlnet = ControlNetModel.from_pretrained("neuralvfx/Z-Image-SAM-ControlNet") pipe = StableDiffusionControlNetPipeline.from_pretrained( "Tongyi-MAI/Z-Image", controlnet=controlnet ) - Notebooks
- Google Colab
- Kaggle
Delete comfy-ui-patch/z-image-control.json
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626{ "id": "dc824ad9-4bce-4551-a997-e6a87f72ec9a", "revision": 0, "last_node_id": 30, "last_link_id": 44, "nodes": [ { "id": 23, "type": "CLIPLoader", "pos": [ 193.35770362122202, 589.1045386116131 ], "size": [ 270, 106 ], "flags": {}, "order": 0, "mode": 0, "inputs": [], "outputs": [ { "name": "CLIP", "type": "CLIP", "links": [ 25, 26 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.11.0", "Node name for S&R": "CLIPLoader" }, "widgets_values": [ "qwen_3_4b.safetensors", "stable_diffusion", "default" ] }, { "id": 11, "type": "ZImageFunControlnet", "pos": [ 650.693370136532, 873.0013944643039 ], "size": [ 270, 158 ], "flags": {}, "order": 8, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 8 }, { "name": "model_patch", "type": "MODEL_PATCH", "link": 7 }, { "name": "vae", "type": "VAE", "link": 24 }, { "name": "image", "shape": 7, "type": "IMAGE", "link": 44 }, { "name": "inpaint_image", "shape": 7, "type": "IMAGE", "link": null }, { "name": "mask", "shape": 7, "type": "MASK", "link": null } ], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 9 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.11.0", "Node name for S&R": "ZImageFunControlnet" }, "widgets_values": [ 1 ] }, { "id": 19, "type": "CLIPTextEncode", "pos": [ 575.386073696718, 558.5820990144681 ], "size": [ 384.6283512791799, 88 ], "flags": {}, "order": 6, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 25 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 18 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.11.0", "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "低分辨率,低画质,肢体畸形,手指畸形,画面过饱和,蜡像感,人脸无细节,过度光滑,画面具有AI感。构图混乱。文字模糊,扭曲。" ] }, { "id": 22, "type": "VAELoader", "pos": [ 299.04518148310876, 1053.0221582644497 ], "size": [ 270, 58 ], "flags": {}, "order": 1, "mode": 0, "inputs": [], "outputs": [ { "name": "VAE", "type": "VAE", "links": [ 23, 24 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.11.0", "Node name for S&R": "VAELoader" }, "widgets_values": [ "ae.safetensors" ] }, { "id": 20, "type": "VAEDecode", "pos": [ 1304.5368015816512, 1029.7346108643137 ], "size": [ 140, 46 ], "flags": {}, "order": 10, "mode": 0, "inputs": [ { "name": "samples", "type": "LATENT", "link": 19 }, { "name": "vae", "type": "VAE", "link": 23 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 43 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.11.0", "Node name for S&R": "VAEDecode" }, "widgets_values": [] }, { "id": 15, "type": "LoadImage", "pos": [ 121.58164566971385, 1253.1819819080865 ], "size": [ 282.798828125, 314 ], "flags": {}, "order": 2, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 44 ] }, { "name": "MASK", "type": "MASK", "links": null } ], "properties": { "cnr_id": "comfy-core", "ver": "0.11.0", "Node name for S&R": "LoadImage" }, "widgets_values": [ "z-image.png", "image" ] }, { "id": 24, "type": "EmptySD3LatentImage", "pos": [ 665.3716158641379, 1223.558694484496 ], "size": [ 270, 106 ], "flags": {}, "order": 3, "mode": 0, "inputs": [], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 40 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.11.0", "Node name for S&R": "EmptySD3LatentImage" }, "widgets_values": [ 1024, 1024, 1 ] }, { "id": 14, "type": "CheckpointLoaderSimple", "pos": [ 296.99002192658565, 775.6854381875186 ], "size": [ 270, 98 ], "flags": {}, "order": 4, "mode": 0, "inputs": [], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 8 ] }, { "name": "CLIP", "type": "CLIP", "links": [] }, { "name": "VAE", "type": "VAE", "links": [] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.11.0", "Node name for S&R": "CheckpointLoaderSimple" }, "widgets_values": [ "z_image_bf16.safetensors" ] }, { "id": 13, "type": "ModelPatchLoader", "pos": [ 299.87400325559804, 937.3575331331284 ], "size": [ 270, 58 ], "flags": {}, "order": 5, "mode": 0, "inputs": [], "outputs": [ { "name": "MODEL_PATCH", "type": "MODEL_PATCH", "links": [ 7 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.11.0", "Node name for S&R": "ModelPatchLoader" }, "widgets_values": [ "z-image-sam-controlnet.safetensors" ] }, { "id": 18, "type": "CLIPTextEncode", "pos": [ 579.7513745545072, 394.7179132501322 ], "size": [ 384.6283512791799, 88 ], "flags": {}, "order": 7, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 26 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 13 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.11.0", "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "some beach wood washed up on the sunny sand, spelling the words z-image, with footprints and waves crashing" ] }, { "id": 30, "type": "SaveImage", "pos": [ 1390.0115724066345, 1148.1802964029368 ], "size": [ 963.738329965309, 1146.7897439905723 ], "flags": {}, "order": 11, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 43 } ], "outputs": [], "properties": { "cnr_id": "comfy-core", "ver": "0.11.0", "Node name for S&R": "SaveImage" }, "widgets_values": [ "beach_sgmm_uniform" ] }, { "id": 16, "type": "KSampler", "pos": [ 1019.3164869552924, 1100.388973122045 ], "size": [ 270, 474 ], "flags": {}, "order": 9, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 9 }, { "name": "positive", "type": "CONDITIONING", "link": 13 }, { "name": "negative", "type": "CONDITIONING", "link": 18 }, { "name": "latent_image", "type": "LATENT", "link": 40 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 19 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.11.0", "Node name for S&R": "KSampler" }, "widgets_values": [ 45, "fixed", 50, 4, "euler", "normal", 1 ] } ], "links": [ [ 7, 13, 0, 11, 1, "MODEL_PATCH" ], [ 8, 14, 0, 11, 0, "MODEL" ], [ 9, 11, 0, 16, 0, "MODEL" ], [ 13, 18, 0, 16, 1, "CONDITIONING" ], [ 18, 19, 0, 16, 2, "CONDITIONING" ], [ 19, 16, 0, 20, 0, "LATENT" ], [ 23, 22, 0, 20, 1, "VAE" ], [ 24, 22, 0, 11, 2, "VAE" ], [ 25, 23, 0, 19, 0, "CLIP" ], [ 26, 23, 0, 18, 0, "CLIP" ], [ 40, 24, 0, 16, 3, "LATENT" ], [ 43, 20, 0, 30, 0, "IMAGE" ], [ 44, 15, 0, 11, 3, "IMAGE" ] ], "groups": [], "config": {}, "extra": { "workflowRendererVersion": "LG", "ds": { "scale": 0.6549488697051965, "offset": [ 873.0789061555352, -192.47603206701717 ] }, "frontendVersion": "1.37.11" }, "version": 0.4}comfy-ui-patch/z-image-control.jsonDeleted-626