Skip to content

Commit

Permalink
Merge branch 'main' into spine_cropper
Browse files Browse the repository at this point in the history
  • Loading branch information
louisblankemeier authored Oct 13, 2023
2 parents 7c43269 + e8b6e9f commit 1189af9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bin/C2C-slurm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def submit_command(command):
subprocess.run(command.split(" "), check=True, capture_output=False)


def python_submit(command, node="amalfi"):
def python_submit(command, node="siena"):
bash_file = open("./slurm.sh", "w")
bash_file.write(f"#!/bin/bash\n{command}")
bash_file.close()
Expand Down
14 changes: 8 additions & 6 deletions comp2comp/spine/spine.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@
import wget
from PIL import Image

# from totalsegmentator.libs import (
# download_pretrained_weights,
# nostdout,
# setup_nnunet,
# )

from totalsegmentatorv2.python_api import totalsegmentator

from comp2comp.inference_class_base import InferenceClass
Expand All @@ -30,6 +24,14 @@
from comp2comp.visualization.dicom import to_dicom
from comp2comp.io import io_utils

# from totalsegmentator.libs import (
# download_pretrained_weights,
# nostdout,
# setup_nnunet,
# )




class SpineSegmentation(InferenceClass):
"""Spine segmentation."""
Expand Down
3 changes: 2 additions & 1 deletion comp2comp/utils/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
import os
import shutil
import sys
import time
import traceback
from datetime import datetime
from pathlib import Path
import time


from comp2comp.io import io_utils

Expand Down

0 comments on commit 1189af9

Please sign in to comment.