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
Add a short README
Browse files
README.md
CHANGED
|
@@ -21,3 +21,47 @@ tags:
|
|
| 21 |
- minimax-h3
|
| 22 |
- pruna-ai
|
| 23 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
- minimax-h3
|
| 22 |
- pruna-ai
|
| 23 |
---
|
| 24 |
+
|
| 25 |
+
# p-h3-image for ComfyUI
|
| 26 |
+
|
| 27 |
+
p-h3-image, based on MiniMax-H3, makes images from text and edits images, with up to 9 input images. This repository
|
| 28 |
+
has its ComfyUI files.
|
| 29 |
+
|
| 30 |
+
## Use it
|
| 31 |
+
|
| 32 |
+
1. Install the nodes (ComfyUI 0.43 or newer):
|
| 33 |
+
|
| 34 |
+
```bash
|
| 35 |
+
git clone https://github.com/PrunaAI/comfyui-p-h3-image ComfyUI/custom_nodes/comfyui-p-h3-image
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
2. Download the files into `ComfyUI/models`:
|
| 39 |
+
|
| 40 |
+
```bash
|
| 41 |
+
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
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
Less VRAM: take the `w4a8` diffusion model and text encoder and the `int8_convrot` VAE instead.
|
| 45 |
+
|
| 46 |
+
3. Open a workflow from `workflows/` (also under Templates in ComfyUI), type a short request and run.
|
| 47 |
+
|
| 48 |
+
Keep the prompt upsampler in the graph: it turns a short request, in any language, into the full prompt p-h3-image
|
| 49 |
+
needs. The workflows default to 8 megapixels and 8 steps.
|
| 50 |
+
|
| 51 |
+
Already have MiniMax-H3 (FL2VA) in ComfyUI? Add `loras/p-h3-image_lora_bf16.safetensors` and use the `lora` workflows.
|
| 52 |
+
|
| 53 |
+
## Files
|
| 54 |
+
|
| 55 |
+
```
|
| 56 |
+
ComfyUI/models/
|
| 57 |
+
βββ diffusion_models/ p-h3-image_{bf16,int8_convrot,w4a8}.safetensors
|
| 58 |
+
βββ text_encoders/ p-h3-image_text_encoder_{bf16,int8_convrot,w4a8}.safetensors
|
| 59 |
+
β p-h3-image_prompt_upsampler_{bf16,int8_convrot,w4a8}.safetensors
|
| 60 |
+
βββ vae/ p-h3-image_vae_{bf16,int8_convrot}.safetensors
|
| 61 |
+
βββ loras/ p-h3-image_lora_bf16.safetensors
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
## License
|
| 65 |
+
|
| 66 |
+
The p-h3-image weights are under the MiniMax H3 Community License ([LICENSE](LICENSE)), the prompt upsampler under
|
| 67 |
+
Apache 2.0 ([LICENSE-APACHE](LICENSE-APACHE)). See [NOTICE](NOTICE).
|