kavyamusty / Shading-removal-of-images

65 stars 36 forks source link

Recommendations for performance optimization #1

Open divertingPan opened 3 years ago

divertingPan commented 3 years ago

The running time is a bit long when the photo is high-resolution. I try to use numba then it is greatly boosting. Example:

from numba import jit

@jit(nopython=True)
def max_filtering(N, I_temp):
    pass

@jit(nopython=True)
def min_filtering(N, A):
    pass

The running time (only processing, no loading and saving image time) is about 30 sec with numba, and 211 sec without numba, using 2976x3968 image by cellphone camera. Probably there are some better optimizing methods. I'm not skillful with numba.

bingo787 commented 8 months ago

too slow