This repository has been archived on 2026-10-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
imagelab_v3_extension/parameters.py
T

28 lines
664 B
Python

"""
Shared type definitions for workflows.
Keep all reusable parameter types here.
"""
from pydantic import BaseModel
from typing import List, Optional
class LoraParameters(BaseModel):
strength_model: float = 1.0
strength_clip: float = 1.0
class Lora(BaseModel):
apiName: str
disabled: bool = False
parameters: LoraParameters = LoraParameters()
class ControlnetParameters(BaseModel):
strength: float = 1.0
start_percent: float = 0.0
end_percent: float = 1.0
class Controlnet(BaseModel):
apiName: str
disabled: bool = False
parameters: ControlnetParameters = ControlnetParameters()
# Add more shared types as needed