process image
This commit is contained in:
parent
7ac909d62a
commit
cc81901054
|
@ -961,5 +961,6 @@ class LatentDiffusion(DiffusionPipeline):
|
|||
image = 1 / 0.18215 * image
|
||||
image = self.vqvae.decode(image)
|
||||
image = torch.clamp((image+1.0)/2.0, min=0.0, max=1.0)
|
||||
image = 255. * image
|
||||
|
||||
return image
|
||||
|
|
Loading…
Reference in New Issue