Skip to content

Commit d83534c

Browse files
authored
Merge pull request #176 from Runware/feature-ideogram-4-mini
Added support for Ideogram V4 Remix
2 parents 399c702 + 390a630 commit d83534c

4 files changed

Lines changed: 10 additions & 2 deletions

File tree

clientlibs/types.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const DEFAULT_BGCOLOR = "#5345bf";
33
const DEFAULT_DIMENSIONS_LIST = {
44
"Square (512x512)": "512x512",
55
"Square HD (1024x1024)": "1024x1024",
6+
"Square 2K (2048x2048)": "2048x2048",
67
"Portrait 3:4 (768x1024)": "768x1024",
78
"Portrait 9:16 (576x1024)": "576x1024",
89
"Landscape 4:3 (1024x768)": "1024x768",

modules/imageInference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def INPUT_TYPES(cls):
3131
"tooltip": "Prompt weighting allows you to adjust how strongly different parts of your prompt influence the generated image.\n\nChoose between \"compel\" notation with advanced weighting operations or \"sdEmbeds\" for simple emphasis adjustments.\n\nCompel Example: \"small+ dog, pixar style\"\n\nsdEmbeds Example: \"(small:2.5) dog, pixar style\"",
3232
}),
3333
"dimensions": ([
34-
"None", "Square (512x512)", "Square HD (1024x1024)", "Portrait 3:4 (768x1024)",
34+
"None", "Square (512x512)", "Square HD (1024x1024)", "Square 2K (2048x2048)", "Portrait 3:4 (768x1024)",
3535
"Portrait 9:16 (576x1024)", "Landscape 4:3 (1024x768)",
3636
"Landscape 16:9 (1024x576)",
3737
"Custom"

modules/imageInferenceInputs.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ def INPUT_TYPES(cls):
1616
"mask": ("IMAGE", {
1717
"tooltip": "Optional mask image for the inference process."
1818
}),
19+
"seedImage": ("IMAGE", {
20+
"tooltip": "Optional seed image for the inference process"
21+
}),
1922
}
2023

2124
for i in range(1, cls.MAX_REFERENCE_IMAGES + 1):
@@ -59,7 +62,7 @@ def INPUT_TYPES(cls):
5962
}
6063

6164
DESCRIPTION = (
62-
"Configure custom inputs for Runware Image Inference, including image/mask, reference images "
65+
"Configure custom inputs for Runware Image Inference, including image/mask/seedImage, reference images "
6366
"(with optional tag, role, type e.g. 'sketch' for illustrative style models, and strength 0-1 for sketch), "
6467
"super resolution references, and font references (inputs.fonts)."
6568
)
@@ -72,13 +75,16 @@ def createInputs(self, **kwargs):
7275
"""Create image inference inputs from provided parameters"""
7376
image = kwargs.get("image", None)
7477
mask = kwargs.get("mask", None)
78+
seedImage = kwargs.get("seedImage", None)
7579

7680
inputs = {}
7781

7882
if image is not None:
7983
inputs["image"] = rwUtils.convertTensor2IMG(image)
8084
if mask is not None:
8185
inputs["mask"] = rwUtils.convertTensor2IMG(mask)
86+
if seedImage is not None:
87+
inputs["seedImage"] = rwUtils.convertTensor2IMG(seedImage)
8288

8389
references = self._collectReferences(kwargs)
8490
if len(references) > 0:

0 commit comments

Comments
 (0)