1adrianb / 1adrianb/face-alignment

SystemError: CPUDispatcher(<function _get_preds_fromhm at 0x7fc50e018440>) returned a result with an error set

未關閉
#288 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
7.5k
分支
1.4k
PR 合併指標
30 天內沒有已合併 PR

描述

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?

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

錯誤發生在 face_alignment/utils.py 第 201 行的 get_preds_fromhm 中,涉及 CPUDispatcher 和 dtype 不匹配。首先檢查 utils.py 中的 _get_preds_fromhm 函數以及 numpy/torch 資料型別處理。檢查輸入張量的 dtype 和預期的物件 dtype。使用提供的輸入執行失敗的測試以重現問題,然後追蹤資料流以確定 dtype 轉換失敗的位置。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
numpy, python, pytorch
領域
ai, computer-vision
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。