Skip to content
This repository was archived by the owner on Jun 26, 2021. It is now read-only.

Commit 91fea9b

Browse files
authored
Merge pull request #57 from justusschock/old_master
Merge Old Master
2 parents 14a1dcf + f902cad commit 91fea9b

File tree

5 files changed

+53
-23
lines changed

5 files changed

+53
-23
lines changed

.travis.yml

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,49 @@ matrix:
1414
# command to install dependencies
1515
before_install:
1616
- pip install -U pip wheel
17+
- pip install -r requirements.txt
1718
- pip install -r requirements_extra_torch.txt
1819
# install tensorflow only in python 3.6, since lacking support for python 3.7
1920
# - if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then
2021
# pip install -r requirements_extra_tf.txt;
2122
# pip uninstall -y tensorflow-gpu;
2223
# pip install tensorflow==1.12.0;
2324
# fi
24-
- pip install -r requirements.txt
2525
- pip install codecov
26+
- pip install -r docs/requirements.txt
2627

2728
install:
2829
- pip install .
30+
2931
# command to run tests
3032
script:
3133
- pytest
3234
- codecov
35+
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.7" ]]; then
36+
cd ./docs;
37+
make html;
38+
make html;
39+
make html;
40+
touch _build/html/.nojekyll;
41+
fi
42+
43+
before_deploy:
44+
- cd $TRAVIS_BUILD_DIR
3345

3446
deploy:
35-
provider: pypi
36-
user: $PYPI_USERNAME
37-
password: $PYPI_PASSWORD
38-
on:
39-
tags: true
40-
distributions: "sdist bdist_wheel"
41-
skip_existing: true
47+
- provider: pages
48+
skip_cleanup: true
49+
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure
50+
keep-history: true
51+
on:
52+
branch: master
53+
condition: "$TRAVIS_PYTHON_VERSION = 3.7"
54+
local_dir: docs/_build/html
55+
- provider: pypi
56+
user: $PYPI_USERNAME
57+
password: $PYPI_PASSWORD
58+
on:
59+
tags: true
60+
distributions: "sdist bdist_wheel"
61+
skip_existing: true
62+

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.com/justusschock/delira.svg?branch=master)](https://travis-ci.com/justusschock/delira) [![Documentation Status](https://readthedocs.org/projects/delira/badge/?version=master)](https://delira.readthedocs.io/en/master/?badge=master) [![codecov](https://codecov.io/gh/justusschock/delira/branch/master/graph/badge.svg)](https://codecov.io/gh/justusschock/delira)
1+
[![PyPI version](https://badge.fury.io/py/delira.svg)](https://badge.fury.io/py/delira) [![Build Status](https://travis-ci.com/justusschock/delira.svg?branch=master)](https://travis-ci.com/justusschock/delira) [![Documentation Status](https://readthedocs.org/projects/delira/badge/?version=master)](https://delira.readthedocs.io/en/master/?badge=master) [![codecov](https://codecov.io/gh/justusschock/delira/branch/master/graph/badge.svg)](https://codecov.io/gh/justusschock/delira)
22
![LICENSE](https://img.shields.io/github/license/justusschock/delira.svg)
33

44
![logo](docs/_static/logo/delira.svg "delira - Deep Learning in Radiology")
@@ -9,11 +9,11 @@ Authors: [Justus Schock, Oliver Rippel, Christoph Haarburger](AUTHORS.rst)
99
## Introduction
1010
Delira was developed as a deep learning framework for medical images such as CT or MRI. Currently, it works on arbitrary data (based on [NumPy](http://www.numpy.org/)).
1111

12-
Based on [PyTorch](https://pytorch.org), [batchgenerators](https://github.com/MIC-DKFZ/batchgenerators) and [trixi](https://github.com/MIC-DKFZ/trixi) it provides a framework for
12+
Based on [batchgenerators](https://github.com/MIC-DKFZ/batchgenerators) and [trixi](https://github.com/MIC-DKFZ/trixi) it provides a framework for
1313
* Dataset loading
1414
* Dataset sampling
1515
* Augmentation (multi-threaded) including 3D images with any number of channels
16-
* A generic trainer class that implements the training process
16+
* A generic trainer class that implements the training process for all [backends](#choose-backend)
1717
* Already implemented [models](delira/models) used in medical image processing and exemplaric implementations of most used models in general (like Resnet)
1818
* Web-based monitoring using [Visdom](https://github.com/facebookresearch/visdom)
1919
* Model save and load functions
@@ -24,13 +24,14 @@ Delira supports classification and regression problems as well as generative adv
2424

2525
### Choose Backend
2626

27-
Currently the only available backend is [PyTorch](https://pytorch.org) (or no backend at all) but we are working on support for [TensorFlow](https://tensorflow.org) as well. If you want to add another backend, please open an issue (it should not be hard at all) and we will guide you during the process of doing so.
27+
Currently the only available backends are [PyTorch](https://pytorch.org) and [TensorFlow](https://tensorflow.org)(or no backend at all). If you want to add another backend, please open an issue (it should not be hard at all) and we will guide you during the process of doing so.
2828

2929
| Backend | Binary Installation | Source Installation | Notes |
3030
|--------------------------------|-----------------------------|---------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|
3131
| None | `pip install delira` | `pip install git+https://github.com/justusschock/delira.git` | Training not possible if backend is not installed separately |
32-
| [`torch`](https://pytorch.org) | `pip install delira[torch]` | `git clone https://github.com/justusschock/delira.git && cd delira && pip install .[torch]` | `delira` with `torch` backend supports mixed-precision training via [NVIDIA/apex](https://github.com/NVIDIA/apex.git) (must be installed separately). |
33-
| Full | `pip install delira[full]` | `git clone https://github.com/justusschock/delira.git && cd delira && pip install .[full]` | All backends are getting installed. |
32+
| [`torch`](https://pytorch.org) | `pip install delira[torch]` | `git clone https://github.com/justusschock/delira.git && cd delira && pip install .[torch]` | `delira` with `torch` backend supports mixed-precision training via [NVIDIA/apex](https://github.com/NVIDIA/apex.git) (must be installed separately). |
33+
| [`tf`](https://www.tensorflow.org/) | - | `git clone https://github.com/justusschock/delira.git && cd delira && pip install .[tf]` | the `tf` backend is still very experimental and lacks some [features](https://github.com/justusschock/delira/issues/47) |
34+
| Full | `pip install delira[full]` | `git clone https://github.com/justusschock/delira.git && cd delira && pip install .[full]` | All backends will be installed. |
3435

3536
### Docker
3637
The easiest way to use `delira` is via docker (with the [nvidia-runtime](https://github.com/NVIDIA/nvidia-docker) for GPU-support) and using the [Dockerfile](docker/Dockerfile) or the [prebuild-images](https://cloud.docker.com/u/justusschock/repository/docker/justusschock/delira).

delira/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '0.2.1'
1+
__version__ = '0.3.0'
22

33
import warnings
44
warnings.simplefilter('default', DeprecationWarning)

docs/getting_started.rst

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
Getting started
22
===============
33

4-
Installation
5-
------------
6-
74
Backends
8-
~~~~~~~~~~~
5+
--------
96

107
Before installing ``delira``, you have to choose a suitable backend.
118
``delira`` handles backends as optional dependencies and tries to escape all uses of a not-installed backend.
@@ -16,6 +13,11 @@ The currently supported backends are:
1613

1714
.. note::
1815
``delira`` supports mixed-precision training via `apex <https://github.com/NVIDIA/apex>`_, but ``apex`` must be installed separately
16+
17+
* `tf <https://tensorflow.org>`_ (very experimental): Suffix ``tf``
18+
19+
.. note::
20+
the ``tf`` backend is still very experimental and may be unstable.
1921

2022
* None: No Suffix
2123

@@ -25,15 +27,21 @@ The currently supported backends are:
2527
Depending on the backend, some functionalities may not be available for you. If you want to ensure, you can use each functionality, please use the ``full`` option, since it installs all backends
2628

2729
.. note::
28-
Currently the only other planned backend is TensorFlow (which is coming soon). If you want to add a backend like `CNTK <https://www.microsoft.com/en-us/cognitive-toolkit/>`_, `Chainer <https://chainer.org/>`_, `MXNET <https://mxnet.apache.org/>`_ or something similar, please open an issue for that and we will guide you during that process (don't worry, it is not much effort at all).
30+
If you want to add a backend like `CNTK <https://www.microsoft.com/en-us/cognitive-toolkit/>`_, `Chainer <https://chainer.org/>`_, `MXNET <https://mxnet.apache.org/>`_ or something similar, please open an issue for that and we will guide you during that process (don't worry, it is not much effort at all).
31+
32+
Installation
33+
------------
2934

3035
======== ============================= ============================================================================================= ======================================================================================================================
3136
Backend Binary Installation Source Installation Notes
3237
======== ============================= ============================================================================================= ======================================================================================================================
3338
None ``pip install delira`` ``pip install git+https://github.com/justusschock/delira.git`` Training not possible if backend is not installed separately
3439
`torch`_ ``pip install delira[torch]`` ``git clone https://github.com/justusschock/delira.git && cd delira && pip install .[torch]`` ``delira`` with ``torch`` backend supports mixed-precision training via `NVIDIA/apex`_ (must be installed separately).
40+
`tf`_ -- ``git clone https://github.com/justusschock/delira.git && cd delira && pip install .[tf]`` The tensorflow backend is still very experimental and lacks some `features`_
3541
Full ``pip install delira[full]`` ``git clone https://github.com/justusschock/delira.git && cd delira && pip install .[full]`` All backends are getting installed.
3642
======== ============================= ============================================================================================= ======================================================================================================================
3743

3844
.. _torch: https://pytorch.org
3945
.. _NVIDIA/apex: https://github.com/NVIDIA/apex.git
46+
.. _tf: https://tensorflow.org
47+
.. _features: https://github.com/justusschock/delira/issues/47

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
numpy>=1.15.0,<1.16.0
2-
scikit-image==0.14.0
1+
numpy>=1.15.0
2+
scikit-image>=0.14.0
33
scikit-learn>=0.20.0
44
jupyter>=1.0.0
55
flake8
@@ -14,6 +14,6 @@ tqdm
1414
visdom>=0.1.8.5
1515
pyyaml
1616
trixi-slim
17-
batchgenerators@git+https://github.com/MIC-DKFZ/batchgenerators.git@91feb74747bfcfb9514d509fb13b854a37847b4d#egg=batchgenerators-0
17+
batchgenerators>=0.18
1818
psutil
1919
nested_lookup

0 commit comments

Comments
 (0)