Skip to content

Commit 9b046c7

Browse files
committed
ruff
1 parent 20a3914 commit 9b046c7

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

TPTBox/segmentation/VibeSeg/inference_nnunet.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,7 @@ def run_VibeSeg(
230230
logger.print(out_path, "already exists. SKIP!", Log_Type.OK)
231231
return out_path
232232

233-
if _model_path is not None:
234-
model_path = _model_path
235-
else:
236-
model_path = _model_path_
233+
model_path = _model_path if _model_path is not None else _model_path_
237234
if dataset_id is None:
238235
for idx in known_idx:
239236
download_weights(idx)

0 commit comments

Comments
 (0)