peal.editors.ddpm_inversion.DDPMInversionConfig¶
- class peal.editors.ddpm_inversion.DDPMInversionConfig[source]¶
Bases:
EditorConfigSettings of the edit-friendly DDPM inversion editor.
Consumed by
peal.dependencies.ddpm_inversion.ddpm_inversion.DDPMInversionand byStableDiffusion.initializeinpeal.generators.stable_diffusion_generator, which overridescfg_scale_srcandcfg_scale_tarfrom the explainer config.- Parameters:
editor_type (
str) – Registry name of the editor,"DDPMInversion".model_id (
str) – Hugging Face id of the Stable Diffusion pipeline that is inverted.generator_type (
str) – Name under which the editor is registered as a generator.base_path (
str) – Directory for the editor’s outputs.num_diffusion_steps (
int) – Number of scheduler timesteps used for inversion and re-synthesis.cfg_scale_src (
float) – Classifier-free guidance scale during the forward (inversion) pass.cfg_scale_tar (
float) – Classifier-free guidance scale during the reverse (editing) pass.eta (
float) – DDIMeta;1.0gives the fully stochastic DDPM sampler the edit-friendly inversion is built on.mode (
str) – Editing mode of the original inversion CLI (our_inv,p2pinv,p2pddimorddim). The vendored editor does not read it.skip (
int) – Number of the noisiest steps that are skipped: the reverse pass starts fromwts[num_diffusion_steps - skip]and reuses the firstnum_diffusion_steps - skipstored noise maps.xa (
float) – Cross- and self-attention replacement fractions of the prompt-to-prompt modes. Not read by the vendored editor.sa (
float) – Cross- and self-attention replacement fractions of the prompt-to-prompt modes. Not read by the vendored editor.data (
DataConfigorNone) – Data config whosenormalization(mean, std) the editor uses to map predictor-space images to[0, 1]and back.
Methods
Attributes
- data: None | DataConfig = None¶