3530bc0fcaa6569c0e76f1c32c4752cafc1d772b,keras_retinanet/preprocessing/generator.py,Generator,__init__,#Generator#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,44

Before Change


        self.config                 = config

        self.group_index = 0
        self.lock        = threading.Lock()

        self.group_images()

    def size(self):

After Change


        self.config                 = config

        //Shuffle when initializing 
        if self.shuffle_groups:
            self.on_epoch_end()
        
        //Define groups
        self.group_images()
        
    def on_epoch_end(self):
        random.shuffle(self.groups)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: fizyr/keras-retinanet
Commit Name: 3530bc0fcaa6569c0e76f1c32c4752cafc1d772b
Time: 2018-12-05
Author: benweinstein2010@gmail.com
File Name: keras_retinanet/preprocessing/generator.py
Class Name: Generator
Method Name: __init__


Project Name: wandb/client
Commit Name: e3eddd47c5efe5cb9257e2727d473a48f316d408
Time: 2020-08-24
Author: jeff@wandb.com
File Name: wandb/interface/interface.py
Class Name: MessageRouter
Method Name: __init__


Project Name: ilastik/ilastik
Commit Name: 6002e51e0aeb24a37775ad2cbbbc43945b84302c
Time: 2013-01-02
Author: bergs@janelia.hhmi.org
File Name: lazyflow/blockwiseFileset.py
Class Name: BlockwiseFileset
Method Name: __init__