Skip to content

Commit f1b3cca

Browse files
committed
fixed bug in defining embed dim
1 parent 03c3f69 commit f1b3cca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/models/unets/unet_1d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def __init__(
101101
# time
102102
if time_embedding_type == "fourier":
103103
self.time_proj = GaussianFourierProjection(
104-
embedding_size=8, set_W_to_weight=False, log=False, flip_sin_to_cos=flip_sin_to_cos
104+
embedding_size=block_out_channels[0], set_W_to_weight=False, log=False, flip_sin_to_cos=flip_sin_to_cos
105105
)
106106
timestep_input_dim = 2 * block_out_channels[0]
107107
elif time_embedding_type == "positional":

0 commit comments

Comments
 (0)