  import logging
  import os
  import sys
  
  import cv2
  import numpy as np
  
  from tensorflow.python import errors_impl as tf_errors  # pylint:disable=no-name-in-module
  
  from lib.multithreading import MultiThread
  from lib.queue_manager import queue_manager
  from lib.utils import GetModel, FaceswapError
 
</s> remove from plugins.extract._base import Extractor, logger
 </s> add from plugins.extract._base import Extractor, ExtractMedia, logger </s> remove from plugins.extract._base import Extractor, logger
 </s> add from plugins.extract._base import Extractor, logger, ExtractMedia </s> remove from plugins.extract.pipeline import Extractor
 </s> add from plugins.extract.pipeline import Extractor, ExtractMedia
  import logging
  import os
  import sys
  



  from tensorflow.python import errors_impl as tf_errors  # pylint:disable=no-name-in-module
  
  from lib.multithreading import MultiThread
  from lib.queue_manager import queue_manager
  from lib.utils import GetModel, FaceswapError
keep keep keep keep replace replace replace keep keep keep keep keep
 plugins.extract - Create ExtractMedia class for pipeline flow
Bugfix - Fix memory leak in extract 
plugins/extract/_base.py