MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / _sample_padded

Method _sample_padded

detrsmpl/models/utils/SMPLX.py:247–250  ·  view source on GitHub ↗
(self, full_imgs, sampling_grid)

Source from the content-addressed store, hash-verified

245 self.grid = points.unsqueeze(dim=0)
246
247 def _sample_padded(self, full_imgs, sampling_grid):
248 """"""
249 # Get the sub-images using bilinear interpolation
250 return F.grid_sample(full_imgs, sampling_grid, align_corners=True)
251
252 def __call__(self, full_imgs, center, bbox_size):
253 """Crops the HD images using the provided bounding boxes.

Callers 1

__call__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected