Skip to content

Commit

Permalink
fix bug caused by taking length of itertools.pairwise() (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssenan committed Jun 6, 2024
1 parent 6530de4 commit 74dc742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dnadiffusion/models/unet.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(
self.init_conv = nn.Conv2d(input_channels, init_dim, (7, 7), padding=3)
dims = [init_dim, *(dim * m for m in dim_mults)]

in_out = itertools.pairwise(dims)
in_out = list(zip(dims[:-1], dims[1:]))
block_klass = partial(ResnetBlock, groups=resnet_block_groups)

# time embeddings
Expand Down

0 comments on commit 74dc742

Please sign in to comment.