From ff4019c5700750708df800121004cce96a44b0b8 Mon Sep 17 00:00:00 2001 From: xsl Date: Sat, 25 Jul 2026 16:25:44 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=BB=98=E8=AE=A4=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E5=9B=BA=E5=AE=9A=E4=B8=BA=209B-Q4=5FK=5FM=EF=BC=8C=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E9=A1=B5=E7=A7=BB=E9=99=A4=E6=A8=A1=E5=9E=8B/?= =?UTF-8?q?=E5=88=86=E8=BE=A8=E7=8E=87=E9=80=89=E6=8B=A9=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 测试结论: 9B-Q4_K_M 分辨率896 为最佳性价比组合。 - 三个工作流(0716add-hair-api/add_hair/hair_repaint)默认模型改为 flux-2-klein-9b-Q4_K_M.gguf (UnetLoaderGGUF节点) - test_interface2.html 移除 Flux模型/压图长边 下拉选择器, 接口调用不再传 flux_model/redraw_max_side,统一用工作流默认(Q4/896) --- 0716add-hair-api.json | 4 ++-- add_hair.json | 4 ++-- hair_repaint.json | 4 ++-- static/test_interface2.html | 26 -------------------------- 4 files changed, 6 insertions(+), 32 deletions(-) diff --git a/0716add-hair-api.json b/0716add-hair-api.json index ae723eb..1a36579 100644 --- a/0716add-hair-api.json +++ b/0716add-hair-api.json @@ -1,8 +1,8 @@ { "16": { - "class_type": "UNETLoader", + "class_type": "UnetLoaderGGUF", "inputs": { - "unet_name": "flux2.0/flux-2-klein-9b-fp8.safetensors", + "unet_name": "flux-2-klein-9b-Q4_K_M.gguf", "weight_dtype": "fp8_e4m3fn_fast" } }, diff --git a/add_hair.json b/add_hair.json index b9386fa..fdcab91 100644 --- a/add_hair.json +++ b/add_hair.json @@ -170,10 +170,10 @@ }, "16": { "inputs": { - "unet_name": "flux2.0/flux-2-klein-9b-fp8.safetensors", + "unet_name": "flux-2-klein-9b-Q4_K_M.gguf", "weight_dtype": "fp8_e4m3fn_fast" }, - "class_type": "UNETLoader", + "class_type": "UnetLoaderGGUF", "_meta": { "title": "UNet加载器" } diff --git a/hair_repaint.json b/hair_repaint.json index bd46388..55bfa8f 100644 --- a/hair_repaint.json +++ b/hair_repaint.json @@ -170,10 +170,10 @@ }, "16": { "inputs": { - "unet_name": "flux2.0/flux-2-klein-9b-fp8.safetensors", + "unet_name": "flux-2-klein-9b-Q4_K_M.gguf", "weight_dtype": "fp8_e4m3fn" }, - "class_type": "UNETLoader", + "class_type": "UnetLoaderGGUF", "_meta": { "title": "UNet加载器" } diff --git a/static/test_interface2.html b/static/test_interface2.html index aa6691d..ed23551 100644 --- a/static/test_interface2.html +++ b/static/test_interface2.html @@ -109,28 +109,6 @@ -
-
- - -
-
- - -
-
@@ -177,10 +155,6 @@ async function submitTest() { fd.append('hair_style', checked.join(',')); fd.append('use_mask', $('useMask').value); fd.append('prompt', $('promptInput').value); - const _model = $('fluxModel').value; - const _side = $('redrawMaxSide').value; - if (_model) fd.append('flux_model', _model); - if (_side !== '') fd.append('redraw_max_side', _side); const _reqStart = performance.now(); try { const r = await fetch(API_BASE + '/api/v1/hair/grow', { method:'POST', headers:{ 'X-Internal-Token': 'dev-shared-secret-2026' }, body:fd });