VISTA icon indicating copy to clipboard operation
VISTA copied to clipboard

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

Open ChiariRay opened this issue 2 years ago • 0 comments

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

ChiariRay avatar Nov 15 '23 06:11 ChiariRay