Skip to content

Commit 88bea99

Browse files
committed
Merge branch 'release-1.3.7a1' into 'release'
Release 1.3.7a1 See merge request dali/PandoraBox/pandora_plugins/plugin_mc-cnn!78
2 parents 2826cf3 + 5c89e00 commit 88bea99

10 files changed

Lines changed: 43 additions & 16 deletions

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Changelog
22

3+
## 1.3.7a1 (June 2026)
4+
35
## 1.3.6 (April 2026)
46

57
## 1.3.6a1 (March 2026)

README.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,20 @@ More specifically, you can find :
4343

4444
### Download weights files
4545

46-
Pretrained weights for mc-cnn fast and mc-cnn accurate neural networks are available in the weights directory :
47-
- mc_cnn_fast_mb_weights.pt and mc_cnn_accurate_mb_weights.pt are the weights of the pretrained networks on the Middlebury dataset [[Middlebury]](#Middlebury)
48-
- mc_cnn_fast_data_fusion_contest.pt and mc_cnn_accurate_data_fusion_contest.pt are the weights of the pretrained networks on the Data Fusion Contest dataset [[DFC]](#DFC)
46+
Pretrained weights for mc-cnn fast and mc-cnn accurate neural networks are available in the MCCNN [repository](https://github.com/CNES/Pandora_MCCNN/tree/master/src/mc_cnn/weights):
47+
48+
**Fast network**
49+
50+
- mc_cnn_fast_mb_weights.pt are the weights of the pretrained networks on the Middlebury dataset [[Middlebury]](#Middlebury)
51+
- mc_cnn_fast_data_fusion_contest.pt are the weights of the pretrained networks on the Data Fusion Contest dataset [[DFC]](#DFC)
52+
- mc_cnn_fast_dw.onnx are the weights of the pretrained networks using depthwise convolutions on the Middlebury dataset [[Middlebury]](#Middlebury)
53+
- mc_cnn_fast_int8_excl_01.onnx are the weights of the quantized pretrained networks on the Middlebury dataset [[Middlebury]](#Middlebury), where layers 0 and 1 are excluded from quantization
54+
55+
**Accurate network**
56+
57+
- mc_cnn_accurate_mb_weights.pt are the weights of the pretrained networks on the Middlebury dataset [[Middlebury]](#Middlebury)
58+
- mc_cnn_accurate_data_fusion_contest.pt are the weights of the pretrained networks on the Data Fusion Contest dataset [[DFC]](#DFC)
59+
4960

5061
To download the pretrained weights:
5162

@@ -54,6 +65,8 @@ wget https://raw.githubusercontent.com/CNES/Pandora_MCCNN/master/mc_cnn/weights/
5465
wget https://raw.githubusercontent.com/CNES/Pandora_MCCNN/master/mc_cnn/weights/mc_cnn_fast_data_fusion_contest.pt
5566
wget https://raw.githubusercontent.com/CNES/Pandora_MCCNN/master/mc_cnn/weights/mc_cnn_accurate_mb_weights.pt
5667
wget https://raw.githubusercontent.com/CNES/Pandora_MCCNN/master/mc_cnn/weights/mc_cnn_accurate_data_fusion_contest.pt
68+
wget https://raw.githubusercontent.com/CNES/Pandora_MCCNN/master/mc_cnn/weights/mc_cnn_fast_dw.onnx
69+
wget https://raw.githubusercontent.com/CNES/Pandora_MCCNN/master/mc_cnn/weights/mc_cnn_fast_int8_excl_01.onnx
5770
```
5871

5972
### Access weights from pip package
@@ -66,7 +79,9 @@ from mc_cnn.weights import get_weights
6679
mc_cnn_fast_mb_weights_path = get_weights(arch="fast", training_dataset="middlebury")
6780
mc_cnn_fast_data_fusion_contest_path = get_weights(arch="fast", training_dataset="dfc")
6881
mc_cnn_accurate_mb_weights_path = get_weights(arch="accurate", training_dataset="middlebury")
69-
mc_cnn_accurate_data_fusion_contest = get_weights(arch="accurate", training_dataset="dfc")
82+
mc_cnn_accurate_data_fusion_contest_path = get_weights(arch="accurate", training_dataset="dfc")
83+
mc_cnn_onnx_fast_int8_path = get_weights(arch="onnx_fast_int8", training_dataset="middlebury")
84+
mc_cnn_onnx_fast_dw_path = get_weights(arch="onnx_fast_dw", training_dataset="middlebury")
7085
```
7186

7287
## Output example

doc/source/getting_started.rst

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,21 @@ More specifically, you can find :
3737
Pretrained Weights for MCCNN networks
3838
#####################################
3939

40-
Pretrained weights for mc-cnn fast and mc-cnn accurate neural networks are available in the weights directory :
40+
Pretrained weights for mc-cnn fast and accurate networks are available in the MC-CNN
41+
`repository <https://github.com/CNES/Pandora_MCCNN/tree/master/src/mc_cnn/weights>`_ :
4142

42-
- mc_cnn_fast_mb_weights.pt and mc_cnn_accurate_mb_weights.pt are the weights of the pretrained networks on the Middlebury dataset [Middlebury]_
43+
**Fast network**
44+
45+
- mc_cnn_fast_mb_weights.pt are the weights of the pretrained networks on the Middlebury dataset [Middlebury]_
46+
- mc_cnn_fast_data_fusion_contest.pt are the weights of the pretrained networks on the Data Fusion Contest dataset [DFC]_
47+
- mc_cnn_fast_dw.onnx are the weights of the pretrained networks using depthwise convolutions on the Middlebury dataset [Middlebury]_
48+
- mc_cnn_fast_int8_excl_01.onnx are the weights of the quantized pretrained networks on the Middlebury dataset [Middlebury]_, where layers 0 and 1 are excluded from quantization
49+
50+
**Accurate network**
51+
52+
- mc_cnn_accurate_mb_weights.pt are the weights of the pretrained networks on the Middlebury dataset [Middlebury]_
53+
- mc_cnn_accurate_data_fusion_contest.pt are the weights of the pretrained networks on the Data Fusion Contest dataset [DFC]_
4354

44-
- mc_cnn_fast_data_fusion_contest.pt and mc_cnn_accurate_data_fusion_contest.pt are the weights of the pretrained networks on the Data Fusion Contest dataset [DFC]_
4555

4656
.. [Middlebury] Scharstein, D., Hirschmüller, H., Kitajima, Y., Krathwohl, G., Nešić, N., Wang, X., & Westling, P. (2014, September). High-resolution stereo datasets with subpixel-accurate ground truth. In German conference on pattern recognition (pp. 31-42). Springer, Cham.
4757

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ setup_requires =
4141
# Pandora plugin MC-CNN packages dependencies
4242
install_requires =
4343
numpy
44-
MCCNN==1.3.0
45-
pandora==1.8.0
44+
MCCNN==1.4.0a1
45+
pandora==1.8.1a1
4646
xarray
4747
json-checker
4848
psutil

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ sonar.projectKey=outilscommuns:correlateurchaine3D:pandora_plugin_mc_cnn
33

44
# project metadata
55
sonar.projectName=plugin_MC_CNN
6-
sonar.projectVersion=1.3.6
6+
sonar.projectVersion=1.3.7a1
77

88
# path to source directories (required)
99
sonar.sources=pandora_plugin_mc_cnn

tests/test_cfg_mccnn_fast.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"matching_cost_method": "mc_cnn",
1414
"subpix": 1,
1515
"window_size": 11,
16-
"model_path": "tests/weights/mc_cnn_fast_mb_weights.pt"
16+
"model_path": "tests/weights/mc_cnn_fast_int8_excl_01.onnx"
1717
},
1818
"aggregation" : {
1919
"aggregation_method": "cbca"

tests/test_cfg_mccnn_fast_multiband.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"subpix": 1,
1515
"window_size": 11,
1616
"band":"r",
17-
"model_path": "tests/weights/mc_cnn_fast_mb_weights.pt"
17+
"model_path": "tests/weights/mc_cnn_fast_int8_excl_01.onnx"
1818
},
1919
"aggregation" : {
2020
"aggregation_method": "cbca"

tests/test_plugin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def test_mc_cnn(self):
104104
def test_mc_cnn_default_values(self):
105105
"""
106106
Test Pandora + plugin_mc-cnn without specifying parameters window size, subpix and model_path
107-
Uses the default model path : "mc_cnn_fast_mb_weights.pt" stored in MC-CNN pip package
107+
Uses the default model path : "mc_cnn_fast_int8_excl_01.onnx" stored in MC-CNN pip package
108108
109109
"""
110110
# Create temporary directory
@@ -122,7 +122,7 @@ def test_mc_cnn_default_values(self):
122122
def test_mc_cnn_multiband_values(self):
123123
"""
124124
Test Pandora + plugin_mc-cnn with multiband input images
125-
Uses the default model path : "mc_cnn_fast_mb_weights.pt" stored in MC-CNN pip package
125+
Uses the default model path : "mc_cnn_fast_int8_excl_01.onnx" stored in MC-CNN pip package
126126
127127
"""
128128
# Create temporary directory
@@ -320,7 +320,7 @@ def test_invalidates_cost(self):
320320
"matching_cost_method": "mc_cnn",
321321
"window_size": 11,
322322
"subpix": 1,
323-
"model_path": "tests/weights/mc_cnn_fast_mb_weights.pt",
323+
"model_path": "tests/weights/mc_cnn_fast_int8_excl_01.onnx",
324324
}
325325
)
326326
disparity_grids = (
@@ -525,7 +525,7 @@ def test_invalidates_cost(self):
525525
"matching_cost_method": "mc_cnn",
526526
"window_size": 11,
527527
"subpix": 1,
528-
"model_path": "tests/weights/mc_cnn_fast_mb_weights.pt",
528+
"model_path": "tests/weights/mc_cnn_fast_int8_excl_01.onnx",
529529
}
530530
)
531531
disparity_grids = (
289 KB
Binary file not shown.
-1.14 MB
Binary file not shown.

0 commit comments

Comments
 (0)