forked from extern/easydiffusion
Merge branch 'beta' of github.com:cmdr2/stable-diffusion-ui into beta
This commit is contained in:
commit
273525e6f9
@ -743,6 +743,8 @@
|
|||||||
"use_face_correction": 'string',
|
"use_face_correction": 'string',
|
||||||
"use_upscale": 'string',
|
"use_upscale": 'string',
|
||||||
"use_vae_model": 'string',
|
"use_vae_model": 'string',
|
||||||
|
"use_hypernetwork_model": 'string',
|
||||||
|
"hypernetwork_strength": 'number',
|
||||||
}
|
}
|
||||||
|
|
||||||
// Higer values will result in...
|
// Higer values will result in...
|
||||||
|
@ -879,6 +879,10 @@ function getCurrentUserRequest() {
|
|||||||
if (useUpscalingField.checked) {
|
if (useUpscalingField.checked) {
|
||||||
newTask.reqBody.use_upscale = upscaleModelField.value
|
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
|
return newTask
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1185,7 +1189,7 @@ async function getModels() {
|
|||||||
|
|
||||||
const stableDiffusionOptions = modelsOptions['stable-diffusion']
|
const stableDiffusionOptions = modelsOptions['stable-diffusion']
|
||||||
const vaeOptions = modelsOptions['vae']
|
const vaeOptions = modelsOptions['vae']
|
||||||
const hypernetworkOptions = modelOptions['hypernetwork']
|
const hypernetworkOptions = modelsOptions['hypernetwork']
|
||||||
|
|
||||||
vaeOptions.unshift('') // add a None option
|
vaeOptions.unshift('') // add a None option
|
||||||
hypernetworkOptions.unshift('') // add a None option
|
hypernetworkOptions.unshift('') // add a None option
|
||||||
|
@ -28,7 +28,6 @@ from gfpgan import GFPGANer
|
|||||||
from basicsr.archs.rrdbnet_arch import RRDBNet
|
from basicsr.archs.rrdbnet_arch import RRDBNet
|
||||||
from realesrgan import RealESRGANer
|
from realesrgan import RealESRGANer
|
||||||
|
|
||||||
from . import hypernetwork
|
|
||||||
from server import HYPERNETWORK_MODEL_EXTENSIONS# , STABLE_DIFFUSION_MODEL_EXTENSIONS, VAE_MODEL_EXTENSIONS
|
from server import HYPERNETWORK_MODEL_EXTENSIONS# , STABLE_DIFFUSION_MODEL_EXTENSIONS, VAE_MODEL_EXTENSIONS
|
||||||
|
|
||||||
from threading import Lock
|
from threading import Lock
|
||||||
@ -450,6 +449,11 @@ def is_hypernetwork_reload_necessary(req: Request):
|
|||||||
return needs_model_reload
|
return needs_model_reload
|
||||||
|
|
||||||
def load_hypernetwork():
|
def load_hypernetwork():
|
||||||
|
if thread_data.test_sd2:
|
||||||
|
# Not yet supported in SD2
|
||||||
|
return
|
||||||
|
|
||||||
|
from . import hypernetwork
|
||||||
if thread_data.hypernetwork_file is not None:
|
if thread_data.hypernetwork_file is not None:
|
||||||
try:
|
try:
|
||||||
loaded = False
|
loaded = False
|
||||||
|
Loading…
Reference in New Issue
Block a user