Skip to content

Commit b98bfc8

Browse files
author
Gregor Ramien
committed
install batchgenerators via pip
1 parent 264bff9 commit b98bfc8

File tree

3 files changed

+26
-13
lines changed

3 files changed

+26
-13
lines changed

README.md

+2-9
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,15 @@ of Segmentation Supervision for Medical Object Detection" </a>, 2018
2929
Please cite the original publication [3].
3030

3131
## Installation
32-
Setup package in virtual environment
32+
Setup package in a virtual environment:
3333
```
3434
git clone https://github.com/pfjaeger/medicaldetectiontoolkit.git .
3535
cd medicaldetectiontoolkit
3636
virtualenv -p python3 venv
3737
source venv/bin/activate
3838
pip3 install -e .
3939
```
40-
Install MIC-DKFZ batch-generators
41-
```
42-
cd ..
43-
git clone https://github.com/MIC-DKFZ/batchgenerators
44-
cd batchgenerators
45-
pip3 install -e .
46-
cd ../medicaldetectiontoolkit
47-
```
40+
4841
We use two cuda functions: Non-Maximum Suppression (taken from [pytorch-faster-rcnn](https://github.com/ruotianluo/pytorch-faster-rcnn) and added adaption for 3D) and RoiAlign (taken from [RoiAlign](https://github.com/longcw/RoIAlign.pytorch), fixed according to [this bug report](https://hackernoon.com/how-tensorflows-tf-image-resize-stole-60-days-of-my-life-aba5eb093f35), and added adaption for 3D). In this framework, they come pre-compile for TitanX. If you have a different GPU you need to re-compile these functions:
4942

5043

requirements.txt

+22-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,28 @@
1+
batchgenerators==0.19.5
12
cffi==1.11.5
2-
matplotlib==3.0.0
3+
cycler==0.10.0
4+
decorator==4.4.1
5+
future==0.18.2
6+
imageio==2.6.1
7+
kiwisolver==1.1.0
8+
linecache2==1.0.0
9+
matplotlib==3.1.2
10+
-e git+ssh://[email protected]:2222/source/mdt-public.git@264bff9060495d4c94051398a9580e95ba7fda7e#egg=model
11+
networkx==2.4
312
numpy==1.15.3
413
pandas==0.23.4
14+
Pillow==6.2.1
15+
pycparser==2.19
16+
pyparsing==2.4.5
17+
python-dateutil==2.8.1
18+
pytz==2019.3
19+
PyWavelets==1.1.1
20+
scikit-image==0.16.2
521
scikit-learn==0.20.0
22+
scipy==1.3.3
23+
six==1.13.0
624
sklearn==0.0
25+
threadpoolctl==1.1.0
726
torch==0.4.1
8-
27+
traceback2==1.4.0
28+
unittest2==1.1.0

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ def parse_requirements(filename):
2525

2626
install_reqs = parse_requirements(req_file)
2727

28-
setup(name='model',
29-
version='latest',
28+
setup(name='medicaldetectiontoolkit',
29+
version='0.0.1',
3030
packages=find_packages(exclude=['test', 'test.*']),
3131
install_requires=install_reqs,
3232
dependency_links=[],

0 commit comments

Comments
 (0)