Deep learning-based cardiac segmentation using PyTorch, MONAI, and U-Net models.
This project leverages deep learning models for cardiac segmentation, particularly for the ACDC dataset. The goal is to segment the heart's anatomical structures to aid in medical analysis.
- 2D and 3D U-Net models for segmentation.
- Attention mechanisms for improved segmentation accuracy.
- Support for both 2D and 3D datasets (using MONAI and PyTorch).
- Python 3.x
- PyTorch
- MONAI
- other Python dependencies from
requirements.txt
-
Clone the repository:
git clone https://github.com/arkanandi/Cardiac_Segmentation_ACDC.git cd Cardiac_Segmentation_ACDC
-
Install the required Python libraries:
pip install -r requirements.txt
-
Download the ACDC dataset and place it in the appropriate folder (see the dataset instructions in the repository for details).
-
To train the model, run:
python train_2d.py # or python train_3d.py
-
To make predictions:
python predict_2d.py # or python predict_3d.py
Once you have trained the model, you can use it to predict cardiac structures on new datasets.
Feel free to fork the repository and submit pull requests. Issues and suggestions are always welcome.
- Fork this repository.
- Clone your fork:
git clone https://github.com/your-username/Cardiac_Segmentation_ACDC.git
- Create a new branch:
git checkout -b feature-name
- Make changes and commit:
git commit -am 'Add new feature'
- Push to your fork:
git push origin feature-name
This project is licensed under the MIT License - see the LICENSE file for details.