Skip to content

1242400788/HMIL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Hierarchical Multiple Instance Learning (HMIL)

πŸ“– Project Introduction

This is the code for all models mentioned in the paper "", where the HMIL model is an innovative multiple instance learning model proposed in this paper.

πŸ“ Project Structure

HMIL/
β”œβ”€β”€ MIL/                          # Multiple Instance Learning Module
β”‚   β”œβ”€β”€ models/                   # MIL Models
β”‚   β”‚   β”œβ”€β”€ HMIL.py              # HMIL model, including 2 stages: HMILIC and HMILCC 
β”‚   β”‚   β”œβ”€β”€ AttentionMIL.py      # Attention MIL model
β”‚   β”‚   β”œβ”€β”€ TransMIL.py          # Transformer MIL model
β”‚   β”‚   └── ClassicalMIL.py      # Classical MIL model
β”‚   β”œβ”€β”€ training_MIL.py          # MIL training script
β”‚   β”œβ”€β”€ inference_MIL.py         # MIL inference script (image classification, for HMILIC)
β”‚   β”œβ”€β”€ inference_HMIL.py        # HMIL inference script (case classification, for HMILCC)
β”‚   β”œβ”€β”€ metrics_MIL.py           # MIL evaluation metrics
β”‚   └── data_processor_MIL.py    # MIL data processing
β”‚
β”œβ”€β”€ segmentation/                 # Image Segmentation Module
β”‚   β”œβ”€β”€ models/                   # Segmentation Models
β”‚   β”‚   β”œβ”€β”€ AttentionUNet.py     # Attention U-Net
β”‚   β”‚   β”œβ”€β”€ DeepLabv3_plus.py    # DeepLabv3+
β”‚   β”‚   └── SegFormer/           # SegFormer Series
β”‚   β”‚       β”œβ”€β”€ segformer.py
β”‚   β”‚       β”œβ”€β”€ mix_transformer.py
β”‚   β”‚       └── segformer_head.py
β”‚   β”œβ”€β”€ training.py              # Segmentation model training script
β”‚   β”œβ”€β”€ inference.py             # Segmentation model inference script
β”‚   β”œβ”€β”€ metrics.py               # Segmentation evaluation metrics
β”‚   β”œβ”€β”€ loss_criteria.py         # Loss functions
β”‚   β”œβ”€β”€ data_processor.py        # Data processing
β”‚   └── FPSTest.py              # FPS performance test
β”‚
β”œβ”€β”€ LICENSE                       # License file
└── README.md                     # Project documentation

Environment Requirements

  • Python>=3.10
  • CUDA==12.4
  • torch==2.6.0+cu124
  • torchvision==0.20.0+cu124
  • albumentations==2.0.8
  • einops==0.8.1
  • huggingface-hub==0.34.3
  • monai==1.5.0
  • numpy==1.26.4
  • opencv-python-headless==4.11.0.86
  • openpyxl==3.1.5
  • pandas==2.3.1
  • pillow==11.0.0
  • scikit-learn==1.7.1
  • scipy==1.15.3
  • timm==1.0.19

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages