Skip to content

Commit 2e8272a

Browse files
authored
Merge pull request #280 from deephealthproject/develop
EDDL v1.0a
2 parents 0f838fa + df2c240 commit 2e8272a

File tree

217 files changed

+17434
-1596
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

217 files changed

+17434
-1596
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
.vscode
99
*~
1010
*.tar.gz
11+
*.swp
1112

1213
# Build
1314
/[Bb]uild*
@@ -28,6 +29,11 @@ docs/sphinx/source/_build
2829
old_build/example_*
2930
old_build/test_*
3031

32+
# ONNX tests
33+
scripts/tests/py_onnx/**/data/
34+
scripts/tests/py_onnx/**/.data/
35+
scripts/tests/py_onnx/**/onnx_models/
36+
3137
# Files generated by CLion
3238
cmake-build-*
3339

docs/markdown/eddl_progress.md

Lines changed: 104 additions & 92 deletions
Large diffs are not rendered by default.

docs/markdown/eddl_progress_documentation.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
| :------ | :---------: | :----------: | :------- |
2626
| External dependencies | ✔️ | ✔️ | |
2727
| Build and optimization |
28-
|       Build | ✔️ | ✔️ | |
29-
|       Backend support | ✔️ | ✔️ | FPGA support note: not yet implemented |
30-
|       Additional flags | ✔️ | ✔️ | |
28+
| Build | ✔️ | ✔️ | |
29+
| Backend support | ✔️ | ✔️ | FPGA support note: not yet implemented |
30+
| Additional flags | ✔️ | ✔️ | |
3131

3232

3333
## Troubleshoot
@@ -104,8 +104,11 @@
104104
| Input | ✔️ | ✔️ | |
105105
| Droput | ✔️ | ✔️ | |
106106
| Select | ✔️ | ✔️ | |
107+
| Slice | ✔️ | ✔️ | |
107108
| Permute | ✔️ | ✔️ | |
108-
| Transpose | ✔️ | ✔️ | |
109+
| Expand | ✔️ | ✔️ | |
110+
| Split | ✔️ | ✔️ | |
111+
| Transpose | ✔️ | ✔️ | |
109112

110113
## Activations
111114

docs/markdown/eddl_progress_tensor.md

Lines changed: 84 additions & 80 deletions
Large diffs are not rendered by default.
218 KB
Loading

docs/sphinx/source/index.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ The code is open source, and `available on github`_.
4343
:caption: Layers
4444

4545
layers/core.rst
46+
layers/auxiliar.rst
4647
layers/activations.rst
4748
layers/data_augmentation.rst
4849
layers/data_transformation.rst
@@ -98,6 +99,13 @@ The code is open source, and `available on github`_.
9899
bundle/computing_service.rst
99100

100101

102+
.. toctree::
103+
:maxdepth: 1
104+
:caption: Model Zoo
105+
106+
models_zoo/classification.rst
107+
108+
101109
.. toctree::
102110
:maxdepth: 1
103111
:caption: Datasets
@@ -129,4 +137,4 @@ Indices and tables
129137

130138

131139
.. _available on github: https://github.com/deephealthproject/eddl
132-
140+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Auxiliar Layers
2+
================
3+
4+
Constant Of Tensor
5+
-------------------
6+
7+
.. doxygenfunction:: ConstOfTensor
8+
9+
Example:
10+
11+
.. code-block:: c++
12+
13+
t = Tensor::ones({16, 16, 16}};
14+
l = ConstOfTensor(t);
15+
16+
17+
Where
18+
------------------
19+
20+
.. doxygenfunction:: Where
21+
22+
Example:
23+
24+
.. code-block:: c++
25+
26+
l = Where(parent1, parent2, condition);

docs/sphinx/source/layers/convolutional.rst

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ Conv3D
3131

3232
.. doxygenfunction:: eddl::Conv3D
3333

34-
.. note::
34+
.. code-block:: c++
3535

36-
**Work in progress**. Not yet implemented.
36+
l = Conv3D(l, 32, {3, 3, 3}, {1, 1, 1}, "same");
3737

3838

3939
Pointwise Convolution 2D
@@ -48,27 +48,49 @@ Example:
4848
l = PointwiseConv2D(l, 32, {3,3}, {1,1});
4949

5050

51-
2D Upsampling
51+
2D UpSampling
5252
--------------
5353

54+
Soon to be deprecated. We recommend the use of the Resize layer.
55+
5456
.. doxygenfunction:: eddl::UpSampling2D
5557

56-
.. note::
58+
Example:
59+
60+
.. code-block:: c++
61+
62+
l = UpSampling2D(l, {2, 2});
63+
64+
65+
3D UpSampling
66+
--------------
67+
68+
UpSampling for 3D images
5769

58-
In future versions this function will call ``scale`` instead of ``repeat``
70+
.. doxygenfunction:: eddl::UpSampling3D
5971

