1adrianb / 1adrianb/face-alignment
SystemError: CPUDispatcher(<function _get_preds_fromhm at 0x7fc50e018440>) returned a result with an error set
- Ngôn ngữ chính
- Python
- Star
- 7.5k
- Fork
- 1.4k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
installed using setup.py
and,
running ---> preds = fa.get_landmarks(input) gives error:
TypeError: expected dtype object, got 'numpy.dtype[float32]'
The above exception was the direct cause of the following exception:
```
Traceback (most recent call last):
File "", line 1, in
File "/home/vision3d/anaconda3/lib/python3.7/site-packages/face_alignment-1.3.4-py3.7.egg/face_alignment/api.py", line 110, in get_landmarks
File "/home/vision3d/anaconda3/lib/python3.7/site-packages/torch/autograd/grad_mode.py", line 15, in decorate_context
return func(*args, **kwargs)
File "/home/vision3d/anaconda3/lib/python3.7/site-packages/face_alignment-1.3.4-py3.7.egg/face_alignment/api.py", line 170, in get_landmarks_from_image
File "/home/vision3d/anaconda3/lib/python3.7/site-packages/face_alignment-1.3.4-py3.7.egg/face_alignment/utils.py", line 201, in get_preds_fromhm
SystemError: CPUDispatcher() returned a result with an error set
```
info:
Ubuntu 16
nvidia-smi 465 drivers
cuda-8.0
python 3.7
what may be the issue and how to resolve?
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Lỗi xảy ra trong face_alignment/utils.py tại dòng 201 trong get_preds_fromhm, liên quan đến CPUDispatcher và sự không khớp dtype. Bắt đầu bằng cách kiểm tra hàm _get_preds_fromhm trong utils.py và việc xử lý kiểu dữ liệu numpy/torch. Kiểm tra dtype của tensor đầu vào và dtype đối tượng mong đợi. Chạy bài kiểm tra bị lỗi với đầu vào được cung cấp để tái tạo sự cố, sau đó theo dõi luồng dữ liệu để xác định nơi chuyển đổi dtype thất bại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- numpy, python, pytorch
- Lĩnh vực
- ai, computer-vision
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100