Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ WORKDIR /opt/monai
COPY requirements.txt requirements-min.txt requirements-dev.txt /tmp/
RUN cp /tmp/requirements.txt /tmp/req.bak \
&& awk '!/torch/' /tmp/requirements.txt > /tmp/tmp && mv /tmp/tmp /tmp/requirements.txt \
&& python -m pip install --upgrade --no-cache-dir pip \
&& python -m pip install --no-cache-dir -r /tmp/requirements-dev.txt
&& python -m pip install --upgrade --no-cache-dir --no-build-isolation pip wheel wheel-stub \
&& python -m pip install --no-cache-dir --no-build-isolation -r /tmp/requirements-dev.txt

# compile ext and remove temp files
Comment thread
ericspod marked this conversation as resolved.
# TODO: remark for issue [revise the dockerfile #1276](https://github.com/Project-MONAI/MONAI/issues/1276)
Expand Down
6 changes: 4 additions & 2 deletions monai/apps/auto3dseg/bundle_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,13 @@ class BundleAlgo(Algo):

"""

def __init__(self, template_path: PathLike):
def __init__(self, template_path: PathLike | None = None):
"""
Create an Algo instance based on the predefined Algo template.

Args:
template_path: path to a folder that contains the algorithm templates.
template_path: path to a folder that contains the algorithm templates. If this is not provided, it's value
must be loaded with `load_state_dict`.
Please check https://github.com/Project-MONAI/research-contributions/tree/main/auto3dseg/algorithm_templates
Comment thread
coderabbitai[bot] marked this conversation as resolved.

"""
Expand Down Expand Up @@ -378,6 +379,7 @@ def state_dict(self) -> dict:
based on which path successfully imports the Algo class.
Comment thread
ericspod marked this conversation as resolved.
"""
return {
"template_path": self.template_path,
"data_stats_files": self.data_stats_files,
"data_list_file": self.data_list_file,
"mlflow_tracking_uri": self.mlflow_tracking_uri,
Expand Down
Loading