Skip to content

Commit 401bee7

Browse files
committed
pred batch correct
1 parent eb54c24 commit 401bee7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

MULTI_SEG/src/predict_CBCTSeg.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def main(args):
100100
pred_names = []
101101
merge_dic_list = []
102102
for image in input_path:
103-
print("Working on :",input_path)
104-
baseName = os.path.basename(input_path)
103+
print("Working on :",image)
104+
baseName = os.path.basename(image)
105105
scan_name= baseName.split(".")
106106
# print(baseName)
107107
pred_id = "_XXXX-Seg_Pred"
@@ -150,8 +150,8 @@ def main(args):
150150
SavePrediction(seg,input_path[seg_id],temp_path[seg_id])
151151
CleanScan(temp_path[seg_id])
152152
SetSpacingFromRef(
153-
temp_path,
154-
input_path,
153+
temp_path[seg_id],
154+
input_path[seg_id],
155155
# "Linear",
156156
outpath=file_path
157157
)

0 commit comments

Comments
 (0)