Haojiacheng commited on
Commit
bfc19ae
·
1 Parent(s): a773c9a

Upload 2 files

Browse files
Files changed (2) hide show
  1. demo.py +1 -1
  2. requirements.txt +7 -0
demo.py CHANGED
@@ -89,7 +89,7 @@ def process_nii_file(input_nii_file, dicom_file, slice, mode):
89
 
90
  if mode == "Step1:Segment":
91
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
92
- root_dir = "./run"
93
  model = UNETR(
94
  in_channels=1,
95
  out_channels=5,
 
89
 
90
  if mode == "Step1:Segment":
91
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
92
+ root_dir = "./"
93
  model = UNETR(
94
  in_channels=1,
95
  out_channels=5,
requirements.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ matplotlib
2
+ monai
3
+ numpy
4
+ torch
5
+ gradio
6
+ nibabel
7
+ SimpleITK