Merge pull request #603 from Gforky/fix-demo-issue

[fix]fix typo in train_cogvideox_image_to_video_lora.py
This commit is contained in:
Yuxuan.Zhang 2024-12-15 22:00:41 +08:00 committed by GitHub
commit 46098f446b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1246,11 +1246,11 @@ def main(args):
use_deepspeed_optimizer = (
accelerator.state.deepspeed_plugin is not None
and accelerator.state.deepspeed_plugin.deepspeed_config.get("optimizer", "none").lower() == "none"
and accelerator.state.deepspeed_plugin.deepspeed_config.get("optimizer", "none").lower() != "none"
)
use_deepspeed_scheduler = (
accelerator.state.deepspeed_plugin is not None
and accelerator.state.deepspeed_plugin.deepspeed_config.get("scheduler", "none").lower() == "none"
and accelerator.state.deepspeed_plugin.deepspeed_config.get("scheduler", "none").lower() != "none"
)
optimizer = get_optimizer(args, params_to_optimize, use_deepspeed=use_deepspeed_optimizer)