From 5256ff53086100cc9a4935f3605370eaca4ff6d3 Mon Sep 17 00:00:00 2001 From: Koratahiu Date: Sat, 15 Nov 2025 04:37:59 +0300 Subject: [PATCH 1/2] Update README to enhance clarity on Diff2Flow usage Clarify the functionality of the Diff2Flow ODE KSampler and its compatibility with models. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cfc31e0..8accaea 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ This allows a model to be sampled using a flow-matching objective, which can lea This implementation provides a single node, `Diff2Flow ODE KSampler`. -Instead of requiring a special model finetuned with the Diff2Flow objective, this node **patches your existing diffusion model** (e.g., SD1.5, SD2.1, SDXL) at runtime. +This node **patches your diffusion model** (e.g., SD1.5, SD2.1, SDXL) at runtime, enabling diff2flow. When you sample, the `enable_diff2flow` function: 1. **Patches** your loaded model by adding the `Diff2Flow` mathematical conversions based on the model's original `beta_schedule`. @@ -42,7 +42,7 @@ When you sample, the `enable_diff2flow` function: ## 🚀 Key Features -* **Works with Standard Checkpoints:** Use your existing `v-prediction` (like SD 2.1) and `epsilon-prediction` (like SDXL) models. +* **Works with Standard Checkpoints or Finetuned Diff2Flow Models:** Use your existing `v-prediction` (like SD 2.1) and `epsilon-prediction` (like SDXL) models. Or the models you finetuned using Diff2FLow. * **True ODE Solvers:** Integrates with `torchdiffeq` to provide a wide range of solvers, including adaptive-step-size solvers (`dopri5`, `bosh3`, etc.) and fixed-step-size solvers (`euler`, `rk4`, `midpoint`, etc.). * **Single Node:** A simple, drop-in KSampler alternative. From 1d15de70aaef4dd63799e944e9fde4a20e0a3ad7 Mon Sep 17 00:00:00 2001 From: Koratahiu Date: Sat, 15 Nov 2025 04:45:08 +0300 Subject: [PATCH 2/2] Add MIT License to the project --- LICENSE | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f5720d8 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 Koratahiu + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.