chore: fix typos

Signed-off-by: snoppy <michaleli@foxmail.com>
This commit is contained in:
snoppy 2024-06-21 09:52:02 +08:00
parent feee37d75f
commit 13f22974a4
No known key found for this signature in database
GPG key ID: 3BD0415EDC5AD262
6 changed files with 6 additions and 6 deletions

View file

@ -572,7 +572,7 @@ class LatentDiffusionV1(DDPMV1):
:param h: height
:param w: width
:return: normalized distance to image border,
wtith min distance = 0 at border and max dist = 0.5 at image center
with min distance = 0 at border and max dist = 0.5 at image center
"""
lower_right_corner = torch.tensor([h - 1, w - 1]).view(1, 1, 2)
arr = self.meshgrid(h, w) / lower_right_corner