Replies: 2 comments 2 replies
-
Hi @Nakilon, Int convolutions should be quite a bit quicker. I see:
ie. a basic 3x3 sharpening mask, then with a 10k x 10k image:
Down from 5s of CPU to 1.7s. Real time doesn't change on a tiny benchmark like this, you'd need to do something more complex for it to show up. If The |
Beta Was this translation helpful? Give feedback.
-
Int precision convolution doesn't work for large masks -- it'll fall back to the vanilla C path. You can see what it's doing with eg.:
For very large masks you might be faster with an FFT. Convolution starts to become extremely slow. Could you possibly combine the results of two 1D masks? That would help too. |
Beta Was this translation helpful? Give feedback.
-
I just wanted to run
conv
faster (willing to use mask 100x100 or even bigger -- need the gradient to go far).image: https://drive.google.com/file/d/1TlRKhZdWZpbKIEXTj4sOxV5HkdjDou40/view
UPD: oh, I got it. Because it's higher than 255.
P.S.: the
:integer
precision is too low. Have to use default (:float
?), takes long. With mask 30x30 changingcluster:
from 5 to even 100 does not seem to have any impact.Beta Was this translation helpful? Give feedback.
All reactions