Closed Yupjun closed 1 year ago
Thanks for your interest on our work. Yes, it deepens on users to add a threshold. Besides, torch.clamp is also able to achieve your goal. Also, cv2.threshold(similarity_map, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU) can choose auto threshold for your need.
As you know, tensor activations tend to act noisy on unseen input image. So for the clarity of segmentation, it would be better if you use masking based on tensor values. Please check on Pull requests