3neutronstar / GuidedMixup

Official PyTorch implementation of "GuidedMixup An Efficient Mixup Strategy Guided by Saliency Maps" (AAAI'23 Oral)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GuidedMixup Output

khawar-islam opened this issue · comments

Dear @3neutronstar

Thanks for your work. I am quite interested to visualize GuidedMixup images, to achieve this, I have added save_image(input_var[0], f'image_epoch_{epoch}_batch_{i}.png', args.std, args.mean) before prec1, prec5 = accuracy(output, target, topk=(1, 5)) in main.py file but the output is similar to original image.
image_epoch_0_batch_0
image_epoch_0_batch_1

Dear @khawar-islam

Thanks for your interest in my work. To visualize the GuidedMixup images, I recommend referring to the following permalink. Uncomment the line, and you can get the visualized images.
link

Because the variable named input_var is not changed by using any mixup algorithm described in main.py, your results are the natural outcome.

Again, thank you for your interest in our work.