Skip to content

Commit

Permalink
fixed a bug in generate_dataset_json
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianIsensee committed May 7, 2021
1 parent 6b08055 commit 058b695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nnunet/dataset_conversion/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def generate_dataset_json(output_file: str, imagesTr_dir: str, imagesTs_dir: str
json_dict['labels'] = {str(i): labels[i] for i in labels.keys()}

json_dict['numTraining'] = len(train_identifiers)
json_dict['numTest'] = []
json_dict['numTest'] = len(test_identifiers)
json_dict['training'] = [
{'image': "./imagesTr/%s.nii.gz" % i, "label": "./labelsTr/%s.nii.gz" % i} for i
in
Expand Down

0 comments on commit 058b695

Please sign in to comment.