Create controlnet_unit.py

This commit is contained in:
lllyasviel 2024-02-01 16:25:32 -08:00
parent aa324847ee
commit b347f9ae63

View File

@ -0,0 +1,19 @@
from dataclasses import dataclass
@dataclass
class ControlNetUnitGradioState:
enabled: bool = True
preprocessor_name: str = "None"
control_model_name: str = "None"
weight: float = 1.0
image = None
mask = None
resize_mode: str = "Crop and Resize"
processor_resolution: int = -1
slider_1: float = -1
slider_2: float = -1
guidance_start: float = 0.0
guidance_end: float = 1.0
pixel_perfect: bool = False
control_mode: str = "Balanced"