Python3在使用pickle保存文件的时候,使用protocol=HIGHEST_PROTOCOL保存的时候报AttributeError: module '_pickle' has no attribute 'HIGHEST_PROTOCOL'
将protocol=HIGHEST_PROTOCOL用-1替换,代码如下
with open(output_path, 'wb') as f:
pickle.dump((save_bins, issame_list), f, -1)
参考:https://github.com/igul222/improved_wgan_training/issues/86