tbmoon / facenet

FaceNet for face recognition using pytorch
MIT License
247 stars 67 forks source link

Update train.py #5

Open eplatero97 opened 5 years ago

eplatero97 commented 5 years ago

DATA PARALLEL

When I trained the FaceNet model using your repository, the default batch size of 128 was too much memory for just one GPU.

Instead, I added the power of nn.DataParallel not only to be able to train the model on a batch size of 128, but it also speeds the process of training.