Fix check for making sure vae is on the right device.
This commit is contained in:
1 parent
5123090f6c
commit
ff14cd6343
5 files changed
+8
-6
No files matched your search
@@ -608,7 +608,7 @@ class Wan21(BaseModel):
|
||||
if dtype is None:
|
||||
dtype = self.vae_torch_dtype
|
||||
|
||||
if self.vae.device == 'cpu':
|
||||
if self.vae.device == torch.device('cpu'):
|
||||
self.vae.to(device)
|
||||
self.vae.eval()
|
||||
self.vae.requires_grad_(False)
|
||||
|
||||
Reference in new issue
Block a user