ComfyUI Node
Mpi P-H3 Upsampler Images
Feeds P-H3 Image's prompt upsampler (TextGenerate on the p-h3-image_prompt_upsampler weight). Takes up to 10 picture slots, drops the empty ones (nothing connected, or an Mpi loader's 1x1 image), scales the canvas to 1 MP and pads the rest to its size in white, as Pruna's graph does, and emits the batch together with the matching chat prompt - one <Picture N> line per picture kept - so the two can never disagree. Wire images to TextGenerate's image input, prompt to its prompt, thinking ON. With no pictures, images is empty and prompt is Pruna's text-to-image request.
Mpi P-H3 Upsampler Images
- image_1
- image_2
- image_3
- image_4
- image_5
- image_6
- image_7
- image_8
- image_9
- image_10
- images
- prompt
- count
◄request—►
◄aspect_ratio1:1►
CategoryMpiNodes/Utils
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| request | STRING | The user's edit request. Cite pictures by SLOT (<Picture 3> = image_3); tags are renumbered to the survivors and a tag naming an empty slot is removed. "Edit <Picture 1>. " is put in front unless the request already starts with "Edit <Picture". | |
| aspect_ratio | STRING | 1:1 | Only used with no pictures (text-to-image): Pruna's upsampler is told the aspect ratio, e.g. 16:9. |
| image_1opt | IMAGE | The CANVAS: scaled to 1 MP; every other picture is padded to its size. Cited in the request as <Picture 1>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it. | |
| image_2opt | IMAGE | Reference picture. Cited in the request as <Picture 2>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it. | |
| image_3opt | IMAGE | Reference picture. Cited in the request as <Picture 3>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it. | |
| image_4opt | IMAGE | Reference picture. Cited in the request as <Picture 4>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it. | |
| image_5opt | IMAGE | Reference picture. Cited in the request as <Picture 5>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it. | |
| image_6opt | IMAGE | Reference picture. Cited in the request as <Picture 6>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it. | |
| image_7opt | IMAGE | Reference picture. Cited in the request as <Picture 7>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it. | |
| image_8opt | IMAGE | Reference picture. Cited in the request as <Picture 8>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it. | |
| image_9opt | IMAGE | Reference picture. Cited in the request as <Picture 9>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it. | |
| image_10opt | IMAGE | Reference picture. Cited in the request as <Picture 10>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| images | IMAGE | — |
| prompt | STRING | — |
| count | INT | — |