mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-07 09:42:09 -08:00
fix for #6700
This commit is contained in:
parent
e452facef4
commit
11183b4d90
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ class PersonalizedBase(Dataset):
|
|||
weight /= weight.mean()
|
||||
elif use_weight:
|
||||
#If an image does not have a alpha channel, add a ones weight map anyway so we can stack it later
|
||||
weight = torch.ones([channels] + latent_size)
|
||||
weight = torch.ones(latent_sample.shape)
|
||||
else:
|
||||
weight = None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue