63523c0725dde9d305310aaa11c83e9b5c922d88,face_alignment/api.py,FaceAlignment,__init__,#FaceAlignment#,47
Before Change
if landmarks_type == LandmarksType._3D:
self.depth_prediciton_net = ResNetDepth()
depth_weights = load_url(models_urls["depth"], map_location=lambda storage, loc: storage)
depth_dict = {
k.replace("module.", ""): v for k,
v in depth_weights["state_dict"].items()}
self.depth_prediciton_net.load_state_dict(depth_dict)
After Change
// Initialiase the depth prediciton network
if landmarks_type == LandmarksType._3D:
self.depth_prediciton_net = torch.jit.load(load_file_from_url(models_urls["depth"]))
self.depth_prediciton_net.to(device)
self.depth_prediciton_net.eval()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: 1adrianb/face-alignment
Commit Name: 63523c0725dde9d305310aaa11c83e9b5c922d88
Time: 2020-12-18
Author: adrian@adrianbulat.com
File Name: face_alignment/api.py
Class Name: FaceAlignment
Method Name: __init__
Project Name: richzhang/colorization-pytorch
Commit Name: 81942b345eb432b44ff3e4cda05fe71ce8ac7fde
Time: 2018-08-25
Author: rzhang88@gmail.com
File Name: test_sweep.py
Class Name:
Method Name:
Project Name: erikbern/ann-benchmarks
Commit Name: be3c3b145f9c25d5629a96d616040ff652522a87
Time: 2017-05-11
Author: alef@itu.dk
File Name: plot.py
Class Name:
Method Name: