monai
medical
katielink commited on
Commit
261824f
·
1 Parent(s): f6cc1e0

modify dataset key name

Browse files
README.md CHANGED
@@ -86,7 +86,7 @@ python -m monai.bundle run evaluating --meta_file configs/metadata.json --config
86
  ```
87
  python -m monai.bundle run evaluating --meta_file configs/metadata.json --config_file configs/inference.json --logging_file configs/logging.conf
88
  ```
89
- With the same command, we can execute inference on original LUNA16 images by setting `"whether_raw_luna16": true` in `inference.json`. Remember to also set `"data_list_file_path": "$@bundle_root + '/LUNA16_datasplit/mhd_original/dataset_fold0.json'"` and change `"data_file_base_dir"`.
90
 
91
  Note that in inference.json, the transform "LoadImaged" in "preprocessing" and "AffineBoxToWorldCoordinated" in "postprocessing" has `"affine_lps_to_ras": true`.
92
  This depends on the input images. LUNA16 needs `"affine_lps_to_ras": true`.
 
86
  ```
87
  python -m monai.bundle run evaluating --meta_file configs/metadata.json --config_file configs/inference.json --logging_file configs/logging.conf
88
  ```
89
+ With the same command, we can execute inference on original LUNA16 images by setting `"whether_raw_luna16": true` in `inference.json`. Remember to also set `"data_list_file_path": "$@bundle_root + '/LUNA16_datasplit/mhd_original/dataset_fold0.json'"` and change `"dataset_dir"`.
90
 
91
  Note that in inference.json, the transform "LoadImaged" in "preprocessing" and "AffineBoxToWorldCoordinated" in "postprocessing" has `"affine_lps_to_ras": true`.
92
  This depends on the input images. LUNA16 needs `"affine_lps_to_ras": true`.
configs/evaluate.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "test_datalist": "$monai.data.load_decathlon_datalist(@data_list_file_path, is_segmentation=True, data_list_key='validation', base_dir=@data_file_base_dir)",
3
  "validate#dataset": {
4
  "_target_": "Dataset",
5
  "data": "$@test_datalist",
 
1
  {
2
+ "test_datalist": "$monai.data.load_decathlon_datalist(@data_list_file_path, is_segmentation=True, data_list_key='validation', base_dir=@dataset_dir)",
3
  "validate#dataset": {
4
  "_target_": "Dataset",
5
  "data": "$@test_datalist",
configs/inference.json CHANGED
@@ -9,8 +9,8 @@
9
  "ckpt_dir": "$@bundle_root + '/models'",
10
  "output_dir": "$@bundle_root + '/eval'",
11
  "data_list_file_path": "$@bundle_root + '/LUNA16_datasplit/dataset_fold0.json'",
12
- "data_file_base_dir": "/datasets/LUNA16_Images_resample",
13
- "test_datalist": "$monai.data.load_decathlon_datalist(@data_list_file_path, is_segmentation=True, data_list_key='validation', base_dir=@data_file_base_dir)",
14
  "device": "$torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')",
15
  "amp": true,
16
  "infer_patch_size": [
 
9
  "ckpt_dir": "$@bundle_root + '/models'",
10
  "output_dir": "$@bundle_root + '/eval'",
11
  "data_list_file_path": "$@bundle_root + '/LUNA16_datasplit/dataset_fold0.json'",
12
+ "dataset_dir": "/datasets/LUNA16_Images_resample",
13
+ "test_datalist": "$monai.data.load_decathlon_datalist(@data_list_file_path, is_segmentation=True, data_list_key='validation', base_dir=@dataset_dir)",
14
  "device": "$torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')",
15
  "amp": true,
16
  "infer_patch_size": [
configs/metadata.json CHANGED
@@ -1,7 +1,8 @@
1
  {
2
  "schema": "https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/meta_schema_20220324.json",
3
- "version": "0.5.0",
4
  "changelog": {
 
5
  "0.5.0": "use detection inferer",
6
  "0.4.5": "fixed some small changes with formatting in readme",
7
  "0.4.4": "add data resource to readme",
 
1
  {
2
  "schema": "https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/meta_schema_20220324.json",
3
+ "version": "0.5.1",
4
  "changelog": {
5
+ "0.5.1": "modify dataset key name",
6
  "0.5.0": "use detection inferer",
7
  "0.4.5": "fixed some small changes with formatting in readme",
8
  "0.4.4": "add data resource to readme",
configs/train.json CHANGED
@@ -7,8 +7,8 @@
7
  "ckpt_dir": "$@bundle_root + '/models'",
8
  "output_dir": "$@bundle_root + '/eval'",
9
  "data_list_file_path": "$@bundle_root + '/LUNA16_datasplit/dataset_fold0.json'",
10
- "data_file_base_dir": "/datasets/LUNA16_Images_resample",
11
- "train_datalist": "$monai.data.load_decathlon_datalist(@data_list_file_path, is_segmentation=True, data_list_key='training', base_dir=@data_file_base_dir)",
12
  "device": "$torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')",
13
  "epochs": 300,
14
  "val_interval": 10,
 
7
  "ckpt_dir": "$@bundle_root + '/models'",
8
  "output_dir": "$@bundle_root + '/eval'",
9
  "data_list_file_path": "$@bundle_root + '/LUNA16_datasplit/dataset_fold0.json'",
10
+ "dataset_dir": "/datasets/LUNA16_Images_resample",
11
+ "train_datalist": "$monai.data.load_decathlon_datalist(@data_list_file_path, is_segmentation=True, data_list_key='training', base_dir=@dataset_dir)",
12
  "device": "$torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')",
13
  "epochs": 300,
14
  "val_interval": 10,
docs/README.md CHANGED
@@ -79,7 +79,7 @@ python -m monai.bundle run evaluating --meta_file configs/metadata.json --config
79
  ```
80
  python -m monai.bundle run evaluating --meta_file configs/metadata.json --config_file configs/inference.json --logging_file configs/logging.conf
81
  ```
82
- With the same command, we can execute inference on original LUNA16 images by setting `"whether_raw_luna16": true` in `inference.json`. Remember to also set `"data_list_file_path": "$@bundle_root + '/LUNA16_datasplit/mhd_original/dataset_fold0.json'"` and change `"data_file_base_dir"`.
83
 
84
  Note that in inference.json, the transform "LoadImaged" in "preprocessing" and "AffineBoxToWorldCoordinated" in "postprocessing" has `"affine_lps_to_ras": true`.
85
  This depends on the input images. LUNA16 needs `"affine_lps_to_ras": true`.
 
79
  ```
80
  python -m monai.bundle run evaluating --meta_file configs/metadata.json --config_file configs/inference.json --logging_file configs/logging.conf
81
  ```
82
+ With the same command, we can execute inference on original LUNA16 images by setting `"whether_raw_luna16": true` in `inference.json`. Remember to also set `"data_list_file_path": "$@bundle_root + '/LUNA16_datasplit/mhd_original/dataset_fold0.json'"` and change `"dataset_dir"`.
83
 
84
  Note that in inference.json, the transform "LoadImaged" in "preprocessing" and "AffineBoxToWorldCoordinated" in "postprocessing" has `"affine_lps_to_ras": true`.
85
  This depends on the input images. LUNA16 needs `"affine_lps_to_ras": true`.