Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
andreped
/
LungTumorMask
like
1
Sleeping
App
Files
Files
Community
5726187
LungTumorMask
/
demo
/
src
/
compute.py
andreped
Fixed demo + added demo README + new Dockerfile
74ebf3e
12 months ago
raw
Copy download link
history
blame
No virus
171 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
)