File size: 1,175 Bytes
edcf5ee |
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 |
# Data Preparing
1. Access to the synapse multi-organ dataset:
1. Sign up in the [official Synapse website](https://www.synapse.org/#!Synapse:syn3193805/wiki/) and download the dataset. Convert them to numpy format, clip the images within [-125, 275], normalize each 3D image to [0, 1], and extract 2D slices from 3D volume for training cases while keeping the 3D volume in h5 format for testing cases.
2. You can also send an Email directly to jienengchen01 AT gmail.com to request the preprocessed data for reproduction.
2. The directory structure of the whole project is as follows:
```bash
.
βββ TransUNet
βΒ Β βββdatasets
βΒ Β β Β Β βββ dataset_*.py
βΒ Β βββtrain.py
βΒ Β βββtest.py
βΒ Β βββ...
βββ model
βΒ Β βββ vit_checkpoint
βΒ Β βββ imagenet21k
βΒ Β Β Β βββ R50+ViT-B_16.npz
βΒ Β Β Β βββ *.npz
βββ data
βββSynapse
βββ test_vol_h5
βΒ Β βββ case0001.npy.h5
βΒ Β βββ *.npy.h5
βββ train_npz
βββ case0005_slice000.npz
βββ *.npz
```
|