new API always uses GPU

Author: darshatsCreated Apr 25, 2023Updated Jul 9, 2026
Labelsbug

In inference.py line 193, the model class (new api) calls the older predict method but skips passing in device. Hence cuda device is always used by default, though model.device may be cpu.

Source: IDEA-Research/GroundingDINO