mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-12-23 23:49:11 +01:00
fix
This commit is contained in:
parent
4f799a2bf0
commit
e349fb1a23
@ -2063,8 +2063,8 @@ 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)
|
||||
})
|
||||
// document.addEventListener("refreshModels", function() {
|
||||
// let gfpganIdx = gfpganModelField.inputModels.findIndex((e) => e.toLowerCase().startsWith("gfpgan"))
|
||||
// let gfpganElem = gfpganModelField.modelElements[gfpganIdx]
|
||||
// gfpganModelField.selectModelEntry(gfpganElem)
|
||||
// })
|
||||
|
Loading…
Reference in New Issue
Block a user