Commit 66858d5
Fix GPU detection: _utils never imported cv2, so CUDA was always reported absent
get_cuda_device_count() and cuda_build_available() referenced cv2 but _utils.py
never imports it, so they raised NameError (swallowed by except) and always
returned 0/False. GPU was therefore reported unavailable even with a CUDA-enabled
OpenCV — pose(device='gpu') always auto-switched to MediaPipe and the
"built WITHOUT CUDA" message always showed. Import cv2 inside both helpers.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 7901775 commit 66858d5
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1793 | 1793 | | |
1794 | 1794 | | |
1795 | 1795 | | |
| 1796 | + | |
1796 | 1797 | | |
1797 | 1798 | | |
1798 | 1799 | | |
| |||
1806 | 1807 | | |
1807 | 1808 | | |
1808 | 1809 | | |
| 1810 | + | |
1809 | 1811 | | |
1810 | 1812 | | |
1811 | 1813 | | |
| |||
0 commit comments