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

Method apply_coords

PATH/core/data/transforms/seg_aug_dev.py:381–384  ·  view source on GitHub ↗
(self, coords)

Source from the content-addressed store, hash-verified

379 return ret
380
381 def apply_coords(self, coords):
382 coords[:, 0] = coords[:, 0] * (self.new_w * 1.0 / self.w)
383 coords[:, 1] = coords[:, 1] * (self.new_h * 1.0 / self.h)
384 return coords
385
386 def apply_segmentation(self, segmentation):
387 segmentation = self.apply_image(segmentation, interp=Image.NEAREST)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected