Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
liuwenran committed Aug 21, 2023
1 parent 0fb4a67 commit 196032c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mmagic/structures/data_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,11 @@ def set_gt_label(
self.gt_label = label
return self

def set_gt_prompt(self, value: Union[str, Sequence[str]]) -> 'DataSample':
"""Set label of ``gt_label``."""
self.prompt = value
return self

@property
def gt_label(self):
"""This the function to fetch gt label.
Expand Down

0 comments on commit 196032c

Please sign in to comment.