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 2c51ab1 commit c41ce75
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/train_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1364,8 +1364,7 @@ def __getitem__(self, index):

images.append(image)
latents_list.append(latents)
if mask:
masks.append(torch.tensor(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 c41ce75

Please sign in to comment.