6072
Example:
6173

6274
.. code-block:: c++
6375

64-
l = UpSampling2D(l, {2, 2});
65-
76+
l = UpSampling3D(l, {32, 32});
6677

67-
Convolutional Transpose
68-
------------------------
78+
79+
2D Convolutional Transpose
80+
----------------------------
6981

7082
.. doxygenfunction:: eddl::ConvT2D
7183

72-
.. note::
84+
.. code-block:: c++
85+
86+
l = ConvT2D(l, 32, {3, 3}, {1, 1}, "same");
87+
88+
89+
3D Convolutional Transpose
90+
----------------------------
91+
92+
.. doxygenfunction:: eddl::ConvT3D
93+
94+
.. code-block:: c++
7395

74-
**Work in progress**. Not yet implemented.
96+
l = ConvT3D(l, 32, {3, 3, 3}, {1, 1, 1}, "same");

docs/sphinx/source/layers/core.rst

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,54 @@ Example:
130130
l = Select(l, {"-1", "20:100", "50:-10", ":"});
131131

132132

133+
Slice
134+
---------------
135+
136+
Alias for Select
137+
Selects a subset of the output tensor using indices (similar to Numpy; the batch is ignored)
138+
139+
.. doxygenfunction:: eddl::Slice
140+
141+
142+
Example:
143+
144+
.. code-block:: c++
145+
146+
l = Slice(l, {"-1", "20:100", "50:-10", ":"});
147+
148+
149+
Expand
150+
---------------
151+
152+
Returns a layer with singleton dimensions expanded to a larger size.
153+
154+
.. doxygenfunction:: eddl::Expand(layer l, int size, string name="")
155+
156+
157+
Example:
158+
159+
.. code-block:: c++
160+
161+
// {3, 1, 5, 1, 5} and size=100 => {3, 100, 5, 100, 5}
162+
l = Expand(l, 100);
163+
164+
Split
165+
---------------
166+
167+
168+
Split a tensor (layer) into a list of tensors (layers). (The batch is ignored).
169+
The indexes mark the split points.
170+
171+
.. doxygenfunction:: eddl::Split
172+
173+
174+
Example:
175+
176+
.. code-block:: c++
177+
178+
// e.g.: l=> Output shape: {B, 3, 32, 32}
179+
// vl: {l1, l2, l3}; l1= {B, :1, 32, 32}, l2= {B, 1:2, 32, 32}, l3= {B, 2:, 32, 32}
180+
vector<layer> vl = Split(l, {1,2}, 0);
133181

134182
Permute
135183
---------------
@@ -158,3 +206,17 @@ Example:
158206
.. code-block:: c++
159207

160208
l = Transpose(l);
209+
210+
211+
Resize
212+
-------
213+
214+
Same as Scale but with support for backward operation.
215+
216+
.. doxygenfunction:: Resize
217+
218+
Example:
219+
220+
.. code-block:: c++
221+
222+
l = Resize(l, {35, 35});

docs/sphinx/source/layers/data_augmentation.rst

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,6 @@ Data augmentation
22
=================
33

44
These layers perform random transformations over the previous layer.
5-
Ranges are defined using relative coordinates between 0 and 1.
6-
7-
.. note::
8-
9-
**Work in progress**. Not all transformation modes are implemented.
10-
11-
Currently implemented:
12-
13-
- ``constant``: The input is extended by filling all values beyond the edge with the same constant value, defined by the cval parameter.
14-
- ``original`` (for rotation): The input is extended by filling all values beyond the edge with the original values
15-
16-
17-
18-
19-
RandomAffine
20-
-------------
21-
22-
.. doxygenfunction:: RandomAffine
23-
24-
.. note::
25-
26-
**Not implemented yet**
27-
28-
Check development progress in https://github.com/deephealthproject/eddl/blob/master/docs/markdown/eddl_progress.md#data-augmentations
29-
30-
315

326

337
RandomCrop
@@ -87,20 +61,6 @@ Example:
8761

8862

8963

90-
RandomGrayscale
91-
----------------
92-
93-
.. doxygenfunction:: RandomGrayscale
94-
95-
.. note::
96-
97-
**Not implemented yet**
98-
99-
Check development progress in https://github.com/deephealthproject/eddl/blob/master/docs/markdown/eddl_progress.md#data-augmentations
100-
101-
102-
103-
10464
RandomHorizontalFlip
10565
---------------------
10666

@@ -132,7 +92,7 @@ Example:
13292
RandomScale
13393
--------------
13494

135-
.. doxygenfunction:: RandomScale
95+
.. doxygenfunction:: RandomScale(layer parent, vector<float> factor, string da_mode = "nearest", float constant = 0.0f, string name = "")
13696

13797
Example:
13898

0 commit comments

Comments
 (0)