mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-02-06 05:29:13 +01:00
Remember the Face Fix and Codeformer settings in the UI
This commit is contained in:
parent
7e0d5893cd
commit
d5edbfee8b
@ -31,6 +31,8 @@ const SETTINGS_IDS_LIST = [
|
|||||||
"stream_image_progress",
|
"stream_image_progress",
|
||||||
"use_face_correction",
|
"use_face_correction",
|
||||||
"gfpgan_model",
|
"gfpgan_model",
|
||||||
|
"codeformer_fidelity",
|
||||||
|
"codeformer_upscale_faces",
|
||||||
"use_upscale",
|
"use_upscale",
|
||||||
"upscale_amount",
|
"upscale_amount",
|
||||||
"latent_upscaler_steps",
|
"latent_upscaler_steps",
|
||||||
|
@ -1879,6 +1879,11 @@ controlImagePreview.addEventListener("load", onControlnetModelChange)
|
|||||||
controlImagePreview.addEventListener("unload", onControlnetModelChange)
|
controlImagePreview.addEventListener("unload", onControlnetModelChange)
|
||||||
onControlnetModelChange()
|
onControlnetModelChange()
|
||||||
|
|
||||||
|
document.addEventListener("refreshModels", function() {
|
||||||
|
onFixFaceModelChange()
|
||||||
|
onControlnetModelChange()
|
||||||
|
})
|
||||||
|
|
||||||
// tip for Flux
|
// tip for Flux
|
||||||
let sdModelField = document.querySelector("#stable_diffusion_model")
|
let sdModelField = document.querySelector("#stable_diffusion_model")
|
||||||
function checkGuidanceValue() {
|
function checkGuidanceValue() {
|
||||||
|
Loading…
Reference in New Issue
Block a user