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

fix: activation for last layer of UNet2D #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hardik01shah
Copy link

@hardik01shah hardik01shah commented Aug 3, 2024

Softmax was being applied by default to the output of the Last2D block, and the softmax argument in the forward method was unused.
Fixed it to use the argument to append a softmax layer only when the argument is True.

Last2D expects wrong input channels, only works when conv depths are multiplied by 2 at each depth. Fixed it to work when this condition does not hold.

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

Successfully merging this pull request may close these issues.

1 participant