This project is a work in progress.
We aim to leverage deep learning and high-resolution microscopy to invent a novel technique for nano-scale 3D segmentation and reconstruction of Glomerular Basement Membrane (GBM), a ribbon-like extracellular matrix that lies between the endothelium and the podocyte foot processes.
Additionally, we focus on developing GPU-based algorithms to extract useful morphometric features from the 3D reconstruction to acquire a better understanding of GBM's role as a filtration barrier and its alteration in pathological scenarios.
(Add installation instructions here)
This application has its own experiment management system. Users can create different experiments using command line options, train the model based on the provided datasets and chosen configuration, and also perform inference and visualize the results based on the trained model.
The application uses a command-line interface with several subcommands. Here's a detailed breakdown of the available commands and their options:
-d
,--debug
: Enable debugging mode
List created experiments or snapshots of a specific experiment.
python gbm.py list [-r] [-s SNAPSHOTS]
Options:
-r
,--root
: Specify the root directory of experiments-s SNAPSHOTS
,--snapshots SNAPSHOTS
: List the snapshots of a specific experiment
Create a new experiment with the given name.
python gbm.py create <name> [-bs BATCH_SIZE]
Options:
-bs BATCH_SIZE
,--batch-size BATCH_SIZE
: Set the batch size for training (default: 8)
Delete the selected experiment.
python gbm.py delete <name>
Start or continue training for the specified experiment.
python gbm.py train <name>
Create an inference session for the specified experiment.
python gbm.py infer <name> -s SNAPSHOT [-bs BATCH_SIZE] [-sd SAMPLE_DIMENSION] [-st STRIDE] [-sf SCALE_FACTOR]
Options:
-s SNAPSHOT
,--snapshot SNAPSHOT
: Select the snapshot for inference (required)-bs BATCH_SIZE
,--batch-size BATCH_SIZE
: Set the batch size for inference (default: 8)-sd SAMPLE_DIMENSION
,--sample-dimension SAMPLE_DIMENSION
: Set sample dimension for inference (default: '12, 256, 256')-st STRIDE
,--stride STRIDE
: Set the stride for inference (default: '1, 64, 64')-sf SCALE_FACTOR
,--scale-factor SCALE_FACTOR
: Set the scale for interpolation (default: 1)
The application uses a YAML configuration file located at ./configs/template.yaml
. This file contains various settings such as the root directory for experiments and other parameters.
-
Create a new experiment:
python gbm.py create my_experiment --batch-size 16
-
List all experiments:
python gbm.py list
-
Train an experiment:
python gbm.py train my_experiment
-
Run inference:
python gbm.py infer my_experiment --snapshot best_model --batch-size 4 --sample-dimension "24, 512, 512" --stride "2, 128, 128" --scale-factor 2
Add the --debug
flag to any command to enable debugging mode.
(Add any specific hardware or software requirements here)