first commit

This commit is contained in:
justumen
2024-07-06 12:05:16 +02:00
commit 643bf5d843
74 changed files with 1553 additions and 0 deletions

23
loop_schedulers.py Normal file
View File

@@ -0,0 +1,23 @@
import comfy
class LoopSchedulers:
@classmethod
def INPUT_TYPES(cls):
schedulers = ["ALL SCHEDULERS"] + list(comfy.samplers.KSampler.SCHEDULERS)
return {
"required": {
"scheduler": (schedulers,),
}
}
RETURN_TYPES = (comfy.samplers.KSampler.SCHEDULERS,)
RETURN_NAMES = ("scheduler",)
OUTPUT_IS_LIST = (True,)
FUNCTION = "create_loop_scheduler"
CATEGORY = "Bjornulf"
def create_loop_scheduler(self, scheduler):
if scheduler == "ALL SCHEDULERS":
return (list(comfy.samplers.KSampler.SCHEDULERS),)
else:
return ([scheduler],)