anchorencoding
anchorencoding ¶
Module for anchor encoding
Classes¶
AnchorEncoder ¶
            Bases: ABC
Abstract AnchorEncoder
          OptimizedAnchorEncoder
  
  
      dataclass
  
¶
  
            Bases: AnchorEncoder
Class to encode anchors before model optimization
Functions¶
decode_anchors ¶
Decodes encoded bounding boxes in an optimized way Args: anchor_list: List of bounding boxes representing the anchors encodings: 2D array with at least the four coordinates of the bounding boxes in xywh format. This is optionally followed by a mask flag (POSITIVE,NEGATIVE,IGNORE) and a one-hot encoded class vector
Returns:
- 
        –
        
Same as encodings but with decoded bounding box coordinates
 
Source code in niceml/mlcomponents/objdet/anchorencoding.py
            encode_anchors ¶
Encodes an anchor list to a numpy array
Source code in niceml/mlcomponents/objdet/anchorencoding.py
            
          SimpleAnchorEncoder
  
  
      dataclass
  
¶
  
            Bases: AnchorEncoder
Class to encode anchors before model optimization
Functions¶
decode_anchors ¶
Decodes encoded bounding boxes Args: anchor_list: List of bounding boxes representing the anchors encodings: 2D array with at least the four coordinates of the bounding boxes in xywh format. This is optionally followed by a mask flag (POSITIVE,NEGATIVE,IGNORE) and a one-hot encoded class vector
Returns:
- 
            
ndarray–Same as encodings but with decoded bounding box coordinates
 
Source code in niceml/mlcomponents/objdet/anchorencoding.py
            encode_anchors ¶
Encodes an anchor list to a numpy array