MEDCNN: Multiresolution Encoder-Decoder Convolutional Neural Network
- This is a 2D version of MEDCNN and without attentions in the decoder
- Full paper with attentions: https://doi.org/10.1109/ICASSP49660.2025.10890832
Installation guide
Install TFDWT from PyPI (Option $1$)
pip install MEDCNN
Install TFDWT from Github (Option $2$)
Download the package
git clone https://github.com/kkt-ee/MEDCNN.git
Change directory to the downloaded MEDCNN
cd MEDCNN
Run the following command to install the TFDWT package
pip install .
Verify installation
import MEDCNN
MEDCNN.__version__
Sample usage
- Import MEDCNN 2D Gφψ without attention
from MEDCNN.models.G2DwithoutAttention import Gφψ, configs
- Import the control Unet2D model for reference
from MEDCNN.models.ControlUnet2D import Unet2D, uconfigs
- Import utils to compile and train model
from MEDCNN.utils.utils import elapsedtime, timestamp
from MEDCNN.utils.BoundaryAwareDiceLoss import BoundaryAwareDiceLoss
from MEDCNN.utils.Load2Ddata import load_ibsr_XY
from MEDCNN.utils.TTViterators import get_train_test_val_iterators
from MEDCNN.utils.dice import dice_coef
from MEDCNN.utils.compile1 import compile_model
from MEDCNN.utils.Train1 import train
- Example: Compile a MEDCNN
CONFIGKEY= 'minimal2'
model, segconfig = Gφψ(config=configs[CONFIGKEY], compile=False), 'nonResidual'
model, lossname = compile_model(model, dataset, dice_coef)
- Example: Compile a control Unet2D
CONFIGKEY = '45678',
model, segconfig = Unet2D(config=uconfigs['45678'], compile=False), 'nonResidual'
model, lossname = compile_model(model, dataset, dice_coef)
- Example: Train a model with X an Y of shape (7056, 256, 256, 1), (7056, 256, 256, 1)
train_iterator, test_iterator, val_iterator = get_train_test_val_iterators(X,Y) #Assuming X and Y is loaded by a dataloader
train(
model,
train_iterator, test_iterator, val_iterator,
dataset='IBSR',
segconfig=segconfig,
lossname='bce',
CONFIGKEY=CONFIGKEY,
epochs=40)
Uninstall MEDCNN
pip uninstall MEDCNN
MEDCNN (C) 2025 Kishore Kumar Tarafdar, Prime Minister's Research Fellow, EE, IIT Bombay, भारत 🇮🇳
Metadata
Release files for MEDCNN 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| medcnn-0.0.2.tar.gz | 10.0 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| medcnn-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.0 MB
Release files / medcnn-0.0.2.tar.gz
| Download URL | medcnn-0.0.2.tar.gz |
|---|---|
| Size | 10.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7809475fd932435cc50b794ba32d1995c0ecf75e84970b9ef14ed9765944163e
|
|
BLAKE2b-256 checksum How to use checksums |
5568fde83aeb91fc35bee86ba47cd1bb121f6692ba4bf5fe1b6bac4389058721
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / medcnn-0.0.2-py3-none-any.whl
| Download URL | medcnn-0.0.2-py3-none-any.whl |
|---|---|
| Size | 30.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e564a2bf880c8968a2e1b150d48ef17947051eb341a8a960daffa120869d007
|
|
BLAKE2b-256 checksum How to use checksums |
1e50884fc9ce4331e46b1689bd84fa6393f5e3edaa6e69a26f7018893fcba02c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for MEDCNN 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.