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
update-for-launch (#1)
Browse files- feat: update the name (67185f616ed0f777a75288ccef9487646a3f9db8)
- fix: add space and blog info (559eb0b327344343f8b2fccfce8246afdc278cf7)
- README.md +12 -12
- assets/p-h3-image-comfy.jpg +2 -2
README.md
CHANGED
|
@@ -23,7 +23,7 @@ tags:
|
|
| 23 |
---
|
| 24 |
<!-- header start -->
|
| 25 |
<p align="center">
|
| 26 |
-
<img src="assets/
|
| 27 |
</p>
|
| 28 |
<!-- header end -->
|
| 29 |
|
|
@@ -52,7 +52,7 @@ tags:
|
|
| 52 |
|
| 53 |
<h1 style="color: #9334E9;">P-H3-Image</h1>
|
| 54 |
|
| 55 |
-
<h2>ComfyUI files for
|
| 56 |
|
| 57 |
<h3>
|
| 58 |
<span style="color: #9334E9;">bf16, int8 and w4a8</span>
|
|
@@ -73,7 +73,7 @@ formats. The smallest set is a 20 GB download that peaks at 21 GB of VRAM at 8 M
|
|
| 73 |
MiniMax-H3.
|
| 74 |
|
| 75 |
The nodes are in [PrunaAI/comfyui-p-h3-image](https://github.com/PrunaAI/comfyui-p-h3-image). The diffusers pipeline is
|
| 76 |
-
in [PrunaAI/
|
| 77 |
|
| 78 |
## Quickstart
|
| 79 |
|
|
@@ -87,13 +87,13 @@ in [PrunaAI/p-h3-image](https://huggingface.co/PrunaAI/p-h3-image).
|
|
| 87 |
peaks at about 56 GB of VRAM:
|
| 88 |
|
| 89 |
```bash
|
| 90 |
-
hf download PrunaAI/
|
| 91 |
```
|
| 92 |
|
| 93 |
The smallest set, a 20 GB download plus the prompt upsampler, peaks at about 21 GB of VRAM:
|
| 94 |
|
| 95 |
```bash
|
| 96 |
-
hf download PrunaAI/
|
| 97 |
```
|
| 98 |
|
| 99 |
3. **Open a workflow** from `workflows/` (also under Templates in ComfyUI), type a short request and run. The
|
|
@@ -179,7 +179,7 @@ these sizes. Edits work best at 4 or 8 MP. The Edit node scales `image_1`, the i
|
|
| 179 |
|
| 180 |
## Prompt upsampler
|
| 181 |
|
| 182 |
-
|
| 183 |
upsampler, based on Qwen3.5-9B, turns a one-line request into that prompt, and all example workflows use it. It thinks
|
| 184 |
about the request first and then writes the prompt.
|
| 185 |
|
|
@@ -190,10 +190,10 @@ Text, with greedy decoding, so a request always gives the same prompt.
|
|
| 190 |
on two lines, and Generate Text runs with `thinking` on. Keep the aspect ratio the same as in Resolution Selector.
|
| 191 |
- **Edits.** Format Text writes the upsampler's input with a `<Picture N>` block for every image, and the images reach
|
| 192 |
Generate Text through Batch Images: `image_1` at 1 MP, the references padded to its size. The result is the edit
|
| 193 |
-
prompt for the
|
| 194 |
- **Use prompt upsampler**, an If/Else switch, set to false sends the request to the model as it is.
|
| 195 |
|
| 196 |
-
The upsampler runs before
|
| 197 |
cached, so it only runs again when the request or the images change.
|
| 198 |
|
| 199 |
| Upsampler file | Size | Peak VRAM | Time per prompt, L40S |
|
|
@@ -214,16 +214,16 @@ like, such as "the hat from the second photo".
|
|
| 214 |
<img src="assets/multi_image.jpg" width="100%">
|
| 215 |
</p>
|
| 216 |
|
| 217 |
-
*Top, eight public-domain portraits and the dinner party
|
| 218 |
Bottom, eight scientists at a poker table, seven presidents wading through the swamp with an astronaut, and characters
|
| 219 |
from our own renders in the same swamp.*
|
| 220 |
|
| 221 |
## Already have MiniMax-H3?
|
| 222 |
|
| 223 |
-
If you run MiniMax-H3 in ComfyUI, the 2 GB LoRA `loras/p-h3-image_lora_bf16.safetensors` runs
|
| 224 |
transformer without a second large download. Load `minimax_h3_fl2va_bf16.safetensors` from
|
| 225 |
[Comfy-Org/MiniMax-H3](https://huggingface.co/Comfy-Org/MiniMax-H3) (the pruned and quantized FL2VA files work too),
|
| 226 |
-
apply the LoRA with the
|
| 227 |
|
| 228 |
## Limitations
|
| 229 |
|
|
@@ -236,7 +236,7 @@ apply the LoRA with the p-h3-image LoRA Loader at strength 1.0, and start from t
|
|
| 236 |
|
| 237 |
## License
|
| 238 |
|
| 239 |
-
The
|
| 240 |
read it before use. Among other terms, it excludes the European Union, the United Kingdom, the Republic of Korea and
|
| 241 |
the United States unless you have a separate license from MiniMax, and products built on it must show "Powered by
|
| 242 |
MiniMax H3". The text encoder's Qwen3-VL-4B parts and the prompt upsampler, based on Qwen3.5-9B, are under the
|
|
|
|
| 23 |
---
|
| 24 |
<!-- header start -->
|
| 25 |
<p align="center">
|
| 26 |
+
<img src="assets/P-H3-Image-comfy.jpg" width="800">
|
| 27 |
</p>
|
| 28 |
<!-- header end -->
|
| 29 |
|
|
|
|
| 52 |
|
| 53 |
<h1 style="color: #9334E9;">P-H3-Image</h1>
|
| 54 |
|
| 55 |
+
<h2>ComfyUI files for P-H3-Image, based on MiniMax-H3</h2>
|
| 56 |
|
| 57 |
<h3>
|
| 58 |
<span style="color: #9334E9;">bf16, int8 and w4a8</span>
|
|
|
|
| 73 |
MiniMax-H3.
|
| 74 |
|
| 75 |
The nodes are in [PrunaAI/comfyui-p-h3-image](https://github.com/PrunaAI/comfyui-p-h3-image). The diffusers pipeline is
|
| 76 |
+
in [PrunaAI/P-H3-Image](https://huggingface.co/PrunaAI/P-H3-Image). Try it in the [Hugging Face Spaces](https://huggingface.co/spaces/PrunaAI/P-H3-Image). Read the full blog post [here](https://pruna.ai/blog/oss-p-h3-image-launch).
|
| 77 |
|
| 78 |
## Quickstart
|
| 79 |
|
|
|
|
| 87 |
peaks at about 56 GB of VRAM:
|
| 88 |
|
| 89 |
```bash
|
| 90 |
+
hf download PrunaAI/P-H3-Image-comfy --include "diffusion_models/p-h3-image_bf16.safetensors" "text_encoders/p-h3-image_text_encoder_bf16.safetensors" "text_encoders/p-h3-image_prompt_upsampler_bf16.safetensors" "vae/p-h3-image_vae_bf16.safetensors" --local-dir ComfyUI/models
|
| 91 |
```
|
| 92 |
|
| 93 |
The smallest set, a 20 GB download plus the prompt upsampler, peaks at about 21 GB of VRAM:
|
| 94 |
|
| 95 |
```bash
|
| 96 |
+
hf download PrunaAI/P-H3-Image-Comfy --include "diffusion_models/p-h3-image_w4a8.safetensors" "text_encoders/p-h3-image_text_encoder_w4a8.safetensors" "text_encoders/p-h3-image_prompt_upsampler_bf16.safetensors" "vae/p-h3-image_vae_int8_convrot.safetensors" --local-dir ComfyUI/models
|
| 97 |
```
|
| 98 |
|
| 99 |
3. **Open a workflow** from `workflows/` (also under Templates in ComfyUI), type a short request and run. The
|
|
|
|
| 179 |
|
| 180 |
## Prompt upsampler
|
| 181 |
|
| 182 |
+
P-H3-Image is sensitive to prompting and renders full, specific prompts much better than short requests. The prompt
|
| 183 |
upsampler, based on Qwen3.5-9B, turns a one-line request into that prompt, and all example workflows use it. It thinks
|
| 184 |
about the request first and then writes the prompt.
|
| 185 |
|
|
|
|
| 190 |
on two lines, and Generate Text runs with `thinking` on. Keep the aspect ratio the same as in Resolution Selector.
|
| 191 |
- **Edits.** Format Text writes the upsampler's input with a `<Picture N>` block for every image, and the images reach
|
| 192 |
Generate Text through Batch Images: `image_1` at 1 MP, the references padded to its size. The result is the edit
|
| 193 |
+
prompt for the P-H3-Image Edit node.
|
| 194 |
- **Use prompt upsampler**, an If/Else switch, set to false sends the request to the model as it is.
|
| 195 |
|
| 196 |
+
The upsampler runs before P-H3-Image, and ComfyUI moves it out of VRAM when P-H3-Image needs the memory. Its output is
|
| 197 |
cached, so it only runs again when the request or the images change.
|
| 198 |
|
| 199 |
| Upsampler file | Size | Peak VRAM | Time per prompt, L40S |
|
|
|
|
| 214 |
<img src="assets/multi_image.jpg" width="100%">
|
| 215 |
</p>
|
| 216 |
|
| 217 |
+
*Top, eight public-domain portraits and the dinner party P-H3-Image composed from them, from a one-sentence request.
|
| 218 |
Bottom, eight scientists at a poker table, seven presidents wading through the swamp with an astronaut, and characters
|
| 219 |
from our own renders in the same swamp.*
|
| 220 |
|
| 221 |
## Already have MiniMax-H3?
|
| 222 |
|
| 223 |
+
If you run MiniMax-H3 in ComfyUI, the 2 GB LoRA `loras/p-h3-image_lora_bf16.safetensors` runs P-H3-Image on its FL2VA
|
| 224 |
transformer without a second large download. Load `minimax_h3_fl2va_bf16.safetensors` from
|
| 225 |
[Comfy-Org/MiniMax-H3](https://huggingface.co/Comfy-Org/MiniMax-H3) (the pruned and quantized FL2VA files work too),
|
| 226 |
+
apply the LoRA with the P-H3-Image LoRA Loader at strength 1.0, and start from the `lora` workflows.
|
| 227 |
|
| 228 |
## Limitations
|
| 229 |
|
|
|
|
| 236 |
|
| 237 |
## License
|
| 238 |
|
| 239 |
+
The P-H3-Image weights are based on MiniMax-H3 and released under the [MiniMax H3 Community License](LICENSE). Please
|
| 240 |
read it before use. Among other terms, it excludes the European Union, the United Kingdom, the Republic of Korea and
|
| 241 |
the United States unless you have a separate license from MiniMax, and products built on it must show "Powered by
|
| 242 |
MiniMax H3". The text encoder's Qwen3-VL-4B parts and the prompt upsampler, based on Qwen3.5-9B, are under the
|
assets/p-h3-image-comfy.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|