How to create heatmap by given coordinates in pytorch

Given a list of 28 key point’s coordinates from a landmark detection model. Could anyone suggest any method of how to generate a gaussian heat map for each key point?
The purpose is to comparing the heat maps later on.

Check this discussion out: How to create heatmap by given coordinates in mat file in pytorch