"docs/zh_cn/git@developer.sourcefind.cn:OpenDAS/mmcv.git" did not exist on "0a2f60ba0198f8d567b536313bfba329588f9c3f"
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