Skip to content

dkobylianskii/fastsim-advanced

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Official repository for "Advancing Set-Conditional Set Generation" paper

This repository contains the code for the paper "Advancing Set-Conditional Set Generation: Diffusion Models for Fast Simulation of Reconstructed Particles", arXiv:2405.10106.

Architecture

The dataset used in the paper can be found here.
Code for the diffusion models is located in the fm-edm folder, while the code for the baseline slot attention model is located in the SA_baseline folder.

Requirements

The list of packages required to train/evaluate models is found at requirements.txt file. All studies were done with Python 3.8.15.

Training

Models were trained using first 1M jets from the unique_jets_1.root file. The training script is provided in the train.py file. The script can be run as follows:

python train.py -c <path_to_config_file> --gpus 0

Evaluation

The evaluation script is provided in the eval.py file. The script can be run as follows:

  • For the diffusion models:
    python eval.py -c <path_to_config> -p <path_to_checkpoint> \
    --test_path <path_to_test_file> -ne <number_of_events> -bs <batch_size> \
    -n <num_steps> -npf [--prefix <prefix>]
  • For the baseline slot attention model:
    python eval.py -c <path_to_config> -p <path_to_checkpoint> \
    --test_path <path_to_test_file> -ne <number_of_events> -bs <batch_size> [--prefix <prefix>]
    

If the --prefix argument is provided, and 1rep is in prefix, first 2M jets in the file will be omitted.

Pre-trained models used in the paper can be found in the trained_models folder.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages