Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"TypeError: get_cosine_schedule_with_warmup() got an unexpected keyword argument 'num_decay_steps'" Error occurs in dev branch #1651

Closed
tatamizu opened this issue Sep 29, 2024 · 1 comment

Comments

@tatamizu
Copy link

When I run training on the dev branch, I get this error

Traceback (most recent call last):
File "G:\SD_Training\dev_version\sd-scripts\sdxl_train_network.py", line 185, in
trainer.train(args)
File "G:\SD_Training\dev_version\sd-scripts\train_network.py", line 395, in train
lr_scheduler = train_util.get_scheduler_fix(args, optimizer, accelerator.num_processes)
File "G:\SD_Training\dev_version\sd-scripts\library\train_util.py", line 4513, in get_scheduler_fix
return schedule_func(
TypeError: get_cosine_schedule_with_warmup() got an unexpected keyword argument 'num_decay_steps'

Reinstalling did not solve the problem.

@kohya-ss
Copy link
Owner

Sorry, I've fixed this on dev branch too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants