Describe the feature and the current behavior/state.
Recover Spatial Soft-argmax from contrib + scale adaptive extension
Relevant information
Which API type would this fall under (layer, metric, optimizer, etc.)
layer
Who will benefit with this feature?
Any application that requires heatmap based keypoints/landmarks regression
Any other info.
I can take a look at this in the weekend if you guys still need help?
@shreyashpatodia How do you want to organize the scale parameter API? With the scale adaptable extension the spatial soft argmax ops need to work inside ROI windows in every channel.
It partially relate on how we want to design basic keypoints<->heatmap ops. See https://github.com/tensorflow/addons/issues/1366
I think that something like tf.image.crop_to_bounding_box but that works with a batch of offsets it is needed as parameter to work with Scales.
Probably the ROIs could be formulated like boxes in tf.image.draw_bounding_boxes
@shreyashpatodia Do you plan to make a PR?
@gabrieldemarmiesse @seanpmorgan Do you remember why we lost the tf.contrib version in the migration? In the table I see:
One OSS project found / Needs refactored as base Layer subclass / Uses get_variable_collections
@gabrieldemarmiesse @seanpmorgan Do you remember why we lost the
tf.contribversion in the migration? In the table I see:One OSS project found / Needs refactored as base Layer subclass / Uses get_variable_collections
Just means there wasn't enough OSS usage to justify moving it. During the RFC period all candidates to be dropped were welcome to be picked up if there was community support, but no one did for spatial_softmax. Happy to review a PR for it, but the tf.contrib version used variable scoping etc. so there are some changes to be made.
What do you think about the Google version that I mentioned early in this ticket?
I was looking at pytorch.vision API signature for max pooling and I think that we could have a quite similar API interface for roi spatial soft-max.
Also boxes and box_indices params design in Tensorflow API crop_and_resize could be ok.
I would close this tomorrow but if someone is still interested in this topic I will just unsubscribe to the ticket. Let me know.
EDIT:
I postpone the decision to the next week
/cc @tanzhenyu Just in the case we want to have this migrated in the keypoints perimeter for the new keras-cv.
Most helpful comment
I can take a look at this in the weekend if you guys still need help?