Skip to content

PyTorch implementation of the CaloClouds II model introduced in https://arxiv.org/abs/2309.05704

Notifications You must be signed in to change notification settings

LorenzoValente3/CaloClouds-2

 
 

Repository files navigation

CaloClouds II Model for Fast Calorimeter Simulation

PyTorch implementation of the CaloClouds II Model introduced in CaloClouds II: Ultra-Fast Geometry-Independent Highly-Granular Calorimeter Simulation (arXiv:2309.05704).

The model is an evolution of the CaloClouds model published in (arXiv:2305.04847).


The CaloClouds II Model generates photon showers in point cloud format with up to 6000 points per shower for an energy range between 10 and 90 GeV. It consists out of multiple sub-generative models, including the PointWise Net trained as a score-based generative model and a normalizing flow for generating shower observables. Further, consistency distllation is implemented to distill a trained CaloClouds II diffusion model into a consistency model dubbed CaloClouds II (CM). The training data is generated with a Geant4 simulation of the planned electromagnetic calorimeter of the International Large Detector (ILD).


The CaloClouds II Pointwise Net Diffusion Model can be trained via python training.py using the default parameters set in config.py.

A trained CaloClouds II Diffusion model can be distilled into a consistency model via python distillation.py.

The Shower Flow is trained via the notebook ShowerFlow.ipynb.

The polynomial fits for the occupancy calculations are performed in occupancy_scale.ipynb.

An outline of the sampling process for both CaloClouds II and CaloClouds II (CM) can be found in generate.py.

The timing of the models is benchmarked with calc_timing.py


The training dataset is available under the link: https://syncandshare.desy.de/index.php/s/XfDwx33ryERwPdi


Code references:

About

PyTorch implementation of the CaloClouds II model introduced in https://arxiv.org/abs/2309.05704

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 92.4%
  • Python 7.6%