Skip to content

Commit

Permalink
Fix tabular printing of dataset information (#53)
Browse files Browse the repository at this point in the history
Co-authored-by: linyiqi <linyq29@gmail.com>
  • Loading branch information
LiangYang666 and linyq17 committed Mar 30, 2022
1 parent 8d6bf1d commit ef7116d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mmfewshot/detection/datasets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,8 @@ def __repr__(self) -> str:
if len(row_data) == 10:
table_data.append(row_data)
row_data = []
if len(row_data) != 0:
table_data.append(row_data)

table = AsciiTable(table_data)
result += table.table
Expand Down

0 comments on commit ef7116d

Please sign in to comment.