Skip to content

Commit

Permalink
follow algorithm 2
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Aug 18, 2022
1 parent 6eaf639 commit d03521c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bit_diffusion/bit_diffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ def ddpm_sample(self, shape):

# add the time delay

time_next += self.sample_time_delay
time_next = F.relu(time_next - self.sample_time_delay)

noise_cond = self.log_snr(time)

Expand Down Expand Up @@ -508,7 +508,7 @@ def ddim_sample(self, shape):

# add the time delay

times_next += self.sample_time_delay
times_next = F.relu(times_next - self.sample_time_delay)

x_start = self.model(img, log_snr, x_start)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name = 'bit-diffusion',
packages = find_packages(exclude=[]),
version = '0.0.7',
version = '0.0.9',
license='MIT',
description = 'Bit Diffusion - Pytorch',
author = 'Phil Wang',
Expand Down

0 comments on commit d03521c

Please sign in to comment.