-
Implementation adapted from Xu et al. ArXiv (see repo Semicurv) and from Lan et al. ArXiv (see repo Elastic)
-
Work with
python 3.9usingpytorch. Conda environment details available in theenvironment.ymlfile. -
Training and inference scripts available in the
Sbatchfolder. -
Refer to
main.pyarguments for setting parameters -
Training results, weight and biases (
.pt) available in theResultsfolder.
Generate the synthetic database
-
See
vtk_9.4.ymlfor requirements. -
xml_generator_calmip.pyrun the workflow. Need NUMODIS. Configuration files are in thegeneratorfolder. -
Use
hw_numodis_interp_generator.pyfor image simulation (implementation from Eibl and Periano code; Microscopy and Microanalysis, 2007, 13 (S03),352-353)
-
Denoising Diffusion Probabilistic Model for background generation. Implementation from here. See
ddpm_arm.ymlfor installation. -
Training and sampling from
ddpm-train_gpu.pyandddpm-fond-sample.pyscripts.
Compare annotations of three images of different difficulties. compare-masks.py to compare between 2 users, save differences and compute IoU and CAL. compare-masks-all.py for pairwise comparison for all experts. Plot metrics histograms.
-
script_results_metrics_Disloc.pyto compute evaluation metrics. -
plot_img.pyandplot_hist.pyto plot results comparison between models and plot metrics histograms.
Scripts for plotting comparison between predictions
Script to compute density from a segmented binary image.
tutorial.pdf, tutorial for labeling images using GIMP. Script-Fu for GIMP used to import/export images and masks.
Datasets are available on request