Merge pull request #176 from Runware/feature-ideogram-4-mini
Added support for Ideogram V4 Remix
This commit is contained in:
@@ -3,6 +3,7 @@ const DEFAULT_BGCOLOR = "#5345bf";
|
||||
const DEFAULT_DIMENSIONS_LIST = {
|
||||
"Square (512x512)": "512x512",
|
||||
"Square HD (1024x1024)": "1024x1024",
|
||||
"Square 2K (2048x2048)": "2048x2048",
|
||||
"Portrait 3:4 (768x1024)": "768x1024",
|
||||
"Portrait 9:16 (576x1024)": "576x1024",
|
||||
"Landscape 4:3 (1024x768)": "1024x768",
|
||||
|
||||
@@ -31,7 +31,7 @@ class txt2img:
|
||||
"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\"",
|
||||
}),
|
||||
"dimensions": ([
|
||||
"None", "Square (512x512)", "Square HD (1024x1024)", "Portrait 3:4 (768x1024)",
|
||||
"None", "Square (512x512)", "Square HD (1024x1024)", "Square 2K (2048x2048)", "Portrait 3:4 (768x1024)",
|
||||
"Portrait 9:16 (576x1024)", "Landscape 4:3 (1024x768)",
|
||||
"Landscape 16:9 (1024x576)",
|
||||
"Custom"
|
||||
|
||||
@@ -16,6 +16,9 @@ class imageInferenceInputs:
|
||||
"mask": ("IMAGE", {
|
||||
"tooltip": "Optional mask image for the inference process."
|
||||
}),
|
||||
"seedImage": ("IMAGE", {
|
||||
"tooltip": "Optional seed image for the inference process"
|
||||
}),
|
||||
}
|
||||
|
||||
for i in range(1, cls.MAX_REFERENCE_IMAGES + 1):
|
||||
@@ -59,7 +62,7 @@ class imageInferenceInputs:
|
||||
}
|
||||
|
||||
DESCRIPTION = (
|
||||
"Configure custom inputs for Runware Image Inference, including image/mask, reference images "
|
||||
"Configure custom inputs for Runware Image Inference, including image/mask/seedImage, reference images "
|
||||
"(with optional tag, role, type e.g. 'sketch' for illustrative style models, and strength 0-1 for sketch), "
|
||||
"super resolution references, and font references (inputs.fonts)."
|
||||
)
|
||||
@@ -72,6 +75,7 @@ class imageInferenceInputs:
|
||||
"""Create image inference inputs from provided parameters"""
|
||||
image = kwargs.get("image", None)
|
||||
mask = kwargs.get("mask", None)
|
||||
seedImage = kwargs.get("seedImage", None)
|
||||
|
||||
inputs = {}
|
||||
|
||||
@@ -79,6 +83,8 @@ class imageInferenceInputs:
|
||||
inputs["image"] = rwUtils.convertTensor2IMG(image)
|
||||
if mask is not None:
|
||||
inputs["mask"] = rwUtils.convertTensor2IMG(mask)
|
||||
if seedImage is not None:
|
||||
inputs["seedImage"] = rwUtils.convertTensor2IMG(seedImage)
|
||||
|
||||
references = self._collectReferences(kwargs)
|
||||
if len(references) > 0:
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user