def prepare_bottlenecks(self):
    'Passes all images through the base model and save the bottlenecks.\n\n    This method has to be called before any training or inference.\n    '
    (self.train_bottlenecks, self.train_labels) = self._collect_and_generate_bottlenecks(self.train_img_generator)
    (self.val_bottlenecks, self.val_labels) = self._collect_and_generate_bottlenecks(self.val_img_generator)
Passes all images through the base model and save the bottlenecks.

This method has to be called before any training or inference.
def prepare_bottlenecks(self):
    'Passes all images through the base model and save the bottlenecks.\n\n    This method has to be called before any training or inference.\n    '
    (self.train_bottlenecks, self.train_labels) = self._collect_and_generate_bottlenecks(self.train_img_generator)
    (self.val_bottlenecks, self.val_labels) = self._collect_and_generate_bottlenecks(self.val_img_generator)