Allow DFE to not have a VAE
This commit is contained in:
1 parent
860d892214
commit
c083a0e5ea
2 files changed
+10
-6
No files matched your search
@@ -197,7 +197,10 @@ class SDTrainer(BaseSDTrainProcess):
|
||||
flush()
|
||||
|
||||
if self.train_config.diffusion_feature_extractor_path is not None:
|
||||
self.dfe = load_dfe(self.train_config.diffusion_feature_extractor_path)
|
||||
vae = None
|
||||
if self.model_config.arch != "flux":
|
||||
vae = self.sd.vae
|
||||
self.dfe = load_dfe(self.train_config.diffusion_feature_extractor_path, vae=vae)
|
||||
self.dfe.to(self.device_torch)
|
||||
self.dfe.eval()
|
||||
|
||||
|
||||
Reference in new issue
Block a user