tidy(nodes): move cnet mode literals to utils

Now they can be used in type signatures without circular imports.
This commit is contained in:
psychedelicious
2024-04-25 11:26:04 +10:00
parent 3207822738
commit 5b8f77f990
4 changed files with 10 additions and 10 deletions

View File

@ -7,6 +7,13 @@ from controlnet_aux.util import HWC3
from diffusers.utils import PIL_INTERPOLATION
from einops import rearrange
from PIL import Image
CONTROLNET_RESIZE_VALUES = Literal[
"just_resize",
"crop_resize",
"fill_resize",
"just_resize_simple",
]
CONTROLNET_MODE_VALUES = Literal["balanced", "more_prompt", "more_control", "unbalanced"]
###################################################################
# Copy of scripts/lvminthin.py from Mikubill/sd-webui-controlnet