"vscode:/vscode.git/clone" did not exist on "279f744ce560818544a018b21c126ce18dc41d86"
Unverified Commit 1d1f648c authored by Leon Lin's avatar Leon Lin Committed by GitHub
Browse files

fix dreambooth attention mask (#3541)

parent 67cf0445
......@@ -681,6 +681,7 @@ def collate_fn(examples, with_prior_preservation=False):
}
if has_attention_mask:
attention_mask = torch.cat(attention_mask, dim=0)
batch["attention_mask"] = attention_mask
return batch
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment