Files
Limitex-ComfyUI-Diffusers/src/domain/model/_lcm_lora.py
T
2025-11-23 22:59:05 +09:00

16 lines
455 B
Python

from dataclasses import dataclass
from typing import Any
@dataclass(frozen=True)
class LcmLora:
"""LCM LoRA weights for Stream Diffusion."""
weights: dict[str, Any]
def __post_init__(self) -> None:
if not isinstance(self.weights, dict):
raise ValueError(f"LCM LoRA weights must be a dict, got {type(self.weights).__name__}")
if not self.weights:
raise ValueError("LCM LoRA weights cannot be empty")