Skip to content

Commit

Permalink
[Fix] Flexible ways of getting file name (open-mmlab#1107)
Browse files Browse the repository at this point in the history
* Flexible ways of getting file name

Address issue open-mmlab#1078

* fix lint

Co-authored-by: gaotongxiao <gaotongxiao@gmail.com>
  • Loading branch information
balandongiv and gaotongxiao authored Jul 4, 2022
1 parent 20f2382 commit 68bb3e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/data/textdet/lv_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def load_img_info(files):
'.')[0]
# read imgs while ignoring orientations
img = mmcv.imread(img_file, 'unchanged')
img_file = img_file.split('data/lv/')[1]
img_file = os.path.split(img_file)[-1]

img_info = dict(
file_name=img_file,
Expand Down

0 comments on commit 68bb3e6

Please sign in to comment.