MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / __init__

Method __init__

PATH/core/augmentation_pos.py:316–328  ·  view source on GitHub ↗
(self,
                 sigma=2,
                 kernel=(11, 11),
                 valid_radius_factor=0.0546875,
                 target_type='GaussianHeatMap',
                 encoding='MSRA',
                 unbiased_encoding=False)

Source from the content-addressed store, hash-verified

314 """
315
316 def __init__(self,
317 sigma=2,
318 kernel=(11, 11),
319 valid_radius_factor=0.0546875,
320 target_type='GaussianHeatMap',
321 encoding='MSRA',
322 unbiased_encoding=False):
323 self.sigma = sigma
324 self.unbiased_encoding = unbiased_encoding
325 self.kernel = kernel
326 self.valid_radius_factor = valid_radius_factor
327 self.target_type = target_type
328 self.encoding = encoding
329
330 def _msra_generate_target(self, cfg, joints_3d, joints_3d_visible, sigma):
331 """Generate the target heatmap via "MSRA" approach.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected