diff --git a/tools/data/textdet/lv_converter.py b/tools/data/textdet/lv_converter.py index 1d5dfa75f..2abef0e45 100644 --- a/tools/data/textdet/lv_converter.py +++ b/tools/data/textdet/lv_converter.py @@ -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,