ai-forever / ai-forever/ghost

Incorrect keypoint array indexing in video_processing.py

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

描述

### Description
There is an issue in the `crop_frames_and_get_transforms` function in `util/inference/video_processing.py`. The keypoint array indexing is incorrect, which causes the keypoints to be appended to the wrong list. When target face count is set to be >1 (multiple faces), result video would be wrong.

### Current Code
```
for q in range (len(target_embeds)):
kps_array[0].append([])
```

### Suggested Fix
The indexing should be corrected to append the keypoints to the correct list:
```
for q in range (len(target_embeds)):
kps_array[q].append([])
```

貢獻指南

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

評估

這個 Issue 還沒有評估資料。

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

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