Merge pull request #249 from luyao777/patch-1

Fix bugs in cuhk02.py
pull/253/head
Kaiyang 2019-10-29 20:27:22 +09:00 committed by GitHub
commit 5fa981b28b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -80,8 +80,8 @@ class CUHK02(ImageDataset):
train.append((impath, pid, camid))
camid += 1
# add images to train from cam1
for impath in impaths1:
# add images to train from cam2
for impath in impaths2:
pid = osp.basename(impath).split('_')[0]
pid = pid2label[pid]
train.append((impath, pid, camid))