Official repository for CaloScore v2, an update to CaloScore that uses a diffusion generative model for fast detector simulation with single-shot sampling!
Packages used for training and sampling are found in the requirements.txt
text file and can be directly installed with pip.
Results are presented using the Fast Calorimeter Data Challenge dataset and are available for download on zenodo:
cd scripts
python train.py --config CONFIG
- CONFIG options are
[config_dataset1.json/config_dataset2.json/config_dataset3.json]
After training the baseline model you can run the progressive distillation with the commands:
cd scripts
python train.py --config CONFIG --distill --factor 2
For additional distillation steps just multiply --factor
by a power of 2.
python plot_caloscore.py --sample --config CONFIG [--distill] [--factor 2]
Where again factor and distill flags are used to load the distilled models instead.
python plot_caloscore.py --config CONFIG [--distill] [--factor 2]
A folder named plots
are then going to be created with the results.