parameters: (self)
return_statement: return anchor_configs
docstring: Generate configurations of anchor boxes.
docstring_summary: Generate configurations of anchor boxes.
docstring_tokens: Generate configurations of anchor boxes .
function: def _generate_configs(self):
          """Generate configurations of anchor boxes."""
          anchor_configs = {}
          feat_sizes = self.feat_sizes
          for level in range(self.min_level, self.max_level + 1):
              anchor_configs[level] = []
              for scale_octave in range(self.num_scales):
                  for aspect in self.aspect_ratios:
                      anchor_configs[level].append(
                          (
                              (
                                  feat_sizes[0]["height"]
                                  / float(feat_sizes[level]["height"]),
                                  feat_sizes[0]["width"]
                                  / float(feat_sizes[level]["width"]),
                              ),
                              scale_octave / float(self.num_scales),
                              aspect,
                              self.anchor_scales[level - self.min_level],
                          )
                      )
          return anchor_configs
function_tokens: def _generate_configs ( self ) : anchor_configs = { } feat_sizes = self . feat_sizes for level in range ( self . min_level , self . max_level + 1 ) : anchor_configs [ level ] = [ ] for scale_octave in range ( self . num_scales ) : for aspect in self . aspect_ratios : anchor_configs [ level ] . append ( ( ( feat_sizes [ 0 ] [ "height" ] / float ( feat_sizes [ level ] [ "height" ] ) , feat_sizes [ 0 ] [ "width" ] / float ( feat_sizes [ level ] [ "width" ] ) , ) , scale_octave / float ( self . num_scales ) , aspect , self . anchor_scales [ level - self . min_level ] , ) ) return anchor_configs