f90efe38fb0b1019e5bdc06b8a325aefe44893ea,face_alignment/detection/sfd/sfd_detector.py,SFDDetector,__init__,#SFDDetector#Any#Any#Any#,18
Before Change
def __init__(self, device, path_to_detector=None, verbose=False):
super(SFDDetector, self).__init__(device, verbose)
base_path = os.path.join(appdata_dir("face_alignment"), "data")
// Initialise the face detector
if path_to_detector is None:
After Change
model_weights = torch.load(path_to_detector)
self.face_detector = s3fd()
self.face_detector.load_state_dict(model_weights)
self.face_detector.to(device)
self.face_detector.eval()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: 1adrianb/face-alignment
Commit Name: f90efe38fb0b1019e5bdc06b8a325aefe44893ea
Time: 2018-12-19
Author: bulat.adrian@gmail.com
File Name: face_alignment/detection/sfd/sfd_detector.py
Class Name: SFDDetector
Method Name: __init__
Project Name: facebookresearch/pytext
Commit Name: ec54a0b75d93cab5ad407920f2bbfd2f33251cc9
Time: 2019-01-18
Author: zsc@fb.com
File Name: pytext/trainers/trainer.py
Class Name: Trainer
Method Name: train
Project Name: snorkel-team/snorkel
Commit Name: b56a4b355dfc302fa449d223e065af3a7acac986
Time: 2018-05-03
Author: dnicholson329@gmail.com
File Name: snorkel/learning/pytorch/noise_aware_model.py
Class Name: TorchNoiseAwareModel
Method Name: load