Fix pre-commit issues: remove trailing whitespace and modernize type hints
Co-authored-by: hsliuustc0106 <222337142+hsliuustc0106@users.noreply.github.com>
This commit is contained in:
1 parent
53a387762e
commit
31187ff519
3 files changed
+31
-32
No files matched your search
@@ -112,7 +112,7 @@ def initialize_model(
|
||||
vae = model.vae
|
||||
elif hasattr(model, "pipe") and hasattr(model.pipe, "vae"):
|
||||
vae = model.pipe.vae
|
||||
|
||||
|
||||
if vae is not None:
|
||||
if hasattr(vae, "use_slicing"):
|
||||
vae.use_slicing = od_config.vae_use_slicing
|
||||
|
||||
Reference in new issue
Block a user