Skip to content

Commit

Permalink
fix static type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dyollb committed Nov 7, 2024
1 parent 397ff7c commit 9192e21
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/segmantic/seg/monai_unet.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ def cross_validate(

for config_file in Path(config_files_dir).iterdir():
assert config_file.suffix in [".json", ".yml"], f"suffix: {config_file}"
is_json = config_file and config_file.suffix.lower() == ".json"
is_json = config_file.suffix.lower() == ".json"
dumps = partial(config.dumps, is_json=is_json)
loads = partial(config.loads, is_json=is_json)

Expand Down Expand Up @@ -818,9 +818,6 @@ def cross_validate(
test_images=test_images,
test_labels=test_labels,
tissue_dict=tissue_dict,
# channels=current_layers,
# strides=current_strides,
dropout=0.0,
spacing=[1, 1, 1],
gpu_ids=gpu_ids,
)
Expand Down

0 comments on commit 9192e21

Please sign in to comment.