Skip to content

Two bugs encountered #2

@kaufManu

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, ...]))

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