Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A question about HF2VAD #6

Open
tylgczq opened this issue Aug 25, 2022 · 1 comment
Open

A question about HF2VAD #6

tylgczq opened this issue Aug 25, 2022 · 1 comment

Comments

@tylgczq
Copy link

tylgczq commented Aug 25, 2022

Thank you for your great work, I have a question:

How to add sspcab to HF2VAD,can you send the modified code?

@tylgczq
Copy link
Author

tylgczq commented Aug 26, 2022

class up(nn.Module):
def init(self, in_ch, out_ch, bilinear=False, op="none"):
super(up, self).init()
self.bilinear = bilinear
self.op = op
if self.bilinear:
self.up = nn.Sequential(nn.Upsample(scale_factor=2, mode='bilinear', align_corners=True),
nn.Conv2d(in_ch, in_ch // 2, 1), )
else:
self.up = nn.ConvTranspose2d(in_channels=in_ch, out_channels=in_ch // 2, kernel_size=3, stride=2, padding=1,
output_padding=1)
assert op in ["concat", "none"]

    if op == "concat":
        self.conv = double_conv(in_ch, out_ch)
    else:
        self.conv = double_conv(out_ch, out_ch)

whether only need to modify the last piece of code? self.conv = double_conv(out_ch, out_ch) Add sspcab here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant