49 Commits

Author SHA1 Message Date
329e213e1f write image: automatically detect padding 2023-05-15 11:34:23 +02:00
19005366d3 mem management: add faster way to free all memory 2023-05-15 10:44:09 +02:00
julienChemillier
46333299bd Add stride, padding to the backprop of convolution 2023-05-14 15:21:07 +02:00
julienChemillier
db9eff9087 Add stride and padding to the backward poolings 2023-05-14 13:08:52 +02:00
321994df2b Fix cuda compilation 2023-05-13 22:42:13 +02:00
julienChemillier
f316882eeb Add 'stride' and 'padding' to the forward 2023-05-13 13:37:46 +02:00
julienChemillier
7d3a7c1aff Change a variable to a more explicit one 2023-05-13 10:41:24 +02:00
julienChemillier
0a63988d3c Removal of useless comments 2023-05-13 10:30:29 +02:00
fd36226600 Move generic files to src/common 2023-05-12 16:16:34 +02:00
julienChemillier
af288166d6 Ajout stride dans average_ pooling et max_pooling 2023-05-08 11:32:58 +02:00
julienChemillier
6e022fbd44 Ajout de 'stride' dans 'make_convolution' 2023-05-08 11:11:55 +02:00
7511856621 Translate backward convolution to CUDA
Not working yet, CUDA kernels in `backpropagation.cu` don't have access to activation functions declared in `function.cu` using `get_activation_function_cuda`.

Temporary workaround: copy `backpropagation.cu` parts that don't work to `function.cu` (all the parts using function pointers in kernels
2023-03-30 18:16:41 +02:00
2d6b4fe011 Implement copy_3d_array in CUDA 2023-03-28 12:38:06 +02:00
677de892e7 Add function.cu
Translate `apply_function_input` and `get_activation_function` to CUDA
2023-03-26 17:14:07 +02:00
b893f11da0 Add random offset to mnist images during learning 2023-03-22 13:03:19 +01:00
3a50b08179 Add max_pooling backward 2023-03-10 18:19:23 +01:00
julienChemillier
89402b9ee6 Replace numbers by defines 2023-03-08 20:48:34 +01:00
796a94207f Add comments to cnn.c 2023-03-03 21:58:05 +01:00
95ce123587 Fix wrong argument for pooling (forward) 2023-03-01 09:37:40 +01:00
4b87b19188 Add bias to make_dense_linearized 2023-02-28 11:47:57 +01:00
julienChemillier
4df1bf7b5b Suppression de warning durant la compilation 2023-02-24 11:03:51 +01:00
julienChemillier
b7b90f9cab Add cross_entropy backpropagation 2023-02-24 11:01:59 +01:00
julienChemillier
1d462576a9 Change 'input_size' to 'size_input' 2023-02-19 13:43:09 +01:00
julienChemillier
a461e0756a Oupsi 2023-02-18 13:26:26 +01:00
julienChemillier
3f9114c245 Change fully_connected to dense 2023-02-17 14:56:05 +01:00
julienChemillier
46ce52802e merge 2023-01-30 09:39:45 +01:00
julienChemillier
c994dab6d9 Change in parameters of 'generate_wanted_output' 2023-01-18 10:31:59 +01:00
julienChemillier
a21481d1cc Change 'wanted_number' from float to int 2023-01-18 10:25:46 +01:00
cea4132e2d Remove white spaces 2023-01-17 15:34:29 +01:00
c78c8a0ade Update linearisation detection 2023-01-17 12:49:35 +01:00
julienChemillier
c74d3f574b Merge branch 'main' of https://github.com/julienChemillier/TIPE 2022-12-07 10:27:52 +01:00
7da3544d8b Add recognize option 2022-11-25 15:17:47 +01:00
julienChemillier
c1283d8c4b Fix softmax_backward 2022-11-25 14:49:21 +01:00
d0b7781695 Add jpeg dataset implementation 2022-11-19 16:09:07 +01:00
julienChemillier
c73d4d5b90 Fix 'nan' issue 2022-11-15 12:47:33 +01:00
julienChemillier
65505858da Update backprop 2022-11-12 14:20:13 +01:00
julienChemillier
0f761d1e0c Fix of an issue regarding the activation function 2022-11-04 12:56:13 +01:00
julienChemillier
b21ac23673 Add of the dropout feature 2022-11-04 12:02:00 +01:00
88ff365c70 Clean compilers warnings a bit 2022-11-03 18:45:38 +01:00
julienChemillier
698d5820cd Add backpropagation (.h and .c) 2022-11-03 17:50:11 +01:00
julienChemillier
0e317549a5 Creation of update (.h and .c) 2022-11-03 16:28:03 +01:00
julienChemillier
d5c7c03f82 Add of input_z and and fix of issues 2022-10-31 20:08:42 +01:00
julienChemillier
d6d69a1acb Add functions for batches (non tested) 2022-10-26 18:27:46 +02:00
cf050de1d6 Move to Makefile 2022-10-24 12:54:51 +02:00
Julien Chemillier
638cada723 Add mean squared error (MSE) 2022-10-07 15:32:54 +02:00
e4ec06705b Update train.c 2022-10-07 14:26:36 +02:00
Julien Chemillier
9f44e4a189 Completion of the forward 2022-10-02 20:31:20 +02:00
dfe7fc7731 Add main.c & train.c 2022-10-01 17:53:14 +02:00
e3099106c7 Rename main.c -> cnn.c 2022-09-30 15:54:21 +02:00