Skip to content

Commit

Permalink
remove unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
naga-karthik committed Jan 22, 2024
1 parent 71bda2f commit e43165a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monai/run_inference_single_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from time import time

from monai.inferers import sliding_window_inference
from monai.data import (DataLoader, Dataset, load_decathlon_datalist, decollate_batch)
from monai.data import (DataLoader, Dataset, decollate_batch)
from monai.transforms import (Compose, EnsureTyped, Invertd, SaveImage, Spacingd,
LoadImaged, NormalizeIntensityd, EnsureChannelFirstd,
DivisiblePadd, Orientationd, ResizeWithPadOrCropd)
Expand Down Expand Up @@ -284,7 +284,7 @@ def main():
# binarize the prediction with a threshold of 0.5
pred[pred >= 0.5] = 1
pred[pred < 0.5] = 0

# get subject name
subject_name = (batch["image_meta_dict"]["filename_or_obj"][0]).split("/")[-1].replace(".nii.gz", "")
logger.info(f"Saving subject: {subject_name}")
Expand Down

0 comments on commit e43165a

Please sign in to comment.