From c021d52d00a25b949f221982ee81379b17f5ee29 Mon Sep 17 00:00:00 2001 From: FengWen <109639975+ccssu@users.noreply.github.com> Date: Thu, 12 Dec 2024 10:37:23 +0800 Subject: [PATCH] Add ComfyUI-Detail-Daemon Node (#271) * Add ComfyUI-Detail-Daemon Node * modify the code and add example json * modify the example json * add nodes * modify example json * modify the code * modify the example json --------- Co-authored-by: Wanghanying <2310016173@qq.com> Co-authored-by: Yao Chi --- bizyair_example_menu.json | 3 +- bizyair_extras/__init__.py | 1 + bizyair_extras/nodes_comfyui_detail_daemon.py | 180 ++ .../bizyair_flux_detail_daemon_sampler.json | 1513 +++++++++++++++++ src/bizyair/commands/servers/prompt_server.py | 1 + 5 files changed, 1697 insertions(+), 1 deletion(-) create mode 100644 bizyair_extras/nodes_comfyui_detail_daemon.py create mode 100644 examples/bizyair_flux_detail_daemon_sampler.json diff --git a/bizyair_example_menu.json b/bizyair_example_menu.json index 72edbf3f..65b934d4 100644 --- a/bizyair_example_menu.json +++ b/bizyair_example_menu.json @@ -9,7 +9,8 @@ "FLUX ControlNet Canny": "bizyair-flux1-tools-canny.json", "FLUX ControlNet Depth": "bizyair-flux1-tools-depth.json", "FLUX Redux": "bizyair-flux1-tools-redux.json", - "FLUX Fill": "bizyair-flux-fill1-inpaint.json" + "FLUX Fill": "bizyair-flux-fill1-inpaint.json", + "FLUX Detail Daemon Sampler": "bizyair_flux_detail_daemon_sampler.json" }, "ControlNet Union": { "Generate an image from a line drawing": "bizyair_showcase_interior_design.json", diff --git a/bizyair_extras/__init__.py b/bizyair_extras/__init__.py index c3bd82f9..858fb7f5 100644 --- a/bizyair_extras/__init__.py +++ b/bizyair_extras/__init__.py @@ -1,4 +1,5 @@ from .nodes_advanced_refluxcontrol import * +from .nodes_comfyui_detail_daemon import * from .nodes_comfyui_instantid import * from .nodes_comfyui_pulid_flux import * from .nodes_controlnet import * diff --git a/bizyair_extras/nodes_comfyui_detail_daemon.py b/bizyair_extras/nodes_comfyui_detail_daemon.py new file mode 100644 index 00000000..252015a9 --- /dev/null +++ b/bizyair_extras/nodes_comfyui_detail_daemon.py @@ -0,0 +1,180 @@ +""" +Reference: https://github.com/Jonseed/ComfyUI-Detail-Daemon +""" + +from bizyair import BizyAirBaseNode + + +class DetailDaemonSamplerNode(BizyAirBaseNode): + DESCRIPTION = "This sampler wrapper works by adjusting the sigma passed to the model, while the rest of sampling stays the same." + CATEGORY = "sampling/custom_sampling/samplers" + RETURN_TYPES = ("SAMPLER",) + # FUNCTION = "go" + + NODE_DISPLAY_NAME = "Detail Daemon Sampler" + + @classmethod + def INPUT_TYPES(cls) -> dict: + return { + "required": { + "sampler": ("SAMPLER",), + "detail_amount": ( + "FLOAT", + {"default": 0.1, "min": -5.0, "max": 5.0, "step": 0.01}, + ), + "start": ( + "FLOAT", + {"default": 0.2, "min": 0.0, "max": 1.0, "step": 0.01}, + ), + "end": ( + "FLOAT", + {"default": 0.8, "min": 0.0, "max": 1.0, "step": 0.01}, + ), + "bias": ( + "FLOAT", + {"default": 0.5, "min": 0.0, "max": 1.0, "step": 0.01}, + ), + "exponent": ( + "FLOAT", + {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.05}, + ), + "start_offset": ( + "FLOAT", + {"default": 0.0, "min": -1.0, "max": 1.0, "step": 0.01}, + ), + "end_offset": ( + "FLOAT", + {"default": 0.0, "min": -1.0, "max": 1.0, "step": 0.01}, + ), + "fade": ( + "FLOAT", + {"default": 0.0, "min": 0.0, "max": 1.0, "step": 0.05}, + ), + "smooth": ("BOOLEAN", {"default": True}), + "cfg_scale_override": ( + "FLOAT", + { + "default": 0, + "min": 0.0, + "max": 100.0, + "step": 0.5, + "round": 0.01, + "tooltip": "If set to 0, the sampler will automatically determine the CFG scale (if possible). Set to some other value to override.", + }, + ), + }, + } + + +class MultiplySigmas(BizyAirBaseNode): + # FUNCTION = "simple_output" + RETURN_TYPES = ("SIGMAS",) + CATEGORY = "sampling/custom_sampling/sigmas" + NODE_DISPLAY_NAME = "Multiply Sigmas (stateless)" + + @classmethod + def INPUT_TYPES(cls) -> dict: + return { + "required": { + "sigmas": ("SIGMAS", {"forceInput": True}), + "factor": ( + "FLOAT", + {"default": 1, "min": 0, "max": 100, "step": 0.001}, + ), + "start": ("FLOAT", {"default": 0, "min": 0, "max": 1, "step": 0.001}), + "end": ("FLOAT", {"default": 1, "min": 0, "max": 1, "step": 0.001}), + } + } + + +class LyingSigmaSampler(BizyAirBaseNode): + CATEGORY = "sampling/custom_sampling" + RETURN_TYPES = ("SAMPLER",) + NODE_DISPLAY_NAME = "Lying Sigma Sampler" + # FUNCTION = "go" + + @classmethod + def INPUT_TYPES(cls) -> dict: + return { + "required": { + "sampler": ("SAMPLER",), + "dishonesty_factor": ( + "FLOAT", + { + "default": -0.05, + "min": -0.999, + "step": 0.01, + "tooltip": "Multiplier for sigmas passed to the model. -0.05 means we reduce the sigma by 5%.", + }, + ), + }, + "optional": { + "start_percent": ( + "FLOAT", + {"default": 0.1, "min": 0.0, "max": 1.0, "step": 0.01}, + ), + "end_percent": ( + "FLOAT", + {"default": 0.9, "min": 0.0, "max": 1.0, "step": 0.01}, + ), + }, + } + + +class DetailDaemonGraphSigmasNode(BizyAirBaseNode): + RETURN_TYPES = () + OUTPUT_NODE = True + CATEGORY = "sampling/custom_sampling/sigmas" + NODE_DISPLAY_NAME = "Detail Daemon Graph Sigmas" + # FUNCTION = "make_graph" + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "sigmas": ("SIGMAS", {"forceInput": True}), + "detail_amount": ( + "FLOAT", + {"default": 0.1, "min": -5.0, "max": 5.0, "step": 0.01}, + ), + "start": ( + "FLOAT", + {"default": 0.2, "min": 0.0, "max": 1.0, "step": 0.01}, + ), + "end": ( + "FLOAT", + {"default": 0.8, "min": 0.0, "max": 1.0, "step": 0.01}, + ), + "bias": ( + "FLOAT", + {"default": 0.5, "min": 0.0, "max": 1.0, "step": 0.01}, + ), + "exponent": ( + "FLOAT", + {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.05}, + ), + "start_offset": ( + "FLOAT", + {"default": 0.0, "min": -1.0, "max": 1.0, "step": 0.01}, + ), + "end_offset": ( + "FLOAT", + {"default": 0.0, "min": -1.0, "max": 1.0, "step": 0.01}, + ), + "fade": ( + "FLOAT", + {"default": 0.0, "min": 0.0, "max": 1.0, "step": 0.05}, + ), + "smooth": ("BOOLEAN", {"default": True}), + "cfg_scale": ( + "FLOAT", + { + "default": 1.0, + "min": 0.0, + "max": 100.0, + "step": 0.5, + "round": 0.01, + }, + ), + }, + } diff --git a/examples/bizyair_flux_detail_daemon_sampler.json b/examples/bizyair_flux_detail_daemon_sampler.json new file mode 100644 index 00000000..63036d31 --- /dev/null +++ b/examples/bizyair_flux_detail_daemon_sampler.json @@ -0,0 +1,1513 @@ +{ + "last_node_id": 112, + "last_link_id": 225, + "nodes": [ + { + "id": 5, + "type": "EmptyLatentImage", + "pos": [ + 230, + 170 + ], + "size": [ + 315, + 106 + ], + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 30, + 100, + 145, + 160 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "EmptyLatentImage" + }, + "widgets_values": [ + 1024, + 1024, + 1 + ] + }, + { + "id": 30, + "type": "BizyAir_RandomNoise", + "pos": [ + 230, + 330 + ], + "size": [ + 315.3865661621094, + 82 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "NOISE", + "type": "NOISE", + "links": [ + 23, + 97, + 141, + 156 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "☁️BizyAir RandomNoise" + }, + "widgets_values": [ + 55268804028075, + "fixed" + ] + }, + { + "id": 25, + "type": "BizyAir_BasicGuider", + "pos": [ + 240, + 60 + ], + "size": [ + 241.79998779296875, + 46 + ], + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "BIZYAIR_MODEL", + "link": 208 + }, + { + "name": "conditioning", + "type": "BIZYAIR_CONDITIONING", + "link": 51, + "slot_index": 1 + } + ], + "outputs": [ + { + "name": "GUIDER", + "type": "GUIDER", + "links": [ + 17, + 98, + 142, + 157 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "☁️BizyAir BasicGuider" + }, + "widgets_values": [] + }, + { + "id": 8, + "type": "BizyAir_VAEDecode", + "pos": [ + 780, + 340 + ], + "size": [ + 210, + 46 + ], + "flags": { + "collapsed": true + }, + "order": 16, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 110 + }, + { + "name": "vae", + "type": "BIZYAIR_VAE", + "link": 25 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 49 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "☁️BizyAir VAEDecode" + }, + "widgets_values": [] + }, + { + "id": 38, + "type": "BizyAir_CLIPTextEncodeFlux", + "pos": [ + -149, + 513 + ], + "size": [ + 348.0617980957031, + 394.8694152832031 + ], + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "BIZYAIR_CLIP", + "link": 140 + } + ], + "outputs": [ + { + "name": "conditioning", + "type": "BIZYAIR_CONDITIONING", + "links": [ + 51 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "☁️BizyAir CLIPTextEncodeFlux" + }, + "widgets_values": [ + "a photo of a majestic, vividly colored peacock standing proudly in an exotic, lush jungle. The bird's feathers display an iridescent array of blues, greens, and purples, with intricate eye patterns. Taken with a Canon EOS 5D Mark IV and a Canon EF 100-400mm f/4.5-5.6L IS II USM lens at 200mm, the scene includes tropical plants, vibrant flowers, and distant waterfalls under a bright, sunny sky, creating a rich and detailed paradise setting. The peacock is the focal point, exuding elegance and grace. Tack sharp, with many details. Other elements of wildlife, like colorful butterflies and exotic birds, add life to the scene, enhancing the overall photographic quality.", + "a photo of a majestic, vividly colored peacock standing proudly in an exotic, lush jungle. The bird's feathers display an iridescent array of blues, greens, and purples, with intricate eye patterns. Taken with a Canon EOS 5D Mark IV and a Canon EF 100-400mm f/4.5-5.6L IS II USM lens at 200mm, the scene includes tropical plants, vibrant flowers, and distant waterfalls under a bright, sunny sky, creating a rich and detailed paradise setting. The peacock is the focal point, exuding elegance and grace. Tack sharp, with many details. Other elements of wildlife, like colorful butterflies and exotic birds, add life to the scene, enhancing the overall photographic quality.", + 3.5 + ] + }, + { + "id": 79, + "type": "PreviewImage", + "pos": [ + 963.3413696289062, + 504.88983154296875 + ], + "size": [ + 441.1180114746094, + 464.446533203125 + ], + "flags": {}, + "order": 25, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 149 + } + ], + "outputs": [], + "title": "Lying Sigma Sampler preview image", + "properties": { + "Node name for S&R": "PreviewImage" + }, + "widgets_values": [] + }, + { + "id": 82, + "type": "PreviewImage", + "pos": [ + 1279.35302734375, + 1029.474853515625 + ], + "size": [ + 448.5738525390625, + 467.3197021484375 + ], + "flags": {}, + "order": 26, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 155 + } + ], + "outputs": [], + "title": "Multiply Sigmas preview image", + "properties": { + "Node name for S&R": "PreviewImage" + }, + "widgets_values": [] + }, + { + "id": 81, + "type": "BizyAir_VAEDecode", + "pos": [ + 914.353759765625, + 1416.4744873046875 + ], + "size": [ + 210, + 46 + ], + "flags": { + "collapsed": true + }, + "order": 19, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 162 + }, + { + "name": "vae", + "type": "BIZYAIR_VAE", + "link": 154 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 155 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "☁️BizyAir VAEDecode" + }, + "widgets_values": [] + }, + { + "id": 37, + "type": "PreviewImage", + "pos": [ + 1285, + -64 + ], + "size": [ + 444.4699401855469, + 458.221435546875 + ], + "flags": {}, + "order": 20, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 49 + } + ], + "outputs": [], + "title": "Detail Daemon preview image", + "properties": { + "Node name for S&R": "PreviewImage" + }, + "widgets_values": [] + }, + { + "id": 104, + "type": "BizyAir_UNETLoader", + "pos": [ + -164, + -51 + ], + "size": [ + 315, + 82 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "BIZYAIR_MODEL", + "type": "BIZYAIR_MODEL", + "links": [ + 208, + 209 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "☁️BizyAir UNETLoader" + }, + "widgets_values": [ + "flux/flux1-dev.sft", + "fp8_e4m3fn" + ] + }, + { + "id": 22, + "type": "BizyAir_DualCLIPLoader", + "pos": [ + -150, + 210 + ], + "size": [ + 315, + 106 + ], + "flags": { + "collapsed": false + }, + "order": 3, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "BIZYAIR_CLIP", + "type": "BIZYAIR_CLIP", + "links": [ + 140 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "☁️BizyAir DualCLIPLoader" + }, + "widgets_values": [ + "clip_l.safetensors", + "t5xxl_fp16.safetensors", + "flux" + ] + }, + { + "id": 27, + "type": "BizyAir_VAELoader", + "pos": [ + -149, + 393 + ], + "size": [ + 315, + 58 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "vae", + "type": "BIZYAIR_VAE", + "links": [ + 25, + 103, + 150, + 154 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "☁️BizyAir VAELoader" + }, + "widgets_values": [ + "flux/ae.sft" + ] + }, + { + "id": 66, + "type": "BizyAir_SamplerCustomAdvanced", + "pos": [ + -66, + 1065 + ], + "size": [ + 355.20001220703125, + 106 + ], + "flags": { + "collapsed": true + }, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "noise", + "type": "NOISE", + "link": 97 + }, + { + "name": "guider", + "type": "GUIDER", + "link": 98 + }, + { + "name": "sampler", + "type": "SAMPLER", + "link": 99 + }, + { + "name": "sigmas", + "type": "SIGMAS", + "link": 96 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 100 + } + ], + "outputs": [ + { + "name": "output", + "type": "LATENT", + "links": [ + 101 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "denoised_output", + "type": "LATENT", + "links": [], + "slot_index": 1, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "☁️BizyAir SamplerCustomAdvanced" + }, + "widgets_values": [] + }, + { + "id": 26, + "type": "BizyAir_SamplerCustomAdvanced", + "pos": [ + 750, + 280 + ], + "size": [ + 260.3999938964844, + 106 + ], + "flags": { + "collapsed": false + }, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "noise", + "type": "NOISE", + "link": 23 + }, + { + "name": "guider", + "type": "GUIDER", + "link": 17 + }, + { + "name": "sampler", + "type": "SAMPLER", + "link": 216 + }, + { + "name": "sigmas", + "type": "SIGMAS", + "link": 163 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 30 + } + ], + "outputs": [ + { + "name": "output", + "type": "LATENT", + "links": [ + 110 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "denoised_output", + "type": "LATENT", + "links": [], + "slot_index": 1, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "☁️BizyAir SamplerCustomAdvanced" + }, + "widgets_values": [] + }, + { + "id": 28, + "type": "BizyAir_KSamplerSelect", + "pos": [ + 230, + 480 + ], + "size": [ + 315, + 58 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "SAMPLER", + "type": "SAMPLER", + "links": [ + 99, + 166, + 215, + 221 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "☁️BizyAir KSamplerSelect" + }, + "widgets_values": [ + "dpmpp_2m" + ] + }, + { + "id": 78, + "type": "BizyAir_VAEDecode", + "pos": [ + 568.9183349609375, + 819.2879028320312 + ], + "size": [ + 210, + 46 + ], + "flags": { + "collapsed": true + }, + "order": 18, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 148 + }, + { + "name": "vae", + "type": "BIZYAIR_VAE", + "link": 150 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 149 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "☁️BizyAir VAEDecode" + }, + "widgets_values": [] + }, + { + "id": 29, + "type": "BizyAir_BasicScheduler", + "pos": [ + 231, + 607 + ], + "size": [ + 315, + 106 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "BIZYAIR_MODEL", + "link": 209, + "slot_index": 0 + } + ], + "outputs": [ + { + "name": "SIGMAS", + "type": "SIGMAS", + "links": [ + 96, + 163, + 164, + 219 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "☁️BizyAir BasicScheduler" + }, + "widgets_values": [ + "beta", + 20, + 1 + ] + }, + { + "id": 83, + "type": "BizyAir_SamplerCustomAdvanced", + "pos": [ + 892.3538208007812, + 1367.4744873046875 + ], + "size": [ + 355.20001220703125, + 106 + ], + "flags": { + "collapsed": false + }, + "order": 15, + "mode": 0, + "inputs": [ + { + "name": "noise", + "type": "NOISE", + "link": 156 + }, + { + "name": "guider", + "type": "GUIDER", + "link": 157 + }, + { + "name": "sampler", + "type": "SAMPLER", + "link": 166 + }, + { + "name": "sigmas", + "type": "SIGMAS", + "link": 220 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 160 + } + ], + "outputs": [ + { + "name": "output", + "type": "LATENT", + "links": [ + 162 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "denoised_output", + "type": "LATENT", + "links": [], + "slot_index": 1, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "☁️BizyAir SamplerCustomAdvanced" + }, + "widgets_values": [] + }, + { + "id": 109, + "type": "BizyAir_LyingSigmaSampler", + "pos": [ + 534.1437377929688, + 532.044921875 + ], + "size": [ + 365.4000244140625, + 106 + ], + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "sampler", + "type": "SAMPLER", + "link": 221 + } + ], + "outputs": [ + { + "name": "SAMPLER", + "type": "SAMPLER", + "links": [ + 222 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "BizyAir_LyingSigmaSampler" + }, + "widgets_values": [ + -0.05, + 0.1, + 0.9 + ] + }, + { + "id": 77, + "type": "BizyAir_SamplerCustomAdvanced", + "pos": [ + 518.2349243164062, + 719.06201171875 + ], + "size": [ + 355.20001220703125, + 106 + ], + "flags": { + "collapsed": false + }, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "noise", + "type": "NOISE", + "link": 141 + }, + { + "name": "guider", + "type": "GUIDER", + "link": 142 + }, + { + "name": "sampler", + "type": "SAMPLER", + "link": 222 + }, + { + "name": "sigmas", + "type": "SIGMAS", + "link": 164 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 145 + } + ], + "outputs": [ + { + "name": "output", + "type": "LATENT", + "links": [ + 148 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "denoised_output", + "type": "LATENT", + "links": [], + "slot_index": 1, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "☁️BizyAir SamplerCustomAdvanced" + }, + "widgets_values": [] + }, + { + "id": 108, + "type": "BizyAir_MultiplySigmas", + "pos": [ + 877.872314453125, + 1119.735107421875 + ], + "size": [ + 315, + 106 + ], + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [ + { + "name": "sigmas", + "type": "SIGMAS", + "link": 219 + } + ], + "outputs": [ + { + "name": "SIGMAS", + "type": "SIGMAS", + "links": [ + 220 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "BizyAir_MultiplySigmas" + }, + "widgets_values": [ + 0.9410000000000001, + 0, + 0.998 + ] + }, + { + "id": 106, + "type": "BizyAir_DetailDaemonSamplerNode", + "pos": [ + 787.7808837890625, + -68.57552337646484 + ], + "size": [ + 390.5999755859375, + 274 + ], + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "sampler", + "type": "SAMPLER", + "link": 215 + } + ], + "outputs": [ + { + "name": "SAMPLER", + "type": "SAMPLER", + "links": [ + 216 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "BizyAir_DetailDaemonSamplerNode" + }, + "widgets_values": [ + 0.5, + 0.1, + 0.9, + 0.5, + 0, + 0, + 0, + 0, + false, + 0 + ] + }, + { + "id": 67, + "type": "PreviewImage", + "pos": [ + 238.18289184570312, + 1025.0689697265625 + ], + "size": [ + 447.607177734375, + 461.6881103515625 + ], + "flags": {}, + "order": 21, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 95 + } + ], + "outputs": [], + "title": "Default preview image (no detailer)", + "properties": { + "Node name for S&R": "PreviewImage" + }, + "widgets_values": [] + }, + { + "id": 65, + "type": "BizyAir_VAEDecode", + "pos": [ + -58.36270523071289, + 1190.3865966796875 + ], + "size": [ + 210, + 46 + ], + "flags": { + "collapsed": false + }, + "order": 17, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 101 + }, + { + "name": "vae", + "type": "BIZYAIR_VAE", + "link": 103 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 95, + 223, + 224, + 225 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "☁️BizyAir VAEDecode" + }, + "widgets_values": [] + }, + { + "id": 110, + "type": "PreviewImage", + "pos": [ + 1767.10009765625, + -44.370643615722656 + ], + "size": [ + 369.8744812011719, + 412.896240234375 + ], + "flags": {}, + "order": 22, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 223 + } + ], + "outputs": [], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 112, + "type": "PreviewImage", + "pos": [ + 1429.3408203125, + 520.49462890625 + ], + "size": [ + 409.8431091308594, + 436.0780944824219 + ], + "flags": {}, + "order": 23, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 224 + } + ], + "outputs": [], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 111, + "type": "PreviewImage", + "pos": [ + 1761.306396484375, + 1041.71826171875 + ], + "size": [ + 412.8641052246094, + 450.149169921875 + ], + "flags": {}, + "order": 24, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 225 + } + ], + "outputs": [], + "properties": { + "Node name for S&R": "PreviewImage" + } + } + ], + "links": [ + [ + 17, + 25, + 0, + 26, + 1, + "GUIDER" + ], + [ + 23, + 30, + 0, + 26, + 0, + "NOISE" + ], + [ + 25, + 27, + 0, + 8, + 1, + "VAE" + ], + [ + 30, + 5, + 0, + 26, + 4, + "LATENT" + ], + [ + 49, + 8, + 0, + 37, + 0, + "IMAGE" + ], + [ + 51, + 38, + 0, + 25, + 1, + "CONDITIONING" + ], + [ + 95, + 65, + 0, + 67, + 0, + "IMAGE" + ], + [ + 96, + 29, + 0, + 66, + 3, + "SIGMAS" + ], + [ + 97, + 30, + 0, + 66, + 0, + "NOISE" + ], + [ + 98, + 25, + 0, + 66, + 1, + "GUIDER" + ], + [ + 99, + 28, + 0, + 66, + 2, + "SAMPLER" + ], + [ + 100, + 5, + 0, + 66, + 4, + "LATENT" + ], + [ + 101, + 66, + 0, + 65, + 0, + "LATENT" + ], + [ + 103, + 27, + 0, + 65, + 1, + "VAE" + ], + [ + 110, + 26, + 0, + 8, + 0, + "LATENT" + ], + [ + 140, + 22, + 0, + 38, + 0, + "CLIP" + ], + [ + 141, + 30, + 0, + 77, + 0, + "NOISE" + ], + [ + 142, + 25, + 0, + 77, + 1, + "GUIDER" + ], + [ + 145, + 5, + 0, + 77, + 4, + "LATENT" + ], + [ + 148, + 77, + 0, + 78, + 0, + "LATENT" + ], + [ + 149, + 78, + 0, + 79, + 0, + "IMAGE" + ], + [ + 150, + 27, + 0, + 78, + 1, + "VAE" + ], + [ + 154, + 27, + 0, + 81, + 1, + "VAE" + ], + [ + 155, + 81, + 0, + 82, + 0, + "IMAGE" + ], + [ + 156, + 30, + 0, + 83, + 0, + "NOISE" + ], + [ + 157, + 25, + 0, + 83, + 1, + "GUIDER" + ], + [ + 160, + 5, + 0, + 83, + 4, + "LATENT" + ], + [ + 162, + 83, + 0, + 81, + 0, + "LATENT" + ], + [ + 163, + 29, + 0, + 26, + 3, + "SIGMAS" + ], + [ + 164, + 29, + 0, + 77, + 3, + "SIGMAS" + ], + [ + 166, + 28, + 0, + 83, + 2, + "SAMPLER" + ], + [ + 208, + 104, + 0, + 25, + 0, + "MODEL" + ], + [ + 209, + 104, + 0, + 29, + 0, + "MODEL" + ], + [ + 215, + 28, + 0, + 106, + 0, + "SAMPLER" + ], + [ + 216, + 106, + 0, + 26, + 2, + "SAMPLER" + ], + [ + 219, + 29, + 0, + 108, + 0, + "SIGMAS" + ], + [ + 220, + 108, + 0, + 83, + 3, + "SIGMAS" + ], + [ + 221, + 28, + 0, + 109, + 0, + "SAMPLER" + ], + [ + 222, + 109, + 0, + 77, + 2, + "SAMPLER" + ], + [ + 223, + 65, + 0, + 110, + 0, + "IMAGE" + ], + [ + 224, + 65, + 0, + 112, + 0, + "IMAGE" + ], + [ + 225, + 65, + 0, + 111, + 0, + "IMAGE" + ] + ], + "groups": [ + { + "id": 1, + "title": "Multiply Sigmas", + "bounding": [ + 735.3538208007812, + 964.4746704101562, + 1450, + 543 + ], + "color": "#8A8", + "font_size": 24, + "flags": {} + }, + { + "id": 2, + "title": "Lying Sigmas", + "bounding": [ + 417.0537414550781, + 449.6026611328125, + 1445, + 530 + ], + "color": "#b58b2a", + "font_size": 24, + "flags": {} + }, + { + "id": 3, + "title": "Detail Daemon", + "bounding": [ + 722, + -150, + 1450, + 539 + ], + "color": "#3f789e", + "font_size": 24, + "flags": {} + }, + { + "id": 4, + "title": "Default (no detailer)", + "bounding": [ + -150, + 925, + 857, + 555 + ], + "color": "#a1309b", + "font_size": 24, + "flags": {} + } + ], + "config": {}, + "extra": { + "ds": { + "scale": 0.25937424601000053, + "offset": [ + 473.01417818307567, + 163.77333471379174 + ] + } + }, + "version": 0.4 +} diff --git a/src/bizyair/commands/servers/prompt_server.py b/src/bizyair/commands/servers/prompt_server.py index 475bd7cf..a8968021 100644 --- a/src/bizyair/commands/servers/prompt_server.py +++ b/src/bizyair/commands/servers/prompt_server.py @@ -42,6 +42,7 @@ def execute( try: out = result["data"]["payload"] + assert out is not None except Exception as e: raise RuntimeError( f'Unexpected error accessing result["data"]["payload"]. Result: {result}'