Codes for "Super-resolved Virtual Staining of Label-free Tissue Using Diffusion Models" [paper]
Set up the environment using the conda environment file:
conda env create -f environment.ymlpython train.pyDownload the test samples and pretrained model from the following Google Drive link. .
After downloading, place the "test_samples" and "models" folders under the same directory as the project.
To run inference using different sampling strategies, execute the following commands:
python test_diffusion_reverse_skip_sample_strategy.py
python test_diffusion_reverse_mean_sample_strategy.pyTo calculate the metrics, execute the following commands:
python analysis_metrics.py