Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/diffusers/pipelines/unclip/pipeline_unclip.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def __call__(

# compute the previous noisy sample x_t -> x_t-1
decoder_latents = self.decoder_scheduler.step(
noise_pred, t, decoder_latents, prev_timestep=prev_timestep
noise_pred, t, decoder_latents, prev_timestep=prev_timestep, generator=generator
).prev_sample

decoder_latents = decoder_latents.clamp(-1, 1)
Expand Down Expand Up @@ -348,7 +348,7 @@ def __call__(

# compute the previous noisy sample x_t -> x_t-1
super_res_latents = self.super_res_scheduler.step(
noise_pred, t, super_res_latents, prev_timestep=prev_timestep
noise_pred, t, super_res_latents, prev_timestep=prev_timestep, generator=generator
).prev_sample

image = super_res_latents
Expand Down
16 changes: 8 additions & 8 deletions tests/pipelines/unclip/test_unclip.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,15 +233,15 @@ def test_unclip(self):

expected_slice = np.array(
[
0.0009,
0.0011,
0.0002,
0.9962,
0.9940,
0.0002,
0.9997,
0.0003,
0.9991,
0.9967,
0.0003,
0.9997,
0.0003,
0.0004,
0.9987,
0.9989,
]
)

Expand All @@ -261,7 +261,7 @@ def tearDown(self):
def test_unclip_karlo(self):
expected_image = load_numpy(
"https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main"
"/karlo_v1_alpha/horse.npy"
"/unclip/karlo_v1_alpha_horse.npy"
)

pipeline = UnCLIPPipeline.from_pretrained("kakaobrain/karlo-v1-alpha")
Expand Down