Skip to content

Commit

Permalink
don't forget the vae scaling factor
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherjesse committed Nov 6, 2023
1 parent 2ff1ce5 commit 9d00e19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ def predict(
if consistency_decoder:
print("Running consistency decoder...")
start = time.time()
sample = self.consistency_decoder(sample.unsqueeze(0))
sample = self.consistency_decoder(
sample.unsqueeze(0) / self.pipe.vae.config.scaling_factor
)
print("Consistency decoder took", time.time() - start, "seconds")
save_image(sample, output_path)
else:
Expand Down

0 comments on commit 9d00e19

Please sign in to comment.