https://github.com/samet-akcay/ganomaly
Revision 2d715a9b114c788bbb1a0e892ad4bb86aedabead authored by Samet Akcay on 12 August 2019, 09:34:02 UTC, committed by Samet Akcay on 12 August 2019, 09:34:02 UTC
1 parent 584a736
Tip revision: 2d715a9b114c788bbb1a0e892ad4bb86aedabead authored by Samet Akcay on 12 August 2019, 09:34:02 UTC
Update on requirements.txt
Update on requirements.txt
Tip revision: 2d715a9
train.py
"""
TRAIN GANOMALY
. Example: Run the following command from the terminal.
run train.py \
--model ganomaly \
--dataset UCSD_Anomaly_Dataset/UCSDped1 \
--batchsize 32 \
--isize 256 \
--nz 512 \
--ngf 64 \
--ndf 64
"""
##
# LIBRARIES
from __future__ import print_function
from options import Options
from lib.data import load_data
from lib.model import Ganomaly
##
def train():
""" Training
"""
##
# ARGUMENTS
opt = Options().parse()
##
# LOAD DATA
dataloader = load_data(opt)
##
# LOAD MODEL
model = Ganomaly(opt, dataloader)
##
# TRAIN MODEL
model.train()
if __name__ == '__main__':
train()

Computing file changes ...