mrhan1993 / Fooocus-API

FastAPI powered API for Fooocus
GNU General Public License v3.0
567 stars 152 forks source link

lora传weight不生效 #63

Closed yingshow closed 10 months ago

yingshow commented 10 months ago

{ "prompt": "a young woman", "base_model_name": "sd_xl_base_1.0_0.9vae.safetensors", "refiner_model_name": "None", "loras": [{ "model_name": "pytorch_lora_weights.safetensors", "weight": 1 }], "guidance_scale": 1, "advanced_params": { "sampler_name": "lcm", "scheduler_name": "sgm_uniform", "overwrite_step": 4 } }

lora里的weight传参好像不生效,都是默认值0.5

yingshow commented 10 months ago

很奇怪,在doc里提交好像是生效的。在外面提交别的参数都生效了,唯有weight就是0.5