chore: 默认模型固定为 9B-Q4_K_M,测试页移除模型/分辨率选择器

测试结论: 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)
This commit is contained in:
xsl
2026-07-25 16:25:44 +08:00
parent 5226e23989
commit ff4019c570
4 changed files with 6 additions and 32 deletions
+2 -2
View File
@@ -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"
}
},
+2 -2
View File
@@ -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加载器"
}
+2 -2
View File
@@ -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加载器"
}
-26
View File
@@ -109,28 +109,6 @@
<label style="font-size:13px;font-weight:600;color:#374151;white-space:nowrap">💬 提示词</label>
<input type="text" id="promptInput" value="填充遮罩区域的头发,皮肤加一点磨皮,再加一点美颜" style="flex:1;padding:8px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:13px;max-width:500px">
</div>
<div style="margin-top:10px;display:flex;align-items:center;gap:16px;flex-wrap:wrap">
<div class="form-group">
<label>🤖 Flux模型</label>
<select id="fluxModel">
<option value="" selected>默认(9b-fp8)</option>
<option value="flux-2-klein-9b-Q5_K_M.gguf">9B Q5_K_M (7GB·推荐)</option>
<option value="flux-2-klein-9b-Q4_K_M.gguf">9B Q4_K_M (5.9GB·省显存)</option>
<option value="flux2.0/flux-2-klein-9b-fp8.safetensors">9B fp8 (8.8GB·原版)</option>
</select>
</div>
<div class="form-group">
<label>📐 压图长边</label>
<select id="redrawMaxSide">
<option value="" selected>默认(896)</option>
<option value="1024">1024 (高画质·慢)</option>
<option value="896">896 (默认)</option>
<option value="768">768 (均衡)</option>
<option value="640">640 (省显存·快)</option>
<option value="0">不缩图(原图)</option>
</select>
</div>
</div>
<div id="statusBar" class="status hidden"></div>
</div>
</div>
@@ -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 });