Update README.md
Browse files
README.md
CHANGED
|
@@ -1,329 +1,333 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
-
|
| 20 |
-
-
|
| 21 |
-
-
|
| 22 |
-
-
|
| 23 |
-
- **
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
β
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
β
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
β
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
β
|
| 50 |
-
β -
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
|
| 65 |
-
|
| 66 |
-
|
|
| 67 |
-
|
|
| 68 |
-
|
|
| 69 |
-
|
|
| 70 |
-
|
|
| 71 |
-
|
|
| 72 |
-
|
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
"
|
| 134 |
-
"
|
| 135 |
-
|
| 136 |
-
#
|
| 137 |
-
"
|
| 138 |
-
"
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
#
|
| 142 |
-
"
|
| 143 |
-
"
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
trainer.
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
```
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
β βββ
|
| 178 |
-
β βββ
|
| 179 |
-
βββ
|
| 180 |
-
β βββ __init__.py
|
| 181 |
-
β
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
β
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
β βββ
|
| 188 |
-
β βββ
|
| 189 |
-
βββ
|
| 190 |
-
β
|
| 191 |
-
βββ
|
| 192 |
-
|
| 193 |
-
βββ
|
| 194 |
-
|
| 195 |
-
βββ
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
- **
|
| 217 |
-
- **
|
| 218 |
-
- **
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
-
|
| 235 |
-
-
|
| 236 |
-
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
mae
|
| 276 |
-
|
| 277 |
-
#
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
- **
|
| 297 |
-
- **
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
##
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
##
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
[
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
pipeline_tag: image-feature-extraction
|
| 4 |
+
---
|
| 5 |
+
# Masked Autoencoder (MAE) for Medical Imaging
|
| 6 |
+
|
| 7 |
+
A PyTorch implementation of Masked Autoencoder (MAE) for self-supervised learning on chest X-ray images, specifically designed for the CheXpert dataset.
|
| 8 |
+
|
| 9 |
+
## π Overview
|
| 10 |
+
|
| 11 |
+
This project implements a Vision Transformer-based Masked Autoencoder that learns representations from chest X-ray images through self-supervised reconstruction. The model randomly masks 75% of image patches and learns to reconstruct the original image, enabling it to learn powerful visual representations without requiring labeled data.
|
| 12 |
+
|
| 13 |
+
### Key Features
|
| 14 |
+
|
| 15 |
+
- **Vision Transformer Architecture**: Encoder-decoder transformer architecture with positional encodings
|
| 16 |
+
- **Self-Supervised Learning**: Pre-training through masked image reconstruction
|
| 17 |
+
- **Optimized for Medical Imaging**: Designed specifically for chest X-ray analysis
|
| 18 |
+
- **Production-Ready Training Pipeline**:
|
| 19 |
+
- Mixed precision training (FP16) with gradient scaling
|
| 20 |
+
- Gradient accumulation support
|
| 21 |
+
- Learning rate warmup and cosine annealing
|
| 22 |
+
- Automatic checkpointing and resumption
|
| 23 |
+
- **Efficient Data Loading**:
|
| 24 |
+
- Optimized ZIP file reader with LRU caching
|
| 25 |
+
- Class-balanced sampling with weighted random sampler
|
| 26 |
+
- Multi-worker data loading with persistent workers
|
| 27 |
+
- **Comprehensive Logging**: Training/validation metrics tracking and visualization
|
| 28 |
+
|
| 29 |
+
## ποΈ Architecture
|
| 30 |
+
|
| 31 |
+
### Masked Autoencoder Structure
|
| 32 |
+
|
| 33 |
+
```
|
| 34 |
+
Input Image (384Γ384)
|
| 35 |
+
β
|
| 36 |
+
Patchify (16Γ16 patches β 576 patches)
|
| 37 |
+
β
|
| 38 |
+
Random Masking (75% masked, 25% visible)
|
| 39 |
+
β
|
| 40 |
+
βββββββββββββββββββββββββββββββββββββββ
|
| 41 |
+
β MAE ENCODER β
|
| 42 |
+
β - Linear patch embedding β
|
| 43 |
+
β - Positional encoding (visible) β
|
| 44 |
+
β - 12 Transformer blocks β
|
| 45 |
+
β - 8 attention heads, 768 hidden β
|
| 46 |
+
βββββββββββββββββββββββββββββββββββββββ
|
| 47 |
+
β
|
| 48 |
+
βββββββββββββββββββββββββββββββββββββββ
|
| 49 |
+
β MAE DECODER β
|
| 50 |
+
β - Learnable mask tokens β
|
| 51 |
+
β - Positional encoding (all) β
|
| 52 |
+
β - 8 Transformer blocks β
|
| 53 |
+
β - 8 attention heads, 512 hidden β
|
| 54 |
+
β - Pixel reconstruction head β
|
| 55 |
+
βββββββββββββββββββββββββββββββββββββββ
|
| 56 |
+
β
|
| 57 |
+
Reconstructed Image
|
| 58 |
+
β
|
| 59 |
+
MSE Loss (on masked patches only)
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
### Model Configuration
|
| 63 |
+
|
| 64 |
+
| Parameter | Default Value | Description |
|
| 65 |
+
|-----------|---------------|-------------|
|
| 66 |
+
| Image Size | 384Γ384 | Input image resolution |
|
| 67 |
+
| Patch Size | 16Γ16 | Size of each patch |
|
| 68 |
+
| Mask Ratio | 0.75 | Fraction of patches to mask |
|
| 69 |
+
| Encoder Depth | 12 layers | Number of transformer blocks |
|
| 70 |
+
| Encoder Dim | 768 | Hidden dimension |
|
| 71 |
+
| Encoder Heads | 8 | Number of attention heads |
|
| 72 |
+
| Decoder Depth | 8 layers | Number of transformer blocks |
|
| 73 |
+
| Decoder Dim | 512 | Hidden dimension |
|
| 74 |
+
| Decoder Heads | 8 | Number of attention heads |
|
| 75 |
+
| MLP Ratio | 4Γ | MLP expansion ratio (3072) |
|
| 76 |
+
| Dropout | 0.25 | Dropout rate |
|
| 77 |
+
|
| 78 |
+
## π Getting Started
|
| 79 |
+
|
| 80 |
+
### Prerequisites
|
| 81 |
+
|
| 82 |
+
- Python >= 3.8
|
| 83 |
+
- CUDA-capable GPU (recommended)
|
| 84 |
+
- 16GB+ RAM
|
| 85 |
+
|
| 86 |
+
### Installation
|
| 87 |
+
|
| 88 |
+
1. Clone the repository:
|
| 89 |
+
```bash
|
| 90 |
+
git clone https://github.com/adelelsayed/mae.git
|
| 91 |
+
cd mae
|
| 92 |
+
```
|
| 93 |
+
|
| 94 |
+
2. Install dependencies:
|
| 95 |
+
```bash
|
| 96 |
+
pip install -r requirements.txt
|
| 97 |
+
```
|
| 98 |
+
|
| 99 |
+
### Dataset Preparation
|
| 100 |
+
|
| 101 |
+
This project is configured for the **CheXpert dataset**. To use it:
|
| 102 |
+
|
| 103 |
+
1. Download CheXpert-v1.0-small from [Stanford ML Group](https://stanfordmlgroup.github.io/competitions/chexpert/)
|
| 104 |
+
2. Update paths in `configs/configs.py`:
|
| 105 |
+
- `root`: Base directory for your data
|
| 106 |
+
- `zip_path`: Path to zipped dataset (optional, for faster loading)
|
| 107 |
+
- `csv`: Path to training CSV
|
| 108 |
+
- `train_csv`, `val_csv`, `test_csv`: Split CSV files
|
| 109 |
+
|
| 110 |
+
## π Usage
|
| 111 |
+
|
| 112 |
+
### Training
|
| 113 |
+
|
| 114 |
+
Start training from scratch:
|
| 115 |
+
```bash
|
| 116 |
+
python trainer/trainer.py
|
| 117 |
+
```
|
| 118 |
+
|
| 119 |
+
The trainer will:
|
| 120 |
+
- Automatically create checkpoint and log directories
|
| 121 |
+
- Resume from the last checkpoint if available
|
| 122 |
+
- Log training/validation metrics to text files
|
| 123 |
+
- Save plots every 10 epochs
|
| 124 |
+
- Save best model based on validation loss
|
| 125 |
+
|
| 126 |
+
### Training Configuration
|
| 127 |
+
|
| 128 |
+
Edit `configs/configs.py` to customize training:
|
| 129 |
+
|
| 130 |
+
```python
|
| 131 |
+
mae_config = {
|
| 132 |
+
# Training hyperparameters
|
| 133 |
+
"lr": 1e-4, # Learning rate
|
| 134 |
+
"warmup": 5, # Warmup epochs
|
| 135 |
+
"weight_decay": 5e-4, # AdamW weight decay
|
| 136 |
+
"num_epochs": 200, # Total training epochs
|
| 137 |
+
"batch_size": 96, # Batch size
|
| 138 |
+
"accumulation": 1, # Gradient accumulation steps
|
| 139 |
+
|
| 140 |
+
# Model architecture
|
| 141 |
+
"mask_ratio": 0.75, # Masking ratio
|
| 142 |
+
"encoder_depth": 12, # Encoder layers
|
| 143 |
+
"decoder_depth": 8, # Decoder layers
|
| 144 |
+
|
| 145 |
+
# Paths
|
| 146 |
+
"checkpoints": "/path/to/checkpoints",
|
| 147 |
+
"logdir": "/path/to/logs",
|
| 148 |
+
...
|
| 149 |
+
}
|
| 150 |
+
```
|
| 151 |
+
|
| 152 |
+
### Monitoring Training
|
| 153 |
+
|
| 154 |
+
Training logs are saved in three files:
|
| 155 |
+
- `training_log.txt`: Training metrics per epoch
|
| 156 |
+
- `val_log.txt`: Validation metrics per epoch
|
| 157 |
+
- `test_log.txt`: Test set evaluation results
|
| 158 |
+
|
| 159 |
+
Metrics plots are saved every 10 epochs in `{logdir}/{epoch}/metrics.png`
|
| 160 |
+
|
| 161 |
+
### Evaluation
|
| 162 |
+
|
| 163 |
+
The project includes a test method in the trainer. To evaluate:
|
| 164 |
+
```python
|
| 165 |
+
from trainer.utils import MAETrainer
|
| 166 |
+
from configs.configs import mae_config
|
| 167 |
+
|
| 168 |
+
trainer = MAETrainer(mae_config)
|
| 169 |
+
trainer.test()
|
| 170 |
+
```
|
| 171 |
+
|
| 172 |
+
## π Project Structure
|
| 173 |
+
|
| 174 |
+
```
|
| 175 |
+
mae/
|
| 176 |
+
βββ configs/
|
| 177 |
+
β βββ __init__.py
|
| 178 |
+
β βββ configs.py # Training configuration
|
| 179 |
+
βββ data/
|
| 180 |
+
β βββ __init__.py
|
| 181 |
+
β βββ dataset.py # CheXpert dataset loader
|
| 182 |
+
β βββ splitter.py # Dataset splitting utilities
|
| 183 |
+
βββ loss/
|
| 184 |
+
β βββ __init__.py
|
| 185 |
+
β βββ mae_loss.py # MAE reconstruction loss
|
| 186 |
+
βββ models/
|
| 187 |
+
β βββ __init__.py
|
| 188 |
+
β βββ mae.py # MAE architecture
|
| 189 |
+
βββ trainer/
|
| 190 |
+
β βββ __init__.py
|
| 191 |
+
β βββ trainer.py # Main training script
|
| 192 |
+
β βββ utils.py # Training utilities
|
| 193 |
+
βββ notebooks/
|
| 194 |
+
β βββ chexpert_mae.ipynb # Jupyter notebook for experiments
|
| 195 |
+
βββ training logs/ # Logged metrics and plots
|
| 196 |
+
βββ weights/ # Model checkpoints
|
| 197 |
+
βββ results/ # Evaluation results
|
| 198 |
+
βββ requirements.txt # Python dependencies
|
| 199 |
+
βββ LICENSE # Project license
|
| 200 |
+
βββ README.md # This file
|
| 201 |
+
```
|
| 202 |
+
|
| 203 |
+
## π§ Components
|
| 204 |
+
|
| 205 |
+
### Dataset (`data/dataset.py`)
|
| 206 |
+
|
| 207 |
+
- **OptimizedZipReader**: Fast ZIP file reading with LRU caching
|
| 208 |
+
- **CheXpertDataset**: PyTorch dataset for CheXpert chest X-rays
|
| 209 |
+
- 14 pathology labels: No Finding, Cardiomegaly, Edema, Consolidation, etc.
|
| 210 |
+
- Albumentations-based augmentation pipeline
|
| 211 |
+
- Class-balanced sampling support
|
| 212 |
+
- Frontal/lateral view filtering
|
| 213 |
+
|
| 214 |
+
### Model (`models/mae.py`)
|
| 215 |
+
|
| 216 |
+
- **Patchify/Unpatchify**: Image-to-patch conversion utilities
|
| 217 |
+
- **Random Masking**: Stochastic patch masking with restore indices
|
| 218 |
+
- **PositionalEncoding**: Learnable position embeddings
|
| 219 |
+
- **TransformerBlock**: Multi-head self-attention + MLP
|
| 220 |
+
- **MAEEncoder**: Processes visible patches only
|
| 221 |
+
- **MAEDecoder**: Reconstructs full image with mask tokens
|
| 222 |
+
- **MaskedAutoEncoder**: Complete MAE model
|
| 223 |
+
|
| 224 |
+
### Loss (`loss/mae_loss.py`)
|
| 225 |
+
|
| 226 |
+
Mean Squared Error (MSE) computed only on masked patches:
|
| 227 |
+
```python
|
| 228 |
+
loss = ((pred - target) ** 2 * mask).sum() / mask.sum()
|
| 229 |
+
```
|
| 230 |
+
|
| 231 |
+
### Trainer (`trainer/utils.py`)
|
| 232 |
+
|
| 233 |
+
- **MAETrainer**: Complete training pipeline
|
| 234 |
+
- Mixed precision training (AMP)
|
| 235 |
+
- Gradient clipping and accumulation
|
| 236 |
+
- Learning rate scheduling (warmup β cosine)
|
| 237 |
+
- Automatic checkpointing
|
| 238 |
+
- Multi-file logging (train/val/test)
|
| 239 |
+
- Live metric monitoring with tqdm
|
| 240 |
+
- Periodic metric visualization
|
| 241 |
+
|
| 242 |
+
## π― CheXpert Pathologies
|
| 243 |
+
|
| 244 |
+
The dataset includes 14 chest X-ray findings:
|
| 245 |
+
|
| 246 |
+
1. No Finding
|
| 247 |
+
2. Enlarged Cardiomediastinum
|
| 248 |
+
3. Cardiomegaly
|
| 249 |
+
4. Lung Opacity
|
| 250 |
+
5. Lung Lesion
|
| 251 |
+
6. Edema
|
| 252 |
+
7. Consolidation
|
| 253 |
+
8. Pneumonia
|
| 254 |
+
9. Atelectasis
|
| 255 |
+
10. Pneumothorax
|
| 256 |
+
11. Pleural Effusion
|
| 257 |
+
12. Pleural Other
|
| 258 |
+
13. Fracture
|
| 259 |
+
14. Support Devices
|
| 260 |
+
|
| 261 |
+
## π Training Tips
|
| 262 |
+
|
| 263 |
+
1. **Learning Rate**: Start with 1e-4, use warmup for stability
|
| 264 |
+
2. **Batch Size**: Maximize based on GPU memory (96 works well on 40GB GPUs)
|
| 265 |
+
3. **Gradient Accumulation**: Use if batch size is limited by memory
|
| 266 |
+
4. **Mixed Precision**: Enabled by default for faster training
|
| 267 |
+
5. **Masking Ratio**: 75% is standard, higher ratios increase difficulty
|
| 268 |
+
6. **Resume Training**: Model automatically resumes from last checkpoint
|
| 269 |
+
|
| 270 |
+
## π¬ Use Cases
|
| 271 |
+
|
| 272 |
+
### Pre-training for Downstream Tasks
|
| 273 |
+
Use the trained encoder as a feature extractor:
|
| 274 |
+
```python
|
| 275 |
+
from models.mae import MaskedAutoEncoder
|
| 276 |
+
|
| 277 |
+
# Load pre-trained model
|
| 278 |
+
mae = MaskedAutoEncoder()
|
| 279 |
+
mae.load_state_dict(torch.load("best_mae.pth")["model"])
|
| 280 |
+
|
| 281 |
+
# Use encoder for feature extraction
|
| 282 |
+
encoder = mae.encoder
|
| 283 |
+
features, _, _, _ = encoder(images)
|
| 284 |
+
```
|
| 285 |
+
|
| 286 |
+
### Fine-tuning on Classification
|
| 287 |
+
Add a classification head to the encoder for supervised tasks.
|
| 288 |
+
|
| 289 |
+
### Anomaly Detection
|
| 290 |
+
Reconstruction error can indicate abnormalities in medical images.
|
| 291 |
+
|
| 292 |
+
## π Performance Optimization
|
| 293 |
+
|
| 294 |
+
This implementation includes several optimizations:
|
| 295 |
+
|
| 296 |
+
- **Efficient ZIP Reading**: Avoids extracting files to disk
|
| 297 |
+
- **LRU Cache**: Keeps frequently accessed images in memory
|
| 298 |
+
- **Persistent Workers**: Reduces data loading overhead
|
| 299 |
+
- **Mixed Precision**: 2Γ faster training with minimal quality loss
|
| 300 |
+
- **Gradient Checkpointing**: Reduces memory usage (if enabled)
|
| 301 |
+
- **CUDA Memory Management**: Proper cache clearing and synchronization
|
| 302 |
+
|
| 303 |
+
## π€ Contributing
|
| 304 |
+
|
| 305 |
+
Contributions are welcome! Please feel free to submit a Pull Request.
|
| 306 |
+
|
| 307 |
+
## π License
|
| 308 |
+
|
| 309 |
+
This project is licensed under the terms specified in the LICENSE file.
|
| 310 |
+
|
| 311 |
+
## π References
|
| 312 |
+
|
| 313 |
+
1. **Masked Autoencoders Are Scalable Vision Learners**
|
| 314 |
+
He, K., Chen, X., Xie, S., Li, Y., DollΓ‘r, P., & Girshick, R. (2022)
|
| 315 |
+
[arXiv:2111.06377](https://arxiv.org/abs/2111.06377)
|
| 316 |
+
|
| 317 |
+
2. **CheXpert: A Large Chest Radiograph Dataset**
|
| 318 |
+
Irvin, J., et al. (2019)
|
| 319 |
+
[Stanford ML Group](https://stanfordmlgroup.github.io/competitions/chexpert/)
|
| 320 |
+
|
| 321 |
+
## π Acknowledgments
|
| 322 |
+
|
| 323 |
+
- Original MAE paper by Meta AI Research
|
| 324 |
+
- CheXpert dataset by Stanford ML Group
|
| 325 |
+
- PyTorch and Albumentations communities
|
| 326 |
+
|
| 327 |
+
## π§ Contact
|
| 328 |
+
|
| 329 |
+
For questions or issues, please open an issue on GitHub or contact the maintainer.
|
| 330 |
+
|
| 331 |
+
---
|
| 332 |
+
|
| 333 |
+
**Note**: This is a research/educational implementation. For clinical applications, please ensure proper validation and regulatory compliance.
|