Skip to content
Snippets Groups Projects
Commit 25ee821c authored by Schneider Leo's avatar Schneider Leo
Browse files

fix : typo out file name

parent d17a91bc
No related branches found
No related tags found
No related merge requests found
......@@ -145,8 +145,8 @@ class ImageFolderDuo(data.Dataset):
imgAER = self.transform(imgAER)
imgANA = self.transform(imgANA)
img_ref = self.transform(img_ref)
target = 0 if target == label_ref else 1
return imgAER, imgANA, img_ref, target
contrastive_target = 0 if target == label_ref else 1
return imgAER, imgANA, img_ref, contrastive_target
def __len__(self):
return len(self.imlist)
......
......@@ -133,7 +133,7 @@ def run_duo(args):
plt.show()
plt.savefig('output/training_plot_contrastive_{}.png'.format(args.prop))
plt.savefig('output/training_plot_contrastive_{}.png'.format(args.positive_prop))
#load and evaluate best model
load_model(model, args.save_path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment