Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
deltheil committed Oct 21, 2023
1 parent 98eded0 commit 87609bd
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ def __call__(self, x: Tensor, noise: Tensor, step: int, generator: Generator | N
else tensor(1, device=self.device)
)
current_factor = current_cumulative_factor / previous_cumulative_scale_factor
estimated_denoised_data = (
x - (1 - current_cumulative_factor) ** 0.5 * noise
) / current_cumulative_factor**0.5
estimated_denoised_data = (x - (1 - current_cumulative_factor) ** 0.5 * noise) / current_cumulative_factor**0.5
estimated_denoised_data = estimated_denoised_data.clamp(-1, 1)
original_data_coeff = (previous_cumulative_scale_factor**0.5 * (1 - current_factor)) / (
1 - current_cumulative_factor
Expand Down

0 comments on commit 87609bd

Please sign in to comment.