Replies: 1 comment
-
|
I think this is an install issue and specific to the mac chip. I'm going to need a bit more detail on your hardware. No, we use GPU all the time for this function and its all pytorch lightning, nothing in deepforest. Please show the error and we can debug, but this should be specific to your system. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is the intention that the user must use cpus when predicting with
deepforest.predict_image()?The below code works when device=cpu but crashes when using another device like mps with error
slow_conv2d_forward_mps: input(device='cpu') and weight(device=mps:0') must be on the same device.This makes sense since model is on mps and image is on cpu. Moving image into torch on the same device as the model, e.g.
model_device = next(model.parameters()).deviceinpredict._predict_image_()is enough.On my M5 macbook pro the predicting speed is ~2x faster when using mps.
Beta Was this translation helpful? Give feedback.
All reactions