fix: make external lora and checkpoint wildcard

This commit is contained in:
bennykok 2024-07-26 17:39:40 -07:00
parent 4f1a80fb64
commit e0eae1068b
2 changed files with 13 additions and 2 deletions

View File

@ -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"

View File

@ -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"