Merge pull request #49 from andreped/liver-support
Browse files- demo/src/compute.py +2 -2
- demo/src/gui.py +1 -1
demo/src/compute.py
CHANGED
@@ -8,10 +8,10 @@ LOGGER = get_logger()
|
|
8 |
|
9 |
def run_model(fixed_path=None, moving_path=None, fixed_seg_path=None, moving_seg_path=None, output_path=None, task="B"):
|
10 |
if (fixed_seg_path is None) or (moving_seg_path is None):
|
11 |
-
LOGGER.info("The fixed or moving segmentation were not provided and are thus ignored for inference.")
|
12 |
sp.check_call(["ddmr", "-f", fixed_path, "-m", moving_path, \
|
13 |
"-o", output_path, "-a", task, "--model", "BL-NS", "--original-resolution"])
|
14 |
else:
|
15 |
-
LOGGER.info("All four inputs were successfully provided.")
|
16 |
sp.check_call(["ddmr", "-f", fixed_path, "-m", moving_path, "-fs", fixed_seg_path, "-ms", moving_seg_path,
|
17 |
"-o", output_path, "-a", task, "--model", "BL-NS", "--original-resolution"])
|
|
|
8 |
|
9 |
def run_model(fixed_path=None, moving_path=None, fixed_seg_path=None, moving_seg_path=None, output_path=None, task="B"):
|
10 |
if (fixed_seg_path is None) or (moving_seg_path is None):
|
11 |
+
# LOGGER.info("The fixed or moving segmentation were not provided and are thus ignored for inference.")
|
12 |
sp.check_call(["ddmr", "-f", fixed_path, "-m", moving_path, \
|
13 |
"-o", output_path, "-a", task, "--model", "BL-NS", "--original-resolution"])
|
14 |
else:
|
15 |
+
# LOGGER.info("All four inputs were successfully provided.")
|
16 |
sp.check_call(["ddmr", "-f", fixed_path, "-m", moving_path, "-fs", fixed_seg_path, "-ms", moving_seg_path,
|
17 |
"-o", output_path, "-a", task, "--model", "BL-NS", "--original-resolution"])
|
demo/src/gui.py
CHANGED
@@ -53,7 +53,7 @@ class WebUI:
|
|
53 |
)
|
54 |
|
55 |
def set_class_name(self, value):
|
56 |
-
LOGGER.info(f"Changed task to: {value}")
|
57 |
self.class_name = value
|
58 |
|
59 |
def upload_file(self, files):
|
|
|
53 |
)
|
54 |
|
55 |
def set_class_name(self, value):
|
56 |
+
# LOGGER.info(f"Changed task to: {value}")
|
57 |
self.class_name = value
|
58 |
|
59 |
def upload_file(self, files):
|