-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add GaussianMixtureMask transform #1661
Comments
Hi can I work on this? Also can you mention more details about the issue? |
Yes of course :) Give me one sec to add some more info. |
Hi @eleensmathew did you already have time to look into this? |
Sorry but i became busy. Feel free to unassign me from this issue. |
Hello this actually looks a little interesting. Am I correct in assuming that we have to implement this one ourself ? |
Then I'd like to work on this. But is it okay if I take my time with this because I am going to be having my exams soon ? |
Of course, no problem |
Hey @guarin def gaussian_kernel(size, sigma, center, device='cpu'):
u, v = torch.meshgrid(torch.arange(0, size[0], device=device), torch.arange(0, size[1], device=device))
u0, v0 = center
gaussian = torch.exp(- ((u - u0) ** 2 / (2 * sigma[0] ** 2) + (v - v0) ** 2 / (2 * sigma[1] ** 2)))
return gaussian |
I would Like to work on this issue , if it is not assigned to anyone . |
@snehilchatterjee this looks great! Do you have time to create a PR for it? And do you have examples of the image getting blurrier with increasing augmentation strength? Then we could check if it really is the same as in the paper. @JanumalaAkhilendra let's check if @snehilchatterjee would like to create the PR as he has already been working on the issue. We also have many other good first issues: https://github.com/lightly-ai/lightly/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22 |
Yes I will create a PR for it soon. And I will also send some example images shortly. |
Hi @guarin, during further testing, I noticed that the mask generated by my approach doesn’t match the one produced by their method. Additionally, my results appear to be darker. I will investigate this issue further and get back to you soon. |
See #1646 for information
The text was updated successfully, but these errors were encountered: