Text-to-Image
Diffusion Single File
MiniMax H3
Pruna AI
English
comfyui
image-to-image
image-generation
image-editing
prompt-upsampling
lora
int8
4-bit precision
Instructions to use PrunaAI/P-H3-Image-Comfy with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusion Single File
How to use PrunaAI/P-H3-Image-Comfy with Diffusion Single File:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Pruna AI
How to use PrunaAI/P-H3-Image-Comfy with Pruna AI:
from pruna import PrunaModel model = PrunaModel.from_pretrained("PrunaAI/P-H3-Image-Comfy") - Notebooks
- Google Colab
- Kaggle
Download workflows/p-h3-image_edit.json from PrunaAI/P-H3-Image-Comfy: direct link, hf CLI and curl.
- Browser
- Download file 38.1 kB
-
https://huggingface.co/PrunaAI/P-H3-Image-Comfy/resolve/main/workflows/p-h3-image_edit.json
- Command line
-
hf download hf://PrunaAI/P-H3-Image-Comfy/workflows/p-h3-image_edit.json
-
curl -L -o p-h3-image_edit.json https://huggingface.co/PrunaAI/P-H3-Image-Comfy/resolve/main/workflows/p-h3-image_edit.json
38.1 kB
| { | |
| "id": "69d8656c-2ba3-4178-990f-1ff7029e5c2e", | |
| "revision": 0, | |
| "last_node_id": 31, | |
| "last_link_id": 46, | |
| "nodes": [ | |
| { | |
| "id": 4, | |
| "type": "LoadImage", | |
| "pos": [ | |
| 0, | |
| 834 | |
| ], | |
| "size": [ | |
| 320, | |
| 360 | |
| ], | |
| "flags": {}, | |
| "order": 0, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "image", | |
| "name": "image", | |
| "type": "COMBO", | |
| "widget": { | |
| "name": "image" | |
| }, | |
| "link": null | |
| }, | |
| { | |
| "localized_name": "choose file to upload", | |
| "name": "upload", | |
| "type": "IMAGEUPLOAD", | |
| "widget": { | |
| "name": "upload" | |
| }, | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "IMAGE", | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 21, | |
| 42 | |
| ] | |
| }, | |
| { | |
| "localized_name": "MASK", | |
| "name": "MASK", | |
| "type": "MASK", | |
| "links": null | |
| } | |
| ], | |
| "title": "image_1 (edited)", | |
| "properties": { | |
| "Node name for S&R": "LoadImage", | |
| "cnr_id": "comfy-core", | |
| "ver": "0.43.0" | |
| }, | |
| "widgets_values": [ | |
| "example.png", | |
| "image" | |
| ], | |
| "widgets_values_named": { | |
| "image": "example.png", | |
| "upload": "image" | |
| } | |
| }, | |
| { | |
| "id": 5, | |
| "type": "LoadImage", | |
| "pos": [ | |
| 0, | |
| 1254 | |
| ], | |
| "size": [ | |
| 320, | |
| 360 | |
| ], | |
| "flags": {}, | |
| "order": 1, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "image", | |
| "name": "image", | |
| "type": "COMBO", | |
| "widget": { | |
| "name": "image" | |
| }, | |
| "link": null | |
| }, | |
| { | |
| "localized_name": "choose file to upload", | |
| "name": "upload", | |
| "type": "IMAGEUPLOAD", | |
| "widget": { | |
| "name": "upload" | |
| }, | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "IMAGE", | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 23, | |
| 44 | |
| ] | |
| }, | |
| { | |
| "localized_name": "MASK", | |
| "name": "MASK", | |
| "type": "MASK", | |
| "links": null | |
| } | |
| ], | |
| "title": "image_2 (reference)", | |
| "properties": { | |
| "Node name for S&R": "LoadImage", | |
| "cnr_id": "comfy-core", | |
| "ver": "0.43.0" | |
| }, | |
| "widgets_values": [ | |
| "example.png", | |
| "image" | |
| ], | |
| "widgets_values_named": { | |
| "image": "example.png", | |
| "upload": "image" | |
| } | |
| }, | |
| { | |
| "id": 7, | |
| "type": "ManualSigmas", | |
| "pos": [ | |
| 1340, | |
| 560 | |
| ], | |
| "size": [ | |
| 320, | |
| 82 | |
| ], | |
| "flags": {}, | |
| "order": 2, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "sigmas", | |
| "name": "sigmas", | |
| "type": "STRING", | |
| "widget": { | |
| "name": "sigmas" | |
| }, | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "SIGMAS", | |
| "name": "SIGMAS", | |
| "type": "SIGMAS", | |
| "links": [ | |
| 10 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "ManualSigmas", | |
| "cnr_id": "comfy-core", | |
| "ver": "0.43.0" | |
| }, | |
| "widgets_values": [ | |
| "1.0, 0.984753, 0.967905, 0.951688, 0.925372, 0.881923, 0.810083, 0.528718, 0.0" | |
| ], | |
| "widgets_values_named": { | |
| "sigmas": "1.0, 0.984753, 0.967905, 0.951688, 0.925372, 0.881923, 0.810083, 0.528718, 0.0" | |
| } | |
| }, | |
| { | |
| "id": 8, | |
| "type": "BasicGuider", | |
| "pos": [ | |
| 1340, | |
| 100 | |
| ], | |
| "size": [ | |
| 240, | |
| 46 | |
| ], | |
| "flags": {}, | |
| "order": 22, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "model", | |
| "name": "model", | |
| "type": "MODEL", | |
| "link": 36 | |
| }, | |
| { | |
| "localized_name": "conditioning", | |
| "name": "conditioning", | |
| "type": "CONDITIONING", | |
| "link": 45 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "GUIDER", | |
| "name": "GUIDER", | |
| "type": "GUIDER", | |
| "links": [ | |
| 8 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "BasicGuider", | |
| "cnr_id": "comfy-core", | |
| "ver": "0.43.0" | |
| } | |
| }, | |
| { | |
| "id": 9, | |
| "type": "KSamplerSelect", | |
| "pos": [ | |
| 1340, | |
| 220 | |
| ], | |
| "size": [ | |
| 270, | |
| 58 | |
| ], | |
| "flags": {}, | |
| "order": 3, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "sampler_name", | |
| "name": "sampler_name", | |
| "type": "COMBO", | |
| "widget": { | |
| "name": "sampler_name" | |
| }, | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "SAMPLER", | |
| "name": "SAMPLER", | |
| "type": "SAMPLER", | |
| "links": [ | |
| 9 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "KSamplerSelect", | |
| "cnr_id": "comfy-core", | |
| "ver": "0.43.0" | |
| }, | |
| "widgets_values": [ | |
| "euler" | |
| ], | |
| "widgets_values_named": { | |
| "sampler_name": "euler" | |
| } | |
| }, | |
| { | |
| "id": 10, | |
| "type": "RandomNoise", | |
| "pos": [ | |
| 1340, | |
| 340 | |
| ], | |
| "size": [ | |
| 270, | |
| 82 | |
| ], | |
| "flags": {}, | |
| "order": 4, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "noise_seed", | |
| "name": "noise_seed", | |
| "type": "INT", | |
| "widget": { | |
| "name": "noise_seed" | |
| }, | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "NOISE", | |
| "name": "NOISE", | |
| "type": "NOISE", | |
| "links": [ | |
| 7 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "RandomNoise", | |
| "cnr_id": "comfy-core", | |
| "ver": "0.43.0" | |
| }, | |
| "widgets_values": [ | |
| 0, | |
| "randomize" | |
| ], | |
| "widgets_values_named": { | |
| "noise_seed": 0, | |
| "control_after_generate": "randomize" | |
| } | |
| }, | |
| { | |
| "id": 11, | |
| "type": "SamplerCustomAdvanced", | |
| "pos": [ | |
| 1700, | |
| 100 | |
| ], | |
| "size": [ | |
| 270, | |
| 330 | |
| ], | |
| "flags": {}, | |
| "order": 23, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "noise", | |
| "name": "noise", | |
| "type": "NOISE", | |
| "link": 7 | |
| }, | |
| { | |
| "localized_name": "guider", | |
| "name": "guider", | |
| "type": "GUIDER", | |
| "link": 8 | |
| }, | |
| { | |
| "localized_name": "sampler", | |
| "name": "sampler", | |
| "type": "SAMPLER", | |
| "link": 9 | |
| }, | |
| { | |
| "localized_name": "sigmas", | |
| "name": "sigmas", | |
| "type": "SIGMAS", | |
| "link": 10 | |
| }, | |
| { | |
| "localized_name": "latent_image", | |
| "name": "latent_image", | |
| "type": "LATENT", | |
| "link": 46 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "output", | |
| "name": "output", | |
| "type": "LATENT", | |
| "links": [ | |
| 12 | |
| ] | |
| }, | |
| { | |
| "localized_name": "denoised_output", | |
| "name": "denoised_output", | |
| "type": "LATENT", | |
| "links": [] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "SamplerCustomAdvanced", | |
| "cnr_id": "comfy-core", | |
| "ver": "0.43.0" | |
| } | |
| }, | |
| { | |
| "id": 12, | |
| "type": "VAEDecode", | |
| "pos": [ | |
| 2020, | |
| 100 | |
| ], | |
| "size": [ | |
| 210, | |
| 46 | |
| ], | |
| "flags": {}, | |
| "order": 24, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "samples", | |
| "name": "samples", | |
| "type": "LATENT", | |
| "link": 12 | |
| }, | |
| { | |
| "localized_name": "vae", | |
| "name": "vae", | |
| "type": "VAE", | |
| "link": 38 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "IMAGE", | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 14 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "VAEDecode", | |
| "cnr_id": "comfy-core", | |
| "ver": "0.43.0" | |
| } | |
| }, | |
| { | |
| "id": 13, | |
| "type": "SaveImage", | |
| "pos": [ | |
| 2280, | |
| 100 | |
| ], | |
| "size": [ | |
| 520, | |
| 560 | |
| ], | |
| "flags": {}, | |
| "order": 25, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "images", | |
| "name": "images", | |
| "type": "IMAGE", | |
| "link": 14 | |
| }, | |
| { | |
| "localized_name": "filename_prefix", | |
| "name": "filename_prefix", | |
| "type": "STRING", | |
| "widget": { | |
| "name": "filename_prefix" | |
| }, | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "images", | |
| "name": "images", | |
| "type": "IMAGE", | |
| "links": null | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "SaveImage", | |
| "cnr_id": "comfy-core", | |
| "ver": "0.43.0" | |
| }, | |
| "widgets_values": [ | |
| "p-h3-image" | |
| ], | |
| "widgets_values_named": { | |
| "filename_prefix": "p-h3-image" | |
| } | |
| }, | |
| { | |
| "id": 14, | |
| "type": "CLIPLoader", | |
| "pos": [ | |
| 0, | |
| 668 | |
| ], | |
| "size": [ | |
| 320, | |
| 106 | |
| ], | |
| "flags": {}, | |
| "order": 5, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "clip_name", | |
| "name": "clip_name", | |
| "type": "COMBO", | |
| "widget": { | |
| "name": "clip_name" | |
| }, | |
| "link": null | |
| }, | |
| { | |
| "localized_name": "type", | |
| "name": "type", | |
| "type": "COMBO", | |
| "widget": { | |
| "name": "type" | |
| }, | |
| "link": null | |
| }, | |
| { | |
| "localized_name": "device", | |
| "name": "device", | |
| "shape": 7, | |
| "type": "COMBO", | |
| "widget": { | |
| "name": "device" | |
| }, | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "CLIP", | |
| "name": "CLIP", | |
| "type": "CLIP", | |
| "links": [ | |
| 28 | |
| ] | |
| } | |
| ], | |
| "title": "p-h3-image prompt upsampler", | |
| "properties": { | |
| "Node name for S&R": "CLIPLoader", | |
| "cnr_id": "comfy-core", | |
| "ver": "0.43.0", | |
| "models": [ | |
| { | |
| "name": "p-h3-image_prompt_upsampler_bf16.safetensors", | |
| "url": "https://huggingface.co/PrunaAI/P-H3-Image-Comfy/resolve/main/text_encoders/p-h3-image_prompt_upsampler_bf16.safetensors", | |
| "directory": "text_encoders" | |
| } | |
| ] | |
| }, | |
| "widgets_values": [ | |
| "p-h3-image_prompt_upsampler_bf16.safetensors", | |
| "minimax", | |
| "default" | |
| ], | |
| "widgets_values_named": { | |
| "clip_name": "p-h3-image_prompt_upsampler_bf16.safetensors", | |
| "type": "minimax", | |
| "device": "default" | |
| } | |
| }, | |
| { | |
| "id": 16, | |
| "type": "PreviewAny", | |
| "pos": [ | |
| 1640, | |
| 700 | |
| ], | |
| "size": [ | |
| 480, | |
| 360 | |
| ], | |
| "flags": {}, | |
| "order": 20, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "source", | |
| "name": "source", | |
| "type": "*", | |
| "link": 34 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "STRING", | |
| "name": "STRING", | |
| "type": "STRING", | |
| "links": [] | |
| } | |
| ], | |
| "title": "Upsampled prompt", | |
| "properties": { | |
| "Node name for S&R": "PreviewAny", | |
| "cnr_id": "comfy-core", | |
| "ver": "0.43.0" | |
| }, | |
| "widgets_values": [], | |
| "widgets_values_named": {} | |
| }, | |
| { | |
| "id": 17, | |
| "type": "PrimitiveStringMultiline", | |
| "pos": [ | |
| 380, | |
| 700 | |
| ], | |
| "size": [ | |
| 400, | |
| 180 | |
| ], | |
| "flags": {}, | |
| "order": 6, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "value", | |
| "name": "value", | |
| "type": "STRING", | |
| "widget": { | |
| "name": "value" | |
| }, | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "STRING", | |
| "name": "STRING", | |
| "type": "STRING", | |
| "links": [ | |
| 20, | |
| 31 | |
| ] | |
| } | |
| ], | |
| "title": "Request", | |
| "properties": { | |
| "Node name for S&R": "PrimitiveStringMultiline" | |
| }, | |
| "widgets_values": [ | |
| "Put the hat from <Picture 2> on the person in <Picture 1>." | |
| ], | |
| "widgets_values_named": { | |
| "value": "Put the hat from <Picture 2> on the person in <Picture 1>." | |
| } | |
| }, | |
| { | |
| "id": 18, | |
| "type": "StringFormat", | |
| "pos": [ | |
| 380, | |
| 920 | |
| ], | |
| "size": [ | |
| 400, | |
| 240 | |
| ], | |
| "flags": {}, | |
| "order": 13, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "a", | |
| "name": "values.a", | |
| "shape": 7, | |
| "type": "*", | |
| "link": 20 | |
| }, | |
| { | |
| "localized_name": "b", | |
| "name": "values.b", | |
| "shape": 7, | |
| "type": "*", | |
| "link": null | |
| }, | |
| { | |
| "localized_name": "f_string", | |
| "name": "f_string", | |
| "type": "STRING", | |
| "widget": { | |
| "name": "f_string" | |
| }, | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "STRING", | |
| "name": "STRING", | |
| "type": "STRING", | |
| "links": [ | |
| 30 | |
| ] | |
| } | |
| ], | |
| "title": "Upsampler input", | |
| "properties": { | |
| "Node name for S&R": "StringFormat" | |
| }, | |
| "widgets_values": [ | |
| "<|im_start|>user\n<Picture 1>: <|vision_start|><|image_pad|><|vision_end|><Picture 2>: <|vision_start|><|image_pad|><|vision_end|>Edit <Picture 1>. {a}<|im_end|>\n<|im_start|>assistant\n<think>\n" | |
| ], | |
| "widgets_values_named": { | |
| "f_string": "<|im_start|>user\n<Picture 1>: <|vision_start|><|image_pad|><|vision_end|><Picture 2>: <|vision_start|><|image_pad|><|vision_end|>Edit <Picture 1>. {a}<|im_end|>\n<|im_start|>assistant\n<think>\n" | |
| } | |
| }, | |
| { | |
| "id": 19, | |
| "type": "ImageScaleToTotalPixels", | |
| "pos": [ | |
| 820, | |
| 700 | |
| ], | |
| "size": [ | |
| 300, | |
| 110 | |
| ], | |
| "flags": {}, | |
| "order": 11, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "image", | |
| "name": "image", | |
| "type": "IMAGE", | |
| "link": 21 | |
| }, | |
| { | |
| "localized_name": "upscale_method", | |
| "name": "upscale_method", | |
| "type": "COMBO", | |
| "widget": { | |
| "name": "upscale_method" | |
| }, | |
| "link": null | |
| }, | |
| { | |
| "localized_name": "megapixels", | |
| "name": "megapixels", | |
| "type": "FLOAT", | |
| "widget": { | |
| "name": "megapixels" | |
| }, | |
| "link": null | |
| }, | |
| { | |
| "localized_name": "resolution_steps", | |
| "name": "resolution_steps", | |
| "type": "INT", | |
| "widget": { | |
| "name": "resolution_steps" | |
| }, | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "IMAGE", | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 22, | |
| 26 | |
| ] | |
| } | |
| ], | |
| "title": "image_1 at 1 MP", | |
| "properties": { | |
| "Node name for S&R": "ImageScaleToTotalPixels" | |
| }, | |
| "widgets_values": [ | |
| "lanczos", | |
| 1, | |
| 1 | |
| ], | |
| "widgets_values_named": { | |
| "upscale_method": "lanczos", | |
| "megapixels": 1, | |
| "resolution_steps": 1 | |
| } | |
| }, | |
| { | |
| "id": 20, | |
| "type": "GetImageSize", | |
| "pos": [ | |
| 820, | |
| 850 | |
| ], | |
| "size": [ | |
| 220, | |
| 90 | |
| ], | |
| "flags": {}, | |
| "order": 15, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "image", | |
| "name": "image", | |
| "type": "IMAGE", | |
| "link": 22 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "width", | |
| "name": "width", | |
| "type": "INT", | |
| "links": [ | |
| 24 | |
| ] | |
| }, | |
| { | |
| "localized_name": "height", | |
| "name": "height", | |
| "type": "INT", | |
| "links": [ | |
| 25 | |
| ] | |
| }, | |
| { | |
| "localized_name": "batch_size", | |
| "name": "batch_size", | |
| "type": "INT", | |
| "links": null | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "GetImageSize" | |
| } | |
| }, | |
| { | |
| "id": 21, | |
| "type": "ResizeAndPadImage", | |
| "pos": [ | |
| 820, | |
| 980 | |
| ], | |
| "size": [ | |
| 300, | |
| 170 | |
| ], | |
| "flags": {}, | |
| "order": 16, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "image", | |
| "name": "image", | |
| "type": "IMAGE", | |
| "link": 23 | |
| }, | |
| { | |
| "localized_name": "target_width", | |
| "name": "target_width", | |
| "type": "INT", | |
| "widget": { | |
| "name": "target_width" | |
| }, | |
| "link": 24 | |
| }, | |
| { | |
| "localized_name": "target_height", | |
| "name": "target_height", | |
| "type": "INT", | |
| "widget": { | |
| "name": "target_height" | |
| }, | |
| "link": 25 | |
| }, | |
| { | |
| "localized_name": "padding_color", | |
| "name": "padding_color", | |
| "type": "COMBO", | |
| "widget": { | |
| "name": "padding_color" | |
| }, | |
| "link": null | |
| }, | |
| { | |
| "localized_name": "interpolation", | |
| "name": "interpolation", | |
| "type": "COMBO", | |
| "widget": { | |
| "name": "interpolation" | |
| }, | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "IMAGE", | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 27 | |
| ] | |
| } | |
| ], | |
| "title": "image_2 padded to image_1", | |
| "properties": { | |
| "Node name for S&R": "ResizeAndPadImage" | |
| }, | |
| "widgets_values": [ | |
| 512, | |
| 512, | |
| "white", | |
| "lanczos" | |
| ], | |
| "widgets_values_named": { | |
| "target_width": 512, | |
| "target_height": 512, | |
| "padding_color": "white", | |
| "interpolation": "lanczos" | |
| } | |
| }, | |
| { | |
| "id": 22, | |
| "type": "BatchImagesNode", | |
| "pos": [ | |
| 820, | |
| 1190 | |
| ], | |
| "size": [ | |
| 220, | |
| 86 | |
| ], | |
| "flags": {}, | |
| "order": 17, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "image0", | |
| "name": "images.image0", | |
| "type": "IMAGE", | |
| "link": 26 | |
| }, | |
| { | |
| "localized_name": "image1", | |
| "name": "images.image1", | |
| "shape": 7, | |
| "type": "IMAGE", | |
| "link": 27 | |
| }, | |
| { | |
| "localized_name": "image2", | |
| "name": "images.image2", | |
| "shape": 7, | |
| "type": "IMAGE", | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "IMAGE", | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 29 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "BatchImagesNode" | |
| } | |
| }, | |
| { | |
| "id": 23, | |
| "type": "TextGenerate", | |
| "pos": [ | |
| 1180, | |
| 700 | |
| ], | |
| "size": [ | |
| 400, | |
| 288 | |
| ], | |
| "flags": {}, | |
| "order": 18, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "clip", | |
| "name": "clip", | |
| "type": "CLIP", | |
| "link": 28 | |
| }, | |
| { | |
| "localized_name": "image", | |
| "name": "image", | |
| "shape": 7, | |
| "type": "IMAGE", | |
| "link": 29 | |
| }, | |
| { | |
| "localized_name": "video", | |
| "name": "video", | |
| "shape": 7, | |
| "type": "IMAGE", | |
| "link": null | |
| }, | |
| { | |
| "localized_name": "audio", | |
| "name": "audio", | |
| "shape": 7, | |
| "type": "AUDIO", | |
| "link": null | |
| }, | |
| { | |
| "localized_name": "system_prompt", | |
| "name": "system_prompt", | |
| "shape": 7, | |
| "type": "STRING", | |
| "link": null | |
| }, | |
| { | |
| "localized_name": "prompt", | |
| "name": "prompt", | |
| "type": "STRING", | |
| "widget": { | |
| "name": "prompt" | |
| }, | |
| "link": 30 | |
| }, | |
| { | |
| "localized_name": "max_length", | |
| "name": "max_length", | |
| "type": "INT", | |
| "widget": { | |
| "name": "max_length" | |
| }, | |
| "link": null | |
| }, | |
| { | |
| "localized_name": "Sampling Mode", | |
| "name": "sampling_mode", | |
| "type": "COMFY_DYNAMICCOMBO_V3", | |
| "widget": { | |
| "name": "sampling_mode" | |
| }, | |
| "link": null | |
| }, | |
| { | |
| "localized_name": "thinking", | |
| "name": "thinking", | |
| "shape": 7, | |
| "type": "BOOLEAN", | |
| "widget": { | |
| "name": "thinking" | |
| }, | |
| "link": null | |
| }, | |
| { | |
| "localized_name": "use_default_template", | |
| "name": "use_default_template", | |
| "shape": 7, | |
| "type": "BOOLEAN", | |
| "widget": { | |
| "name": "use_default_template" | |
| }, | |
| "link": null | |
| }, | |
| { | |
| "localized_name": "mtp", | |
| "name": "mtp", | |
| "shape": 7, | |
| "type": "COMBO", | |
| "widget": { | |
| "name": "mtp" | |
| }, | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "generated_text", | |
| "name": "generated_text", | |
| "type": "STRING", | |
| "links": [ | |
| 32 | |
| ] | |
| }, | |
| { | |
| "localized_name": "thinking", | |
| "name": "thinking", | |
| "type": "STRING", | |
| "links": null | |
| } | |
| ], | |
| "title": "Prompt upsampler", | |
| "properties": { | |
| "Node name for S&R": "TextGenerate" | |
| }, | |
| "widgets_values": [ | |
| "", | |
| 3072, | |
| "off", | |
| false, | |
| true, | |
| "auto" | |
| ], | |
| "widgets_values_named": { | |
| "prompt": "", | |
| "max_length": 3072, | |
| "sampling_mode": "off", | |
| "thinking": false, | |
| "use_default_template": true, | |
| "mtp": "auto" | |
| } | |
| }, | |
| { | |
| "id": 24, | |
| "type": "ComfySwitchNode", | |
| "pos": [ | |
| 1180, | |
| 1030 | |
| ], | |
| "size": [ | |
| 300, | |
| 80 | |
| ], | |
| "flags": {}, | |
| "order": 19, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "on_false", | |
| "name": "on_false", | |
| "shape": 7, | |
| "type": "*", | |
| "link": 31 | |
| }, | |
| { | |
| "localized_name": "on_true", | |
| "name": "on_true", | |
| "shape": 7, | |
| "type": "*", | |
| "link": 32 | |
| }, | |
| { | |
| "localized_name": "switch", | |
| "name": "switch", | |
| "type": "BOOLEAN", | |
| "widget": { | |
| "name": "switch" | |
| }, | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "output", | |
| "name": "output", | |
| "type": "*", | |
| "links": [ | |
| 34, | |
| 41 | |
| ] | |
| } | |
| ], | |
| "title": "Use prompt upsampler", | |
| "properties": { | |
| "Node name for S&R": "ComfySwitchNode" | |
| }, | |
| "widgets_values": [ | |
| true | |
| ], | |
| "widgets_values_named": { | |
| "switch": true | |
| } | |
| }, | |
| { | |
| "id": 25, | |
| "type": "MarkdownNote", | |
| "pos": [ | |
| 380, | |
| 1200 | |
| ], | |
| "size": [ | |
| 400, | |
| 260 | |
| ], | |
| "flags": {}, | |
| "order": 7, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [], | |
| "title": "Prompt upsampler", | |
| "properties": {}, | |
| "widgets_values": [ | |
| "**Prompt upsampler.** Type a short edit request in **Request**, with `<Picture 1>` for the image to edit and `<Picture 2>` for the reference. The upsampler (Generate Text) sees both images and turns the request into an edit brief, shown in the preview.\n\nFor another number of images, add or remove a `<Picture N>: <|vision_start|><|image_pad|><|vision_end|>` block in **Upsampler input** the image in **Batch Images**, padded to image_1's size, and the image on **p-h3-image Conditioning**.\n\n**image_1 at 4 MP** sets the size of the edit.\n\nSet **Use prompt upsampler** to false to send the request to the model as it is." | |
| ], | |
| "widgets_values_named": { | |
| "text": "**Prompt upsampler.** Type a short edit request in **Request**, with `<Picture 1>` for the image to edit and `<Picture 2>` for the reference. The upsampler (Generate Text) sees both images and turns the request into an edit brief, shown in the preview.\n\nFor another number of images, add or remove a `<Picture N>: <|vision_start|><|image_pad|><|vision_end|>` block in **Upsampler input** the image in **Batch Images**, padded to image_1's size, and the image on **p-h3-image Conditioning**.\n\n**image_1 at 4 MP** sets the size of the edit.\n\nSet **Use prompt upsampler** to false to send the request to the model as it is." | |
| }, | |
| "color": "#432", | |
| "bgcolor": "#653" | |
| }, | |
| { | |
| "id": 26, | |
| "type": "UNETLoader", | |
| "pos": [ | |
| 0, | |
| 100 | |
| ], | |
| "size": [ | |
| 270, | |
| 82 | |
| ], | |
| "flags": {}, | |
| "order": 8, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "unet_name", | |
| "name": "unet_name", | |
| "type": "COMBO", | |
| "widget": { | |
| "name": "unet_name" | |
| }, | |
| "link": null | |
| }, | |
| { | |
| "localized_name": "weight_dtype", | |
| "name": "weight_dtype", | |
| "type": "COMBO", | |
| "widget": { | |
| "name": "weight_dtype" | |
| }, | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "MODEL", | |
| "name": "MODEL", | |
| "type": "MODEL", | |
| "links": [ | |
| 35 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "UNETLoader", | |
| "models": [ | |
| { | |
| "name": "p-h3-image_bf16.safetensors", | |
| "url": "https://huggingface.co/PrunaAI/P-H3-Image-Comfy/resolve/main/diffusion_models/p-h3-image_bf16.safetensors", | |
| "directory": "diffusion_models" | |
| } | |
| ] | |
| }, | |
| "widgets_values": [ | |
| "p-h3-image_bf16.safetensors", | |
| "default" | |
| ], | |
| "widgets_values_named": { | |
| "unet_name": "p-h3-image_bf16.safetensors", | |
| "weight_dtype": "default" | |
| } | |
| }, | |
| { | |
| "id": 27, | |
| "type": "MiniMaxH3SigmaShift", | |
| "pos": [ | |
| 0, | |
| 242 | |
| ], | |
| "size": [ | |
| 277.2857421875, | |
| 82 | |
| ], | |
| "flags": {}, | |
| "order": 14, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "model", | |
| "name": "model", | |
| "type": "MODEL", | |
| "link": 35 | |
| }, | |
| { | |
| "localized_name": "shift_video", | |
| "name": "shift_video", | |
| "type": "FLOAT", | |
| "widget": { | |
| "name": "shift_video" | |
| }, | |
| "link": null | |
| }, | |
| { | |
| "localized_name": "shift_audio", | |
| "name": "shift_audio", | |
| "type": "FLOAT", | |
| "widget": { | |
| "name": "shift_audio" | |
| }, | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "MODEL", | |
| "name": "MODEL", | |
| "type": "MODEL", | |
| "links": [ | |
| 36 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "MiniMaxH3SigmaShift" | |
| }, | |
| "widgets_values": [ | |
| 1, | |
| 1 | |
| ], | |
| "widgets_values_named": { | |
| "shift_video": 1, | |
| "shift_audio": 1 | |
| } | |
| }, | |
| { | |
| "id": 28, | |
| "type": "CLIPLoader", | |
| "pos": [ | |
| 0, | |
| 384 | |
| ], | |
| "size": [ | |
| 270, | |
| 106 | |
| ], | |
| "flags": {}, | |
| "order": 9, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "clip_name", | |
| "name": "clip_name", | |
| "type": "COMBO", | |
| "widget": { | |
| "name": "clip_name" | |
| }, | |
| "link": null | |
| }, | |
| { | |
| "localized_name": "type", | |
| "name": "type", | |
| "type": "COMBO", | |
| "widget": { | |
| "name": "type" | |
| }, | |
| "link": null | |
| }, | |
| { | |
| "localized_name": "device", | |
| "name": "device", | |
| "shape": 7, | |
| "type": "COMBO", | |
| "widget": { | |
| "name": "device" | |
| }, | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "CLIP", | |
| "name": "CLIP", | |
| "type": "CLIP", | |
| "links": [ | |
| 39 | |
| ] | |
| } | |
| ], | |
| "title": "p-h3-image text encoder", | |
| "properties": { | |
| "Node name for S&R": "CLIPLoader", | |
| "models": [ | |
| { | |
| "name": "p-h3-image_text_encoder_bf16.safetensors", | |
| "url": "https://huggingface.co/PrunaAI/P-H3-Image-Comfy/resolve/main/text_encoders/p-h3-image_text_encoder_bf16.safetensors", | |
| "directory": "text_encoders" | |
| } | |
| ] | |
| }, | |
| "widgets_values": [ | |
| "p-h3-image_text_encoder_bf16.safetensors", | |
| "minimax", | |
| "default" | |
| ], | |
| "widgets_values_named": { | |
| "clip_name": "p-h3-image_text_encoder_bf16.safetensors", | |
| "type": "minimax", | |
| "device": "default" | |
| } | |
| }, | |
| { | |
| "id": 29, | |
| "type": "VAELoader", | |
| "pos": [ | |
| 0, | |
| 550 | |
| ], | |
| "size": [ | |
| 270, | |
| 58 | |
| ], | |
| "flags": {}, | |
| "order": 10, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "vae_name", | |
| "name": "vae_name", | |
| "type": "COMBO", | |
| "widget": { | |
| "name": "vae_name" | |
| }, | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "VAE", | |
| "name": "VAE", | |
| "type": "VAE", | |
| "links": [ | |
| 38, | |
| 40 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "VAELoader", | |
| "models": [ | |
| { | |
| "name": "p-h3-image_vae_bf16.safetensors", | |
| "url": "https://huggingface.co/PrunaAI/P-H3-Image-Comfy/resolve/main/vae/p-h3-image_vae_bf16.safetensors", | |
| "directory": "vae" | |
| } | |
| ] | |
| }, | |
| "widgets_values": [ | |
| "p-h3-image_vae_bf16.safetensors" | |
| ], | |
| "widgets_values_named": { | |
| "vae_name": "p-h3-image_vae_bf16.safetensors" | |
| } | |
| }, | |
| { | |
| "id": 30, | |
| "type": "PH3ImageConditioning", | |
| "pos": [ | |
| 860, | |
| 100 | |
| ], | |
| "size": [ | |
| 400, | |
| 236 | |
| ], | |
| "flags": {}, | |
| "order": 21, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "clip", | |
| "name": "clip", | |
| "type": "CLIP", | |
| "link": 39 | |
| }, | |
| { | |
| "localized_name": "vae", | |
| "name": "vae", | |
| "shape": 7, | |
| "type": "VAE", | |
| "link": 40 | |
| }, | |
| { | |
| "localized_name": "image_1", | |
| "name": "images.image_1", | |
| "shape": 7, | |
| "type": "IMAGE", | |
| "link": 43 | |
| }, | |
| { | |
| "localized_name": "image_2", | |
| "name": "images.image_2", | |
| "shape": 7, | |
| "type": "IMAGE", | |
| "link": 44 | |
| }, | |
| { | |
| "localized_name": "image_3", | |
| "name": "images.image_3", | |
| "shape": 7, | |
| "type": "IMAGE", | |
| "link": null | |
| }, | |
| { | |
| "localized_name": "prompt", | |
| "name": "prompt", | |
| "type": "STRING", | |
| "widget": { | |
| "name": "prompt" | |
| }, | |
| "link": 41 | |
| }, | |
| { | |
| "localized_name": "width", | |
| "name": "width", | |
| "type": "INT", | |
| "widget": { | |
| "name": "width" | |
| }, | |
| "link": null | |
| }, | |
| { | |
| "localized_name": "height", | |
| "name": "height", | |
| "type": "INT", | |
| "widget": { | |
| "name": "height" | |
| }, | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "positive", | |
| "name": "positive", | |
| "type": "CONDITIONING", | |
| "links": [ | |
| 45 | |
| ] | |
| }, | |
| { | |
| "localized_name": "LATENT", | |
| "name": "LATENT", | |
| "type": "LATENT", | |
| "links": [ | |
| 46 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "PH3ImageConditioning" | |
| }, | |
| "widgets_values": [ | |
| "", | |
| 0, | |
| 0 | |
| ], | |
| "widgets_values_named": { | |
| "prompt": "", | |
| "width": 0, | |
| "height": 0 | |
| } | |
| }, | |
| { | |
| "id": 31, | |
| "type": "ImageScaleToTotalPixels", | |
| "pos": [ | |
| 860, | |
| 380 | |
| ], | |
| "size": [ | |
| 276.4927734375, | |
| 106 | |
| ], | |
| "flags": {}, | |
| "order": 12, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "image", | |
| "name": "image", | |
| "type": "IMAGE", | |
| "link": 42 | |
| }, | |
| { | |
| "localized_name": "upscale_method", | |
| "name": "upscale_method", | |
| "type": "COMBO", | |
| "widget": { | |
| "name": "upscale_method" | |
| }, | |
| "link": null | |
| }, | |
| { | |
| "localized_name": "megapixels", | |
| "name": "megapixels", | |
| "type": "FLOAT", | |
| "widget": { | |
| "name": "megapixels" | |
| }, | |
| "link": null | |
| }, | |
| { | |
| "localized_name": "resolution_steps", | |
| "name": "resolution_steps", | |
| "type": "INT", | |
| "widget": { | |
| "name": "resolution_steps" | |
| }, | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "IMAGE", | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 43 | |
| ] | |
| } | |
| ], | |
| "title": "image_1 at 4 MP", | |
| "properties": { | |
| "Node name for S&R": "ImageScaleToTotalPixels" | |
| }, | |
| "widgets_values": [ | |
| "lanczos", | |
| 4, | |
| 32 | |
| ], | |
| "widgets_values_named": { | |
| "upscale_method": "lanczos", | |
| "megapixels": 4, | |
| "resolution_steps": 32 | |
| } | |
| } | |
| ], | |
| "links": [ | |
| [ | |
| 7, | |
| 10, | |
| 0, | |
| 11, | |
| 0, | |
| "NOISE" | |
| ], | |
| [ | |
| 8, | |
| 8, | |
| 0, | |
| 11, | |
| 1, | |
| "GUIDER" | |
| ], | |
| [ | |
| 9, | |
| 9, | |
| 0, | |
| 11, | |
| 2, | |
| "SAMPLER" | |
| ], | |
| [ | |
| 10, | |
| 7, | |
| 0, | |
| 11, | |
| 3, | |
| "SIGMAS" | |
| ], | |
| [ | |
| 12, | |
| 11, | |
| 0, | |
| 12, | |
| 0, | |
| "LATENT" | |
| ], | |
| [ | |
| 14, | |
| 12, | |
| 0, | |
| 13, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 21, | |
| 4, | |
| 0, | |
| 19, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 22, | |
| 19, | |
| 0, | |
| 20, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 23, | |
| 5, | |
| 0, | |
| 21, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 24, | |
| 20, | |
| 0, | |
| 21, | |
| 1, | |
| "INT" | |
| ], | |
| [ | |
| 25, | |
| 20, | |
| 1, | |
| 21, | |
| 2, | |
| "INT" | |
| ], | |
| [ | |
| 31, | |
| 17, | |
| 0, | |
| 24, | |
| 0, | |
| "STRING" | |
| ], | |
| [ | |
| 32, | |
| 23, | |
| 0, | |
| 24, | |
| 1, | |
| "STRING" | |
| ], | |
| [ | |
| 34, | |
| 24, | |
| 0, | |
| 16, | |
| 0, | |
| "STRING" | |
| ], | |
| [ | |
| 35, | |
| 26, | |
| 0, | |
| 27, | |
| 0, | |
| "MODEL" | |
| ], | |
| [ | |
| 36, | |
| 27, | |
| 0, | |
| 8, | |
| 0, | |
| "MODEL" | |
| ], | |
| [ | |
| 38, | |
| 29, | |
| 0, | |
| 12, | |
| 1, | |
| "VAE" | |
| ], | |
| [ | |
| 42, | |
| 4, | |
| 0, | |
| 31, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 45, | |
| 30, | |
| 0, | |
| 8, | |
| 1, | |
| "CONDITIONING" | |
| ], | |
| [ | |
| 46, | |
| 30, | |
| 1, | |
| 11, | |
| 4, | |
| "LATENT" | |
| ], | |
| [ | |
| 20, | |
| 17, | |
| 0, | |
| 18, | |
| 0, | |
| "STRING" | |
| ], | |
| [ | |
| 26, | |
| 19, | |
| 0, | |
| 22, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 27, | |
| 21, | |
| 0, | |
| 22, | |
| 1, | |
| "IMAGE" | |
| ], | |
| [ | |
| 28, | |
| 14, | |
| 0, | |
| 23, | |
| 0, | |
| "CLIP" | |
| ], | |
| [ | |
| 29, | |
| 22, | |
| 0, | |
| 23, | |
| 1, | |
| "IMAGE" | |
| ], | |
| [ | |
| 30, | |
| 18, | |
| 0, | |
| 23, | |
| 5, | |
| "STRING" | |
| ], | |
| [ | |
| 39, | |
| 28, | |
| 0, | |
| 30, | |
| 0, | |
| "CLIP" | |
| ], | |
| [ | |
| 40, | |
| 29, | |
| 0, | |
| 30, | |
| 1, | |
| "VAE" | |
| ], | |
| [ | |
| 43, | |
| 31, | |
| 0, | |
| 30, | |
| 2, | |
| "IMAGE" | |
| ], | |
| [ | |
| 44, | |
| 5, | |
| 0, | |
| 30, | |
| 3, | |
| "IMAGE" | |
| ], | |
| [ | |
| 41, | |
| 24, | |
| 0, | |
| 30, | |
| 5, | |
| "STRING" | |
| ] | |
| ], | |
| "groups": [], | |
| "config": {}, | |
| "extra": { | |
| "ds": { | |
| "scale": 0.6, | |
| "offset": [ | |
| 40, | |
| 40 | |
| ] | |
| } | |
| }, | |
| "version": 0.4 | |
| } |