mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-08-14 18:25:42 +02:00
Hypernets mergefixes (#625)
* Add hypernetwork args definition in the engine. * Add the values to reqBody * Don't load hypernetwork.py with SD2 until it's compatible.
This commit is contained in:
committed by
GitHub
parent
d4a378827f
commit
182236e742
@ -879,6 +879,10 @@ function getCurrentUserRequest() {
|
||||
if (useUpscalingField.checked) {
|
||||
newTask.reqBody.use_upscale = upscaleModelField.value
|
||||
}
|
||||
if (hypernetworkModelField.value) {
|
||||
newTask.reqBody.use_hypernetwork_model = hypernetworkModelField.value
|
||||
newTask.reqBody.hypernetwork_strength = parseFloat(hypernetworkStrengthField.value)
|
||||
}
|
||||
return newTask
|
||||
}
|
||||
|
||||
@ -1185,7 +1189,7 @@ async function getModels() {
|
||||
|
||||
const stableDiffusionOptions = modelsOptions['stable-diffusion']
|
||||
const vaeOptions = modelsOptions['vae']
|
||||
const hypernetworkOptions = modelOptions['hypernetwork']
|
||||
const hypernetworkOptions = modelsOptions['hypernetwork']
|
||||
|
||||
vaeOptions.unshift('') // add a None option
|
||||
hypernetworkOptions.unshift('') // add a None option
|
||||
|
Reference in New Issue
Block a user