mirror of
https://github.com/qurator-spk/eynollah.git
synced 2026-03-02 05:11:57 +01:00
training.utils.preprocess_imgs: fix file name stemming 27f43c17
This commit is contained in:
parent
20a3672be3
commit
86b009bc31
1 changed files with 1 additions and 1 deletions
|
|
@ -787,8 +787,8 @@ def preprocess_imgs(config,
|
|||
# labs_list not used because stem matching more robust
|
||||
indexer = 0
|
||||
for img, lab in tqdm(zip(imgs_list, labs_list)):
|
||||
img = cv2.imread(os.path.join(dir_img, img))
|
||||
img_name = os.path.splitext(img)[0]
|
||||
img = cv2.imread(os.path.join(dir_img, img))
|
||||
if config['task'] in ["segmentation", "binarization"]:
|
||||
# assert lab == img_name + '.png'
|
||||
lab = cv2.imread(os.path.join(dir_lab, img_name + '.png'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue