Skip to content

Commit 5914725

Browse files
authored
Merge pull request #3 from pohl-michel/cmig_revision
Cmig revision
2 parents 8979950 + 75488a2 commit 5914725

File tree

4,316 files changed

+46905
-271
lines changed

Some content is hidden

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

4,316 files changed

+46905
-271
lines changed

.gitattributes

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
*.fig binary
1+
# end of lines
2+
*.py text eol=lf
3+
4+
# binary files*.fig binary
25
*.mat binary
36
*.mdl binary diff merge=mlAutoMerge
47
*.mdlp binary
@@ -26,3 +29,7 @@
2629
*.pdf binary
2730
*.png binary
2831
*.xlsx binary
32+
33+
# To help for code review
34+
*.IMA linguist-generated=true
35+
*.dcm linguist-generated=true

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66
!/Image_prediction/input_imgs/2D images/3. sq sl010 sag Xcs=80/
77
!/Image_prediction/input_imgs/2D images/4. sq sl014 sag Xcs=165/
88
!/Image_prediction/input_imgs/2D images/5. sq sl014 sag Xcs=95/
9+
!/Image_prediction/input_imgs/2D images/2020-11-10_KS81_Nav_Pur_1/
10+
!/Image_prediction/input_imgs/2D images/2020-11-12_QN76_Nav_Pur_1/
11+
!/Image_prediction/input_imgs/2D images/2020-11-17_CS31_Nav_Pur_2/
12+
!/Image_prediction/input_imgs/2D images/2020-11-17_JY02_Nav_Pur_2/
13+
!/Image_prediction/input_imgs/2D images/2020-11-23_ON65_Nav_Pur_2/
14+
!/Image_prediction/input_imgs/2D images/2020-11-23_PS11_Nav_Pur_1/
15+
!/Image_prediction/input_imgs/2D images/2020-11-25_II29_Nav_Pur_1/
16+
!/Image_prediction/input_imgs/2D images/2020-11-26_NE38_Nav_Pur_1/
917

1018
# Ignoring txt files inside the "2D images" subdireectory
1119
/Image_prediction/input_imgs/2D images/*.txt
@@ -30,6 +38,9 @@ create_4Dmri_dataset_spec-file.txt
3038
/Time_series_forecasting/c. Prediction results (images)
3139
/Time_series_forecasting/d. RNN variables (temp)
3240
/Time_series_forecasting/e. Log txt files
41+
/Time_series_forecasting/models/*
42+
!/Time_series_forecasting/models/training_with_eth_dataset/
43+
!/Time_series_forecasting/models/training_with_magdeburg_dataset/
3344

3445
# Excluding gifs inside the visualisation folder except a few ones
3546
/Image_prediction/visualization/*.gif
@@ -42,3 +53,9 @@ create_4Dmri_dataset_spec-file.txt
4253
*.bak
4354
*.asv
4455
*.jpg
56+
57+
# Ignore Python bytecode
58+
__pycache__/
59+
*.pyc
60+
*.pyo
61+
*.pyd

.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"tabWidth": 4
3+
}

.pylintrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[TYPECHECK]
2+
generated-members=torch.*

.vscode/extensions.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"recommendations": [
3+
"gimly81.matlab",
4+
"ms-python.python",
5+
"ms-toolsai.jupyter",
6+
"eamodio.gitlens",
7+
"ms-vscode-remote.remote-wsl",
8+
"ms-python.black-formatter",
9+
"esbenp.prettier-vscode"
10+
]
11+
}

.vscode/launch.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Population Transformer Test",
9+
"type": "debugpy",
10+
"request": "launch",
11+
"module": "other_prediction_functions.train_population_transformer",
12+
"cwd": "${workspaceFolder}/Time_series_forecasting",
13+
"args": ["--tuning", "--gpu", "--njobs", "1"],
14+
"console": "integratedTerminal"
15+
}
16+
]
17+
}

.vscode/settings.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"[python]":{
3+
"editor.formatOnType": false,
4+
"editor.defaultFormatter": "ms-python.black-formatter",
5+
"editor.formatOnSave": true,
6+
},
7+
"[notebook]":{
8+
"editor.defaultFormatter": "ms-python.black-formatter",
9+
},
10+
"notebook.formatOnSave.enabled": true,
11+
"[json]":{
12+
"editor.defaultFormatter": "esbenp.prettier-vscode",
13+
"editor.formatOnSave": true,
14+
"editor.tabSize": 4
15+
},
16+
"editor.rulers": [120]
17+
}

Image_prediction/1. Optical flow calculation/compute_2Dof.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function eval_OF_results = compute_2Dof( OF_par, im_par, path_par)
1+
function eval_OF_results = compute_2Dof( OF_par, im_par, path_par, eval_OF_results)
22
% Computes the optical flow (OF) between t = 1 and im_par.nb_im,
33
% and saves the result in a mat file.
44
% The optical flow is saved rather than returned as an output.
@@ -9,6 +9,9 @@
99
% Version : v1.1
1010
% License : 3-clause BSD License
1111

12+
if nargin < 4
13+
eval_OF_results = struct();
14+
end
1215

1316
fprintf('OPTICAL FLOW CALCULATION \n');
1417
fid = 1; % screen display

Image_prediction/2. Optical flow evaluation/analyze_OF_param_influence.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function analyze_OF_param_influence( rms_error_all_seq, OFeval_par, beh_par, path_par)
1+
function analyze_OF_param_influence( rms_error_all_seq, OFeval_par, beh_par, path_par, nb_optim_imgs)
22
% Returns information about the influence of each hyper-parameter set in the grid search on the DVF accuracy in a txt file.
33
%
44
% Possible steps to improve the code:
@@ -139,8 +139,8 @@ function analyze_OF_param_influence( rms_error_all_seq, OFeval_par, beh_par, pat
139139
else
140140
fprintf(fid, 'evaluation in the entire image \n');
141141
end
142-
fprintf(fid, '\n');
143-
142+
fprintf(fid, 'optimization using the first %d images\n', nb_optim_imgs);
143+
fprintf(fid, '\n');
144144
end
145145

146146
fprintf(fid, 'Lines : Parameter variation \n');

Image_prediction/2. Optical flow evaluation/write_OFhyperpar_optim_log_file.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ function write_OFhyperpar_optim_log_file( beh_par, OFeval_par, path_par, im_par,
2828
else
2929
fprintf(fid, 'evaluation in the entire image \n');
3030
end
31+
fprintf(fid, 'optimization using the first %d images\n', im_par.nb_im);
3132
fprintf(fid, '\n');
3233

3334
fprintf(fid, 'Gradient method : %s \n', OFeval_par.grad_meth_str);

0 commit comments

Comments
 (0)