Monai, Medical Imaging, Pytorch, Triton Inference Server, Torchserve.
Compose([LoadImage(image_only=True), EnsureChannelFirst(), Resize(spatial_size=(256, 256, 24)), ScaleIntensityRange(a_min=20, a_max=1200, b_min=0, b_max=1, clip=True)]) img_tensor = transforms(img_path) results_np = np.expand_dims(img_tensor.numpy(), axis=0) return results_np In this case, we also