Closed connorlee77 closed 4 years ago
/cc @ducha-aiki
@connorlee77 which version of kornia and pytorch do you use? I cannot reproduce your error and the notebook https://github.com/kornia/kornia-examples/blob/master/image-matching-example.ipynb works just fine for me.
I've been using the following:
kornia: 0.2.0 pytorch: 1.5.0.dev20200304 (the most recent nightly build)
@ducha-aiki is this an easy fix? which versions are you using?
I cannot reproduce your error, unfortunately :( are you running the notebook from kornia-examples and not your own images? One thing I could think of is that you could forget to make images grayscale
I'm running it right as is, right after I clone the repo. What versions of pytorch and kornia are you using?
Running on the example images.
Hey, so the issue seems to be the padding in the angular_smooth function of PatchDominantGradientOrientation. Instead of
self.angular_smooth = nn.Conv1d(1, 1, kernel_size=3, padding=2, bias=False, padding_mode="circular")
it should be
self.angular_smooth = nn.Conv1d(1, 1, kernel_size=3, padding=1, bias=False, padding_mode="circular")
You are right. It is working in pytorch 1.4.0, but not in nightly, as I have checked right now. Feel free to submit a PR with fix, or switch to 1.4.0
Will do!
returns this error message
RuntimeError Traceback (most recent call last)