Skip to content

Commit fc71e90

Browse files
committed
black
1 parent e70dee9 commit fc71e90

File tree

1 file changed

+1
-3
lines changed
  • src/refiners/foundationals/latent_diffusion/schedulers

1 file changed

+1
-3
lines changed

src/refiners/foundationals/latent_diffusion/schedulers/ddpm.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ def __call__(self, x: Tensor, noise: Tensor, step: int, generator: Generator | N
5656
else tensor(1, device=self.device)
5757
)
5858
current_factor = current_cumulative_factor / previous_cumulative_scale_factor
59-
estimated_denoised_data = (
60-
x - (1 - current_cumulative_factor) ** 0.5 * noise
61-
) / current_cumulative_factor**0.5
59+
estimated_denoised_data = (x - (1 - current_cumulative_factor) ** 0.5 * noise) / current_cumulative_factor**0.5
6260
estimated_denoised_data = estimated_denoised_data.clamp(-1, 1)
6361
original_data_coeff = (previous_cumulative_scale_factor**0.5 * (1 - current_factor)) / (
6462
1 - current_cumulative_factor

0 commit comments

Comments
 (0)