scripts.data_preparation.prepare_hifacegan_dataset¶
- class scripts.data_preparation.prepare_hifacegan_dataset.DegradationSimulator[source]¶
Bases:
object
Generating training/testing data pairs on the fly. The degradation script is aligned with HiFaceGAN paper settings.
- Parameters:
opt (str | op) – Config for degradation script, with degradation type and parameters
ia.augmentors (Custom degradation is possible by passing an inherited class from) –