Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expected all tensors to be on the same device, but found at least two devices. #21

Open
ChiariRay opened this issue Nov 15, 2023 · 0 comments

Comments

@ChiariRay
Copy link

Describe the bug
Failed to run inference in MONAI Label Server, reported RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument index in method wrapper_CUDA__index_select).

To Reproduce
According to the tutorial in README.
Steps to reproduce the behavior:

  1. Start the server: monailabel start_server --app monaivista --studies ./Task07_Pancreas/imagesTs --conf models vista_point_2pt5
  2. Connect to the monailabel server in 3D slicer, and click Next Sample
  3. Click Run

Screenshots
Snipaste_2023-11-15_14-25-33
Snipaste_2023-11-15_14-25-59

Additional context
Run the server on ubuntu 22.04 with 2 RTX 4090
Run the 3D slicer on MacOS 14.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant