samet-akcay / ganomaly

GANomaly: Semi-Supervised Anomaly Detection via Adversarial Training
MIT License
853 stars 213 forks source link

fix hardcoded output path #77

Open emizzz opened 4 years ago

emizzz commented 4 years ago

I think outf path is hardcoded in test method.

from path = "./output/{}/{}/train/weights/netG.pth".format(self.name.lower(), self.opt.dataset)

to path = "{}/{}/{}/train/weights/netG.pth".format(self.opt.outf, self.name.lower(), self.opt.dataset)

This should fix the bug.