mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-24 07:57:29 +08:00
SelectXDevice: use lowercase validate_inputs for V3 combo bypass
V3 io.ComfyNode subclasses use the lowercase `validate_inputs` hook for opting out of strict combo validation (execution.py line 862); the uppercase `VALIDATE_INPUTS` is the V1 spelling and is ignored on V3 nodes. The strict combo check at execution.py line 1025 is gated on `if x not in validate_function_inputs`, so renaming to `validate_inputs(cls, device='default')` lets unknown `gpu:N` values pass validation and fall through to the runtime fallback. Amp-Thread-ID: https://ampcode.com/threads/T-019e52b4-31ee-72cd-996b-64ecd9420e13 Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
parent
4e650055d0
commit
9ee1540882
@ -74,7 +74,7 @@ class SelectModelDeviceNode(io.ComfyNode):
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def VALIDATE_INPUTS(cls, device="default"):
|
||||
def validate_inputs(cls, device="default"):
|
||||
# Allow unknown gpu:N values so portable workflows do not error
|
||||
# at validation time; runtime fallback will handle them.
|
||||
return True
|
||||
@ -123,7 +123,7 @@ class SelectCLIPDeviceNode(io.ComfyNode):
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def VALIDATE_INPUTS(cls, device="default"):
|
||||
def validate_inputs(cls, device="default"):
|
||||
return True
|
||||
|
||||
@classmethod
|
||||
@ -172,7 +172,7 @@ class SelectVAEDeviceNode(io.ComfyNode):
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def VALIDATE_INPUTS(cls, device="default"):
|
||||
def validate_inputs(cls, device="default"):
|
||||
return True
|
||||
|
||||
@classmethod
|
||||
|
||||
Loading…
Reference in New Issue
Block a user