1adrianb / 1adrianb/face-alignment
It seems a bug in function "get_landmarks_from_directory( )"
- 主要言語
- Python
- スター
- 7.5k
- フォーク
- 1.4k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hi there,
**When I used the _get_landmarks_from_directory( )_ function as recommended [here](https://github.com/1adrianb/face-alignment#process-an-entire-directory-in-one-go), it was strange that the detected results of some images were wrong. Please check the images below:**

**While when I used the _get_landmarks( )_ function to process each image with the code below, it turned out that all detected results seemed good.**
```
def my_get_landmarks_from_directory(fa, path):
img_list_raw = glob.glob(os.path.join(path, '*'))
img_list = [p for p in img_list_raw if is_image(p)]
predictions, no_face_detected = {}, []
for p in tqdm(img_list):
input = cv2.imread(p)
preds = fa.get_landmarks(input[..., ::-1])
if preds is None:
no_face_detected.append(p)
predictions[p] = preds if preds is None else preds[0].tolist()
return predictions, no_face_detected
```

**I tried to dive into the source code to figure out if there were any bugs in _get_landmarks_from_directory( )_ function but everything seemed good, which made me confused. I attach two images in which I got wrong results when using _get_landmarks_from_directory( )_. Please test them. Thanks a lot.**


コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
The issue is about a discrepancy between `get_landmarks_from_directory()` and `get_landmarks()`. Start by examining the `get_landmarks_from_directory` function in the source code, likely in the main module. Compare its image loading and preprocessing steps with the user's custom function. Test with the provided sample images to reproduce the bug. Check for differences in color channel handling (BGR vs RGB) or batch processing effects.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python, pytorch
- 領域
- computer-vision
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100