Akegarasu / Akegarasu/lora-scripts

accelerate.accelerator.Accelerator.accumulate()

Open
#696 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
6.1k
Forks
699
PR merge metrics
No merged PRs in 30d

Description

When using this tool for SD dreambooth training, if stop_text_encoder_training is not set to None, the system may crash because * parsing list operation is used.
`with accelerator.accumulate(*training_models):`

you should set this training_models is a list.
```
if len(training_models) == 2:
training_models = [training_models[0]]
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.