Spaces:
Runtime error
Runtime error
Commit ·
649b4bc
1
Parent(s): b0a559b
Update app.py
Browse files
app.py
CHANGED
|
@@ -85,7 +85,7 @@ def calculate_volume(mask_image_path):
|
|
| 85 |
|
| 86 |
return size,spacing,V_Right_ventricular_cistern, V_Right_cerebral_sulcus, V_Left_ventricular_cistern, V_Left_cerebral_sulcus
|
| 87 |
|
| 88 |
-
def process_nii_file(input_nii_file,
|
| 89 |
|
| 90 |
if mode == "Step1:Segment":
|
| 91 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
|
| 85 |
|
| 86 |
return size,spacing,V_Right_ventricular_cistern, V_Right_cerebral_sulcus, V_Left_ventricular_cistern, V_Left_cerebral_sulcus
|
| 87 |
|
| 88 |
+
def process_nii_file(input_nii_file, slice, mode):
|
| 89 |
|
| 90 |
if mode == "Step1:Segment":
|
| 91 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|