forked from extern/easydiffusion
Allow None as the value type in dnd parsing
This commit is contained in:
parent
d1ac90e16d
commit
12e0194c7f
@ -184,7 +184,7 @@ const TASK_MAPPING = {
|
|||||||
use_vae_model: { name: 'VAE model',
|
use_vae_model: { name: 'VAE model',
|
||||||
setUI: (use_vae_model) => {
|
setUI: (use_vae_model) => {
|
||||||
const oldVal = vaeModelField.value
|
const oldVal = vaeModelField.value
|
||||||
use_vae_model = (use_vae_model === undefined || use_vae_model === null ? '' : use_vae_model)
|
use_vae_model = (use_vae_model === undefined || use_vae_model === null || use_vae_model === 'None' ? '' : use_vae_model)
|
||||||
|
|
||||||
if (use_vae_model !== '') {
|
if (use_vae_model !== '') {
|
||||||
use_vae_model = getModelPath(use_vae_model, ['.vae.pt', '.ckpt'])
|
use_vae_model = getModelPath(use_vae_model, ['.vae.pt', '.ckpt'])
|
||||||
@ -198,7 +198,7 @@ const TASK_MAPPING = {
|
|||||||
use_hypernetwork_model: { name: 'Hypernetwork model',
|
use_hypernetwork_model: { name: 'Hypernetwork model',
|
||||||
setUI: (use_hypernetwork_model) => {
|
setUI: (use_hypernetwork_model) => {
|
||||||
const oldVal = hypernetworkModelField.value
|
const oldVal = hypernetworkModelField.value
|
||||||
use_hypernetwork_model = (use_hypernetwork_model === undefined || use_hypernetwork_model === null ? '' : use_hypernetwork_model)
|
use_hypernetwork_model = (use_hypernetwork_model === undefined || use_hypernetwork_model === null || use_hypernetwork_model === 'None' ? '' : use_hypernetwork_model)
|
||||||
|
|
||||||
if (use_hypernetwork_model !== '') {
|
if (use_hypernetwork_model !== '') {
|
||||||
use_hypernetwork_model = getModelPath(use_hypernetwork_model, ['.pt'])
|
use_hypernetwork_model = getModelPath(use_hypernetwork_model, ['.pt'])
|
||||||
|
Loading…
Reference in New Issue
Block a user