def __init__(self, save_global_store=False):
        """
        Initialize an empty AttentionStore
        :param step_index: used to visualize only a specific step in the diffusion process
        """
        super(AttentionStore, self).__init__()
        self.save_global_store = save_global_store
        self.step_store = self.get_empty_store()
        self.attention_store = {}
        self.global_store = {}
        self.curr_step_index = 0
        self.num_uncond_att_layers = 0

        Initialize an empty AttentionStore
        :param step_index: used to visualize only a specific step in the diffusion process
        
examples/community/pipeline_stable_diffusion_boxdiff.py