Spaces:
Running
on
A100
Running
on
A100
File size: 697 Bytes
43c5292 |
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 29 30 31 32 33 34 35 36 |
from dataclasses import dataclass
from typing import Optional
from hyimage.common.config.lazy import DictConfig
@dataclass
class DiTConfig:
model: DictConfig
use_lora: bool = False
use_cpu_offload: bool = False
gradient_checkpointing: bool = False
load_from: Optional[str] = None
use_compile: bool = False
@dataclass
class VAEConfig:
model: DictConfig
load_from: str
cpu_offload: bool = False
enable_tiling: bool = False
@dataclass
class TextEncoderConfig:
model: DictConfig
load_from: str
prompt_template: Optional[str] = None
text_len: Optional[int] = None
@dataclass
class RepromptConfig:
model: DictConfig
load_from: str |