Skip to content

Commit

Permalink
Update ALGO_HASH (Project-MONAI#6384)
Browse files Browse the repository at this point in the history
Fixes Project-MONAI#6378 .

### Description

- Project-MONAI/research-contributions#221
- Project-MONAI/research-contributions#219

### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

---------

Signed-off-by: Mingxin Zheng <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Co-authored-by: Wenqi Li <[email protected]>
Co-authored-by: Wenqi Li <[email protected]>
  • Loading branch information
3 people authored Apr 18, 2023
1 parent 30aa410 commit 3881e45
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions monai/apps/auto3dseg/bundle_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
from monai.utils.enums import AlgoKeys

logger = get_logger(module_name=__name__)
ALGO_HASH = os.environ.get("MONAI_ALGO_HASH", "80c832e")
ALGO_HASH = os.environ.get("MONAI_ALGO_HASH", "629ec7e")

__all__ = ["BundleAlgo", "BundleGen"]

Expand Down Expand Up @@ -174,7 +174,7 @@ def _create_cmd(self, train_params: None | dict = None) -> tuple[str, str]:

if os.path.isdir(config_dir):
base_cmd = ""
for file in os.listdir(config_dir):
for file in sorted(os.listdir(config_dir)):
if not (file.endswith("yaml") or file.endswith("json")):
continue
base_cmd += f"{train_py} run --config_file=" if len(base_cmd) == 0 else ","
Expand Down
2 changes: 1 addition & 1 deletion monai/apps/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ def _download_series_reference_data(self, series_uid: str, download_dir: str) ->
download_tcia_series_instance(
series_uid=series_uid, download_dir=download_dir, output_dir=seg_first_dir, check_md5=False
)
dicom_files = [f for f in os.listdir(seg_first_dir) if f.endswith(".dcm")]
dicom_files = [f for f in sorted(os.listdir(seg_first_dir)) if f.endswith(".dcm")]
# achieve series number and patient id from the first dicom file
dcm_path = os.path.join(seg_first_dir, dicom_files[0])
ds = PydicomReader(stop_before_pixels=True, specific_tags=self.load_tags).read(dcm_path)
Expand Down
1 change: 1 addition & 0 deletions tests/test_integration_autorunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"num_warmup_epochs": 1,
"use_pretrain": False,
"pretrained_path": "",
"num_steps_per_image": 1,
}
if torch.cuda.is_available()
else {}
Expand Down

0 comments on commit 3881e45

Please sign in to comment.