Drop conda support + bump v1.5.0
Browse files- .github/workflows/build.yml +0 -42
- demo/app.py +1 -1
- setup.py +1 -1
.github/workflows/build.yml
CHANGED
@@ -79,45 +79,3 @@ jobs:
|
|
79 |
- name: Test inference .nii
|
80 |
run: |
|
81 |
livermask --input samples --output results --verbose --vessels
|
82 |
-
|
83 |
-
conda:
|
84 |
-
needs: build
|
85 |
-
runs-on: ${{ matrix.os }}
|
86 |
-
strategy:
|
87 |
-
matrix:
|
88 |
-
os: [ windows-2019, ubuntu-20.04 ] #, macos-11 ]
|
89 |
-
python-version: [ 3.7 ]
|
90 |
-
steps:
|
91 |
-
- uses: conda-incubator/setup-miniconda@v2
|
92 |
-
with:
|
93 |
-
auto-update-conda: true
|
94 |
-
python-version: 3.7
|
95 |
-
|
96 |
-
- name: Download artifact
|
97 |
-
uses: actions/download-artifact@master
|
98 |
-
with:
|
99 |
-
name: "Python wheel"
|
100 |
-
|
101 |
-
- name: Install wheel
|
102 |
-
if: runner.os == 'Windows'
|
103 |
-
run: |
|
104 |
-
$TARGET = Resolve-Path "${{github.workspace}}/livermask-*.whl" | Select -ExpandProperty Path
|
105 |
-
echo $TARGET
|
106 |
-
pip3 install --find-links=${{github.workspace}} $TARGET
|
107 |
-
|
108 |
-
- name: Install wheel
|
109 |
-
if: runner.os != 'Windows'
|
110 |
-
run: pip3 install --find-links=${{github.workspace}} livermask-*.whl
|
111 |
-
|
112 |
-
- name: Download test sample
|
113 |
-
run: |
|
114 |
-
pip3 install gdown==4.4.0
|
115 |
-
mkdir samples
|
116 |
-
mkdir results
|
117 |
-
cd samples
|
118 |
-
gdown https://drive.google.com/uc?id=1shjSrFjS4PHE5sTku30PZTLPZpGu24o3
|
119 |
-
gdown https://drive.google.com/uc?id=1bNmls5o0Rxw5HvBF1IYnEzmpysYJaywN
|
120 |
-
|
121 |
-
- name: Test inference
|
122 |
-
run: |
|
123 |
-
livermask --input samples --output results --verbose --vessels
|
|
|
79 |
- name: Test inference .nii
|
80 |
run: |
|
81 |
livermask --input samples --output results --verbose --vessels
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
demo/app.py
CHANGED
@@ -40,7 +40,7 @@ def load_mesh(mesh_file_name):
|
|
40 |
if __name__ == "__main__":
|
41 |
demo = gr.Interface(
|
42 |
fn=load_mesh,
|
43 |
-
inputs=gr.UploadButton(label="Click to Upload a File",
|
44 |
outputs=gr.Model3D(clear_color=[0.0, 0.0, 0.0, 0.0], label="3D Model"),
|
45 |
title="livermask: Automatic Liver Parenchyma segmentation in CT",
|
46 |
description="Using pretrained deep learning model trained on the LiTS17 dataset",
|
|
|
40 |
if __name__ == "__main__":
|
41 |
demo = gr.Interface(
|
42 |
fn=load_mesh,
|
43 |
+
inputs=gr.UploadButton(label="Click to Upload a File", file_types=[".nii", ".nii.nz"], file_count="single"),
|
44 |
outputs=gr.Model3D(clear_color=[0.0, 0.0, 0.0, 0.0], label="3D Model"),
|
45 |
title="livermask: Automatic Liver Parenchyma segmentation in CT",
|
46 |
description="Using pretrained deep learning model trained on the LiTS17 dataset",
|
setup.py
CHANGED
@@ -10,7 +10,7 @@ with open('requirements.txt', 'r', encoding='utf-16', errors='ignore') as ff:
|
|
10 |
|
11 |
setup(
|
12 |
name='livermask',
|
13 |
-
version='1.
|
14 |
author="André Pedersen and Javier Pérez de Frutos",
|
15 |
author_email="andrped94@gmail.com",
|
16 |
license='MIT',
|
|
|
10 |
|
11 |
setup(
|
12 |
name='livermask',
|
13 |
+
version='1.5.0',
|
14 |
author="André Pedersen and Javier Pérez de Frutos",
|
15 |
author_email="andrped94@gmail.com",
|
16 |
license='MIT',
|