[Feature Request] Wishlist
Closed this issue · 8 comments
-
Support batch and channels
nnMorpho/CUDA/morphology_cuda.cu
Lines 26 to 27 in c3281c0
-
Support AMP/FP16
nnMorpho/CUDA/morphology_cuda.cu
Lines 20 to 21 in c3281c0
Definitely. I will work on this soon.
The last release (version 1.1.0) supports batchs and channels.
Regarding the AMP/FP16, I will work on it soon, but I am not familiar with the concept, so I don't know how much time it will take.
Are you interested on other features?
By the way, can you tell me for which purpose are you using nnMorpho? I am curious :-)
In my case, I am developping it for image processing of music spectrograms. I work in the IRCAM in Paris for the STMS lab.
Lastly, can you tell me which modules are you using? For the moment, operations.py is working good but functions.py does not backpropagate gradients correctly.
I'm currently using the functions (apply) and testing out morphology as a segmentation mask post processing step.
Will test out the new version soon, thanks!
Edit:
tried switching to operations but I'm not getting any gradients...
Also perhaps erosion and dilation code can be combined? since erode(x) == -dilate(-x)
and vice versa.
Operations doesn't have gradients, this is why I created functions. Currently functions doesn't work properly in batched color images since the gradients I get are not the ones I am supposed to get.
I will try to correct this soon; I am working on it now but I don't understand why it doesn't work properly.
I will update when functions will work.
Regarding combining erosion and dilation, it is a good idea, I will work on it when possible.
Also noticing that when doing opening and closing, only the latter operation/strel gets gradients
I will work now on the functions apply such that the gradients will work properly
I will open issues for each of your requests such that the information will be more modularized