We develop SynReEM, an end-to-end synapse reconstruction framework for anisotropic volume electron microscopy scenarios.
MICrONS.340p.mp4
Kasthuri.340p.mp4
High-definition (HD) versions of the video can be found here.
Video download: google drive
Synapse178: google drive
SynWTAD: google drive
- Clone the repository:
git clone https://github.com/fenglingbai/SynReEM.git
cd ~/SynReEM- Create and activate the conda environment:
conda create --name SynReEM --file environment.txt -y
conda activate SynReEM- Verify PyTorch installation:
python -c 'import torch;print(torch.backends.cudnn.version())'
python -c 'import torch;print(torch.__version__)'- Install the nnUNet environment (integrated with this framework):
pip install -e .SynReEM first requires converting instance labels to AEMC labels to facilitate model learning.
Refer to the demo script for implementation details:
SynReEM\scripts\data_encode_demo.py
Convert original tif data to nii.gz format compatible with the nnUNet framework:
python SynReEM\nnunet\dataset_conversion\Task603_synapse178synins.pySet up the experimental plan:
python SynReEM\nnunet\experiment_planning\nUNet_plan_and_preprocess.py -t XXX --verify_dataset_integritypython SynReEM\nnunet\run\run_training_synreem.py 3d_fullres SynReEMTrainer TaskXXX_MYTASK FOLD --npzExample:
python SynReEM\nnunet\run\run_training_synreem.py 3d_fullres SynReEMTrainer Task603_synapse178synins 4 --npzpython SynReEM\nnunet\inference\predict_synreem.py -i INPUT_FOLDER -o OUTPUT_FOLDER -t TASK_NAME_OR_ID -m CONFIGURATION --save_npzConvert AEMC labels back to instance labels for final reconstruction results.
Refer to the demo script for implementation details:
SynReEM\scripts\data_decode_demo.py
This project builds upon the following open-source frameworks:
- nnUNet (https://github.com/MIC-DKFZ/nnUNet/tree/nnunetv1)
- EmbedSeg (https://github.com/juglab/EmbedSeg)


