-
Notifications
You must be signed in to change notification settings - Fork 451
Description
I was able to put together a json for using wan2.2 (5b and/or 14b) for text to image. It's not perfect and could definitely be improved upon, but I thought I'd share in case you wanted to improve upon it and add it with the other jsons. :)
This was for 14b specifically:
{{ JSON.stringify({
"3": {
"inputs": {
"seed": Math.floor(Math.random() * (0xFFFFFFFF - 1)) + 1,
"steps": 40,
"cfg": 10,
"sampler_name": "uni_pc",
"scheduler": "simple",
"denoise": 1,
"model": ["48", 0],
"positive": ["6", 0],
"negative": ["7", 0],
"latent_image": ["5", 0]
},
"class_type": "KSampler",
"_meta": {
"title": "KSampler"
}
},
"5": {
"inputs": {
"width": 1024,
"height": 1024,
"batch_size": 1
},
"class_type": "EmptyLatentImage",
"_meta": {
"title": "Empty Latent Image"
}
},
"6": {
"inputs": {
"text": "${PROMPT}",
"clip": ["38", 0]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP Text Encode (Positive Prompt)"
}
},
"7": {
"inputs": {
"text": "${NEGATIVE_PROMPT}",
"clip": ["38", 0]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP Text Encode (Negative Prompt)"
}
},
"8": {
"inputs": {
"samples": ["3", 0],
"vae": ["39", 0]
},
"class_type": "VAEDecode",
"_meta": {
"title": "VAE Decode"
}
},
"9": {
"inputs": {
"filename_prefix": "image/ComfyUI",
"images": ["8", 0]
},
"class_type": "SaveImage",
"_meta": {
"title": "Save Image"
}
},
"37": {
"inputs": {
"unet_name": "wan2.2_t2v_high_noise_14B_fp16.safetensors",
"weight_dtype": "default"
},
"class_type": "UNETLoader",
"_meta": {
"title": "Load Diffusion Model"
}
},
"38": {
"inputs": {
"clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
"type": "wan",
"device": "default"
},
"class_type": "CLIPLoader",
"_meta": {
"title": "Load CLIP"
}
},
"39": {
"inputs": {
"vae_name": "wan_2.1_vae.safetensors"
},
"class_type": "VAELoader",
"_meta": {
"title": "Load VAE"
}
},
"48": {
"inputs": {
"shift": 2,
"model": ["37", 0]
},
"class_type": "ModelSamplingSD3",
"_meta": {
"title": "ModelSamplingSD3"
}
}
}) }}