Remember the Face Fix and Codeformer settings in the UI

This commit is contained in:
cmdr2 2024-10-17 10:49:26 +05:30
parent 7e0d5893cd
commit d5edbfee8b
2 changed files with 7 additions and 0 deletions

View File

@ -31,6 +31,8 @@ const SETTINGS_IDS_LIST = [
"stream_image_progress",
"use_face_correction",
"gfpgan_model",
"codeformer_fidelity",
"codeformer_upscale_faces",
"use_upscale",
"upscale_amount",
"latent_upscaler_steps",

View File

@ -1879,6 +1879,11 @@ controlImagePreview.addEventListener("load", onControlnetModelChange)
controlImagePreview.addEventListener("unload", onControlnetModelChange)
onControlnetModelChange()
document.addEventListener("refreshModels", function() {
onFixFaceModelChange()
onControlnetModelChange()
})
// tip for Flux
let sdModelField = document.querySelector("#stable_diffusion_model")
function checkGuidanceValue() {