-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathtrain.py
More file actions
26 lines (22 loc) · 1.12 KB
/
Copy pathtrain.py
File metadata and controls
26 lines (22 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from model import OGNet
from opts import parse_opts
from dataloader import load_data_train
# Code for the CVPR 2020 paper -> Old is Gold: Redefining the Adversarially Learned One-Class Classifier Training Paradigm
# https://arxiv.org/abs/2004.07657
# http://openaccess.thecvf.com/content_CVPR_2020/html/Zaheer_Old_Is_Gold_Redefining_the_Adversarially_Learned_One-Class_Classifier_Training_CVPR_2020_paper.html
# If you use this code, or find it helpful, please cite our paper:
# @inproceedings{zaheer2020old,
# title={Old is Gold: Redefining the Adversarially Learned One-Class Classifier Training Paradigm},
# author={Zaheer, Muhammad Zaigham and Lee, Jin-ha and Astrid, Marcella and Lee, Seung-Ik},
# booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
# pages={14183--14193},
# year={2020}
# }
#
# Please contact me through email, if you have any questions or need any help: mzz . pieas (at) gmailcom
if __name__=="__main__":
opt = parse_opts()
train_loader = load_data_train(opt)
model = OGNet(opt, train_loader)
model.cuda()
model.train(opt.normal_class)