MCPcopy Create free account
hub / github.com/VincentHancoder/SSGD / generate_coordinate

Function generate_coordinate

mmdet/core/utils/misc.py:190–208  ·  view source on GitHub ↗

Generate the coordinate. Args: featmap_sizes (tuple): The feature to be calculated, of shape (N, C, W, H). device (str): The device where the feature will be put on. Returns: coord_feat (Tensor): The coordinate feature, of shape (N, 2, W, H).

(featmap_sizes, device='cuda')

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

forwardMethod · 0.90
forwardMethod · 0.90
forwardMethod · 0.90
forwardMethod · 0.90
forwardMethod · 0.90

Calls 2

catMethod · 0.80
expandMethod · 0.45

Tested by

no test coverage detected