Skip to content

Commit

Permalink
Allow 1D masks for 1D latents.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Nov 11, 2024
1 parent 2d28b0b commit eb476e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions comfy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@ def reshape_mask(input_mask, output_shape):
dims = len(output_shape) - 2

if dims == 1:
mask = input_mask
scale_mode = "linear"

if dims == 2:
Expand Down

0 comments on commit eb476e6

Please sign in to comment.