  import numpy as np
  
  
  # Global variables
  _image_extensions = ['.bmp', '.jpeg', '.jpg', '.png', '.tif', '.tiff']
  _video_extensions = ['.avi', '.flv', '.mkv', '.mov', '.mp4', '.mpeg', '.webm']
  
 
</s> remove from .utils import BackgroundGenerator
from .umeyama import umeyama
 </s> add import lib.utils
from lib.umeyama import umeyama
 </s> remove from lib.utils import get_folder, get_image_paths, set_system_verbosity
 </s> add from lib.utils import get_folder, get_image_paths, set_system_verbosity, Timelapse </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)

import lib.training_data
from time import time

  import numpy as np
  
import lib.training_data
from time import time

  
  # Global variables
  _image_extensions = ['.bmp', '.jpeg', '.jpg', '.png', '.tif', '.tiff']
  _video_extensions = ['.avi', '.flv', '.mkv', '.mov', '.mp4', '.mpeg', '.webm']
  
keep add keep 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 
lib/utils.py