Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
liyinshuo committed Jun 1, 2021
1 parent 7246772 commit 9ec1723
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion mmedit/datasets/pipelines/generate_assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def __init__(self, keypoint, ori_size, target_size, sigma=1.0):
self.keypoint = keypoint
self.sigma = sigma
self.target_size = target_size
self.ori_size = ori_size

def __call__(self, results):
"""Call function.
Expand Down Expand Up @@ -73,7 +74,8 @@ def _generate_one_heatmap(self, keypoint):
def __repr__(self):
return (f'{self.__class__.__name__}, '
f'keypoint={self.keypoint}, '
f'rate={self.rate}, target_size={self.target_size}, '
f'ori_size={self.ori_size}, '
f'target_size={self.target_size}, '
f'sigma={self.sigma}')


Expand Down
2 changes: 1 addition & 1 deletion tests/test_generate_assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def test_generate_heatmap():
assert repr(generate_heatmap) == (
f'{generate_heatmap.__class__.__name__}, '
f'keypoint={generate_heatmap.keypoint}, '
f'rate={generate_heatmap.rate}, '
f'ori_size={generate_heatmap.ori_size}, '
f'target_size={generate_heatmap.target_size}, '
f'sigma={generate_heatmap.sigma}')

Expand Down

0 comments on commit 9ec1723

Please sign in to comment.