Skip to content
Closed
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
2 changes: 1 addition & 1 deletion mmv_im2im/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
__email__ = "jianxuchen.ai@gmail.com"
# Do not edit this string manually, always use bumpversion
# Details in CONTRIBUTING.md
__version__ = "0.6.1"
__version__ = "0.5.7"


def get_module_version():
Expand Down
3 changes: 3 additions & 0 deletions mmv_im2im/map_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ def process_one_image(

if self.pre_process is not None:
x = self.pre_process(x)
x = x[0]

# choose different inference function for different types of models
# the input here is assumed to be a tensor
Expand Down Expand Up @@ -257,6 +258,8 @@ def process_one_image(
def run_inference(self):

self.setup_model()
self.setup_data_processing()

if "pred_slice2vol" in self.model_cfg.net:

if self.model_cfg.net["pred_slice2vol"] is not None:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "mmv_im2im"
version = "0.6.1"
version = "0.5.7"
authors = [
{ name="Jianxu Chen", email="jianxuchen.ai@gmail.com" },
]
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.6.1
current_version = 0.5.7
commit = True
tag = True

Expand All @@ -14,4 +14,4 @@ replace = version = "{new_version}"
[flake8]
exclude = docs/, .git/, __pycache__/, build/, dist/, .venv/, .tox/, *.egg-info/
ignore = E203, E402, W291, W503, W293, W292, E501
max-line-length = 88
max-line-length = 88