Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions model/waveunet.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ def forward(self, x, shortcut):
combined = centre_crop(shortcut, upsampled)

# Combine high- and low-level features
combined = torch.cat([combined, centre_crop(upsampled, combined)], dim=1)
for conv in self.post_shortcut_convs:
combined = conv(torch.cat([combined, centre_crop(upsampled, combined)], dim=1))
combined = conv(combined)
return combined

def get_output_size(self, input_size):
Expand Down Expand Up @@ -230,4 +231,4 @@ def forward(self, x, inst=None):
out_dict = {}
for idx, inst in enumerate(self.instruments):
out_dict[inst] = out[:, idx * self.num_outputs:(idx + 1) * self.num_outputs]
return out_dict
return out_dict