fix encoding precision
This commit is contained in:
parent
a5b06b02ad
commit
ec298a1d64
2
nodes.py
2
nodes.py
@ -720,7 +720,7 @@ class MochiImageEncode:
|
|||||||
|
|
||||||
images = images.unsqueeze(0) * 2 - 1
|
images = images.unsqueeze(0) * 2 - 1
|
||||||
images = rearrange(images, "t b h w c -> t c b h w")
|
images = rearrange(images, "t b h w c -> t c b h w")
|
||||||
images = images.to(encoder.dtype).to(device)
|
images = images.to(device)
|
||||||
print(images.shape)
|
print(images.shape)
|
||||||
encoder.to(device)
|
encoder.to(device)
|
||||||
print("images before encoding", images.shape)
|
print("images before encoding", images.shape)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user