mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-08-14 02:05:21 +02:00
Use gfpgan as the default model for face restoration
This commit is contained in:
@ -2061,3 +2061,10 @@ prettifyInputs(document)
|
||||
// set the textbox as focused on start
|
||||
promptField.focus()
|
||||
promptField.selectionStart = promptField.value.length
|
||||
|
||||
// use gfpgan as the default model for face restoration
|
||||
document.addEventListener("refreshModels", function() {
|
||||
let gfpganIdx = gfpganModelField.inputModels.findIndex((e) => e.toLowerCase().startsWith("gfpgan"))
|
||||
let gfpganElem = gfpganModelField.modelElements[gfpganIdx]
|
||||
gfpganModelField.selectModelEntry(gfpganElem)
|
||||
})
|
||||
|
Reference in New Issue
Block a user