Connected components labeling in JAX for metrics #9214
Unanswered
pabloduque0
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi - sorry for the lack of response here. I don't know of any good answer to your question: I'm not aware of any JAX-compatible connected components routine, and because the algorithms for this are iterative in nature, I don't think they map well onto the XLA primitives that are available to JAX. That said, an implementation of |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Im looking into adding connected components labeling for one of my JAX programs. This is used for precision/recall for object label segmentation. Im fairly new to JAX so please correct me if anything of the following is not correct.
Bottom line is that I have not found a "jaxy" way of properly doing this (or calling something).
jax2tf.call_tf
would be one option to calltensorflow_addons.image.connected_components
but since it is a custom op that would not allow me tojit
this part (and since this sits in my metrics it would be a bummer to leave it out of the jitted part). Also this function only supports 4 way CCL.scipy.ndimage.measurements.label
,skimage.measure.label
oropencv
equivalent would leave me in a similar in a similar position without being able tojit
.Any thoughts/ideas?
Im happy to submit something to
jax.scipy.ndimage
to work as the equivalent ofscipy.ndimage.measurements.label
if I come with something that is worthy (and if there is interest for it).Thank you very much in advance!
Beta Was this translation helpful? Give feedback.
All reactions