DALI is really an amazing project for pre-processing, it greatly speed up the pre-processing speed in our production environment.
But, when we migrate the pre-processing code with PIL library to DALI, we found that there is no op can do Gaussian blur.
So, is there an approach to do Gaussian blur? If not, is there a plan to add the new operation?
Thanks!
Hi,
Currently there no such operator in DALI. We have that in our ToDo list (but we cannot commit to any particular date). However, we would be more than happy to review and accept any PR that would add such functionality.
We don't have an operator for that. Depending on your accuracy requirements, you could scale down and up again with Gaussian filter (INTERP_GAUSSIAN) - it's going to be approximate, but may be sufficient for some use cases.
Hi, we're looking into implementing the Gaussian Blur Operator. Can I ask you for your typical parameters like size of the filter that you use? Do you have other input data than 3-channel images? Are you interested in other filters as well?
Great! Below is the typical usage scenario.
```
class GaussianBlur(object):
def __init__(self, sigma=[.1, 2.]):
self.sigma = sigma
def __call__(self, x):
sigma = random.uniform(self.sigma[0], self.sigma[1])
x = x.filter(ImageFilter.GaussianBlur(radius=sigma))
return x```
The Gaussian Blur for CPU was merged with #2038. It should be available in nightly build soon or in the 0.24 release.
I'm now looking into GPU implementation.
Hi again,
the GaussianBlurGPU was merged last Friday and it should be available in both nightly and weekly builds of DALI. It will also be a part of 0.27 release.
Hi, @klecki thanks for your great work! We have tested the CPU implementation, it worked as expected.
Now, We will test the GPU implementation.
DALI 0.27 is available. It should address your request.
Most helpful comment
Hi, @klecki thanks for your great work! We have tested the CPU implementation, it worked as expected.
Now, We will test the GPU implementation.