Nodes/ComfyUi-MpiNodes/Mpi P-H3 Upsampler Images
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.

By MadPonyInteractive·Created about a year ago·Updated a day ago· 3
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)

NameTypeDefaultDescription
requestSTRINGThe 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_ratioSTRING1:1Only used with no pictures (text-to-image): Pruna's upsampler is told the aspect ratio, e.g. 16:9.
image_1optIMAGEThe 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_2optIMAGEReference picture. Cited in the request as <Picture 2>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it.
image_3optIMAGEReference picture. Cited in the request as <Picture 3>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it.
image_4optIMAGEReference picture. Cited in the request as <Picture 4>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it.
image_5optIMAGEReference picture. Cited in the request as <Picture 5>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it.
image_6optIMAGEReference picture. Cited in the request as <Picture 6>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it.
image_7optIMAGEReference picture. Cited in the request as <Picture 7>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it.
image_8optIMAGEReference picture. Cited in the request as <Picture 8>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it.
image_9optIMAGEReference picture. Cited in the request as <Picture 9>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it.
image_10optIMAGEReference picture. Cited in the request as <Picture 10>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it.

Outputs (3)

NameTypeDescription
imagesIMAGE—
promptSTRING—
countINT—