fix: make external lora and checkpoint wildcard
This commit is contained in:
parent
4f1a80fb64
commit
e0eae1068b
@ -5,6 +5,12 @@ import torch
|
||||
import folder_paths
|
||||
from tqdm import tqdm
|
||||
|
||||
class AnyType(str):
|
||||
def __ne__(self, __value: object) -> bool:
|
||||
return False
|
||||
|
||||
WILDCARD = AnyType("*")
|
||||
|
||||
class ComfyUIDeployExternalCheckpoint:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
@ -20,7 +26,7 @@ class ComfyUIDeployExternalCheckpoint:
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = (folder_paths.get_filename_list("checkpoints"),)
|
||||
RETURN_TYPES = (WILDCARD,)
|
||||
RETURN_NAMES = ("path",)
|
||||
|
||||
FUNCTION = "run"
|
||||
|
@ -4,6 +4,11 @@ import numpy as np
|
||||
import torch
|
||||
import folder_paths
|
||||
|
||||
class AnyType(str):
|
||||
def __ne__(self, __value: object) -> bool:
|
||||
return False
|
||||
|
||||
WILDCARD = AnyType("*")
|
||||
|
||||
class ComfyUIDeployExternalLora:
|
||||
@classmethod
|
||||
@ -20,7 +25,7 @@ class ComfyUIDeployExternalLora:
|
||||
},
|
||||
}
|
||||
|
||||
RETURN_TYPES = (folder_paths.get_filename_list("loras"),)
|
||||
RETURN_TYPES = (WILDCARD,)
|
||||
RETURN_NAMES = ("path",)
|
||||
|
||||
FUNCTION = "run"
|
||||
|
Loading…
x
Reference in New Issue
Block a user