          self.initialize_keras(detector)
          # VRAM Scaling factor must be set AFTER Keras has loaded
          VRAM.set_scale_to(detector)
  
          self.initialize_detector(detector, mtcnn_kwargs)
          self.initialized = True
  
      def initialize_vram(self, detector):
          """ Initialize vram based on detector """
          VRAM.verbose = self.verbose
          VRAM.detector = detector
 
</s> remove         if self.initialized:
            return
        self.initialize_vram(detector)
        self.initialize_keras(detector)
        # VRAM Scaling factor must be set AFTER Keras has loaded
        VRAM.set_scale_to(detector)
 </s> add         if not VRAM.initialized:
            self.initialize_vram(detector) </s> remove         self.initialized = False
 </s> add  </s> remove             self.detector = MTCNN_DETECTOR
 </s> add  </s> remove         self.output_shown = False
 </s> add 
        if not self.keras.initialized:
            self.initialize_keras(detector)
            # VRAM Scaling factor must be set AFTER Keras has loaded
            VRAM.set_scale_to(detector)

        if detector == "mtcnn":
            self.detector = MTCNN_DETECTOR
        else:
            self.detector = DLIB_DETECTORS

        if not self.detector.initialized:
            self.initialize_detector(detector, mtcnn_kwargs)
          self.initialize_keras(detector)
          # VRAM Scaling factor must be set AFTER Keras has loaded
          VRAM.set_scale_to(detector)
  
        if not self.keras.initialized:
            self.initialize_keras(detector)
            # VRAM Scaling factor must be set AFTER Keras has loaded
            VRAM.set_scale_to(detector)

        if detector == "mtcnn":
            self.detector = MTCNN_DETECTOR
        else:
            self.detector = DLIB_DETECTORS

        if not self.detector.initialized:
            self.initialize_detector(detector, mtcnn_kwargs)
        if not self.keras.initialized:
            self.initialize_keras(detector)
            # VRAM Scaling factor must be set AFTER Keras has loaded
            VRAM.set_scale_to(detector)

        if detector == "mtcnn":
            self.detector = MTCNN_DETECTOR
        else:
            self.detector = DLIB_DETECTORS

        if not self.detector.initialized:
            self.initialize_detector(detector, mtcnn_kwargs)
  
      def initialize_vram(self, detector):
          """ Initialize vram based on detector """
          VRAM.verbose = self.verbose
          VRAM.detector = detector
keep keep keep keep replace replace keep keep keep keep keep
 Extract - Detector reinitialization bugfix 
lib/face_alignment/extractor.py