Skip to content

Commit

Permalink
Update train_util.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gesen2egee committed Feb 16, 2024
1 parent 5a506fd commit 2c51ab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/train_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,7 @@ def __getitem__(self, index):

images.append(image)
latents_list.append(latents)
if masks:
if mask:
masks.append(torch.tensor(mask))

target_size = (image.shape[2], image.shape[1]) if image is not None else (latents.shape[2] * 8, latents.shape[1] * 8)
Expand Down

0 comments on commit 2c51ab1

Please sign in to comment.