  
              model = self.load_model()
              trainer = self.load_trainer(model)
  
              self.run_training_cycle(model, trainer)
          except KeyboardInterrupt:
              try:
                  model.save_weights()
 
</s> remove         shuffle(data)
 </s> add         if doShuffle:
            shuffle(data)
 </s> remove     def minibatchAB(self, images, batchsize):
        batch = BackgroundGenerator(self.minibatch(images, batchsize), 1)
 </s> add     def minibatchAB(self, images, batchsize, doShuffle=True):
        batch = lib.utils.BackgroundGenerator(self.minibatch(images, batchsize, doShuffle), 1)
 </s> remove                 shuffle(data)
 </s> add                 if doShuffle:
                    shuffle(data)

            self.timelapse = Timelapse.CreateTimelapse(self.args.timelapse_input_A,
                                                       self.args.timelapse_input_B,
                                                       self.args.timelapse_output,
                                                       trainer)

  
              model = self.load_model()
              trainer = self.load_trainer(model)
  
            self.timelapse = Timelapse.CreateTimelapse(self.args.timelapse_input_A,
                                                       self.args.timelapse_input_B,
                                                       self.args.timelapse_output,
                                                       trainer)

              self.run_training_cycle(model, trainer)
          except KeyboardInterrupt:
              try:
                  model.save_weights()
keep keep keep add keep keep keep keep
 Add timelapse functionality (#512)

* add new cli options

* add timelapse script

* add batch size on image generation

* fix circular dependency

* add attribute check

* refactor to 3 parameters

* fix some typos

* do not shuffle the set

* default to models folder when no timelapse output supplied

* almost forgot this 
scripts/train.py