NVlabs / DG-Net

:couple: Joint Discriminative and Generative Learning for Person Re-identification. CVPR'19 (Oral) :couple:
https://www.zdzheng.xyz/publication/Joint-di2019
Other
1.27k stars 230 forks source link

test_folder #70

Closed bixiaopeng0 closed 3 years ago

bixiaopeng0 commented 3 years ago

im.save(dst_path + '/%03d_%03d_gan%s.jpg'%(label2, label, name[:-4])) im.save(dst_path2 + '/%03d_%03d_gan%s.jpg'%(label2, label, name[:-4])) 请问为什么在两个输出目录,保存了相同的图片呀,是bug吗

layumi commented 3 years ago

https://github.com/NVlabs/DG-Net/blob/master/visual_tools/test_folder.py#L140-L141 One folder saves the generated image according to id embedding, while another folder saves the same image according to the background embedding.