1adrianb / 1adrianb/face-alignment
CPU Bottleneck caused by python ? 10% cuda usage
- 主要言語
- Python
- スター
- 7.5k
- フォーク
- 1.4k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hello,
I'm using face-alignement in [first-order-model](https://github.com/AliaksandrSiarohin/first-order-model) repo, especially the [crop-video.py](https://github.com/AliaksandrSiarohin/first-order-model/blob/master/crop-video.py) script.
While working on a 1080p video with CUDA, i get this performance :
>32it [00:08, **4.43it/s**]
CPU is used a 54%, CUDA @ 10%

When using CPU mode it's 4 times slower (no surprise here, it seems that CUDA mode is enabled correctly)
>48it [00:44, **1.13it/s**]
Is it a bug from the task manager that doesn't report the correct GPU usage ? Or is it related to python's terrible performances ?
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
The issue mentions crop-video.py script from first-order-model repo using this library. Start by profiling the script to identify CPU bottlenecks, possibly in data loading or preprocessing. Check CUDA utilization with nvidia-smi and PyTorch profiling tools. Look at the face-alignment library's inference code for potential inefficiencies in GPU-CPU data transfers.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python, pytorch
- 領域
- performance
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100