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

two return value in class UnetBlock #30

Closed
Muzijiajian opened this issue Nov 7, 2018 · 2 comments
Closed

two return value in class UnetBlock #30

Muzijiajian opened this issue Nov 7, 2018 · 2 comments

Comments

@Muzijiajian
Copy link

As I check codes, I find that following codes in module.py file(https://github.com/jantic/DeOldify/blob/master/fasterai/modules.py)

def forward(self, up_p:int, x_p:int):
up_p = self.tr_conv(up_p)
x_p = self.x_conv(x_p)
x = torch.cat([up_p,x_p], dim=1)
x = self.relu(x)
return self.out(x)
return out

Why there is two return value in this function?

@jantic
Copy link
Owner

jantic commented Nov 7, 2018

Wow yeah not sure how I wound up doing that. Just a dumb mistake it appears. I'll remove it this afternoon.

@jantic
Copy link
Owner

jantic commented Nov 7, 2018

Ok done! Thanks for catching this.

@jantic jantic closed this as completed Nov 7, 2018
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

2 participants