Closed smttsp closed 5 months ago
Hello! Thank you for pointing this out. If you are loading my model weights that were pretrained on GPU on a CPU device, your correction is necessary. I will update the codes.
@X-Chen97
cool. thank you!
@smttsp thank you for the fix, I faced the same problem and the model works now.
fixed
https://github.com/hackingmaterials/pv-vision/blob/5ffdd6f02ab045cbfcd48390094ff9b50f906c45/pv_vision/nn/modelhandler.py#L344
This code fails when the device is
cpu
. It should be updated as below