This commit is contained in:
cmdr2 2023-06-08 15:55:36 +05:30
parent 4f799a2bf0
commit e349fb1a23

View File

@ -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)
// })