mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-01-26 16:39:47 +00:00
Added initial support for Hidream E1 training
This commit is contained in:
@@ -1019,7 +1019,7 @@ class BaseModel:
|
||||
image_list[i] = Resize((image.shape[1] // VAE_SCALE_FACTOR * VAE_SCALE_FACTOR,
|
||||
image.shape[2] // VAE_SCALE_FACTOR * VAE_SCALE_FACTOR))(image)
|
||||
|
||||
images = torch.stack(image_list)
|
||||
images = torch.stack(image_list).to(device, dtype=dtype)
|
||||
if isinstance(self.vae, AutoencoderTiny):
|
||||
latents = self.vae.encode(images, return_dict=False)[0]
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user