Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update train.py #144

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,19 @@

rgb_mean = (104, 117, 123) # bgr order
num_classes = 2
img_dim = cfg['image_size']
num_gpu = cfg['ngpu']
batch_size = cfg['batch_size']
max_epoch = cfg['epoch']
gpu_train = cfg['gpu_train']

num_workers = args.num_workers
momentum = args.momentum
weight_decay = args.weight_decay
initial_lr = args.lr
gamma = args.gamma
training_dataset = args.training_dataset
save_folder = args.save_folder
img_dim = cfg['image_size'] #640
num_gpu = cfg['ngpu'] # 1
batch_size = cfg['batch_size'] # 32
max_epoch = cfg['epoch']
gpu_train = cfg['gpu_train'] #True

num_workers = args.num_workers # 4
momentum = args.momentum # 0.9
weight_decay = args.weight_decay # 5e-4
initial_lr = args.lr # 1e-3
gamma = args.gamma # 0.1
training_dataset = args.training_dataset #label.txt
save_folder = args.save_folder #weights

net = RetinaFace(cfg=cfg)
print("Printing net...")
Expand Down