All of the processes are trained on Taiwan Computing Cloud (TWCC) and with an NVIDIA graphics card (NVIDIA V100). It is recommended to install latest drivers and use the GPU with 24+ GB of RAM.
- Recommend: Install Miniconda for environment control.
- Create a Conda environment for the platform: python = 3.6 or up, pytorch = 20.02 or up.
- Data is currently available here. Download to the
./data/directory (for example, you should see data inside./data/DenT). - If you want to train with your own data, please put your dataset
***inside./data/. target dataset and source dataset should be named as./data/***/train/targetand./data/***/train/source. - Create your own testing set and validation set by running the following script:
python split_data.pyyou should now see 3 folders inside the ./data/*** (train, test, val), each consists of the folder target and source.
Start training a model with:
- data: YOUR_OWN_DATA (e.g., Mito)
- source: SOURCE_IMAGE_OF_DATA (e.g., source)
- target: TARGET_IMAGE_OF_DATA (e.g., target)
- model: YOUR_MODEL (e.g., DenT)
./scripts/train.sh Mito source target DenTYou can set your own batch size and checkpoint saved per * epoches inside train.py.
The model will be saved at ./checkpoints and the log will be saved at ./logs.
Run Segmentation test by:
- data: YOUR_OWN_DATA (e.g., Mito)
- source: SOURCE_IMAGE_OF_DATA (e.g., source)
- target: TARGET_IMAGE_OF_DATA (e.g., target)
- segmentation_directory: YOUR_RESULT (e.g., seg_result)
- model: YOUR_MODEL (e.g., DenT)
./scripts/test.sh Mito source target seg_result DenTYou may get the segmentation result inside ./seg_result.
