This commit is contained in:
Inoland
2025-10-24 23:10:35 +04:00
parent 19a242f541
commit edfa4ebfce
2 changed files with 10 additions and 3 deletions
+10 -1
View File
@@ -12,6 +12,8 @@ from comfy_extras.nodes_flux import FluxGuidance
from comfy.samplers import SAMPLER_NAMES, SCHEDULER_NAMES
from ..node_helper import any_typ
default_bool = ["unset", "true", "false"]
sampler_names = ["unset"] + SAMPLER_NAMES
scheduler_names = ["unset"] + SCHEDULER_NAMES
@@ -495,6 +497,7 @@ class InoLoadSamplerModels:
return {
"required": {
"enabled": ("BOOLEAN", {"default": True, "label_off": "OFF", "label_on": "ON"}),
"execute": (any_typ,),
"model_config": ("STRING", {
"multiline": True,
}),
@@ -525,7 +528,7 @@ class InoLoadSamplerModels:
CATEGORY = "InoSamplerHelper"
def function(
self,enabled,
self, enabled, execute,
model_config,
lora_1_config, lora_2_config, lora_3_config, lora_4_config,
clip_device,
@@ -534,6 +537,12 @@ class InoLoadSamplerModels:
if not enabled:
return (None, None, None, None, None, )
if execute is None:
return (None, None, None, None, None, )
if not execute:
return (None, None, None, None, None, )
load_json = InoJsonHelper.string_to_dict(model_config)
if not load_json["success"]:
return (None, None, None, None, None,)
-2
View File
@@ -39,7 +39,5 @@ app.registerExtension({
},
async setup() {
// to keep Set/Get node virtual connections visible when offscreen
alert("Setup complete!")
}
});