From b5d3df18c3a56699a3658ad58a02d4494836972f Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 21 Jun 2023 21:46:15 +0200 Subject: Update --- training/functional.py | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'training/functional.py') diff --git a/training/functional.py b/training/functional.py index f68faf9..3c7848f 100644 --- a/training/functional.py +++ b/training/functional.py @@ -348,7 +348,6 @@ def loss_step( guidance_scale: float, prior_loss_weight: float, seed: int, - offset_noise_strength: float, input_pertubation: float, disc: Optional[ConvNeXtDiscriminator], min_snr_gamma: int, @@ -377,16 +376,6 @@ def loss_step( ) applied_noise = noise - if offset_noise_strength != 0: - applied_noise = applied_noise + offset_noise_strength * perlin_noise( - latents.shape, - res=1, - octaves=4, - dtype=latents.dtype, - device=latents.device, - generator=generator, - ) - if input_pertubation != 0: applied_noise = applied_noise + input_pertubation * torch.randn( latents.shape, @@ -751,7 +740,6 @@ def train( global_step_offset: int = 0, guidance_scale: float = 0.0, prior_loss_weight: float = 1.0, - offset_noise_strength: float = 0.01, input_pertubation: float = 0.1, disc: Optional[ConvNeXtDiscriminator] = None, schedule_sampler: Optional[ScheduleSampler] = None, @@ -814,7 +802,6 @@ def train( guidance_scale, prior_loss_weight, seed, - offset_noise_strength, input_pertubation, disc, min_snr_gamma, -- cgit v1.2.3-70-g09d2