Skip to content

Commit 6c32444

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 23de2bc commit 6c32444

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

monai/apps/nnunet/nnunet_bundle.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import os
1414
import shutil
1515
from pathlib import Path
16-
from typing import Union
1716

1817
import numpy as np
1918
import torch
@@ -299,7 +298,7 @@ def forward(self, x: MetaTensor) -> MetaTensor:
299298
properties_or_list_of_properties = {"spacing": [1.0, 1.0, 1.0]}
300299
else:
301300
raise TypeError("Input must be a MetaTensor or a tuple of MetaTensors.")
302-
301+
303302
image_or_list_of_images = x.cpu().numpy()[0, :]
304303

305304
# input_files should be a list of file paths, one per modality

0 commit comments

Comments
 (0)