File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
denoising_diffusion_pytorch Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ def __init__(
240240 if has_attn :
241241 self .attn = Attention (
242242 dim = dim_out ,
243- heads = ceil (dim_out / attn_dim_head ),
243+ heads = max ( ceil (dim_out / attn_dim_head ), 2 ),
244244 dim_head = attn_dim_head ,
245245 mp_add_t = attn_res_mp_add_t ,
246246 flash = attn_flash
@@ -322,7 +322,7 @@ def __init__(
322322 if has_attn :
323323 self .attn = Attention (
324324 dim = dim_out ,
325- heads = ceil (dim_out / attn_dim_head ),
325+ heads = max ( ceil (dim_out / attn_dim_head ), 2 ),
326326 dim_head = attn_dim_head ,
327327 mp_add_t = attn_res_mp_add_t ,
328328 flash = attn_flash
Original file line number Diff line number Diff line change 1- __version__ = '1.10.2 '
1+ __version__ = '1.10.3 '
You can’t perform that action at this time.
0 commit comments