Spaces:
Running on Zero
Running on Zero
File size: 663 Bytes
3c58630 | 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 | from __future__ import annotations
from dataclasses import dataclass
@dataclass(frozen=True)
class DiffusionConfig:
# JiT-style continuous-time sampling for t.
P_mean: float = -0.8
P_std: float = 0.8
t_eps: float = 5e-2
noise_scale: float = 1.0
# Classifier-free guidance.
label_drop_prob: float = 0.1
cfg_scale: float = 1.0
cfg_interval_min: float = 0.0
cfg_interval_max: float = 1.0
# First-frame velocity-only guidance.
vel_cfg_scale: float = 1.0
vel_cfg_interval_min: float = 0.0
vel_cfg_interval_max: float = 1.0
# Sampling.
sampling_method: str = "heun"
num_sampling_steps: int = 50
|