Fix Bria model CFGScale validation and add image parameter to inference inputs
- Cast CFGScale to int for Bria models to fix API validation error (Bria requires integer, not float) - Add 'image' parameter to Runware Image Inference Inputs node - Fix CFGScale handling to properly validate and format for Bria models - Add workflow file for Bria Fibo image inference
This commit is contained in:
@@ -6,6 +6,9 @@ class imageInferenceInputs:
|
||||
return {
|
||||
"required": {},
|
||||
"optional": {
|
||||
"image": ("IMAGE", {
|
||||
"tooltip": "Specifies an image input for the inference process."
|
||||
}),
|
||||
"Reference Image 1": ("IMAGE", {
|
||||
"tooltip": "Specifies Reference Image 1 for the inputs. These reference images help guide the image generation process."
|
||||
}),
|
||||
@@ -28,6 +31,7 @@ class imageInferenceInputs:
|
||||
CATEGORY = "Runware"
|
||||
|
||||
def createInputs(self, **kwargs):
|
||||
image = kwargs.get("image", None)
|
||||
refImage1 = kwargs.get("Reference Image 1", None)
|
||||
refImage2 = kwargs.get("Reference Image 2", None)
|
||||
refImage3 = kwargs.get("Reference Image 3", None)
|
||||
@@ -36,6 +40,10 @@ class imageInferenceInputs:
|
||||
# Build the inputs structure
|
||||
inputs = {}
|
||||
|
||||
# Handle image if provided
|
||||
if image is not None:
|
||||
inputs["image"] = rwUtils.convertTensor2IMG(image)
|
||||
|
||||
# Handle references if any are provided
|
||||
references = []
|
||||
if refImage1 is not None:
|
||||
|
||||
Reference in New Issue
Block a user