          base_config = super(TorchBatchNorm2D, self).get_config()
          return dict(list(base_config.items()) + list(config.items()))
  
  
  class FAN(object):
      """
      Converted from pyTorch from
      https://github.com/1adrianb/face-alignment
      """
      def __init__(self, model_path):
 
</s> remove from ._base import BoundingBox, Detector, logger
 </s> add from ._base import Detector, logger </s> remove from ._base import BoundingBox, Detector, logger
 </s> add from ._base import Detector, logger </s> remove from ._base import BoundingBox, cv2, Detector, logger
 </s> add from ._base import cv2, Detector, logger </s> remove     def to_bounding_box(self):
        """ Return Bounding Box as BoundingBox """
        left = self.x
        top = self.y
        right = self.x + self.w
        bottom = self.y + self.h
        retval = BoundingBox(left, top, right, bottom)
 </s> add     def to_bounding_box_dict(self):
        """ Return Bounding Box as a bounding box dixt """
        retval = dict(left=self.x, top=self.y, right=self.x + self.w, bottom=self.y + self.h) </s> remove     def from_bounding_box(self, bounding_box, image=None):
        """ Set Bounding Box from a BoundingBox """
        logger.trace("Creating from BoundingBox: %s", bounding_box)
        if not isinstance(bounding_box, BoundingBox):
            raise ValueError("Supplied Bounding Box is not a BoundingBox.")
        self.x = bounding_box.left
        self.w = bounding_box.width
        self.y = bounding_box.top
        self.h = bounding_box.height
 </s> add     def from_bounding_box_dict(self, bounding_box_dict, image=None):
        """ Set Bounding Box from a bounding box dict """
        logger.trace("Creating from bounding box dict: %s", bounding_box_dict)
        if not isinstance(bounding_box_dict, dict):
            raise ValueError("Supplied Bounding Box is not a dictionary.")
        self.x = bounding_box_dict["left"]
        self.w = bounding_box_dict["right"] - bounding_box_dict["left"]
        self.y = bounding_box_dict["top"]
        self.h = bounding_box_dict["bottom"] - bounding_box_dict["top"]
class FAN():
          base_config = super(TorchBatchNorm2D, self).get_config()
          return dict(list(base_config.items()) + list(config.items()))
  
  
class FAN():
      """
      Converted from pyTorch from
      https://github.com/1adrianb/face-alignment
      """
      def __init__(self, model_path):
keep keep keep keep replace keep keep keep keep keep
 Bugfix: Extract - Remove BoundingBox object and replace with dict 
plugins/extract/align/fan_amd.py