diff --git a/nodes/shot_by_image_automatic_aspect_ratio_node.py b/nodes/shot_by_image_automatic_aspect_ratio_node.py index 8154ee8..b786f5f 100644 --- a/nodes/shot_by_image_automatic_aspect_ratio_node.py +++ b/nodes/shot_by_image_automatic_aspect_ratio_node.py @@ -25,7 +25,6 @@ class ShotByImageAutomaticAspectRatioNode: ref_image, aspect_ratio, api_key, - sku="", sync=False, enhance_ref_image=True, ref_image_influence=1.0, @@ -38,7 +37,6 @@ class ShotByImageAutomaticAspectRatioNode: api_key, PlacementType.AUTOMATIC_ASPECT_RATIO.value, aspect_ratio=aspect_ratio, - sku=sku, sync=sync, enhance_ref_image=enhance_ref_image, ref_image_influence=ref_image_influence, diff --git a/nodes/shot_by_image_automatic_node.py b/nodes/shot_by_image_automatic_node.py index edc559a..66f2181 100644 --- a/nodes/shot_by_image_automatic_node.py +++ b/nodes/shot_by_image_automatic_node.py @@ -22,7 +22,6 @@ class ShotByImageAutomaticNode: ref_image, shot_size, api_key, - sku="", sync=False, enhance_ref_image=True, ref_image_influence=1.0, @@ -35,7 +34,6 @@ class ShotByImageAutomaticNode: api_key, PlacementType.AUTOMATIC.value, shot_size=shot_size, - sku=sku, sync=sync, enhance_ref_image=enhance_ref_image, ref_image_influence=ref_image_influence, diff --git a/nodes/shot_by_image_custom_coordinates_node.py b/nodes/shot_by_image_custom_coordinates_node.py index 0283578..7743973 100644 --- a/nodes/shot_by_image_custom_coordinates_node.py +++ b/nodes/shot_by_image_custom_coordinates_node.py @@ -32,7 +32,6 @@ class ShotByImageCustomCoordinatesNode: foreground_image_size, foreground_image_location, api_key, - sku="", sync=False, enhance_ref_image=True, ref_image_influence=1.0, @@ -47,7 +46,6 @@ class ShotByImageCustomCoordinatesNode: shot_size=shot_size, foreground_image_size=foreground_image_size, foreground_image_location=foreground_image_location, - sku=sku, sync=sync, enhance_ref_image=enhance_ref_image, ref_image_influence=ref_image_influence, diff --git a/nodes/shot_by_image_manual_padding_node.py b/nodes/shot_by_image_manual_padding_node.py index 8b14c34..9cfee3e 100644 --- a/nodes/shot_by_image_manual_padding_node.py +++ b/nodes/shot_by_image_manual_padding_node.py @@ -23,7 +23,6 @@ class ShotByImageManualPaddingNode: ref_image, padding_values, api_key, - sku="", sync=False, enhance_ref_image=True, ref_image_influence=1.0, @@ -36,7 +35,6 @@ class ShotByImageManualPaddingNode: api_key, PlacementType.MANUAL_PADDING.value, padding_values=padding_values, - sku=sku, sync=sync, enhance_ref_image=enhance_ref_image, ref_image_influence=ref_image_influence, diff --git a/nodes/shot_by_image_manual_placement_node.py b/nodes/shot_by_image_manual_placement_node.py index 688c5b6..6c7709f 100644 --- a/nodes/shot_by_image_manual_placement_node.py +++ b/nodes/shot_by_image_manual_placement_node.py @@ -37,7 +37,6 @@ class ShotByImageManualPlacementNode: shot_size, manual_placement_selection, api_key, - sku="", sync=False, enhance_ref_image=True, ref_image_influence=1.0, @@ -51,7 +50,6 @@ class ShotByImageManualPlacementNode: PlacementType.MANUAL_PLACEMENT.value, shot_size=shot_size, manual_placement_selection=manual_placement_selection, - sku=sku, sync=sync, enhance_ref_image=enhance_ref_image, ref_image_influence=ref_image_influence, diff --git a/nodes/shot_by_image_node.py b/nodes/shot_by_image_node.py index b9b8c70..1a0007a 100644 --- a/nodes/shot_by_image_node.py +++ b/nodes/shot_by_image_node.py @@ -20,7 +20,6 @@ class ShotByImageOriginalNode: image, ref_image, api_key, - sku="", sync=True, enhance_ref_image=True, ref_image_influence=1.0, @@ -33,7 +32,6 @@ class ShotByImageOriginalNode: api_key, PlacementType.ORIGINAL.value, original_quality=True, - sku=sku, sync=sync, enhance_ref_image=enhance_ref_image, ref_image_influence=ref_image_influence, diff --git a/nodes/shot_by_text_automatic_aspect_ratio_node.py b/nodes/shot_by_text_automatic_aspect_ratio_node.py index 1ca99f2..4679e71 100644 --- a/nodes/shot_by_text_automatic_aspect_ratio_node.py +++ b/nodes/shot_by_text_automatic_aspect_ratio_node.py @@ -26,7 +26,6 @@ class ShotByTextAutomaticAspectRatioNode: mode, aspect_ratio, api_key, - sku="", sync=False, optimize_description=True, exclude_elements="", @@ -40,7 +39,6 @@ class ShotByTextAutomaticAspectRatioNode: mode, PlacementType.AUTOMATIC_ASPECT_RATIO.value, aspect_ratio=aspect_ratio, - sku=sku, sync=sync, optimize_description=optimize_description, exclude_elements=exclude_elements, diff --git a/nodes/shot_by_text_automatic_node.py b/nodes/shot_by_text_automatic_node.py index c1ceebc..13ce3e7 100644 --- a/nodes/shot_by_text_automatic_node.py +++ b/nodes/shot_by_text_automatic_node.py @@ -23,7 +23,6 @@ class ShotByTextAutomaticNode: mode, shot_size, api_key, - sku="", sync=False, optimize_description=True, exclude_elements="", @@ -37,7 +36,6 @@ class ShotByTextAutomaticNode: mode, PlacementType.AUTOMATIC.value, shot_size=shot_size, - sku=sku, sync=sync, optimize_description=optimize_description, exclude_elements=exclude_elements, diff --git a/nodes/shot_by_text_custom_coordinates_node.py b/nodes/shot_by_text_custom_coordinates_node.py index 7e8ef29..f0d0725 100644 --- a/nodes/shot_by_text_custom_coordinates_node.py +++ b/nodes/shot_by_text_custom_coordinates_node.py @@ -33,7 +33,6 @@ class ShotByTextCustomCoordinatesNode: foreground_image_size, foreground_image_location, api_key, - sku="", sync=False, optimize_description=True, exclude_elements="", @@ -49,7 +48,6 @@ class ShotByTextCustomCoordinatesNode: shot_size=shot_size, foreground_image_size=foreground_image_size, foreground_image_location=foreground_image_location, - sku=sku, sync=sync, optimize_description=optimize_description, exclude_elements=exclude_elements, diff --git a/nodes/shot_by_text_manual_padding_node.py b/nodes/shot_by_text_manual_padding_node.py index 160ecef..9bc9d70 100644 --- a/nodes/shot_by_text_manual_padding_node.py +++ b/nodes/shot_by_text_manual_padding_node.py @@ -23,7 +23,6 @@ class ShotByTextManualPaddingNode: mode, padding_values, api_key, - sku="", sync=False, optimize_description=True, exclude_elements="", @@ -37,7 +36,6 @@ class ShotByTextManualPaddingNode: mode, PlacementType.MANUAL_PADDING.value, padding_values=padding_values, - sku=sku, sync=sync, optimize_description=optimize_description, exclude_elements=exclude_elements, diff --git a/nodes/shot_by_text_manual_placement_node.py b/nodes/shot_by_text_manual_placement_node.py index c70b28b..5b28048 100644 --- a/nodes/shot_by_text_manual_placement_node.py +++ b/nodes/shot_by_text_manual_placement_node.py @@ -39,7 +39,6 @@ class ShotByTextManualPlacementNode: shot_size, manual_placement_selection, api_key, - sku="", sync=False, optimize_description=True, exclude_elements="", @@ -54,7 +53,6 @@ class ShotByTextManualPlacementNode: PlacementType.MANUAL_PLACEMENT.value, shot_size=shot_size, manual_placement_selection=manual_placement_selection, - sku=sku, sync=sync, optimize_description=optimize_description, exclude_elements=exclude_elements, diff --git a/nodes/shot_by_text_node.py b/nodes/shot_by_text_node.py index 2b838da..e54bdce 100644 --- a/nodes/shot_by_text_node.py +++ b/nodes/shot_by_text_node.py @@ -20,7 +20,6 @@ class ShotByTextOriginalNode: scene_description, mode, api_key, - sku="", sync=True, optimize_description=True, exclude_elements="", @@ -34,7 +33,6 @@ class ShotByTextOriginalNode: mode, PlacementType.ORIGINAL.value, original_quality=True, - sku=sku, sync=sync, optimize_description=optimize_description, exclude_elements=exclude_elements, diff --git a/nodes/utils/shot_utils.py b/nodes/utils/shot_utils.py index b13cf69..21b4765 100644 --- a/nodes/utils/shot_utils.py +++ b/nodes/utils/shot_utils.py @@ -86,8 +86,6 @@ def create_text_payload( "optimize_description": kwargs.get("optimize_description", True), } - if kwargs.get("sku", "").strip(): - payload["sku"] = kwargs["sku"] if kwargs.get("exclude_elements", "").strip(): payload["exclude_elements"] = kwargs["exclude_elements"] @@ -121,8 +119,6 @@ def create_image_payload(image, ref_image, api_key, placement_type, **kwargs): "content_moderation": kwargs.get("content_moderation", False), } - if kwargs.get("sku", "").strip(): - payload["sku"] = kwargs["sku"] payload = update_payload_for_placement(placement_type, payload, **kwargs) return payload @@ -155,7 +151,6 @@ def get_common_input_types(): return { "required": {"api_key": ("STRING", {"default": "BRIA_API_TOKEN"})}, "optional": { - "sku": ("STRING", {"default": ""}), "force_rmbg": ("BOOLEAN", {"default": False}), "content_moderation": ("BOOLEAN", {"default": False}), }, diff --git a/workflows/product shot generation_workflow.json b/workflows/product_original_ shot_generation_workflow.json similarity index 60% rename from workflows/product shot generation_workflow.json rename to workflows/product_original_ shot_generation_workflow.json index 41eba15..7478c80 100644 --- a/workflows/product shot generation_workflow.json +++ b/workflows/product_original_ shot_generation_workflow.json @@ -1,18 +1,47 @@ { - "last_node_id": 42, - "last_link_id": 65, + "id": "1cdd7d4c-58b5-4047-947b-1977ad36d364", + "revision": 0, + "last_node_id": 14, + "last_link_id": 11, "nodes": [ { - "id": 42, + "id": 6, + "type": "PreviewImage", + "pos": [ + 1351.83154296875, + 26.696861267089844 + ], + "size": [ + 399.811279296875, + 246 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 5 + } + ], + "outputs": [], + "properties": { + "Node name for S&R": "PreviewImage" + }, + "widgets_values": [] + }, + { + "id": 1, "type": "LoadImage", - "pos": { - "0": 591, - "1": 593 - }, - "size": { - "0": 315, - "1": 314 - }, + "pos": [ + 383.92852783203125, + 38.40964889526367 + ], + "size": [ + 397.5969543457031, + 314 + ], "flags": {}, "order": 0, "mode": 0, @@ -22,10 +51,9 @@ "name": "IMAGE", "type": "IMAGE", "links": [ - 64, - 65 - ], - "slot_index": 0 + 1, + 3 + ] }, { "name": "MASK", @@ -37,21 +65,21 @@ "Node name for S&R": "LoadImage" }, "widgets_values": [ - "A_bottle_of_perfume.png", + "CAR.png", "image" ] }, { - "id": 39, + "id": 2, "type": "LoadImage", - "pos": { - "0": 600, - "1": 988 - }, - "size": { - "0": 315, - "1": 314 - }, + "pos": [ + 369.0213623046875, + 415.34893798828125 + ], + "size": [ + 450.83685302734375, + 314.0000305175781 + ], "flags": {}, "order": 1, "mode": 0, @@ -61,9 +89,8 @@ "name": "IMAGE", "type": "IMAGE", "links": [ - 59 - ], - "slot_index": 0 + 4 + ] }, { "name": "MASK", @@ -75,21 +102,21 @@ "Node name for S&R": "LoadImage" }, "widgets_values": [ - "A_red_studio_with_a_shelf__close_up.png", + "seed_713360865.png", "image" ] }, { - "id": 15, + "id": 5, "type": "Note", - "pos": { - "0": 995.4524536132812, - "1": 601.5353393554688 - }, - "size": { - "0": 306.28387451171875, - "1": 58 - }, + "pos": [ + 951.4669189453125, + 5.085720062255859 + ], + "size": [ + 210, + 88 + ], "flags": {}, "order": 2, "mode": 0, @@ -103,40 +130,14 @@ "bgcolor": "#653" }, { - "id": 40, + "id": 7, "type": "PreviewImage", - "pos": { - "0": 1408, - "1": 623 - }, - "size": [ - 210, - 246 + "pos": [ + 1368.5450439453125, + 340.4889221191406 ], - "flags": {}, - "order": 5, - "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 62 - } - ], - "outputs": [], - "properties": { - "Node name for S&R": "PreviewImage" - } - }, - { - "id": 41, - "type": "PreviewImage", - "pos": { - "0": 1408, - "1": 951 - }, "size": [ - 210, + 387.0335693359375, 246 ], "flags": {}, @@ -146,25 +147,26 @@ { "name": "images", "type": "IMAGE", - "link": 63 + "link": 6 } ], "outputs": [], "properties": { "Node name for S&R": "PreviewImage" - } + }, + "widgets_values": [] }, { - "id": 36, - "type": "ShotByTextNode", - "pos": { - "0": 996, - "1": 736 - }, - "size": { - "0": 315, - "1": 106 - }, + "id": 3, + "type": "ShotByTextOriginal", + "pos": [ + 941.8839111328125, + 149.14889526367188 + ], + "size": [ + 273.388671875, + 202 + ], "flags": {}, "order": 3, "mode": 0, @@ -172,7 +174,7 @@ { "name": "image", "type": "IMAGE", - "link": 64 + "link": 1 } ], "outputs": [ @@ -180,31 +182,34 @@ "name": "output_image", "type": "IMAGE", "links": [ - 62 - ], - "slot_index": 0 + 5 + ] } ], "properties": { - "Node name for S&R": "ShotByTextNode" + "Node name for S&R": "ShotByTextOriginal" }, "widgets_values": [ - "a beautiful sunset", - 1, + "BRIA_API_TOKEN", + "sea", + "fast", + false, + false, + true, "" ] }, { - "id": 37, - "type": "ShotByImageNode", - "pos": { - "0": 999, - "1": 932 - }, - "size": { - "0": 315, - "1": 102 - }, + "id": 4, + "type": "ShotByImageOriginal", + "pos": [ + 945.0781860351562, + 441.9688415527344 + ], + "size": [ + 272.0703125, + 174 + ], "flags": {}, "order": 4, "mode": 0, @@ -212,12 +217,12 @@ { "name": "image", "type": "IMAGE", - "link": 65 + "link": 3 }, { "name": "ref_image", "type": "IMAGE", - "link": 59 + "link": 4 } ], "outputs": [ @@ -225,58 +230,60 @@ "name": "output_image", "type": "IMAGE", "links": [ - 63 - ], - "slot_index": 0 + 6 + ] } ], "properties": { - "Node name for S&R": "ShotByImageNode" + "Node name for S&R": "ShotByImageOriginal" }, "widgets_values": [ - 0, - "" + "BRIA_API_TOKEN", + false, + false, + true, + 1 ] } ], "links": [ [ - 59, - 39, + 1, + 1, 0, - 37, + 3, + 0, + "IMAGE" + ], + [ + 3, + 1, + 0, + 4, + 0, + "IMAGE" + ], + [ + 4, + 2, + 0, + 4, 1, "IMAGE" ], [ - 62, - 36, + 5, + 3, 0, - 40, + 6, 0, "IMAGE" ], [ - 63, - 37, + 6, + 4, 0, - 41, - 0, - "IMAGE" - ], - [ - 64, - 42, - 0, - 36, - 0, - "IMAGE" - ], - [ - 65, - 42, - 0, - 37, + 7, 0, "IMAGE" ] @@ -285,12 +292,13 @@ "config": {}, "extra": { "ds": { - "scale": 0.9849732675807669, + "scale": 0.7513148009015777, "offset": [ - -339.6686422794803, - -496.4354678014682 + 11.112206386364164, + 66.47311795454547 ] - } + }, + "frontendVersion": "1.25.11" }, "version": 0.4 -} +} \ No newline at end of file