Hunyuan3D-1.0 / losses /loss_config.py
gokaygokay's picture
Upload 556 files
0324143 verified
raw
history blame
352 Bytes
from dataclasses import dataclass, field
from typing import List
@dataclass
class SingleLossConfig:
name: str
weight: float = 1.
init_params: dict = field(default_factory=dict)
visualize_every_k: int = -1
@dataclass
class LossesConfig:
diffusion_losses: List[SingleLossConfig]
lcm_losses: List[SingleLossConfig]