forked from asagi4/comfyui-prompt-control
-
Notifications
You must be signed in to change notification settings - Fork 0
/
__init__.py
28 lines (24 loc) · 946 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import os
import sys
import logging
log = logging.getLogger("comfyui-prompt-control")
logging.basicConfig()
if os.environ.get("COMFYUI_PC_DEBUG"):
log.setLevel(logging.DEBUG)
else:
log.setLevel(logging.INFO)
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), "comfy"))
from .prompt_control.node_clip import EditableCLIPEncode, ScheduleToCond
from .prompt_control.node_lora import LoRAScheduler, ScheduleToModel
from .prompt_control.node_other import ConditioningCutoff, JinjaRender, PromptToSchedule, FilterSchedule, StringConcat
NODE_CLASS_MAPPINGS = {
"PromptToSchedule": PromptToSchedule,
"FilterSchedule": FilterSchedule,
"ScheduleToCond": ScheduleToCond,
"ScheduleToModel": ScheduleToModel,
"JinjaRender": JinjaRender,
"StringConcat": StringConcat,
"EditableCLIPEncode": EditableCLIPEncode,
"LoRAScheduler": LoRAScheduler,
"ConditioningCutoff": ConditioningCutoff,
}