Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
liyinshuo committed May 31, 2021
1 parent 367a5ff commit 7246772
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mmedit/datasets/pipelines/generate_assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ def _generate_one_heatmap(self, keypoint):
x_range = np.arange(start=0, stop=w, dtype=int)
y_range = np.arange(start=0, stop=h, dtype=int)
grid_x, grid_y = np.meshgrid(x_range, y_range)
dist = (grid_x - keypoint[0])**2 + (grid_y - keypoint[1])**2
exponent = dist / 2.0 / self.sigma / self.sigma
dist2 = (grid_x - keypoint[0])**2 + (grid_y - keypoint[1])**2
exponent = dist2 / 2.0 / self.sigma / self.sigma
heatmap = np.exp(-exponent)
return heatmap

Expand Down

0 comments on commit 7246772

Please sign in to comment.