Hi @ajaichemmanam , this is a great script you have made, thank you!
I just noticed it was taking some time to set portions of heatmap where person is not present to -1 due to the loop through mask tensor elements.
I repaced this loop with element-wise OR and NOT on the mask tensor to get a numpy array that could index and replace the appropriate values in heatmap with -1.
Hi @ajaichemmanam , this is a great script you have made, thank you!
I just noticed it was taking some time to set portions of heatmap where person is not present to -1 due to the loop through mask tensor elements. I repaced this loop with element-wise OR and NOT on the mask tensor to get a numpy array that could index and replace the appropriate values in heatmap with -1.