3a181c8d229d3f45d6457cd329d2336b07b2330b,autokeras/pretrained/face_detector.py,FaceDetector,__init__,#FaceDetector#,276
Before Change
def __init__(self):
super(FaceDetector, self).__init__()
pnet, rnet, onet = self.load()
self.device = get_device()
self.pnet_detector = PNet()
if torch.cuda.is_available():
self.pnet_detector.load_state_dict(torch.load(pnet))
After Change
def __init__(self, **kwargs):
super().__init__(**kwargs)
pnet, rnet, onet = self.local_paths[0], self.local_paths[1], self.local_paths[2]
self.pnet_detector = PNet()
if torch.cuda.is_available():
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: keras-team/autokeras
Commit Name: 3a181c8d229d3f45d6457cd329d2336b07b2330b
Time: 2019-02-08
Author: jhfjhfj1@gmail.com
File Name: autokeras/pretrained/face_detector.py
Class Name: FaceDetector
Method Name: __init__
Project Name: brian-team/brian2
Commit Name: 5e96378ecd3f4c401f4355e2a6065fe6967bf571
Time: 2013-10-04
Author: marcel.stimberg@ens.fr
File Name: brian2/groups/subgroup.py
Class Name: Subgroup
Method Name: __init__
Project Name: osmr/imgclsmob
Commit Name: 7f95637dd388e6c9d253847d634bfc7b0af05dda
Time: 2019-05-11
Author: osemery@gmail.com
File Name: eval_ch.py
Class Name:
Method Name: main