1adrianb / face-alignment

:fire: 2D and 3D Face alignment library build using pytorch
https://www.adrianbulat.com
BSD 3-Clause "New" or "Revised" License
7.05k stars 1.34k forks source link

AttributeError: 'module' object has no attribute 'matmul' #61

Closed WilliamWang1994 closed 6 years ago

WilliamWang1994 commented 6 years ago

When i run the .py file in /example,i geting a "matmul" error. ERROR: Traceback (most recent call last): File "/home/william/DMS/face-alignment/examples/detect_landmarks_in_image.py", line 11, in preds = fa.get_landmarks(input)[-1] File "/home/william/DMS/face-alignment/face_alignment/api.py", line 175, in get_landmarks inp = crop(image, center, scale) File "/home/william/DMS/face-alignment/face_alignment/utils.py", line 81, in crop ul = transform([1, 1], center, scale, resolution, True) File "/home/william/DMS/face-alignment/face_alignment/utils.py", line 74, in transform new_point = (torch.matmul(t, _pt))[0:2] AttributeError: 'module' object has no attribute 'matmul'

WilliamWang1994 commented 6 years ago

OK,i solve this problem . because my formal torch version is 0.1.