Skip to content

Commit

Permalink
Merge pull request #26 from will-rice/wr-sane-lengths
Browse files Browse the repository at this point in the history
Add support for sane sizes 16000, 32000, etc.
  • Loading branch information
will-rice committed May 11, 2024
2 parents 6904804 + b8c9eef commit 308dea1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion denoisers/modeling/unet1d/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def forward(self, inputs: Tensor) -> Tensor:
out = self.middle(out)

for skip, layer in zip(reversed(skips), self.decoder_layers):
out = layer(out + skip)
out = layer(out[..., : skip.size(-1)] + skip)

out = torch.concat([out, inputs], dim=1)
out = self.out_conv(out)
Expand Down
2 changes: 1 addition & 1 deletion denoisers/modeling/waveunet/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def forward(self, inputs: Tensor) -> Tensor:
out = self.middle(out)

for skip, layer in zip(reversed(skips), self.decoder_layers):
out = torch.concat([out, skip], dim=1)
out = torch.concat([out[..., : skip.size(-1)], skip], dim=1)
out = layer(out)

out = torch.concat([out, inputs], dim=1)
Expand Down

0 comments on commit 308dea1

Please sign in to comment.