diff --git a/README.md b/README.md index ff7dbf5..9d6bfff 100644 --- a/README.md +++ b/README.md @@ -168,4 +168,5 @@ Runge-Kutta methods generally have less discretization error than standard diffu - To use the new solvers, select `adaptive_scipy` as the step size controller. - No fixed step size controllers are available for wrapped scipy methods. - These methods do not support parallel IVP solve, meaning the batch elements are processed sequentially. - - Implicit solvers from `scipy.integrate` do not work for sampling diffusion models as the root finding step takes too long, so the implementation for them were skipped. \ No newline at end of file + - Implicit solvers from `scipy.integrate` do not work for sampling diffusion models as the root finding step takes too long, so the implementation for them were skipped. +- The refactors from this update can cause the results to differ from the previous version. This is due to changes in floating point order operations and casting. diff --git a/workflows/workflow_comfyui_rk_sampler.json b/workflows/workflow_comfyui_rk_sampler.json index 4bbd3aa..5c827c0 100644 --- a/workflows/workflow_comfyui_rk_sampler.json +++ b/workflows/workflow_comfyui_rk_sampler.json @@ -1,7 +1,140 @@ { - "last_node_id": 136, - "last_link_id": 192, + "last_node_id": 139, + "last_link_id": 196, "nodes": [ + { + "id": 131, + "type": "AlignYourStepsScheduler", + "pos": [ + 540, + 600 + ], + "size": { + "0": 315, + "1": 106 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "SIGMAS", + "type": "SIGMAS", + "links": [ + 187 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "AlignYourStepsScheduler" + }, + "widgets_values": [ + "SDXL", + 28, + 1 + ] + }, + { + "id": 133, + "type": "EmptyLatentImage", + "pos": [ + 110, + 770 + ], + "size": { + "0": 315, + "1": 106 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 183 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "EmptyLatentImage" + }, + "widgets_values": [ + 896, + 1152, + 1 + ] + }, + { + "id": 134, + "type": "SaveImage", + "pos": [ + 1270, + 120 + ], + "size": { + "0": 540, + "1": 750 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 190 + } + ], + "properties": {}, + "widgets_values": [ + "txt2img" + ] + }, + { + "id": 124, + "type": "CLIPTextEncode", + "pos": [ + 110, + 270 + ], + "size": { + "0": 400, + "1": 200 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 184 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 181 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "girl, smiling, one eye closed, closed mouth, short brown hair, white shirt, black skirt, black bowtie, solo, looking at viewer, outdoors, shibuya, night, cinematic angle, upper body, closeup, waiving, masterpiece, best quality, very aesthetic, absurdres" + ] + }, { "id": 125, "type": "CLIPTextEncode", @@ -42,37 +175,54 @@ ] }, { - "id": 131, - "type": "AlignYourStepsScheduler", + "id": 123, + "type": "CheckpointLoaderSimple", "pos": [ - 540, - 600 + 110, + 120 ], "size": { "0": 315, - "1": 106 + "1": 98 }, "flags": {}, - "order": 0, + "order": 2, "mode": 0, "outputs": [ { - "name": "SIGMAS", - "type": "SIGMAS", + "name": "MODEL", + "type": "MODEL", "links": [ - 187 + 180 ], "shape": 3, "slot_index": 0 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 184, + 185 + ], + "shape": 3, + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": [ + 195 + ], + "shape": 3, + "slot_index": 2 } ], "properties": { - "Node name for S&R": "AlignYourStepsScheduler" + "Node name for S&R": "CheckpointLoaderSimple" }, "widgets_values": [ - "SDXL", - 28, - 1 + "animagineXLV31_v31.safetensors" ] }, { @@ -98,7 +248,7 @@ { "name": "vae", "type": "VAE", - "link": 189 + "link": 195 } ], "outputs": [ @@ -116,45 +266,6 @@ "Node name for S&R": "VAEDecode" } }, - { - "id": 124, - "type": "CLIPTextEncode", - "pos": [ - 110, - 270 - ], - "size": { - "0": 400, - "1": 200 - }, - "flags": {}, - "order": 4, - "mode": 0, - "inputs": [ - { - "name": "clip", - "type": "CLIP", - "link": 184 - } - ], - "outputs": [ - { - "name": "CONDITIONING", - "type": "CONDITIONING", - "links": [ - 181 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "CLIPTextEncode" - }, - "widgets_values": [ - "girl, one eye closed, closed mouth, short brown hair, white shirt, black skirt, black bowtie, solo, looking at viewer, outdoors, shibuya, night, cinematic angle, upper body, closeup, waiving, masterpiece, best quality, very aesthetic, absurdres" - ] - }, { "id": 128, "type": "SamplerCustom", @@ -188,7 +299,7 @@ { "name": "sampler", "type": "SAMPLER", - "link": 192 + "link": 196 }, { "name": "sigmas", @@ -225,96 +336,11 @@ true, 12345, "fixed", - 30 + 30.5 ] }, { - "id": 123, - "type": "CheckpointLoaderSimple", - "pos": [ - 110, - 120 - ], - "size": { - "0": 315, - "1": 98 - }, - "flags": {}, - "order": 1, - "mode": 0, - "outputs": [ - { - "name": "MODEL", - "type": "MODEL", - "links": [ - 180 - ], - "shape": 3, - "slot_index": 0 - }, - { - "name": "CLIP", - "type": "CLIP", - "links": [ - 184, - 185 - ], - "shape": 3, - "slot_index": 1 - }, - { - "name": "VAE", - "type": "VAE", - "links": [ - 189 - ], - "shape": 3, - "slot_index": 2 - } - ], - "properties": { - "Node name for S&R": "CheckpointLoaderSimple" - }, - "widgets_values": [ - "animagineXLV31_v31.safetensors" - ] - }, - { - "id": 133, - "type": "EmptyLatentImage", - "pos": [ - 110, - 770 - ], - "size": { - "0": 315, - "1": 106 - }, - "flags": {}, - "order": 2, - "mode": 0, - "outputs": [ - { - "name": "LATENT", - "type": "LATENT", - "links": [ - 183 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "EmptyLatentImage" - }, - "widgets_values": [ - 896, - 1152, - 1 - ] - }, - { - "id": 136, + "id": 139, "type": "RungeKuttaSampler", "pos": [ 540, @@ -332,7 +358,7 @@ "name": "SAMPLER", "type": "SAMPLER", "links": [ - 192 + 196 ], "shape": 3, "slot_index": 0 @@ -360,32 +386,6 @@ 2147483647, 0.00001 ] - }, - { - "id": 134, - "type": "SaveImage", - "pos": [ - 1270, - 120 - ], - "size": { - "0": 540, - "1": 750 - }, - "flags": {}, - "order": 8, - "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 190 - } - ], - "properties": {}, - "widgets_values": [ - "txt2img" - ] } ], "links": [ @@ -453,14 +453,6 @@ 0, "LATENT" ], - [ - 189, - 123, - 2, - 132, - 1, - "VAE" - ], [ 190, 132, @@ -470,8 +462,16 @@ "IMAGE" ], [ - 192, - 136, + 195, + 123, + 2, + 132, + 1, + "VAE" + ], + [ + 196, + 139, 0, 128, 3, diff --git a/workflows/workflow_comfyui_rk_sampler.png b/workflows/workflow_comfyui_rk_sampler.png index 6919767..e160b07 100644 Binary files a/workflows/workflow_comfyui_rk_sampler.png and b/workflows/workflow_comfyui_rk_sampler.png differ