From 29e7b5d0450ea5f7a2104ce9d2ad9c586625bcba Mon Sep 17 00:00:00 2001 From: ameli0x Date: Mon, 11 Aug 2025 14:11:30 -0500 Subject: [PATCH 1/4] Added flux kontext support --- stable_diffusion.json | 77 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/stable_diffusion.json b/stable_diffusion.json index dc59b2f..44278c5 100644 --- a/stable_diffusion.json +++ b/stable_diffusion.json @@ -6366,6 +6366,83 @@ ], "size_on_disk_bytes": 17246524772 }, + "Flux.1-Kontext-dev": { + "name": "Flux.1-Kontext-dev", + "baseline": "flux_1", + "type": "ckpt", + "inpainting": false, + "description": "FLUX.1-Kontext-dev is an image-to-image variant of the 12 billion parameter FLUX.1 model, developed by Black Forest Labs. It leverages the FluxKontextPipeline for context-aware image transformation and editing. Licensed under the Flux-1-Dev Non-Commercial License. For more information, see https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev.", + "version": "1.0", + "style": "generalist", + "homepage": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev", + "nsfw": false, + "download_all": true, + "requirements": { + "min_steps": 20, + "max_steps": 30, + "min_cfg_scale": 1, + "max_cfg_scale": 4, + "clip_skip": 1, + "samplers": [ + "k_euler" + ], + "schedulers": [ + "karras" + ] + }, + "config": { + "files": [ + { + "path": "flux1-kontext-dev.safetensors", + "sha256sum": "af58063aa431f4d2bbc11ae46f57451d4416a170" + }, + { + "path": "ae.safetensors", + "sha256sum": "" + }, + { + "path": "transformer/diffusion_pytorch_model-00001-of-00003.safetensors", + "sha256sum": "" + }, + { + "path": "transformer/diffusion_pytorch_model-00002-of-00003.safetensors", + "sha256sum": "" + }, + { + "path": "transformer/diffusion_pytorch_model-00003-of-00003.safetensors", + "sha256sum": "" + }, + { + "path": "vae/diffusion_pytorch_model.safetensors", + "sha256sum": "" + }, + { + "path": "text_encoder/model.safetensors", + "sha256sum": "" + }, + { + "path": "text_encoder_2/model-00001-of-00002.safetensors", + "sha256sum": "" + }, + { + "path": "text_encoder_2/model-00002-of-00002.safetensors", + "sha256sum": "" + } + ], + "download": [ + { + "file_name": "flux1-kontext-dev.safetensors", + "file_path": "", + "file_url": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/resolve/main/flux1-kontext-dev.safetensors" + } + ] + }, + "features_not_supported": [ + "hires_fix", + "controlnet" + ], + "size_on_disk_bytes": 57894598692 + }, "Pony Realism": { "name": "Pony Realism", "baseline": "stable_diffusion_xl", From 2fc448bb0e6ca32e3e94794771fc91ba52a9832b Mon Sep 17 00:00:00 2001 From: ameli0x Date: Mon, 11 Aug 2025 14:42:02 -0500 Subject: [PATCH 2/4] fixed line endings --- stable_diffusion.json | 100 +++++++++++++++++++++--------------------- 1 file changed, 50 insertions(+), 50 deletions(-) diff --git a/stable_diffusion.json b/stable_diffusion.json index 44278c5..28c26a9 100644 --- a/stable_diffusion.json +++ b/stable_diffusion.json @@ -6367,7 +6367,7 @@ "size_on_disk_bytes": 17246524772 }, "Flux.1-Kontext-dev": { - "name": "Flux.1-Kontext-dev", + "name": "Flux.1-Kontext", "baseline": "flux_1", "type": "ckpt", "inpainting": false, @@ -6384,57 +6384,57 @@ "max_cfg_scale": 4, "clip_skip": 1, "samplers": [ - "k_euler" + "k_euler" ], "schedulers": [ - "karras" - ] - }, - "config": { - "files": [ - { - "path": "flux1-kontext-dev.safetensors", - "sha256sum": "af58063aa431f4d2bbc11ae46f57451d4416a170" - }, - { - "path": "ae.safetensors", - "sha256sum": "" - }, - { - "path": "transformer/diffusion_pytorch_model-00001-of-00003.safetensors", - "sha256sum": "" - }, - { - "path": "transformer/diffusion_pytorch_model-00002-of-00003.safetensors", - "sha256sum": "" - }, - { - "path": "transformer/diffusion_pytorch_model-00003-of-00003.safetensors", - "sha256sum": "" - }, - { - "path": "vae/diffusion_pytorch_model.safetensors", - "sha256sum": "" - }, - { - "path": "text_encoder/model.safetensors", - "sha256sum": "" - }, - { - "path": "text_encoder_2/model-00001-of-00002.safetensors", - "sha256sum": "" - }, - { - "path": "text_encoder_2/model-00002-of-00002.safetensors", - "sha256sum": "" - } - ], - "download": [ - { - "file_name": "flux1-kontext-dev.safetensors", - "file_path": "", - "file_url": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/resolve/main/flux1-kontext-dev.safetensors" - } + "karras" + ] + }, + "config": { + "files": [ + { + "path": "flux1-kontext-dev.safetensors", + "sha256sum": "af58063aa431f4d2bbc11ae46f57451d4416a170" + }, + { + "path": "ae.safetensors", + "sha256sum": "" + }, + { + "path": "transformer/diffusion_pytorch_model-00001-of-00003.safetensors", + "sha256sum": "" + }, + { + "path": "transformer/diffusion_pytorch_model-00002-of-00003.safetensors", + "sha256sum": "" + }, + { + "path": "transformer/diffusion_pytorch_model-00003-of-00003.safetensors", + "sha256sum": "" + }, + { + "path": "vae/diffusion_pytorch_model.safetensors", + "sha256sum": "" + }, + { + "path": "text_encoder/model.safetensors", + "sha256sum": "" + }, + { + "path": "text_encoder_2/model-00001-of-00002.safetensors", + "sha256sum": "" + }, + { + "path": "text_encoder_2/model-00002-of-00002.safetensors", + "sha256sum": "" + } + ], + "download": [ + { + "file_name": "flux1-kontext-dev.safetensors", + "file_path": "", + "file_url": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/resolve/main/flux1-kontext-dev.safetensors" + } ] }, "features_not_supported": [ From 5421facb3ff23729d3398e3200e80b0142b21b8b Mon Sep 17 00:00:00 2001 From: ameli0x Date: Mon, 11 Aug 2025 14:45:18 -0500 Subject: [PATCH 3/4] fix failing test --- .gitattributes | 1 + stable_diffusion.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9936b64 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.json text eol=crlf \ No newline at end of file diff --git a/stable_diffusion.json b/stable_diffusion.json index 28c26a9..fc737b5 100644 --- a/stable_diffusion.json +++ b/stable_diffusion.json @@ -6951,4 +6951,4 @@ "available": false, "size_on_disk_bytes": 56000000000 } -} \ No newline at end of file +} From 844ce05c2e243726a82ec8797398b2a47c961531 Mon Sep 17 00:00:00 2001 From: ameli0x Date: Mon, 11 Aug 2025 14:47:59 -0500 Subject: [PATCH 4/4] fixed failing tests --- .gitattributes | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 9936b64..0000000 --- a/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -*.json text eol=crlf \ No newline at end of file