Replies: 5 comments 2 replies
-
@swederik @dbericat Sorry I somehow did not get the notification. Yes, the model was trained and script with the use GPU. Since MONAI has a training example for the Spleen, I can see one can use the MONAI training example to retrain the model in using CPU, script the model as such, and then try to use is in the Deploy app. |
Beta Was this translation helpful? Give feedback.
-
Sorry @swederik, I also didn't notify this question. I created an issue with #166 and pushed PR with #167 Could you please test if the patched version works?
|
Beta Was this translation helpful? Give feedback.
-
@swederik, @gigony PyTorch model traced to GPU might not be loaded on CPU (forcefully in torch.jit.load specifying map_location=torch.device("cpu"). Notice that the MedNIST example actually trains, traces, and then use the model. For sure, everything is done on CPU, that would work, once jit.load loads the model to the available device. Not sure that's how you tested the fix. Point is, you PR may not have actually addressed the issue with the Spleen model (traced on GPU, but being loaded on CPU with re-tracing). Can you test with this model (disabling the NVIDAI GPU card or set not visible)? |
Beta Was this translation helpful? Give feedback.
-
@swederik could you please verify the above issue and PR solved your issue to close this discussion? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
I'm trying to run the examples and having some issues. It seems like torchscript fails to load the model that comes with the AI Spleen Seg Data example. I wonder if it's because I don't have an NVIDIA GPU (I'm trying this on a Macbook), and maybe the model was trained using CUDA.
I get this error:
Beta Was this translation helpful? Give feedback.
All reactions