You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
I encountered a RuntimeError when following the MMRotate tutorial. The error occurs when running inference_detector(model, img). My model is on cuda:0, but it seems like some indices are on the CPU, causing a mismatch.
Error Message: RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)
Environment:
CUDA: 12.4
PyTorch: 2.6.0
MMDetection: 2.28.2
MMCV: 1.7.2
MMRotate: 0.3.4
GPU: NVIDIA RTX A4500
OS: Red Hat Enterprise Linux release 8.9 (Ootpa)
Steps to Reproduce:
Install MMRotate following the official guide.
Load a model and set it to cuda:0.
Run inference_detector(model, img).
The error occurs.
Expected Behavior:
The inference should run without device mismatch issues.
What I Tried:
Reinstalling dependencies.
Let me know if you need additional logs or debugging outputs.
The text was updated successfully, but these errors were encountered:
Description:
I encountered a
RuntimeError
when following the MMRotate tutorial. The error occurs when runninginference_detector(model, img)
. My model is oncuda:0
, but it seems like some indices are on the CPU, causing a mismatch.Error Message:
RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)
Environment:
Steps to Reproduce:
cuda:0
.inference_detector(model, img)
.Expected Behavior:
The inference should run without device mismatch issues.
What I Tried:
Let me know if you need additional logs or debugging outputs.
The text was updated successfully, but these errors were encountered: