This commit is contained in:
aria1th
2025-10-19 16:50:40 +09:00
parent 9fc69cb6a5
commit 54bee29ced
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -315,7 +315,7 @@ class LogicGateOr:
CATEGORY = "Logic Gates"
custom_name = "AOrBGate"
def or_(self, input1, input2):
return (True if input1 and input2 else False,)
return (True if input1 or input2 else False,)
@node
class LogicGateEither:
"""
+4 -2
View File
@@ -39,5 +39,7 @@ def get_tags(image_path:Union[str, Image.Image], threshold:float = 0.4, replace:
result['tags'] = [replace_underscore(tag) for tag in result['tags']]
result['chars'] = [replace_underscore(tag) for tag in result['chars']]
return result
tagger_keys = list(tagger_model_names.keys())
try:
tagger_keys = list(tagger_model_names.keys())
except NameError:
tagger_keys = []