mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-29 10:41:28 +00:00
Changes to handle a different DFE arch
This commit is contained in:
@@ -305,8 +305,11 @@ class SDTrainer(BaseSDTrainProcess):
|
||||
|
||||
# enable gradient checkpointing on the vae
|
||||
if vae is not None and self.train_config.gradient_checkpointing:
|
||||
vae.enable_gradient_checkpointing()
|
||||
vae.train()
|
||||
try:
|
||||
vae.enable_gradient_checkpointing()
|
||||
vae.train()
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
def process_output_for_turbo(self, pred, noisy_latents, timesteps, noise, batch):
|
||||
|
||||
Reference in New Issue
Block a user