废话少说,上代码: import matplotlib as mpl mpl.use('Agg') import os import matplotlib.pyplot as plt from scipy.misc import imresize # root path depends on your computer root1 = '/share1/home/cong/Datasets/Polyvore/pair1/pair1/' save_root1 = '/share1/home/con…