Skip to content

Two bugs encountered #2

Description

@kaufManu

Great work - thanks a lot for this!

When using the code on some test images, I had to adjust the following pieces of code:

In Net.forward() after line 135 I added the statement

is_max = torch.unsqueeze(is_max, dim=0)

In Net.__init__() change line 79 to prevent a dimension mismatch as follows:

self.directional_filter.weight.data.copy_(torch.from_numpy(all_filters[:, None, ...]))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions