mirror of
https://github.com/THUDM/CogVideo.git
synced 2025-04-05 19:41:59 +08:00
[fix]fix typo in train_cogvideox_image_to_video_lora.py
This commit is contained in:
parent
21693ca770
commit
48ac9c1066
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user