mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-03 13:05:07 -05:00
ruff complained
This commit is contained in:
@@ -45,9 +45,7 @@ class FluxVaeEncodeInvocation(BaseInvocation):
|
||||
with vae_info as vae:
|
||||
assert isinstance(vae, AutoEncoder)
|
||||
vae_dtype = next(iter(vae.state_dict().items()))[1].dtype
|
||||
image_tensor = image_tensor.to(
|
||||
device=TorchDevice.choose_torch_device(), dtype=vae_dtype
|
||||
)
|
||||
image_tensor = image_tensor.to(device=TorchDevice.choose_torch_device(), dtype=vae_dtype)
|
||||
latents = vae.encode(image_tensor, sample=True, generator=generator)
|
||||
return latents
|
||||
|
||||
|
||||
Reference in New Issue
Block a user