Diff of /README.md [000000] .. [6d4adb]

Switch to unified view

a b/README.md
1
# Segmentation of heart chambers from 2D MRI images using the U-NET convolutional neural network #
2
3
This project was created to train and MRI heart images on UNET.
4
5
## Project Structure ##
6
+ Dataset
7
+ Preprocessing
8
+ Unet
9
+ Utils
10
11
12
The dataset directory contains the dataset and labels split in training and validation sets(currently only the original dataset) and two scripts. The datasetloader.py script loads the images and labels and then uses any preprocessing methods if they are available. It prepares the labels and images for training. The sliceimages.py loads the dataset with nii.gz format and gets the images and saves them.
13
14
The preprocessing directory contains preprocessing scripts: preprocessing.py and bayesnoiseremoval.py(not yet implemented)
15
16
tmp directory saves the model checkpoints and output test images.
17
18
Unet directory contains the model.py script with the implemented unet architecture.
19
20
Utils contains a script with help functions during trainong.
21
22
train.py contains the training alghoritm.
23
24
25
## Setup ##
26
27
```
28
python3 -m venv unet
29
source unet/bin/activate
30
pip install -r requirements.txt
31
```
32
33
## Usage ##
34
35
To run the train.py script:
36
```
37
 python train.py --images Dataset/train_img --labels Dataset/label_train_img --val_images Dataset/val_img --val_labels Dataset/val_label
38
```
39
40
To run the test.py script:
41
Download the checkpoint.pth.tar on:https://drive.google.com/file/d/12for4qAjDropcVG4AryMvb5Jss2w_DMa/view?usp=sharing
42
43
Place it in the tmp folder.
44
45
```
46
python test.py --val_images Dataset/val_img --val_labels Dataset/val_label
47
```
48
49
50
## Thesis ##
51
52
+ For all information about the dataset and the nature of this work(as well the end results) check out the thesis on this repository: Segmentation of heart chambers from 2D MRI images using the U-NET convolutional neural network
53
+ The dataset can't be shared to the public
54