DDMR / demo /src /compute.py
andreped's picture
Major refactor on deployment
c0d9a8c
raw
history blame
168 Bytes
def run_model(input_path):
from lungtumormask import mask
mask.mask(input_path, "./prediction.nii.gz", lung_filter=True, threshold=0.5, radius=1, batch_size=1)