A toolkit python package to build an adaptive multimodal late fusion pipeline based on Dempster-Shafer Theory for semantic segmentation and classification tasks.
Project description
ECoLaF
This package offers a user-friendly toolkit to build an adaptive multimodal late fusion pipeline (ECoLaF) based on the Dempster-Shafer Theory from multiple single-modality neural networks. The proposed pipeline can be used for semantic segmentation and classification tasks.
INSTALLATION
To install the package, use the following command: pip install ecolaf.
USAGE
Firstly, a single-modality neural network needs to be defined for each modality. Please make sure that each neural network has a forward method. If the dataset you are working with has K classes, please make sure that your models output K+1 values to fit the Dempster-Shafer framework.
Then you can build an ECoLaF pipeline as follows:
MyModel = ECOLAF(list_of_single_modality_networks, num_classes).
Given a list of multimodal images, the inference can be done as follows:
output = MyModel(list_of_images, **kwargs).
The optional arguments of the forward method are listed bellow:
output_unimodal (Boolean): returns the list of outputs for each model
output_conflict (Boolean): returns a conflict map of shape BxMxHxW
output_discounting_coef (Boolean): returns the discounting coefficients map of shape BxMxHxW
interpolation (Boolean): interpolates the output to the original image size
output_keyword (String): key to access to the output tensor if the model's output is a dictionary
(for example, the deeplabV3_resnet50 model from torchvision requires output_keyword='out')
B: batch_size, M: number of modalities, H: images height, W: images width
An example is provided in test/test_code.py.
CITATIONS
If you use ECoLaF, please cite the following work:
@InProceedings{Deregnaucourt_2025_WACV,
author = {Deregnaucourt, Lucas and Laghmara, Hind and Lechervy, Alexis and Ainouz, Samia},
title = {A Conflict-Guided Evidential Multimodal Fusion for Semantic Segmentation},
booktitle = {Proceedings of the Winter Conference on Applications of Computer Vision (WACV)},
month = {February},
year = {2025},
pages = {1373-1382}
}
CHANGELOG
Version 0.1.0 12.01.2024
Repository creation
Version 1.0.1 24.03.2025
Major update
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ecolaf-1.0.1.tar.gz.
File metadata
- Download URL: ecolaf-1.0.1.tar.gz
- Upload date:
- Size: 26.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6ff4444df2264eaee6674ff648b5ad9717516aaa500bb1e6d3405024379e161
|
|
| MD5 |
eeb23b2bc8d0d8a0f3885611601cbe35
|
|
| BLAKE2b-256 |
560e0cda01c007862748b5ba1fd2956032039b49ec8a887f971848874fba5090
|
File details
Details for the file ecolaf-1.0.1-py3-none-any.whl.
File metadata
- Download URL: ecolaf-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e3f91233ea151ce18cfeaa4816267fdbe964054c7419ddea80e37b111cf8ad2
|
|
| MD5 |
ba0a9f6381472e63b69b345b395a71a0
|
|
| BLAKE2b-256 |
a1832b07f329e9771d4c6ed0dd73f34ca3bab1442755bc2dfd0c739320a9a140
|