Applying NMS Filter to BlazeUtils and HandDetection
I would like to detect two hands (1 right and 1 left) but as the existing Hand Detection model only has detection for a singular hand (filter via ArgMax on the scores). I have been attempting to update HandDetection.cs to replace the filter currently used (ArgMax) to the NMS filter used in Face Detection as per a response on a different linked discussion (https://huggingface.co/unity/sentis-blaze-hand/discussions/3#6756f5b70fef6dcc43585702), but the function to call the NMS filter includes additional inputs previously not used with the ArgMax filter calculation (specifically, referring to the anchors).
I was under the impression that the anchors would only be necessary for the Face Detection (since they're not used in the original implementation of the Hand Detection) and wanted to ask what to do with the anchors in the NMS filter approach. Are the nmsboxes used in the Functional.NMS call in BlazeUtils.cs line 79 of Blaze Face and the associated calculations involving the anchors required to change the filtering approach in order to have multiple hands be available? I also was looking into changing the method used to use TopK instead of ArgMax in order to specify a number of hands based off of filtering scores via a TopK approach instead but wanted to investigate the NMS filtering approach first.